/* Lumera Creative · Voice Receptionist Automation
   Plain CSS, no build step. Fonts: Geist and Geist Mono (SIL OFL 1.1, see assets/fonts/OFL-Geist.txt). */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #06080D;
  --bg-2: #0A0E17;
  --panel: #0E1320;
  --ink: #EDEEF2;          /* 17:1 on --bg */
  --muted: #A6ACB8;        /* 8.6:1 */
  --dim: #8890A0;          /* 6.1:1, labels */
  --silver: #C8CDD6;
  --line: rgba(200, 205, 214, .13);
  --line-2: rgba(200, 205, 214, .26);
  --cobalt: #2E5BFF;       /* fills, with white text: 5.1:1 */
  --cobalt-ink: #93AAFF;   /* cobalt for text on dark: 8.4:1 */
  --cobalt-a: rgba(46, 91, 255, .16);
  --amber: #EBA53F;        /* urgency only */
  --amber-a: rgba(235, 165, 63, .12);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: 64px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200,205,214,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200,205,214,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 20%, #000 25%, transparent 75%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--cobalt-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

:focus-visible { outline: 2px solid var(--cobalt-ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow, .mono-cap, .proto-tag, .col-cap, .fine {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow, .mono-cap, .col-cap { color: var(--dim); }
.fine { color: var(--dim); text-transform: none; letter-spacing: .02em; line-height: 1.6; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.btn-primary:hover { background: #4670FF; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--silver); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  display: flex; align-items: center; gap: 20px; padding: 0 var(--gut);
  background: rgba(6, 8, 13, .97); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.owl { width: 30px; height: 30px; fill: var(--silver); }
.brand-name { font-weight: 500; letter-spacing: -.01em; }
.proto-tag { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.proto-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-a); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: var(--ink); border: 1px solid var(--line-2); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .proto-tag { display: none; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    background: transparent; color: var(--ink); border: 1px solid var(--line-2); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  }
  .js .site-nav ul {
    position: absolute; left: 0; right: 0; top: var(--head); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px;
  }
  .js .site-nav ul:not(.open) { display: none; }
  .js .site-nav a { min-height: 52px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .js .site-nav .nav-cta { border: 0; border-bottom: 1px solid var(--line); }
  html:not(.js) .site-head { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; position: static; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vh, 72px) var(--gut) clamp(24px, 4vh, 48px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 24px;
  min-height: min(calc(86svh - var(--head)), 820px); overflow: clip;
}
.hero .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--cobalt-ink); }
.ring { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); flex: none; }
.ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--cobalt-ink); opacity: 0; }
.motion .ring::after { animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 7.2vw, 108px); letter-spacing: -.04em; line-height: .96; max-width: 11ch; }
.lede { margin-top: 26px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-receiver { position: relative; margin: 0; justify-self: center; width: min(100%, 360px); }
.hero-receiver img { position: relative; z-index: 1; width: 100%; height: auto; max-height: calc(78svh - var(--head)); object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.hero-rings { position: absolute; z-index: 0; left: 50%; top: 50%; width: 170%; transform: translate(-50%, -50%); max-width: none; }
.hero-rings circle { fill: none; stroke: var(--cobalt); stroke-width: 1; opacity: .28; }
.hero-rings circle + circle { opacity: .16; }
.hero-rings circle + circle + circle { opacity: .08; }
.motion .hero-receiver img { animation: lift 7s ease-in-out infinite alternate; }
@keyframes lift { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-12px) rotate(-1.5deg); } }
.motion .hero-copy > *, .motion .hero-receiver { animation: rise .9s var(--ease) both; }
.motion .hero .lede { animation-delay: .25s; }
.motion .hero .cta-row { animation-delay: .35s; }
.motion .hero-receiver { animation-delay: .1s; animation-duration: 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero { display: block; position: relative; min-height: 0; padding-top: 28px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-receiver { position: absolute; top: 20px; right: var(--gut); width: auto; z-index: 1; }
  .hero-receiver img { height: clamp(170px, 50vw, 230px); width: auto; }
  .hero-rings { width: 260%; }
  .hero h1 { max-width: 8.4ch; }
}

/* split headings */
.split .w { display: inline-block; }
.motion .split.is-split .w { opacity: 0; transform: translateY(.35em); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.motion .split.is-split.in .w { opacity: 1; transform: none; }

/* ---------- section scaffolding ---------- */
.how, .configure, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--gut); }
.how, .configure, .contact { border-top: 1px solid var(--line); }
.sec-head, .demo-head { max-width: 780px; }
.sec-title { font-size: clamp(32px, 4.4vw, 60px); margin-top: 14px; }
.demo-head .sec-title { margin-top: 0; }
.sec-sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 58ch; }

