/* ==========================================================================
   Voiceplix — "instrument panel"
   Voice is measured in two channels: time (milliseconds) and money (rupees).
   The page is built like a metering device: near-black instrument bands,
   paper-white reading bands, one warm accent reserved for money.
   ========================================================================== */

:root {
  /* surfaces */
  --ink:       #08090C;   /* instrument body */
  --ink-1:     #101319;   /* raised surface on dark */
  --ink-2:     #1A1E27;   /* hairline on dark */
  --paper:     #FFFFFF;
  --haze:      #F1F2F6;   /* quiet reading band */
  --haze-2:    #E7E9EF;

  /* ink */
  --fg:        #08090C;
  --dim:       #646B79;   /* muted on light  — 5.6:1 on paper */
  --dim-d:     #8E94A3;   /* muted on dark   — 6.4:1 on ink   */
  --line:      rgba(8, 9, 12, .11);
  --line-d:    rgba(255, 255, 255, .11);

  /* the one accent — money, meters, live state */
  --amber:     #FF6B2C;
  --amber-lo:  #C4491A;   /* darkened for text on paper (4.9:1) */
  --amber-bg:  #FFF2EB;

  /* semantic (reserved, never decorative) */
  --good:      #12805A;
  --good-bg:   #E6F5EF;
  --warn:      #8A5A00;
  --warn-bg:   #FFF3DB;
  --bad:       #B3261E;
  --bad-bg:    #FDECEA;

  --radius:    16px;
  --radius-lg: 26px;
  --max:       1180px;
  --nav:       60px;

  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--amber-lo); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-tight { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.22rem; letter-spacing: -.025em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow.centred { justify-content: center; }
.on-ink .eyebrow, .eyebrow.light { color: var(--dim-d); }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  color: var(--dim);
  max-width: 46ch;
  line-height: 1.5;
}
.centred .lead, .lead.centred { margin-left: auto; margin-right: auto; }
.on-ink .lead, .lead.on-dark, .on-dark { color: var(--dim-d); }
.muted { color: var(--dim); }
.on-ink .muted { color: var(--dim-d); }
.centred { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rupee { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- bands --------------------------------------------------------- */

.band { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.band-paper { background: var(--paper); }
.band-haze  { background: var(--haze); }
.band-ink   { background: var(--ink); color: #fff; }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
/* :not(.btn) — buttons carry their own text colour and must not inherit the link colour */
.band-ink a:not(.btn) { color: var(--amber); }
.band-tight { padding-top: clamp(2.5rem, 5vw, 4rem); }
/* a page header that runs straight into the dark section beneath it */
.band-ink.page-hero { background: linear-gradient(180deg, #0D1017 0%, #08090C 100%); }
.page-hero { padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem); }
/* a section header, not a hero — deliberately a step down from the homepage h1 */
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); max-width: 24ch; margin-bottom: 1.2rem; }
.page-hero .lead { max-width: 54ch; }
.band-ink + .band-ink { padding-top: 0; }
.band-hair + .band-hair { border-top: 1px solid var(--line); }

/* Section intros are centred: at 1180px a left-aligned block leaves the right
   half of every band empty. */
.band-head {
  max-width: 62ch; margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
}
.band-head .lead { margin-left: auto; margin-right: auto; }
.band-head .eyebrow { justify-content: center; }
.band-head .btn-row { justify-content: center; }
/* inside a two-column split the heading pairs with a figure, so it stays left */
.split .band-head, .band-head.left {
  text-align: left; margin-left: 0; margin-right: 0;
}
.split .band-head .lead { margin-left: 0; }
.split .band-head .eyebrow, .band-head.left .eyebrow { justify-content: flex-start; }

/* ---------- nav ----------------------------------------------------------- */

/* The bar sits *in* the dark band it opens on, not on top of it. It only
   materialises once you scroll past that band. */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
/* The nav is a normal-flow row *above* the first section, so "transparent" shows
   the page background. Pages that open dark paint that background to match the
   band below, and the bar disappears into it. */
body.has-hero { background: #0D1017; }
/* light pages (dashboard, legal, auth) have nothing dark to blend into */
body:not(.has-hero) .nav { background: var(--ink); }
.nav.scrolled {
  /* opaque enough to stay black over the white bands below */
  background: rgba(8, 9, 12, .94);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.nav-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  min-height: var(--nav);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.06rem;
  letter-spacing: -.035em; color: #fff;
}
.brand:hover { text-decoration: none; }
/* the Voiceplix mark: two interlocking arcs, from /assets/logo.svg */
.brand-mark { height: 19px; width: auto; flex: none; display: block; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  color: rgba(255, 255, 255, .74);
  font-size: .93rem; font-weight: 500; letter-spacing: -.01em;
  transition: color .16s ease;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line-d); color: #fff;
  border-radius: 9px; padding: .3rem .55rem; cursor: pointer; font-size: 1rem;
}

/* ---------- buttons ------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--body); font-size: .96rem; font-weight: 600; letter-spacing: -.01em;
  border-radius: 999px; padding: .68rem 1.3rem;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease, opacity .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* The strong CTA is always the opposite of the band it sits on, never the accent.
   Orange is kept for money, meters and live state so it still means something. */
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1B1F29; color: #fff; }
.hero .btn-primary, .band-ink .btn-primary, .nav .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover, .band-ink .btn-primary:hover, .nav .btn-primary:hover { background: #EDEEF2; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1B1F29; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #F3F4F8; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: rgba(8, 9, 12, .04); color: var(--fg); }
.band-ink .btn-ghost, .btn-ghost-d { background: transparent; color: #fff; border-color: var(--line-d); }
.band-ink .btn-ghost:hover, .btn-ghost-d:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.btn-lg { padding: .88rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-google { background: #fff; border-color: var(--line); color: var(--fg); width: 100%; }
.btn-google:hover { background: #FAFAFC; color: var(--fg); }
.g-icon { flex: none; }

.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.centred .btn-row { justify-content: center; }

/* ---------- hero ---------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, #0D1017 0%, #08090C 58%);
  color: #fff;
  padding: clamp(2.6rem, 5.5vw, 4.4rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
/* a single soft bloom behind the scope — the glow of a lit instrument */
.hero::after {
  content: "";
  position: absolute; left: 50%; top: 46%;
  width: min(1100px, 120vw); height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 107, 44, .16), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--max);
  margin: 0 auto; padding: 0 24px; text-align: center;
}
.hero h1 { max-width: 17ch; margin: 0 auto 1.4rem; }
.hero .lead {
  max-width: 52ch; margin: 0 auto 2.2rem;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
}
.hero .btn-row { justify-content: center; }

.hero-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .71rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  border: 1px solid var(--line-d); border-radius: 999px;
  padding: .34rem .8rem .34rem .62rem;
  margin-bottom: 1.6rem;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none;
  box-shadow: 0 0 0 0 rgba(255, 107, 44, .6);
  animation: onair 2.4s var(--ease) infinite;
}
@keyframes onair {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 44, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 107, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0); }
}

/* The headline price. One number, large, with its condition immediately under
   it so the claim and the caveat are never separated. */
.hero-price {
  margin: 2.4rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line-d);
  max-width: 640px;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim-d);
  display: flex; align-items: baseline; justify-content: center; gap: .8rem;
  flex-wrap: wrap;
}
.hero-price b {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -.04em;
  text-transform: none; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.hero-price-sub {
  margin: .7rem auto 0; max-width: 46ch;
  font-size: .88rem; color: var(--dim-d);
}
.ast { color: var(--amber); font-size: .62em; vertical-align: super; line-height: 0; margin-left: 1px; }

/* ---------- THE SCOPE — signature element -------------------------------- */

.scope {
  position: relative;
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
  background: linear-gradient(180deg, #14181F 0%, #0E1116 100%);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02);
  overflow: hidden;
}
/* specular edge — the thing that makes it read as a device rather than a div */
.scope::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24) 30%, rgba(255, 255, 255, .24) 70%, transparent);
}
.scope-head {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--ink-2);
  font-family: var(--mono); font-size: .74rem; color: var(--dim-d);
}
.scope-head .live-dot { width: 6px; height: 6px; }
.scope-leg { display: inline-flex; align-items: center; gap: .5rem; letter-spacing: .04em; }
.scope-head .spacer { flex: 1 1 auto; }
.scope-rate { color: var(--amber); letter-spacing: .04em; }

