/* ==========================================================================
   KiwiHost NZ — site.css
   Loaded after Bootstrap 5.3.8. Design tokens first; change the look here, not in the markup.
   System fonts only (no web fonts, no CDNs) so CSP stays font-src 'self'.
   ========================================================================== */

:root {
  /* brand (from the logo) */
  --ink: #132A40;
  --ink-deep: #0C1D2E;
  --navy-700: #1E405F;
  --green: #6CB33F;
  --green-600: #5BA032;
  --green-text: #3B7621;      /* green for small text on light backgrounds (AA) */

  /* paper, tiles and washes */
  --paper: #F8F5EE;
  --cream: #F0E9DA;
  --band: #E7EEF3;
  --band-deep: #D3E0EA;
  --white: #FFFFFF;

  /* human touches */
  --butter: #F6D57A;
  --butter-soft: #FDF3D2;
  --butter-ink: #7A5200;      /* text on light backgrounds */

  /* text */
  --body: #34444F;
  --muted: #56646F;
  --mist: #C9D4DC;
  --mist-dim: #8CA0AF;
  --line: rgba(19, 42, 64, .16);
  --error: #B3321F;

  --font: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-bounce: cubic-bezier(.34, 1.4, .64, 1);

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--body);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--green-text);
  --bs-link-hover-color: var(--ink);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.08;
}
h1, .hero-title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin-bottom: 1rem; }
a { text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; }
.mono { font-family: var(--mono); }
.lead-p { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--body); max-width: 40rem; }
.text-muted-kh { color: var(--muted); }
svg.i { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.16em; flex: none; }

/* marker highlight — the "someone went over it with a pen" detail */
.hl {
  background: linear-gradient(transparent 58%, var(--butter) 58%, var(--butter) 92%, transparent 92%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: .38rem; border-radius: 999px; background: var(--butter); }
.on-dark .eyebrow, .bg-ink .eyebrow { color: var(--butter); }

/* ---------- buttons ---------- */
.btn-kh, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-bounce), background-color .2s, box-shadow .2s;
}
.btn-kh { background: var(--green); color: var(--ink); box-shadow: 0 3px 0 var(--green-text); }
.btn-kh:hover { background: var(--green-600); color: var(--ink); transform: translateY(-2px) rotate(-1deg); box-shadow: 0 5px 0 var(--green-text); }
.btn-kh:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--green-text); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px) rotate(1deg); }
.on-dark .btn-ghost, .bg-ink .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn-ghost:hover, .bg-ink .btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-kh svg.i, .btn-ghost svg.i { transition: transform .25s; }
.btn-kh:hover svg.i, .btn-ghost:hover svg.i { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.text-link { font-weight: 700; color: var(--green-text); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--butter); }
.text-link:hover { color: var(--ink); text-decoration-color: var(--green); }