/* ---------- story: selector bar ---------- */
.story { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vh, 48px) var(--gut) clamp(64px, 10vh, 120px); }
.skip-demo-row { margin-top: 10px; }
.skip-demo { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--muted); }
.skip-demo:hover { color: var(--ink); }

.story-bar { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 10px 0 12px; background: rgba(6, 8, 13, .97); }
.biz-select { flex: 1 1 520px; min-width: 0; }
.biz-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.biz {
  min-height: 52px; padding: 0 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  font: 500 17px/1.1 var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.biz:hover { border-color: var(--silver); }
.biz[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.sub-select { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.sub-select[hidden] { display: none; }
.sub { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; }
.sub:hover { color: var(--ink); }
.sub[aria-pressed="true"] { background: var(--silver); color: var(--bg); }
.demo-label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--cobalt-a); color: var(--cobalt-ink); font: 500 13px var(--mono); letter-spacing: .04em; white-space: nowrap;
}
.demo-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html:not(.js) .biz-select, html:not(.js) .sub-select { display: none; }
@media (max-width: 640px) {
  .biz-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz { min-height: 48px; font-size: 16px; }
}

/* ---------- story: scenario content (stacked by default) ---------- */
.stage { margin-top: 8px; }
.scn-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 20px 0 8px; }
.scn-head h3 { font-size: clamp(24px, 2.6vw, 34px); }
.scn-head h3 span { color: var(--muted); }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.chip-dev { border-color: rgba(147,170,255,.5); color: var(--cobalt-ink); }