.scope-plot { position: relative; padding: 1.1rem 1.25rem .4rem; }
.scope-svg { display: block; width: 100%; height: auto; overflow: visible; }

.tick { stroke: rgba(255, 255, 255, .13); stroke-width: 1; }
.tick-major { stroke: rgba(255, 255, 255, .26); }
.tick-label { fill: #737A88; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; }
.axis-base { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }

/* waveform bars: silence, then the agent talking */
.bar { fill: #39404E; transform-box: fill-box; transform-origin: center; }
.bar.live { fill: var(--amber); }
/* Default state is the finished state; the animation plays *from* flat.
   If it never runs, the waveform is simply there. */
.scope-svg .bar { animation: barIn .55s var(--ease) backwards; }
@keyframes barIn { from { transform: scaleY(.05); } }

.pickup-line { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .75; }

.scope-marks { position: relative; height: 54px; margin: .1rem 1.25rem 0; }
.mark {
  position: absolute; top: 0;
  transform: translateX(-50%);
  text-align: center; width: 90px;
  animation: markIn .45s var(--ease) backwards;
}
.mark::before {
  content: ""; display: block; width: 1px; height: 10px;
  background: var(--line-d); margin: 0 auto 6px;
}
.mark b {
  display: block; font-family: var(--mono); font-size: .63rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim-d); font-weight: 500;
}
.mark i {
  display: block; font-family: var(--mono); font-style: normal;
  font-size: .72rem; color: #fff; margin-top: 2px;
}
.mark.key::before { background: var(--amber); height: 14px; }
.mark.key b { color: var(--amber); }
.mark.key i { font-size: .85rem; font-weight: 500; }
@keyframes markIn { from { opacity: 0; } }

.scope-foot {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  border-top: 1px solid var(--ink-2);
  padding: .9rem 1.25rem;
  background: rgba(0, 0, 0, .28);
  font-family: var(--mono); font-size: .76rem; color: var(--dim-d);
}
.meter { display: inline-flex; align-items: baseline; gap: .5rem; }
.meter-val {
  font-size: 1.15rem; color: var(--amber); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.scope-foot .spacer { flex: 1 1 auto; }

/* Diagrams ship in two layouts: wide for pointers, tall for phones. Exactly one
   is in the DOM's a11y tree at a time, since display:none removes the other. */
/* !important because `.figure svg { display:block }` below outranks a bare
   `.dia-v`, which would leak the phone layout onto desktop inside figures. */
.dia-v { display: none !important; }
@media (max-width: 760px) {
  .dia-h { display: none !important; }
  .dia-v { display: block !important; }
}

/* event labels inside the tall scope */
.mark-v { animation: markIn .45s var(--ease) backwards; }
.mark-v-lead { stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.mark-v-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  fill: var(--dim-d);
}
.mark-v-val { font-family: var(--mono); font-size: 12px; fill: #fff; }
.mark-v.key .mark-v-lead { stroke: var(--amber); stroke-width: 1.6; }
.mark-v.key .mark-v-label { fill: var(--amber); }
.mark-v.key .mark-v-val { font-size: 13.5px; }

/* ---------- diagram shell (shared by all figures) ------------------------- */

.figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  overflow: hidden;
}
.band-ink .figure, .figure.on-ink {
  background: var(--ink-1); border-color: var(--ink-2);
}
.band-haze .figure { background: var(--paper); }
.figure-cap {
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .71rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.6rem;
}
.band-ink .figure-cap, .figure.on-ink .figure-cap { color: var(--dim-d); }
.figure-cap em { font-style: normal; color: var(--amber-lo); letter-spacing: .1em; }
.band-ink .figure-cap em { color: var(--amber); }
.figure svg { display: block; width: 100%; height: auto; }

/* diagram primitives */
.d-box  { fill: var(--paper); stroke: var(--line); stroke-width: 1.25; }
.d-box-ink { fill: var(--ink); stroke: none; }
.d-box-haze { fill: var(--haze); stroke: none; }
.d-title { font-family: var(--display); font-size: 15px; font-weight: 600; fill: var(--fg); letter-spacing: -.02em; }
.d-title-inv { fill: #fff; }
.d-sub   { font-family: var(--body); font-size: 12.5px; fill: var(--dim); }
.d-sub-inv { fill: var(--dim-d); }
.d-tag   { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; fill: var(--dim); text-transform: uppercase; }
.d-tag-inv { fill: var(--dim-d); }
.d-cost  { font-family: var(--mono); font-size: 14px; fill: var(--amber-lo); font-weight: 500; }
.d-cost-inv { fill: var(--amber); }
.d-flow  { stroke: var(--line); stroke-width: 1.5; fill: none; }
.d-flow-inv { stroke: rgba(255,255,255,.2); }
.d-flow-hot { stroke: var(--amber); stroke-width: 2; fill: none; }
.d-rule  { stroke: var(--line); stroke-width: 1; }
.d-rule-inv { stroke: var(--line-d); }

/* the packet travelling the ledger path */
.packet { fill: var(--amber); }
.packet-anim { offset-rotate: 0deg; animation: packet 4.5s linear infinite; }
@keyframes packet { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ---------- minute stack (AI + SIP breakdown) ----------------------------- */

.stack { display: grid; gap: 10px; }
.stack-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
}
.stack-bar {
  position: relative; height: 40px; border-radius: 8px; overflow: hidden;
  background: var(--haze);
  display: flex; align-items: center; padding: 0 .85rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.band-ink .stack-bar { background: var(--ink-1); color: #fff; }
.stack-bar .fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--amber); opacity: .26;
  transition: width .45s var(--ease);
}
.stack-bar.sip .fill { background: var(--dim); opacity: .34; }
.band-ink .stack-bar .fill { opacity: .34; }
.stack-bar span { position: relative; }
.stack-val { font-family: var(--mono); font-size: .95rem; font-variant-numeric: tabular-nums; }
.stack-total {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  border-top: 2px solid var(--fg); padding-top: .8rem; margin-top: .3rem;
}
.band-ink .stack-total { border-top-color: #fff; }
.stack-total b { font-family: var(--display); font-size: 1rem; letter-spacing: -.02em; }
.stack-total .big {
  font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500; letter-spacing: -.03em; color: var(--amber-lo);
  font-variant-numeric: tabular-nums;
}
.band-ink .stack-total .big { color: var(--amber); }

/* ---------- calculator ---------------------------------------------------- */

.calc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(8, 9, 12, .07);
}
.calc-head {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}
.calc-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
}
.calc-controls { padding: clamp(1.4rem, 3vw, 2.2rem); border-right: 1px solid var(--line); }
.calc-out { padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--haze); }

.field { margin-bottom: 1.9rem; }
.field:last-child { margin-bottom: 0; }
.field-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: .85rem;
}
.field-top label {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin: 0; font-weight: 500;
}
.field-read {
  font-family: var(--mono); font-size: 1.45rem; font-weight: 500;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.field-read small { font-size: .78rem; color: var(--dim); letter-spacing: 0; margin-left: .3rem; }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--amber) var(--pos, 0%), var(--haze-2) var(--pos, 0%));
}
input[type=range]::-moz-range-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right, var(--amber) var(--pos, 0%), var(--haze-2) var(--pos, 0%));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%; margin-top: -9px;
  background: var(--paper); border: 2px solid var(--amber);
  box-shadow: 0 2px 10px rgba(8, 9, 12, .22);
  transition: transform .15s var(--ease);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--amber);
  background: var(--paper); box-shadow: 0 2px 10px rgba(8, 9, 12, .22);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }

.scale-marks {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .68rem; color: var(--dim);
  margin-top: .2rem;
}
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button {
  width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer;
  font-size: 1.15rem; color: var(--fg); font-family: var(--body); line-height: 1;
  border-radius: 50%;
}
.stepper button:hover { background: var(--haze); }
.stepper output {
  min-width: 46px; text-align: center;
  font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums;
}
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .93rem; }
.switch input { width: 18px; height: 18px; accent-color: var(--amber); cursor: pointer; }

.tier-note {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .76rem; color: var(--dim);
  border: 1px dashed var(--line); border-radius: 12px;
  padding: .7rem .9rem; margin-top: 1.3rem;
}
.tier-note b { color: var(--amber-lo); font-weight: 500; }

/* receipt */
.receipt { font-family: var(--mono); font-size: .88rem; }
.receipt-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.receipt-row span:first-child { color: var(--dim); }
.receipt-row.sum {
  border-bottom: 0; border-top: 2px solid var(--fg); margin-top: .5rem; padding-top: .9rem;
  align-items: baseline;
}
.receipt-row.sum span:first-child { color: var(--fg); }
.receipt-total {
  font-family: var(--mono); font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.receipt-eff {
  font-family: var(--mono); font-size: .78rem; color: var(--dim); margin-top: .5rem;
}

.seg {
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.seg-btn {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  border: 1px solid var(--line); background: var(--paper); color: var(--fg);
  border-radius: 999px; padding: .45rem .9rem; cursor: pointer;
  text-decoration: none;
}
a.seg-btn { color: var(--fg); }
.seg-btn.on, .seg-btn[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.band-ink .seg-btn { border-color: var(--line-d); background: var(--ink-1); color: #fff; }
.band-ink .seg-btn.on { background: var(--amber); color: #08090C; border-color: var(--amber); }

/* ---------- rate ladder chart --------------------------------------------- */

.ladder { position: relative; }
.ladder svg { display: block; width: 100%; height: auto; overflow: visible; }
.lad-bar { fill: #C8CCD6; transition: fill .2s ease; cursor: pointer; }
.lad-bar.on { fill: var(--amber); }
.lad-bar:hover { fill: #A7ACBA; }
.lad-bar.on:hover { fill: #FF7F49; }
.lad-axis { font-family: var(--mono); font-size: 10px; fill: var(--dim); }
.lad-val  { font-family: var(--mono); font-size: 11.5px; fill: var(--fg); font-weight: 500; }
.lad-val.dim { fill: var(--dim); }
.lad-base { stroke: var(--line); stroke-width: 1; }
.lad-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: .74rem; line-height: 1.45;
  padding: .5rem .65rem; border-radius: 9px;
  transform: translate(-50%, -112%);
  opacity: 0; transition: opacity .14s ease;
  white-space: nowrap;
}
.lad-tip.show { opacity: 1; }
.lad-tip b { color: var(--amber); font-weight: 500; }

/* ---------- rate table ---------------------------------------------------- */

.rate-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .88rem; }
.rate-table th {
  text-align: left; font-weight: 500; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); padding: 0 1rem .8rem 0; border-bottom: 1px solid var(--line);
}
.rate-table td { padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rate-table td:last-child, .rate-table th:last-child { padding-right: 0; text-align: right; }
.rate-table tr.quote td { color: var(--dim); }
.rate-table tr.best td { background: var(--amber-bg); }
.rate-table .num { font-size: 1rem; }

.footnotes { margin: 1.4rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); }
.footnotes > div { display: grid; grid-template-columns: 1.2rem 1fr; gap: .5rem; margin-bottom: .5rem; }
.footnotes dt { font-family: var(--mono); font-weight: 600; }
.footnotes dd { margin: 0; color: var(--dim); font-size: .87rem; line-height: 1.5; }
.band-ink .footnotes dd { color: var(--dim-d); }

/* ---------- pill / chip / badge ------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px; padding: .42rem .85rem;
  color: var(--dim);
}
.band-ink .chip { border-color: var(--line-d); color: rgba(255, 255, 255, .8); }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px; padding: .24rem .6rem;
  background: var(--amber-bg); color: var(--amber-lo);
}
.badge.plivo { background: var(--haze); color: var(--dim); }
.badge.ok   { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad  { background: var(--bad-bg);  color: var(--bad); }

/* ---------- cards & grids ------------------------------------------------- */

.grid-3, .grid-2, .grid-4 { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.top { align-items: start; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--dim); margin: 0; }
.band-haze .card { background: var(--paper); }
.band-ink .card { background: var(--ink-1); border-color: var(--ink-2); }
.band-ink .card p { color: var(--dim-d); }
.card.glow { border-color: rgba(255, 107, 44, .38); }

/* numbered process — only where order genuinely matters */
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.flow-step { position: relative; padding: 2.2rem 1.4rem 0 0; }
.flow-step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line);
}
.band-ink .flow-step::before { background: var(--line-d); }
.flow-step::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--fg);
}
.band-ink .flow-step::after { background: #fff; }
.flow-step .n {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--dim);
  display: block; margin-bottom: .7rem;
}
.band-ink .flow-step .n { color: var(--dim-d); }
.flow-step h3 { font-size: 1.06rem; margin-bottom: .45rem; }
.flow-step p { font-size: .93rem; color: var(--dim); margin: 0; }
.band-ink .flow-step p { color: var(--dim-d); }

.ticks { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.ticks li {
  position: relative; padding: .45rem 0 .45rem 1.6rem; color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.band-ink .ticks li { color: var(--dim-d); border-bottom-color: var(--line-d); }
/* decorative, so neutral — the accent stays reserved for money and live state */
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 7px; height: 7px; border-radius: 2px; background: #C2C7D2;
}
.band-ink .ticks li::before { background: rgba(255, 255, 255, .32); }

/* stat tiles */
.stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; background: var(--paper);
}
.band-ink .stat { background: var(--ink-1); border-color: var(--ink-2); }
.stat b {
  display: block;
  font-family: var(--mono); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 500;
  letter-spacing: -.04em; color: var(--amber-lo); font-variant-numeric: tabular-nums;
  margin-bottom: .3rem;
}
.band-ink .stat b { color: var(--amber); }
.stat span { color: var(--dim); font-size: .93rem; display: block; }
.band-ink .stat span { color: var(--dim-d); }
.stat em { font-style: normal; font-size: .78rem; font-family: var(--mono); color: var(--dim); }

/* ---------- app screen mockups -------------------------------------------- */

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.screen {
  background: var(--ink-1); border: 1px solid var(--ink-2);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.screen-bar {
  display: flex; align-items: center; gap: 6px;
  padding: .65rem .85rem; border-bottom: 1px solid var(--ink-2);
}
.screen-bar i { width: 7px; height: 7px; border-radius: 50%; background: #2E3440; display: block; }
.screen-bar span {
  margin-left: .5rem; font-family: var(--mono); font-size: .66rem; color: var(--dim-d);
  letter-spacing: .06em;
}
.screen-body { padding: 1.1rem .95rem 1.3rem; }
.screen-body .lbl {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim-d); display: block; margin-bottom: .35rem;
}
.screen-body .kpi-lg {
  font-family: var(--mono); font-size: 1.9rem; font-weight: 500; color: #fff;
  letter-spacing: -.035em; line-height: 1; margin-bottom: .2rem;
}
.screen-body .kpi-sub { font-family: var(--mono); font-size: .7rem; color: var(--amber); }
.screen-list { margin-top: 1.1rem; display: grid; gap: .5rem; }
.screen-line {
  display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center;
  font-family: var(--mono); font-size: .72rem; color: var(--dim-d);
  padding: .5rem .6rem; border-radius: 8px; background: rgba(255, 255, 255, .035);
}
.screen-line b { color: #fff; font-weight: 500; }
.screen-line .amt { color: var(--amber); }
.screen-cap {
  font-family: var(--mono); font-size: .72rem; color: var(--dim-d);
  margin-top: .8rem; letter-spacing: .04em;
}

/* ---------- price cards (marketing + dashboard) --------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .85rem;
}
a.price { text-decoration: none; color: inherit; }
.price {
  display: flex; flex-direction: column; gap: .3rem; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.15rem;
}
.price .tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.price h3 { font-size: 1.05rem; margin: .35rem 0 0; }
.price .amt {
  font-family: var(--mono); font-size: 1.65rem; font-weight: 500; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; margin-top: .3rem;
}
.price .amt small { font-size: .8rem; color: var(--dim); letter-spacing: 0; }
.price p { color: var(--dim); font-size: .85rem; font-family: var(--mono); margin: .2rem 0 1rem; }
.price .btn { margin-top: auto; width: 100%; }
.price.featured, .price.picked { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.price.featured .tag, .price.picked .tag { color: var(--amber-lo); }

/* Buy-number: after a plan is chosen, shrink the plan strip */
.buy-plans .price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.buy-plans.plan-picked {
  padding: 1rem 1.15rem;
  overflow: visible;
}
.buy-plans .price-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}
.buy-plans .price-grid.compact .price {
  padding: .55rem .6rem;
  gap: .12rem;
  border-radius: 12px;
  min-height: 0;
}
.buy-plans .price-grid.compact .price .tag {
  font-size: .55rem;
  letter-spacing: .1em;
}
.buy-plans .price-grid.compact .price h3 {
  font-size: .84rem;
  margin: 0;
  line-height: 1.25;
}
.buy-plans .price-grid.compact .price .amt {
  font-size: .98rem;
  margin-top: 0;
  line-height: 1.2;
}
.buy-plans .price-grid.compact .price .amt small,
.buy-plans .price-grid.compact .price p {
  display: none;
}
#search-numbers { scroll-margin-top: calc(var(--nav) + 14px); }

/* ---------- forms & auth -------------------------------------------------- */

.auth {
  max-width: 440px; margin: clamp(2.5rem, 6vw, 5rem) auto clamp(4rem, 8vw, 6rem);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.2rem 1.9rem;
  box-shadow: 0 24px 60px rgba(8, 9, 12, .07);
}
.auth h1 { font-size: 1.85rem; margin-bottom: .5rem; }
.auth p { color: var(--dim); }
.form-row { margin: 1rem 0; }
label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; letter-spacing: -.005em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=file], input[type=date], select, textarea {
  width: 100%; max-width: 100%;
  border: 1px solid var(--line); border-radius: 11px;
  padding: .72rem .85rem;
  font-family: var(--body); font-size: 1rem;
  background: var(--paper); color: var(--fg);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 107, 44, .16);
}
textarea { min-height: 100px; resize: vertical; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--dim); font-size: .8rem; margin: 1.2rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- flash --------------------------------------------------------- */