/* ---------- header ---------- */
.kh-nav {
  background: rgba(248, 245, 238, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  min-height: 76px; padding: .45rem 0;
  transition: min-height .25s, background-color .25s, box-shadow .25s;
  z-index: 1030;
}
.kh-nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 11px 0, #fff 9px, transparent 10px) 0 0 / 22px 9px repeat-x;
  transition: opacity .25s;
}
.kh-nav.is-scrolled { background: #fff; min-height: 62px; box-shadow: 0 1px 0 var(--line); }
.kh-nav.is-scrolled::after { opacity: 1; }
.kh-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.kh-brand img { width: 46px; height: 46px; border-radius: 50%; display: block; transition: transform .5s var(--ease-bounce); }
.kh-brand:hover img { transform: rotate(-12deg) scale(1.06); }
.kh-brand b { font-size: 1.2rem; letter-spacing: -.03em; line-height: 1; display: block; }
.kh-brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: .2rem; }
.kh-nav .nav-link { color: var(--muted); font-weight: 600; font-size: .98rem; padding: .5rem .85rem; border-radius: 999px; }
.kh-nav .nav-link:hover, .kh-nav .nav-link.active, .kh-nav .nav-link.show { color: var(--ink); background: var(--band); }
.kh-nav .dropdown-menu { border: 0; border-radius: 1.25rem 1rem 1.25rem 1rem; box-shadow: 0 18px 40px rgba(19,42,64,.18); padding: 1.1rem; min-width: min(36rem, 92vw); margin-top: .6rem; }
.kh-nav .dropdown-header { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); padding: .2rem .6rem .4rem; }
.kh-nav .dropdown-item { border-radius: .7rem; padding: .5rem .6rem; font-weight: 600; color: var(--ink); white-space: normal; }
.kh-nav .dropdown-item small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.kh-nav .dropdown-item:hover, .kh-nav .dropdown-item.active { background: var(--band); color: var(--ink); }
.kh-nav .navbar-toggler { border: 2px solid var(--ink); border-radius: 12px; padding: .3rem .55rem; }
.kh-nav .navbar-toggler:focus { box-shadow: none; }
.kh-nav .navbar-toggler svg.i { width: 1.6rem; height: 1.6rem; color: var(--ink); }
.nav-cta { margin-left: .5rem; padding: .6rem 1.15rem; font-size: .95rem; }
@media (max-width: 991.98px) {
  .kh-nav .navbar-collapse { padding: 1rem 0 1.25rem; }
  .kh-nav .dropdown-menu { box-shadow: none; background: var(--band); margin: .25rem 0 .5rem; }
  .nav-cta { margin: .75rem 0 0; }
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-band { background: var(--band); }
.bg-ink { background: var(--ink); color: var(--mist); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink a:not(.btn-kh):not(.btn-ghost) { color: var(--butter); }
.bg-white { background: #fff; }
.wave-wrap { line-height: 0; position: relative; z-index: 1; }
.wave-wrap.w-paper { background: var(--paper); } .wave-wrap.w-cream { background: var(--cream); }
.wave-wrap.w-band { background: var(--band); } .wave-wrap.w-ink { background: var(--ink); } .wave-wrap.w-white { background: #fff; }
.wave { display: block; width: 100%; height: clamp(40px, 7vw, 100px); margin-bottom: -1px; }
.fill-paper { fill: var(--paper); } .fill-cream { fill: var(--cream); } .fill-band { fill: var(--band); }
.fill-ink { fill: var(--ink); } .fill-white { fill: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { font-size: 1.15rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(7rem, 10vw, 8.5rem) 0 clamp(1rem, 3vw, 2rem); position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; z-index: 0; right: -6%; top: 7%; width: min(46vw, 600px); aspect-ratio: 1;
  background: var(--band); border-radius: 48% 52% 42% 58% / 38% 40% 60% 62%;
  animation: morph 16s ease-in-out infinite alternate;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 em { font-style: normal; }
.hero .lead-p { margin: 1.4rem 0 1.8rem; }
.hero-art { display: block; width: 100%; height: auto; transition: transform .4s ease-out; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.hero-meta li { display: flex; align-items: center; gap: .45rem; }
.hero-meta svg.i { color: var(--green-text); }
@keyframes morph {
  0% { border-radius: 48% 52% 42% 58% / 38% 40% 60% 62%; }
  100% { border-radius: 60% 40% 55% 45% / 50% 58% 42% 50%; }
}

/* page header for inner pages */
.page-hero { padding: clamp(7rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: clip; }
.page-hero::before {
  content: ""; position: absolute; z-index: 0; right: -10%; top: -20%; width: min(48vw, 560px); aspect-ratio: 1;
  background: var(--band); border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  animation: morph 18s ease-in-out infinite alternate;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 18em; }
.breadcrumb-kh { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; font-size: .9rem; color: var(--muted); }
.breadcrumb-kh li + li::before { content: "/"; margin-right: .35rem; color: var(--mist-dim); }
.breadcrumb-kh a { color: var(--muted); }
/* the direct answer — written for people and for AI assistants quoting us */
.answer {
  position: relative; background: #fff; border-radius: 1.6rem 1rem 1.6rem 1rem; padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  margin: 1.5rem 0 1.8rem; max-width: 44rem; font-size: 1.12rem; color: var(--ink); box-shadow: 0 2px 0 var(--line);
}
.answer::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 6px; border-radius: 6px; background: var(--green); }
.answer p:last-child { margin-bottom: 0; }

/* ---------- sticky notes ---------- */
.note {
  position: relative; background: var(--butter-soft); color: var(--ink);
  padding: 1.7rem 1.5rem 1.4rem; border-radius: 4px 4px 22px 4px;
  box-shadow: 0 10px 18px -8px rgba(19,42,64,.3), 0 1px 0 rgba(19,42,64,.06);
  transform: rotate(var(--rot, 0deg)); transition: transform .35s var(--ease-bounce), box-shadow .35s;
  height: 100%; display: flex; flex-direction: column;
}
.note::before { /* tape */
  content: ""; position: absolute; top: -.7rem; left: 50%; width: 4.2rem; height: 1.4rem; translate: -50% 0; rotate: -3deg;
  background: rgba(188, 205, 221, .75);
}
.note.white { background: #fff; } .note.blue { background: var(--band); }
.note h3 { margin-bottom: .5rem; }
.note p:last-child { margin-bottom: 0; }
.note .text-link { margin-top: auto; padding-top: .75rem; }
.note:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 18px 26px -10px rgba(19,42,64,.35); }
.note-grid > *:nth-child(3n+1) .note { --rot: -1.4deg; }
.note-grid > *:nth-child(3n+2) .note { --rot: .9deg; }
.note-grid > *:nth-child(3n+3) .note { --rot: -.5deg; }
.note .big-ico { width: 2.6rem; height: 2.6rem; color: var(--navy-700); margin-bottom: .8rem; }
.struck { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--error); color: var(--muted); }

/* ---------- steps (the hand-over path) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: 56rem; }
.steps > li { position: relative; display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.2rem; padding-bottom: 2.4rem; counter-increment: step; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { /* dashed connector */
  content: ""; position: absolute; left: 2.2rem; top: 4.4rem; bottom: .2rem; border-left: 3px dashed var(--mist-dim); translate: -1.5px 0;
}
.steps > li:last-child::before { display: none; }
.step-num {
  width: 4.4rem; height: 4.4rem; border-radius: 50%; background: #fff; border: 3px solid var(--ink);
  display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em;
  box-shadow: 0 4px 0 var(--ink); transition: transform .4s var(--ease-bounce);
}
.step-num::before { content: counter(step); }
.steps > li:hover .step-num { transform: rotate(-8deg) scale(1.05); }
.steps > li:nth-child(even) { margin-left: clamp(0rem, 5vw, 4rem); }
.steps h3 { margin: .35rem 0 .4rem; font-size: 1.45rem; }
.steps .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .93rem; color: var(--muted); margin-top: .5rem; }
.steps .meta b { color: var(--ink); }
.pill { display: inline-block; background: var(--butter); color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; }
.pill.outline { background: transparent; border: 2px solid var(--mist-dim); color: var(--muted); }
.pill.green { background: var(--green); }

/* ---------- flip cards ---------- */
.flip { perspective: 1400px; outline-offset: 4px; cursor: default; height: 100%; }
.flip-inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease-bounce); }
.flip-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 1.6rem 1rem 1.6rem 1rem; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; }
.flip-front { background: #fff; box-shadow: 0 2px 0 var(--line), 0 14px 24px -16px rgba(19,42,64,.3); }
.flip-back { background: var(--ink); color: #E9EEF2; transform: rotateY(180deg); box-shadow: 0 14px 24px -12px rgba(19,42,64,.5); }
.flip-back .back-title { color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5rem; }
.flip-back p { font-size: .98rem; margin: 0; }
.flip:nth-child(3n+2) .flip-back, .col-lg-4:nth-child(3n+2) .flip-back { background: var(--navy-700); }
.flip:nth-child(3n) .flip-back, .col-lg-4:nth-child(3n) .flip-back { background: var(--butter); color: var(--ink); }
.flip:nth-child(3n) .flip-back .back-title, .col-lg-4:nth-child(3n) .flip-back .back-title { color: var(--ink); }
.flip.axis-x .flip-back { transform: rotateX(180deg); }
.flip-front .ico { width: 2.5rem; height: 2.5rem; color: var(--navy-700); margin-bottom: .8rem; }
.flip-front h3 { margin-bottom: .45rem; }
.flip-front p { margin: 0 0 1rem; color: var(--body); }
.flip-cue { margin-top: auto; align-self: flex-start; background: var(--band); color: var(--ink); font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; display: inline-flex; gap: .4rem; align-items: center; }
.flip-hint { font-size: .92rem; color: var(--muted); margin: 0 0 1.4rem; display: flex; align-items: center; gap: .5rem; }
.flip-hint svg.i { animation: spin 6s linear infinite; }
@media (hover: hover) and (pointer: fine) { .flip:hover .flip-inner { transform: rotateY(180deg); } .flip.axis-x:hover .flip-inner { transform: rotateX(180deg); } }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip.axis-x.is-flipped .flip-inner { transform: rotateX(180deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- price board ---------- */
.board { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  position: relative; background: #fff; border-radius: 1.8rem 1rem 1.8rem 1rem; padding: 1.9rem 1.7rem 1.7rem;
  box-shadow: 0 2px 0 var(--line), 0 18px 30px -20px rgba(19,42,64,.4); display: flex; flex-direction: column;
  transform: rotate(var(--rot, 0deg)); transition: transform .35s var(--ease-bounce);
}
.plan:nth-child(1) { --rot: -.8deg; } .plan:nth-child(2) { --rot: .4deg; } .plan:nth-child(3) { --rot: -.4deg; }
.plan:hover { transform: rotate(0) translateY(-5px); }
.plan.pop { border: 3px solid var(--ink); }
.plan .ribbon { position: absolute; top: -.9rem; right: 1.4rem; rotate: 3deg; }
.plan h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.plan .for { color: var(--muted); font-size: .98rem; min-height: 3rem; }
.price { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1; margin: .6rem 0 .2rem; }
.price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-note { font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding: .28rem 0 .28rem 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72rem; width: .95rem; height: .5rem; border-left: 3px solid var(--green-text); border-bottom: 3px solid var(--green-text); rotate: -48deg; }
.plan .btn-kh, .plan .btn-ghost { margin-top: auto; }
@media (max-width: 991.98px) { .board { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }

.table-wrap { overflow-x: auto; border-radius: 1rem; background: #fff; box-shadow: 0 2px 0 var(--line); }
.table-kh { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .98rem; }
.table-kh caption { text-align: left; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink); caption-side: top; }
.table-kh th, .table-kh td { padding: .75rem 1.2rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-kh thead th { background: var(--ink); color: #fff; border: 0; font-size: .95rem; }
.table-kh tbody th { font-weight: 700; color: var(--ink); }

/* ---------- stamps, facts and small bits ---------- */
.stamp {
  display: inline-grid; place-items: center; text-align: center; width: 8.2rem; height: 8.2rem; border-radius: 50%;
  border: 3px double var(--ink); color: var(--ink); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.3; rotate: -9deg; padding: 1rem; opacity: .92;
}
.stamp b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.on-dark .stamp, .bg-ink .stamp { color: var(--butter); border-color: var(--butter); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.facts li { background: #fff; border-radius: 1rem 1.4rem 1rem 1.4rem; padding: 1rem 1.2rem; box-shadow: 0 2px 0 var(--line); }
.facts b { display: block; font-size: 1.9rem; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.facts span { font-size: .92rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: .45rem 0 .45rem 2.2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 1.3rem; height: 1.3rem; border: 2.5px solid var(--ink); border-radius: 5px; background: #fff; }
.checklist.cross li::before { border-radius: 50%; border-color: var(--mist-dim); background: var(--band); }
.checklist.cross li::after { content: "×"; position: absolute; left: .27rem; top: .3rem; font-weight: 800; color: var(--muted); line-height: 1.5; }
.split-list h3 { margin-bottom: 1rem; }
.paper-card { background: #fff; border-radius: 1.8rem 1rem 1.8rem 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 2px 0 var(--line), 0 18px 30px -22px rgba(19,42,64,.4); height: 100%; }
.paper-card.tilt-l { rotate: -.6deg; } .paper-card.tilt-r { rotate: .6deg; }
.quote-note { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.quote-note .sign { display: block; margin-top: 1.2rem; font-size: 1rem; color: var(--muted); }
.quote-note .sign b { color: var(--ink); }
.case { background: #fff; border-radius: 1.8rem 1rem 1.8rem 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 2px 0 var(--line); }
.case .tag { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
.case dl { margin: 1rem 0 0; } .case dt { font-weight: 800; color: var(--ink); margin-top: .8rem; } .case dd { margin: 0; }
.case .metrics { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 2px dashed var(--line); }
.case .metrics b { display: block; font-size: 1.7rem; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.case .metrics span { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ (native <details>: works with no JS, answers stay in the page) ---------- */
.faq-list details { background: #fff; border-radius: 1.1rem 1.5rem 1.1rem 1.5rem; margin-bottom: .8rem; box-shadow: 0 2px 0 var(--line); transition: transform .25s var(--ease-bounce); }
.faq-list details:hover { transform: translateX(4px); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.1rem 3.4rem 1.1rem 1.4rem; font-weight: 700; font-size: 1.12rem; color: var(--ink); position: relative; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--butter); font-size: 1.3rem; line-height: 1; font-weight: 700; transition: rotate .25s; }
.faq-list details[open] summary::after { content: "–"; rotate: 180deg; }
.faq-list .faq-body { padding: 0 1.4rem 1.2rem; max-width: 46rem; }
.faq-list .faq-body p:last-child { margin-bottom: 0; }
.faq-group-title { margin: 2.6rem 0 1rem; font-size: 1.6rem; }
.faq-group-title:first-child { margin-top: 0; }

/* ---------- job card form ---------- */
.jobcard-wrap { position: relative; max-width: 54rem; margin-inline: auto; }
.jobcard {
  position: relative; background: #fff; border-radius: 1.2rem 1.2rem 0 0; padding: 4.6rem clamp(1.2rem, 4vw, 2.6rem) 3rem;
  box-shadow: 0 24px 40px -26px rgba(0,0,0,.55); color: var(--body);
  -webkit-mask: radial-gradient(circle at 12px 100%, transparent 8px, #000 9px) 0 0 / 24px 100% repeat-x;
  mask: radial-gradient(circle at 12px 100%, transparent 8px, #000 9px) 0 100% / 24px 20px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 19px) no-repeat;
}
.jobcard-head { position: absolute; left: 0; right: 0; top: 0; padding: .85rem 1.6rem; background: var(--butter); color: var(--ink); font-family: var(--mono); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 1rem; border-radius: 1.2rem 1.2rem 0 0; }
.jobcard fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; min-width: 0; }
.jobcard legend { float: none; width: 100%; font-family: var(--mono); font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 0 0 .5rem; margin-bottom: 1rem; border-bottom: 2px dashed var(--line); }
.jobcard legend span { color: var(--green-text); margin-right: .6rem; }
.jobcard label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .3rem; font-size: .98rem; }
.jobcard .hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.jobcard .req { color: var(--error); }
.jobcard input[type=text], .jobcard input[type=email], .jobcard input[type=tel], .jobcard input[type=url], .jobcard select, .jobcard textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--mist); border-radius: .8rem .55rem .8rem .55rem; padding: .7rem .9rem; transition: border-color .2s, background .2s;
}
.jobcard textarea { resize: vertical; min-height: 9rem; }
.jobcard input:focus, .jobcard select:focus, .jobcard textarea:focus { outline: 3px solid var(--navy-700); outline-offset: 1px; border-color: var(--navy-700); background: #fff; }
.jobcard [aria-invalid=true] { border-color: var(--error); background: #fff6f4; }
.field { margin-bottom: 1.2rem; }
.field-error { color: var(--error); font-size: .9rem; font-weight: 600; margin-top: .3rem; }
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .7rem; }
.need { position: relative; display: flex; }
.need input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.need span { flex: 1; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 2px solid var(--mist); border-radius: 1rem .7rem 1rem .7rem; background: var(--paper); font-weight: 700; color: var(--ink); transition: background .2s, border-color .2s, transform .25s var(--ease-bounce); }
.need span svg.i { color: var(--navy-700); }
.need input:hover + span { transform: translateY(-2px) rotate(-.5deg); }
.need input:checked + span { background: var(--butter-soft); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.need input:focus-visible + span { outline: 3px solid var(--navy-700); outline-offset: 2px; }
.drop { border: 2px dashed var(--mist-dim); border-radius: 1rem; padding: 1rem 1.1rem; background: var(--paper); }
.file-list { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .92rem; }
.warn-note { background: var(--butter-soft); border-radius: .8rem; padding: .8rem 1rem; font-size: .95rem; color: var(--ink); display: flex; gap: .7rem; align-items: flex-start; }
.warn-note svg.i { margin-top: .2rem; color: var(--butter-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; font-weight: 600; margin-top: 1rem; }
.form-status.err { color: var(--error); }
.success-card { text-align: center; padding: 2rem 1rem; }
.success-card .stamp { margin-bottom: 1.2rem; }
[data-for][hidden] { display: none !important; }

/* ---------- CTA band + footer ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 36rem; margin-inline: auto; font-size: 1.15rem; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }
.ribbon-wrap { background: var(--ink); padding: .9rem 0; overflow: hidden; }
.ribbon-marquee { background: var(--butter); color: var(--ink); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; rotate: -1.2deg; margin: 0 -2rem; padding: .7rem 0; overflow: hidden; white-space: nowrap; }
.ribbon-marquee span { display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.site-footer { background: var(--ink); color: var(--mist); padding: 4rem 0 5.5rem; }
.site-footer .foot-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--butter); margin-bottom: 1rem; font-weight: 800; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: .45rem; }
.site-footer .brand-line { color: #fff; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .6rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .9rem; color: var(--mist-dim); }
.site-footer .legal a { color: var(--mist); text-decoration: underline; }
.reviewed { font-size: .9rem; color: var(--muted); margin: 0; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -8px 20px rgba(19,42,64,.14); translate: 0 110%; transition: translate .3s; }
.mobile-cta.is-on { translate: 0 0; }
.mobile-cta .btn-kh { width: 100%; }
@media (min-width: 992px) { .mobile-cta { display: none; } }

/* ---------- reveals (only when JS is on) ---------- */
html.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s ease; }
html.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
html.js .reveal-group > *:nth-child(2) { transition-delay: .08s; } html.js .reveal-group > *:nth-child(3) { transition-delay: .16s; }
html.js .reveal-group > *:nth-child(4) { transition-delay: .24s; } html.js .reveal-group > *:nth-child(5) { transition-delay: .32s; }
html.js .reveal-group > *:nth-child(6) { transition-delay: .4s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal] { opacity: 1; translate: 0 0; }
}
@media (max-width: 575.98px) {
  .steps > li { grid-template-columns: 3.2rem 1fr; gap: .9rem; }
  .step-num { width: 3.2rem; height: 3.2rem; font-size: 1.3rem; }
  .steps > li::before { left: 1.6rem; top: 3.2rem; }
  .steps > li:nth-child(even) { margin-left: 0; }
  .jobcard-head { font-size: .72rem; }
  .ribbon-marquee { margin: 0 -1rem; }
}

/* form card sits on a dark band: keep its own text readable */
.bg-ink .jobcard h2, .bg-ink .jobcard h3 { color: var(--ink); }
.bg-ink .jobcard a:not(.btn-kh):not(.btn-ghost) { color: var(--green-text); }
.bg-ink .jobcard .hint { color: var(--muted); }
.reviewed { color: var(--muted); }