.ch { padding: 28px 0; border-top: 1px solid var(--line); }
.ch-label { display: flex; align-items: baseline; gap: 12px; font-size: 21px; letter-spacing: -.01em; }
.ch-n { font: 400 12px var(--mono); color: var(--cobalt-ink); letter-spacing: .06em; }
.msgs { display: grid; gap: 12px; margin-top: 16px; }
.msg { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; max-width: 48ch; }
.msg .who { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.msg p { font-size: 17px; line-height: 1.5; }
.msg.caller { background: var(--panel); border: 1px solid var(--line); }
.msg.agent { margin-left: auto; background: var(--cobalt-a); border: 1px solid rgba(46,91,255,.35); }
.msg.agent .who { color: var(--cobalt-ink); }
.msg [data-bind] { font-weight: 500; }
mark { background: transparent; color: inherit; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .4s, box-shadow .4s; }
.ch.is-current mark, html:not(.js) mark { background: rgba(46, 91, 255, .32); box-shadow: 0 0 0 2px rgba(46, 91, 255, .32); }

.got { margin-top: 14px; display: grid; gap: 0; border-left: 2px solid var(--cobalt); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.got > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 10px; padding: 10px 14px; }
.got > div + div { border-top: 1px solid var(--line); }
.got dt, .rec dt { font: 400 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.got dd, .rec dd { font-size: 16px; overflow-wrap: anywhere; }
.is-urgency dt { color: var(--amber) !important; }
.is-declined dd { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.why { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 56ch; }
.why::before { content: "Why it matters · "; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

.menu-ref, .capacity { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); max-width: 48ch; }
.svc, .cap-rows { margin-top: 8px; display: grid; }
.svc li, .cap-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.svc li:last-child, .cap-rows li:last-child { border-bottom: 0; }
.svc li.is-match { color: var(--ink); }
.svc li.is-match span:first-child::before { content: "● "; color: var(--cobalt-ink); font-size: 10px; vertical-align: 2px; }
.cap-rows li.full { color: var(--dim); text-decoration: line-through; }
.cap-rule { margin-top: 8px; font-size: 14px; color: var(--dim); }

.choices { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 48ch; }
.choices legend { width: 100%; margin-bottom: 8px; font-size: 14px; color: var(--muted); float: left; }
.choice { position: relative; flex: 1 1 110px; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(147,170,255,.5); color: var(--cobalt-ink); font: 500 15px var(--mono); text-align: center; transition: background .2s, color .2s; }
.choice input:hover + span { background: var(--cobalt-a); }
.choice input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* summary: in the stacked layout it closes the story as a complete recap */
.summary { margin-top: 8px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.col-cap { margin-bottom: 10px; }
.rec { display: grid; border-top: 1px solid var(--line); }
.rec > div { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); transition: background-color .5s, transform .5s var(--ease); }
.result { margin-top: 14px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--cobalt); background: var(--bg-2); }
.result-h { font-weight: 500; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.result-h::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center/18px no-repeat; }
.qual { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* rail: receiver, voice line, cue and chapter links */
.rail { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rail-art { display: grid; justify-items: center; width: 100%; }
.rail-art img { width: auto; height: clamp(104px, 19vh, 220px); transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0px)); filter: drop-shadow(0 16px 22px rgba(0,0,0,.5)); will-change: transform; }
.wave { width: 100%; height: 34px; overflow: visible; }
.wave-base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; }
.wave-line { fill: none; stroke: var(--cobalt-ink); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cue { font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt-ink); text-align: center; }
.ch-nav ol { display: grid; gap: 2px; width: 100%; }
.ch-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 8px; font-size: 14px; line-height: 1.25; color: var(--dim); text-decoration: none; }
.ch-nav a:hover { color: var(--ink); background: var(--bg-2); }
.ch-nav .n { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); font: 400 11px var(--mono); }
.ch-nav a.done { color: var(--muted); }
.ch-nav a.done .n { background: var(--silver); border-color: var(--silver); color: var(--bg); }
.ch-nav a[aria-current="step"] { color: var(--ink); }
.ch-nav a[aria-current="step"] .n { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
html:not(.js) .rail { display: none; }

/* ---------- JS: one scenario at a time ---------- */
.js .scn:not(.is-active) { display: none; }

/* stacked layout (phones, short or zoomed windows): rail is a small strip or plain links */
.js .stage:not(.sticky-mode) .rail { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.js .stage:not(.sticky-mode) .rail-art { width: auto; }
.js .stage:not(.sticky-mode) .rail-art img { height: 44px; transform: rotate(-12deg); filter: none; }
.js .stage:not(.sticky-mode) .wave { display: none; }
.js .stage:not(.sticky-mode) .cue { flex: 1 1 0; min-width: 0; text-align: left; font-size: 11px; line-height: 1.3; }
.js .stage:not(.sticky-mode) .ch-nav { flex: none; }
.js .stage:not(.sticky-mode) .ch-nav ol { display: flex; gap: 2px; }
.js .stage:not(.sticky-mode) .ch-nav a { justify-content: center; min-width: 40px; min-height: 44px; padding: 0; }
.js .stage:not(.sticky-mode) .ch-nav .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .stage.strip:not(.sticky-mode) .rail { position: sticky; top: var(--head); z-index: 20; background: rgba(6, 8, 13, .97); margin: 0 calc(var(--gut) * -1); padding: 6px var(--gut); }
.js .stage:not(.sticky-mode) .ch { scroll-margin-top: 60px; }
@media (max-width: 420px) { .js .stage:not(.sticky-mode) .rail-art { display: none; } }

/* sticky layout (wide and tall enough): chapters scroll on the left, receiver and summary stay in view */
.js .stage.sticky-mode {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(170px, 210px) minmax(0, .92fr); column-gap: clamp(24px, 3vw, 48px);
  grid-template-areas: "head head head" "chapters rail summary";
}
.js .sticky-mode .scn.is-active { display: contents; }
.js .sticky-mode .scn-head { grid-area: head; }
.js .sticky-mode .chapters { grid-area: chapters; }
.js .sticky-mode .rail, .js .sticky-mode .summary { position: sticky; top: calc(var(--head) + var(--bar, 80px) + 16px); align-self: start; }
.js .sticky-mode .rail { grid-area: rail; padding-top: 20px; }
.js .sticky-mode .summary { grid-area: summary; margin-top: 20px; }
.js .sticky-mode .ch { min-height: 50vh; padding: 28px 0 6vh; border-top: 0; scroll-margin-top: calc(var(--bar, 80px) + 4px); transition: opacity .45s; }
.js .sticky-mode .ch:last-child { min-height: 0; padding-bottom: 30vh; }
.js .sticky-mode .ch:not(.is-current) { opacity: .6; }
.js .sticky-mode .got { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .sticky-mode .rec > div:not(.on) dt { opacity: .55; }
.js .sticky-mode .rec > div:not(.on) dd { color: transparent; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px) left center / 70% 1px no-repeat; }
.js .sticky-mode .rec > div:not(.on) dd * { color: transparent; }
.js .sticky-mode .rec > div.fresh { background: rgba(46, 91, 255, .14); box-shadow: inset 2px 0 0 var(--cobalt); }
.js .sticky-mode .result:not(.on) { visibility: hidden; }
.js .sticky-mode .summary { padding: 14px 16px; }
.js .sticky-mode .rec > div { padding: 7px 10px; margin: 0 -10px; }
.js .sticky-mode .rec dd { font-size: 15px; line-height: 1.4; }
.js .sticky-mode .result { margin-top: 10px; padding: 10px 14px; }
.js .sticky-mode .result-h { font-size: 16px; }
.js .sticky-mode .qual { font-size: 13.5px; }
.js .sticky-mode .ch-nav a { min-height: 40px; }
.motion .sticky-mode .rec > div.fresh { animation: settle .55s var(--ease) both; }
@keyframes settle { from { transform: translateX(-10px); } to { transform: none; } }
.js .story-bar.is-pinned { position: sticky; top: var(--head); z-index: 30; border-bottom: 1px solid var(--line); margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); }
.js .story-bar.is-pinned .mono-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .story-bar.is-pinned .biz-row { margin-top: 0; display: flex; flex-wrap: wrap; }
.js .story-bar.is-pinned .biz { min-height: 44px; font-size: 15px; padding: 0 18px; }
.js .story-bar.is-pinned { align-items: center; }

/* without JS: every scenario reads in full, one after another */
html:not(.js) .scn + .scn { margin-top: 40px; border-top: 1px solid var(--line-2); }

@media (max-width: 640px) {
  .msg { max-width: none; }
  .msg.agent { margin-left: 18px; }
  .msg.caller { margin-right: 18px; }
  .got > div, .rec > div { grid-template-columns: 1fr; gap: 2px; }
  .summary { padding: 16px; }
}

/* ---------- how it works ---------- */
.steps6 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.steps6 li { padding: 24px 0 28px; border-top: 1px solid var(--line-2); position: relative; }
.steps6 li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--cobalt-ink); }
.sn { font: 400 12px var(--mono); color: var(--cobalt-ink); }
.steps6 h3 { margin-top: 10px; font-size: 22px; letter-spacing: -.015em; line-height: 1.2; }
.steps6 p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 38ch; }
@media (max-width: 900px) { .steps6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps6 { grid-template-columns: 1fr; padding-left: 24px; position: relative; }
  .steps6::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 24px; width: 1px; background: var(--line-2); }
  .steps6 li { border-top: 0; padding: 0 0 24px; }
  .steps6 li::before { left: -24px; top: 4px; }
}