.flash {
  max-width: var(--max); margin: .9rem auto; padding: .8rem 1.05rem;
  border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
  font-size: .95rem;
}
.flash-error   { border-color: #F3C4BF; background: var(--bad-bg); color: #7A1A15; }
.flash-success { border-color: #B6E0CE; background: var(--good-bg); color: #0B5540; }

/* ---------- dashboard / admin --------------------------------------------- */

.is-app { background: var(--haze); }
.is-app main.wrap { padding-bottom: 4rem; }
.app-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.1rem; margin: 1.6rem 0 2.5rem; }
.kpi {
  font-family: var(--mono); font-size: 2.1rem; font-weight: 500;
  letter-spacing: -.04em; margin: .2rem 0; font-variant-numeric: tabular-nums;
}
.page-head { padding: clamp(1.8rem, 4vw, 2.8rem) 0 .6rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0; }
.page-head .eyebrow { margin-bottom: .8rem; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td {
  text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.table th {
  font-family: var(--mono); font-size: .67rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--dim); font-weight: 500;
}
.table td { font-variant-numeric: tabular-nums; }

/* ---------- legal --------------------------------------------------------- */

.legal { max-width: 760px; margin: clamp(2.5rem, 6vw, 4.5rem) auto clamp(4rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: .6rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
.legal h3 { font-size: 1.02rem; margin: 1.4rem 0 .45rem; }
.legal p, .legal li { color: #2C313B; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal .updated { color: var(--dim); font-family: var(--mono); font-size: .8rem; }

/* ---------- footer -------------------------------------------------------- */

.footer { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .8fr 1fr .8fr; gap: 2rem; }
.footer a { color: rgba(255, 255, 255, .68); display: block; margin: .3rem 0; font-size: .92rem; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim-d); margin: 0 0 .8rem; font-weight: 500;
}
.footer .muted { color: var(--dim-d); font-size: .93rem; }
.footer-brand { margin-bottom: .8rem; }
.footer-address { font-style: normal; color: var(--dim-d); font-size: .9rem; line-height: 1.6; margin: .9rem 0; display: block; }
.footer-address strong { color: rgba(255, 255, 255, .85); font-weight: 500; }
.fineprint {
  color: #6B7280; font-size: .78rem; line-height: 1.6;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-2);
}
.fineprint p { margin: 0 0 .6rem; max-width: 92ch; }
.fineprint p:last-child { margin-bottom: 0; }
.gst-note { color: #B7BCC7; font-weight: 500; }

/* ---------- scroll reveal ------------------------------------------------- */

/* Only hide things if JS is around to reveal them again. */
.js .rise { opacity: 0; transform: translateY(18px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise-d1.in { transition-delay: .07s; }
.rise-d2.in { transition-delay: .14s; }
.rise-d3.in { transition-delay: .21s; }

.enter-banner {
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  padding: .55rem 1.2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.enter-banner a { color: var(--amber); }
.enter-banner a:hover { color: #fff; }

/* ---------- agent studio (app desk; proto stays off-stage) ---------------- */

.agent-toolbar {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin: 1.1rem 0 1.4rem;
}
.agent-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  margin-bottom: 1.6rem;
}
.agent-card {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
  color: inherit; text-decoration: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.agent-card:hover { text-decoration: none; border-color: var(--amber); box-shadow: 0 10px 28px rgba(8,9,12,.06); }
.agent-card-top { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; margin-bottom: .45rem; }
.agent-card-top strong { font-family: var(--display); letter-spacing: -.03em; }
.agent-card p { font-size: .92rem; margin: 0 0 .7rem; }
.agent-card-meta {
  display: flex; gap: .7rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.studio-tabs {
  display: flex; gap: .2rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin: .4rem 0 1.2rem;
}
.studio-tabs a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); padding: .7rem .85rem; border-bottom: 2px solid transparent; text-decoration: none;
}
.studio-tabs a:hover { color: var(--fg); text-decoration: none; }
.studio-tabs a.on { color: var(--fg); border-bottom-color: var(--amber); }
.studio-pre {
  font-family: var(--mono); font-size: .82rem; background: var(--haze);
  border-radius: 12px; padding: .9rem 1rem; overflow: auto; max-height: 280px;
  white-space: pre-wrap; word-break: break-word;
}
.agent-live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.live-pill {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem;
}
.live-pill.on { color: var(--good); border-color: var(--good); background: var(--good-bg); }
.studio-live { list-style: none; padding: 0; margin: 0; }
.studio-live li {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
@media (max-width: 760px) {
  .agent-grid { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------------------------------------------------- */

@media (max-width: 1040px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buy-plans .price-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; }
  .flow-step { padding-bottom: 1.6rem; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .split, .grid-3, .grid-4, .app-grid, .screens, .calc-grid, .footer-grid { grid-template-columns: 1fr; }
  .calc-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { gap: 2.2rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; right: 16px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--ink-1); border: 1px solid var(--ink-2);
    padding: .7rem; border-radius: 14px; min-width: 220px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5); z-index: 70;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .55rem .6rem; border-radius: 9px; }
  .nav-links a:hover { background: rgba(255, 255, 255, .06); }
  .nav-links .btn { margin-top: .4rem; }
  /* the scope takes the full width of the phone; the margins were wasted */
  .hero-inner { padding: 0 16px; }
  .scope { margin-inline: -8px; }
  .scope-plot { padding: 1rem .7rem .3rem; }
  .scope-head, .scope-foot { padding-inline: .9rem; }
  .scope-foot { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .hero-price { flex-direction: column; gap: .3rem; align-items: center; }
}
@media (max-width: 760px) {
  .buy-plans .price-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .price-grid, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .buy-plans .price-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-steps { grid-template-columns: 1fr; }
  .auth { margin-left: 16px; margin-right: 16px; }
  .legal { margin-left: 18px; margin-right: 18px; }
  .wrap, .wrap-tight { padding: 0 18px; }
  .receipt-row { font-size: .82rem; }
  .scope-head { font-size: .68rem; gap: .6rem; }
  .scope-head .scope-leg span { display: none; }
}

/* ---------- reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .rise { opacity: 1; transform: none; }
  .scope-svg .bar { transform: scaleY(1); }
  .mark { opacity: 1; }
  .live-dot { animation: none; }
}

.tier-note-sub { display: block; margin-top: .5rem; color: var(--dim); line-height: 1.5; }

/* ---------- animated flow on the tall (phone) diagrams -------------------- */
/* Desktop keeps its solid connectors; the phone layouts show the line moving so
   the flow reads as automated rather than a static box-and-arrow chart. */
.d-flow-run {
  stroke-dasharray: 7 7;
  animation: flowrun 1.1s linear infinite;
}
@keyframes flowrun { to { stroke-dashoffset: -14; } }

.packet-v { fill: var(--amber); }
.packet-v-anim { animation: packetv 3.4s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes packetv { from { offset-distance: 0%; } to { offset-distance: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .d-flow-run { stroke-dasharray: none; animation: none; }
  .packet-v-anim { display: none; }
}

@media (max-width: 620px) {
  /* give the tall diagrams the width back */
  .figure { padding: 1.1rem .65rem 1.3rem; border-radius: 18px; }
  .figure-cap { margin-bottom: 1rem; gap: .25rem; flex-direction: column; }
}