/* ---------- what changes ---------- */
.cfg { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.cfg > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cfg dt { grid-row: span 2; font-weight: 500; }
.cfg dd { color: var(--muted); font-size: 16px; }
.cfg dd.ex { color: var(--dim); font-size: 14px; }
@media (max-width: 900px) { .cfg { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cfg > div { grid-template-columns: 1fr; } .cfg dt { grid-row: auto; } }

.connects { margin-top: 48px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.connects summary {
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 22px; cursor: pointer;
  font-size: 19px; font-weight: 500; list-style: none; border-radius: 12px;
}
.connects summary::-webkit-details-marker { display: none; }
.connects summary::after { content: "+"; font: 300 26px var(--sans); color: var(--cobalt-ink); }
.connects[open] summary::after { content: "−"; }
.sum-hint { margin-left: auto; font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.connects-body { padding: 4px 22px 24px; display: grid; gap: 20px; color: var(--muted); }
.arch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.arch li { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; font: 400 13px var(--mono); color: var(--ink); }
.arch li + li { position: relative; margin-left: 18px; }
.arch li + li::before { content: "→"; position: absolute; left: -19px; color: var(--cobalt-ink); }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.paths li { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); font-size: 15px; }
.paths b { display: block; color: var(--cobalt-ink); font-weight: 500; margin-bottom: 4px; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.status-grid > div { padding-top: 14px; font-size: 15px; }
.status-grid .mono-cap { margin-bottom: 6px; color: var(--silver); }
@media (max-width: 760px) { .paths, .status-grid { grid-template-columns: 1fr; } .status-grid > div + div { margin-top: 8px; } .connects summary { padding: 0 16px; } .connects-body { padding: 4px 16px 20px; } .sum-hint { display: none; } .connects summary::after { margin-left: auto; } }

/* ---------- contact ---------- */
.contact-cta { margin-top: 28px; }
.contact .fine { margin-top: 18px; }
.inquiry { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; max-width: 920px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 500; }
.opt { color: var(--dim); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); font: 400 16px/1.4 var(--sans);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A6ACB8' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
textarea { resize: vertical; min-height: 130px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cobalt-ink); outline-offset: 1px; border-color: var(--cobalt-ink); }
[aria-invalid="true"] { border-color: var(--amber) !important; }
.err { color: var(--amber); font-size: 14px; }
.err:empty { display: none; }
.hint { color: var(--dim); font-size: 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.radios label, .check label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-weight: 400; cursor: pointer; }
.radios label { align-items: center; }
.check label { padding-top: 10px; line-height: 1.5; }
input[type="radio"], input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--cobalt); cursor: pointer; }
.check input { margin-top: 1px; }
.actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .inquiry { grid-template-columns: 1fr; } .actions .btn { width: 100%; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 40px var(--gut) 48px; max-width: var(--max); margin: 0 auto; color: var(--muted); font-size: 14px; }
.site-foot b { color: var(--ink); font-weight: 500; }
.foot-row p { max-width: 72ch; }
.foot-links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: center; }
.foot-links ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

/* ---------- reduced motion: final states, no transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--head)); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 64px var(--gut); max-width: var(--max); margin: 0 auto; }
.nf h1 { font-size: clamp(40px, 7vw, 88px); }
.nf p:not(.call-label) { color: var(--muted); max-width: 48ch; }
.nf .wave { height: 60px; }
.nf .wave-line { stroke: var(--dim); }
.nf .call-label { display: flex; gap: 14px; font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt-ink); }
.nf .call-meta { color: var(--muted); }
