/* ==========================================================================
   SWAGAT marketing site
   Tokens, five selectable templates, and every block the renderer can emit.
   Light and dark are both first-class; the toggle sets data-theme on <html>.
   ========================================================================== */

/* ------------------------------------------------------------- tokens ---- */

:root {
  --petrol:   #0e3b3a;
  --petrol-d: #072726;
  --petrol-l: #17514e;
  --brass:    #c8912f;
  --brass-l:  #e8c383;
  --seafoam:  #3f9c88;
  --paper:    #f6f7f6;

  --serif: Cambria, Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* surfaces — overridden per template and per colour scheme */
  --bg:      #ffffff;
  --bg-alt:  #f6f7f6;
  --surface: #ffffff;
  --ink:     #12211f;
  --ink-2:   #4c5f5a;
  --ink-3:   #7b8b86;
  --line:    #e0e6e3;
  --line-2:  #cdd6d2;
  --accent:  var(--brass);
  --accent-ink: #8a6316;
  --positive: #2c7f6d;
  --on-accent: #ffffff;

  --radius:   12px;
  --radius-s: 8px;
  --radius-l: 18px;
  --shadow:   0 1px 2px rgba(7,39,38,.05), 0 8px 24px -12px rgba(7,39,38,.18);
  --shadow-l: 0 2px 6px rgba(7,39,38,.06), 0 24px 60px -24px rgba(7,39,38,.28);

  --step:  clamp(3.5rem, 6vw, 6.5rem);   /* vertical section rhythm */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --measure: 66ch;

  --display-weight: 400;
  --display-family: var(--serif);
  --display-spacing: -0.015em;
  --nav-radius: 999px;
  --card-radius: var(--radius);
  --ease: cubic-bezier(.22,.75,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #0a1a19;
    --bg-alt:  #0e2322;
    --surface: #122927;
    --ink:     #eef4f2;
    --ink-2:   #a9c1bb;
    --ink-3:   #7d9891;
    --line:    #1e3b38;
    --line-2:  #2a4b47;
    --accent:  var(--brass-l);
    --accent-ink: var(--brass-l);
    --positive: #5cbfa6;
    --on-accent: #072726;
    --shadow:   0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-l: 0 2px 6px rgba(0,0,0,.35), 0 24px 60px -24px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg:      #0a1a19;
  --bg-alt:  #0e2322;
  --surface: #122927;
  --ink:     #eef4f2;
  --ink-2:   #a9c1bb;
  --ink-3:   #7d9891;
  --line:    #1e3b38;
  --line-2:  #2a4b47;
  --accent:  var(--brass-l);
  --accent-ink: var(--brass-l);
  --positive: #5cbfa6;
  --on-accent: #072726;
  --shadow:   0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-l: 0 2px 6px rgba(0,0,0,.35), 0 24px 60px -24px rgba(0,0,0,.7);
}

/* ------------------------------------------------------------- base ------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4 {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-spacing);
  line-height: 1.14;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p  { margin: 0 0 1rem; }
a  { color: inherit; }
img, svg, video { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--brass); color: #072726; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--petrol); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-s) 0;
}
.skip:focus { left: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- primitives --- */

.wrap { width: min(1200px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - (var(--gutter) * 2)); margin-inline: auto; }

.section { padding-block: var(--step); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--petrol); color: var(--paper); }
.section--tint h1, .section--tint h2, .section--tint h3 { color: #fff; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .9rem;
}
.section--tint .eyebrow { color: var(--brass-l); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: var(--measure); }
.section--tint .lede { color: #b9d2cc; }
.muted { color: var(--ink-3); }
.small { font-size: .87rem; }

.head { max-width: 44ch; margin-bottom: 2.6rem; }
.head--center { margin-inline: auto; text-align: center; }

/* ticked list */
.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.85rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .72rem; height: .38rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.section--tint .ticks li { color: #cfe2dd; }

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

.btn {
  --btn-bg: var(--petrol); --btn-ink: #fff; --btn-line: var(--petrol);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1px solid var(--btn-line); border-radius: var(--nav-radius);
  font: inherit; font-size: .94rem; font-weight: 550;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brass); --btn-ink: #072726; --btn-line: var(--brass); font-weight: 600; }
.btn--ghost   { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-2); }
.btn--ghost:hover { --btn-line: var(--accent); }
.btn--light   { --btn-bg: #fff; --btn-ink: var(--petrol); --btn-line: #fff; }
.btn--onDark  { --btn-bg: transparent; --btn-ink: #fff; --btn-line: rgba(255,255,255,.4); }
.btn--sm { padding: .55rem 1rem; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; align-items: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent-ink); font-weight: 550; font-size: .93rem; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.arrow-link:hover { border-bottom-color: currentColor; }
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------- tags ---- */

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .62rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
.tag--roadmap { background: transparent; color: var(--ink-3); border-color: var(--line-2); }
.tag--live { background: color-mix(in srgb, var(--positive) 15%, transparent); color: var(--positive); border-color: color-mix(in srgb, var(--positive) 32%, transparent); }

/* --------------------------------------------------------------- card ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 1.6rem;
  position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .95rem; }

.card-icon {
  width: 40px; height: 40px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink);
}
.card-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------- media --- */

.media {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);          /* diagrams are drawn light on purpose */
  box-shadow: var(--shadow-l);
  line-height: 0;
}
.media img { width: 100%; }
.media--plain { box-shadow: none; }
.media figcaption {
  font-size: .84rem; color: var(--ink-3); padding: .8rem 1rem;
  background: var(--surface); border-top: 1px solid var(--line); line-height: 1.5;
}

/* =============================================================== header === */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.site-header[data-scrolled="true"] { box-shadow: var(--shadow); }
.site-header[data-open="true"] { background: var(--bg); }

.nav {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--petrol); color: var(--brass);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: .82rem; line-height: 1;
}
.brand-name { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .13em; }

.nav-primary { display: flex; align-items: center; gap: .15rem; margin-left: .5rem; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem; border-radius: var(--radius-s);
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--bg-alt); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link .chev { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(-135deg) translate(-2px,-2px); }

/* the mega panel */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 89;
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
  display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem;
  padding-block: 2.2rem 2.4rem;
}
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.8rem 2rem; }
.mega-col-title {
  font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.mega-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .5rem .6rem; margin-left: -.6rem; border-radius: var(--radius-s);
  text-decoration: none; color: var(--ink);
  transition: background .15s var(--ease);
}
.mega-item:hover { background: var(--bg-alt); }
.mega-item:hover .mega-item-label { color: var(--accent-ink); }
.mega-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; margin-top: .1rem;
  background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent-ink);
}
.mega-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mega-item-label { display: block; font-size: .92rem; font-weight: 550; line-height: 1.35; }
.mega-item-desc { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.45; margin-top: .12rem; }

.mega-feature {
  background: var(--petrol); color: var(--paper);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column;
}
.mega-feature .eyebrow { color: var(--brass-l); }
.mega-feature h3 { color: #fff; font-size: 1.22rem; margin-bottom: .5rem; }
.mega-feature p { color: #b9d2cc; font-size: .87rem; line-height: 1.6; }
.mega-feature .arrow-link { color: var(--brass-l); margin-top: auto; padding-top: .8rem; }
.mega-feature-media { border-radius: var(--radius-s); overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--petrol-l); background: var(--paper); }

.nav-toggle, .theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: transparent; color: var(--ink-2); cursor: pointer; padding: 0;
}
.nav-toggle:hover, .theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.nav-toggle svg, .theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.nav-drawer { display: none; }

.nav-scrim {
  position: fixed; inset: 68px 0 0; background: rgba(7,39,38,.35);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s; z-index: 88;
}
.nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }

/* ================================================================= hero === */

.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--step); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { font-size: clamp(1.06rem, 1.7vw, 1.28rem); }
.hero-note { margin-top: 1.2rem; font-size: .87rem; color: var(--ink-3); }
.hero--compact .hero-grid { grid-template-columns: 1fr; max-width: 62ch; }
.hero--compact .media { display: none; }

/* ================================================================ stats === */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg); padding: 1.8rem 1.5rem; }
.stat-value { font-family: var(--mono); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; color: var(--accent-ink); }
.stat-label { font-size: .95rem; font-weight: 550; margin-top: .6rem; }
.stat-note { font-size: .82rem; color: var(--ink-3); margin-top: .2rem; }

/* ================================================================ split === */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--left .split-media { order: -1; }

/* ================================================================= flow === */

.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.4rem; }
.flow-step { background: var(--surface); padding: 1.5rem 1.35rem; position: relative; }
.flow-step[data-key="true"] { background: var(--petrol); color: var(--paper); }
.flow-step[data-key="true"] h3 { color: #fff; }
.flow-step[data-key="true"] p { color: #b9d2cc; }
.flow-num {
  font-family: var(--mono); font-size: .8rem; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line-2); color: var(--ink-3); margin-bottom: 1rem;
}
.flow-step[data-key="true"] .flow-num { border-color: var(--brass); color: var(--brass); }
.flow-step h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.flow-step p { font-size: .88rem; color: var(--ink-2); margin: 0; }

.flow-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.15rem; margin-top: 1.15rem; }
.flow-note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-s); padding: 1.25rem 1.4rem; }
.flow-note h3 { font-size: 1rem; margin-bottom: .3rem; }
.flow-note p { font-size: .89rem; color: var(--ink-2); margin: 0; }

/* ============================================================== pricing === */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; height: 100%;
}
.plan[data-featured="true"] { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.plan-flag {
  position: absolute; top: -11px; left: 1.5rem;
  background: var(--brass); color: #072726;
  font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px;
}
.plan-name { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 .35rem; }
.plan-summary { font-size: .88rem; color: var(--ink-2); min-height: 3.2em; margin: 0 0 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: .18rem; }
.plan-currency { font-size: 1.15rem; color: var(--ink-2); }
.plan-amount { font-family: var(--mono); font-size: 2.5rem; line-height: 1; }
.plan-cadence { font-size: .78rem; color: var(--ink-3); margin: .45rem 0 1.4rem; }
.plan-features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; font-size: .88rem; }
.plan-features li { position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.plan-features li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6rem; height: .32rem; border-left: 1.8px solid var(--positive); border-bottom: 1.8px solid var(--positive); transform: rotate(-45deg); }
.plan-features li[data-roadmap="true"] { color: var(--ink-3); }
.plan-features li[data-roadmap="true"]::before { border-color: var(--line-2); }
.plan-foot { margin-top: auto; }
.plan-locations { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; font-size: .82rem; color: var(--ink-3); }
.plan-locations input { width: 62px; padding: .35rem .5rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; font-size: .85rem; }

.price-note { margin-top: 1.6rem; font-size: .87rem; color: var(--ink-3); text-align: center; }

/* ================================================================ table === */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
table.data th, table.data td { padding: .95rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-alt); }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 550; }

/* ================================================================== faq === */

.faq { display: grid; gap: .7rem; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.35rem; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 550; color: var(--ink); text-align: left;
}
.faq-q:hover { color: var(--accent-ink); }
.faq-sign { flex-shrink: 0; width: 16px; height: 16px; position: relative; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; background: currentColor; transition: transform .2s var(--ease); }
.faq-sign::before { inset: 7px 0 7px 0; height: 2px; }
.faq-sign::after { inset: 0 7px 0 7px; width: 2px; }
.faq-q[aria-expanded="true"] .faq-sign::after { transform: scaleY(0); }
.faq-a { padding: 0 1.35rem; max-height: 0; overflow: hidden; transition: max-height .28s var(--ease), padding .28s var(--ease); }
.faq-a[data-open="true"] { padding-bottom: 1.25rem; }
.faq-a p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ================================================================= form === */

.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .84rem; font-weight: 550; }
.field-hint { font-size: .78rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  padding: .75rem .9rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: .95rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { min-height: 110px; resize: vertical; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select { border-color: #b3462f; }
.field-error { font-size: .78rem; color: #b3462f; }

.form-status { padding: 1rem 1.2rem; border-radius: var(--radius-s); font-size: .92rem; }
.form-status[data-kind="ok"] { background: color-mix(in srgb, var(--positive) 13%, transparent); color: var(--positive); border: 1px solid color-mix(in srgb, var(--positive) 30%, transparent); }
.form-status[data-kind="err"] { background: color-mix(in srgb, #b3462f 12%, transparent); color: #b3462f; border: 1px solid color-mix(in srgb, #b3462f 30%, transparent); }

/* ================================================================== cta === */

.cta-band { background: var(--petrol); color: var(--paper); border-radius: var(--radius-l); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #b9d2cc; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* =============================================================== footer === */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; margin-top: var(--step); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr) 1.3fr; gap: 2.5rem; }
.footer-blurb { font-size: .9rem; color: var(--ink-2); max-width: 34ch; margin-top: 1rem; }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-legal { font-size: .8rem; color: var(--ink-3); max-width: 70ch; }

/* ============================================================ assistant === */

.dock { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 95; }

.dock-launch {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.25rem .8rem .85rem;
  background: var(--petrol); color: #fff;
  border: 1px solid var(--petrol-l); border-radius: 999px;
  font: inherit; font-size: .92rem; font-weight: 550; cursor: pointer;
  box-shadow: var(--shadow-l);
  transition: transform .2s var(--ease);
}
.dock-launch:hover { transform: translateY(-2px); }
.dock-launch[data-hidden="true"] { display: none; }
.dock-launch-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brass); color: #072726; display: grid; place-items: center; font-family: var(--serif); font-size: .8rem; }
.dock-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--seafoam); box-shadow: 0 0 0 0 color-mix(in srgb, var(--seafoam) 70%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.panel {
  width: min(400px, calc(100vw - 2rem));
  height: min(620px, calc(100vh - 6rem));
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  display: none; flex-direction: column; overflow: hidden;
}
.panel[data-open="true"] { display: flex; }

.panel-head { background: var(--petrol); color: #fff; padding: .95rem 1.1rem; display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.panel-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brass); color: #072726; display: grid; place-items: center; font-family: var(--serif); font-size: .82rem; flex-shrink: 0; }
.panel-title { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.panel-sub { font-size: .76rem; color: #93b8b0; }
.panel-actions { margin-left: auto; display: flex; gap: .3rem; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 7px; color: inherit; cursor: pointer; padding: 0; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[data-active="true"] { background: var(--brass); color: #072726; }

.panel-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }

.msg { max-width: 86%; padding: .7rem .9rem; border-radius: 14px; font-size: .91rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { background: var(--bg-alt); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg--user { background: var(--petrol); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg--system { align-self: center; max-width: 100%; text-align: center; font-size: .78rem; color: var(--ink-3); background: none; padding: .35rem 0; }
.msg--sales { align-self: stretch; max-width: 100%; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius-s); }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: .2rem 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .8rem; }
.chip {
  padding: .42rem .8rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: .8rem; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.composer { border-top: 1px solid var(--line); padding: .7rem; display: flex; gap: .5rem; align-items: flex-end; flex-shrink: 0; background: var(--bg); }
.composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 14px;
  padding: .6rem .85rem; font: inherit; font-size: .92rem; background: var(--bg); color: var(--ink);
  max-height: 110px; min-height: 40px; line-height: 1.5;
}
.composer textarea:focus { outline: none; border-color: var(--accent); }
.send { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--brass); color: #072726; display: grid; place-items: center; cursor: pointer; }
.send:disabled { opacity: .45; cursor: not-allowed; }
.send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.panel-foot { padding: .5rem 1.1rem .7rem; font-size: .72rem; color: var(--ink-3); text-align: center; border-top: 1px solid var(--line); }

/* the sales handoff bar — always reachable, including mid-call */
.sales-bar {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .8rem; background: var(--bg-alt); border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-2); flex-shrink: 0;
}
.sales-bar .btn { padding: .4rem .85rem; font-size: .8rem; }
.sales-bar[data-state="handoff"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }

/* voice mode */
.voice { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 1.5rem; text-align: center; background: var(--petrol); color: #fff; }
.voice[data-open="true"] { display: flex; }
.voice-orb { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--seafoam), var(--petrol-d)); display: grid; place-items: center; position: relative; }
.voice-orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--seafoam); opacity: .4; }
.voice[data-state="listening"] .voice-orb::after { animation: ring 1.8s infinite; }
@keyframes ring { 0% { transform: scale(.95); opacity: .55; } 100% { transform: scale(1.35); opacity: 0; } }
.voice-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.voice-bars i { width: 3px; background: #fff; border-radius: 2px; height: 30%; display: block; }
.voice[data-state="listening"] .voice-bars i { animation: eq .9s ease-in-out infinite; }
.voice-bars i:nth-child(2) { animation-delay: .1s; } .voice-bars i:nth-child(3) { animation-delay: .2s; }
.voice-bars i:nth-child(4) { animation-delay: .3s; } .voice-bars i:nth-child(5) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.voice-status { font-size: .95rem; }
.voice-caption { font-size: .87rem; color: #b9d2cc; min-height: 3em; max-width: 30ch; }
.voice-controls { display: flex; gap: .6rem; }
.voice-unsupported { font-size: .82rem; color: #e8c383; max-width: 32ch; }

/* ========================================================== TEMPLATES ===== */
/* Five looks the admin can switch between. Each keeps the same markup, so text,
   photos and video blocks all render in every one of them.

   Every template defines BOTH a light and a dark palette. Structure (corner
   radius, type, rhythm) sits in the plain block; colour sits in the light block
   and its dark twin. The light/dark choice always stays with the visitor. */

/* 1 · petrol — the house style: editorial serif, brass on deep green.
   This is what the base tokens already describe, so it needs no overrides. */

/* 2 · paper — light, airy, hairline rules, square corners */
[data-template="paper"] {
  --display-family: var(--serif);
  --card-radius: 4px; --radius: 4px; --radius-s: 3px; --radius-l: 6px; --nav-radius: 4px;
  --step: clamp(4rem, 7.5vw, 8rem);
  --shadow: none; --shadow-l: 0 1px 0 rgba(7,39,38,.06);
}
[data-template="paper"] {
  --bg: #ffffff; --bg-alt: #f7f8f7; --surface: #ffffff;
  --ink: #14201e; --ink-2: #4e5f5b; --ink-3: #7d8c88;
  --line: #e6ebe9; --line-2: #cfd8d5;
  --accent: #1d6b5c; --accent-ink: #17564a; --positive: #1d6b5c;
}
[data-template="paper"] .card, [data-template="paper"] .plan { box-shadow: none; }
[data-template="paper"] .card--hover:hover { transform: none; border-color: var(--ink-3); }
[data-template="paper"] .btn { font-weight: 500; letter-spacing: .01em; }
[data-template="paper"] .btn--primary { --btn-bg: var(--petrol); --btn-ink: #fff; --btn-line: var(--petrol); }
[data-template="paper"] .media { box-shadow: none; border-radius: 4px; }
[data-template="paper"] h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }

/* 3 · midnight — high contrast, oversized display type, generous corners */
[data-template="midnight"] {
  --card-radius: 14px; --radius-l: 22px;
  --display-spacing: -0.03em;
}
[data-template="midnight"] {
  --bg: #f4f6f5; --bg-alt: #e8ecea; --surface: #ffffff;
  --ink: #050c0b; --ink-2: #3d4f4b; --ink-3: #6d817c;
  --line: #d8e0de; --line-2: #bcc8c5;
  --accent: #0e3b3a; --accent-ink: #0e3b3a; --positive: #1d6b5c;
}
[data-template="midnight"] h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
[data-template="midnight"] .btn--ghost { --btn-ink: var(--ink); }

/* 4 · brass — warm grounds, bold display serif, brass buttons */
[data-template="brass"] {
  --display-weight: 700; --display-spacing: -0.022em;
  --card-radius: 10px; --nav-radius: 999px;
  --petrol: #2f3d2a;
}
[data-template="brass"] {
  --bg: #fbf8f2; --bg-alt: #f4eee2; --surface: #ffffff;
  --ink: #2a2318; --ink-2: #5d5343; --ink-3: #8b7f6c;
  --line: #e6ddcb; --line-2: #d5c8ae;
  --accent: #a8761f; --accent-ink: #8a6316;
}
[data-template="brass"] h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
[data-template="brass"] .btn--primary { --btn-bg: #a8761f; --btn-ink: #fff; --btn-line: #a8761f; }
[data-template="brass"] .section--tint, [data-template="brass"] .cta-band,
[data-template="brass"] .mega-feature, [data-template="brass"] .flow-step[data-key="true"],
[data-template="brass"] .auth-aside { background: #2f3d2a; }
[data-template="brass"] .brand-mark, [data-template="brass"] .panel-mark { background: #a8761f; color: #fff; }
[data-template="brass"] .panel-head, [data-template="brass"] .dock-launch { background: #2f3d2a; }

/* 5 · clinical — systematic, sans throughout, dense grid */
[data-template="clinical"] {
  --display-family: var(--sans);
  --display-weight: 640; --display-spacing: -0.028em;
  --card-radius: 6px; --radius: 6px; --radius-s: 5px; --radius-l: 8px; --nav-radius: 6px;
  --step: clamp(3rem, 5.2vw, 5rem);
  --shadow: 0 1px 2px rgba(7,39,38,.06);
  --shadow-l: 0 1px 3px rgba(7,39,38,.08), 0 12px 32px -18px rgba(7,39,38,.2);
}
[data-template="clinical"] {
  --bg: #ffffff; --bg-alt: #f4f7f6; --surface: #ffffff;
  --ink: #101c1b; --ink-2: #465956; --ink-3: #748783;
  --line: #e2e7e6; --line-2: #ccd5d3;
  --accent: #0f6b63; --accent-ink: #0b5750; --positive: #0f6b63;
}
[data-template="clinical"] { line-height: 1.55; }
[data-template="clinical"] h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
[data-template="clinical"] .eyebrow { letter-spacing: .09em; }
[data-template="clinical"] .btn { border-radius: 6px; font-weight: 600; }
[data-template="clinical"] .btn--primary { --btn-bg: #0f6b63; --btn-ink: #fff; --btn-line: #0f6b63; }
[data-template="clinical"] .plan-amount, [data-template="clinical"] .stat-value { font-family: var(--sans); font-weight: 660; letter-spacing: -.03em; }
[data-template="clinical"] .card { padding: 1.35rem; }

/* ---- the dark twin of each template -------------------------------------
   Repeated under both signals: the system preference (unless the visitor has
   forced light) and the explicit data-theme="dark" the toggle sets. */

@media (prefers-color-scheme: dark) {
  :root[data-template="paper"]:not([data-theme="light"]) {
    --bg: #0d1211; --bg-alt: #141b1a; --surface: #141b1a;
    --ink: #eef2f0; --ink-2: #a8b8b4; --ink-3: #7c8d89;
    --line: #232d2b; --line-2: #33403d;
    --accent: #6fbfa8; --accent-ink: #6fbfa8; --positive: #6fbfa8; --on-accent: #0d1211;
    --shadow: none; --shadow-l: 0 1px 0 rgba(0,0,0,.5);
  }
  :root[data-template="midnight"]:not([data-theme="light"]) {
    --bg: #07100f; --bg-alt: #0c1c1a; --surface: #101f1e;
    --ink: #f2f7f5; --ink-2: #a4bdb7; --ink-3: #74908a;
    --line: #1a302d; --line-2: #26433f;
    --accent: #e8c383; --accent-ink: #e8c383; --on-accent: #07100f; --positive: #5cbfa6;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.8);
    --shadow-l: 0 2px 8px rgba(0,0,0,.5), 0 30px 70px -28px rgba(0,0,0,.9);
  }
  :root[data-template="brass"]:not([data-theme="light"]) {
    --bg: #1a1710; --bg-alt: #221d14; --surface: #26211a;
    --ink: #f5efe2; --ink-2: #c4b7a0; --ink-3: #94886f;
    --line: #332c1f; --line-2: #453c2a;
    --accent: #e0b978; --accent-ink: #e0b978; --on-accent: #1a1710;
  }
  :root[data-template="clinical"]:not([data-theme="light"]) {
    --bg: #0c1413; --bg-alt: #121c1b; --surface: #121c1b;
    --ink: #eaf1ef; --ink-2: #a2b6b2; --ink-3: #758985;
    --line: #1e2d2b; --line-2: #2b3d3a;
    --accent: #4fb3a6; --accent-ink: #4fb3a6; --positive: #4fb3a6; --on-accent: #0c1413;
  }
}

:root[data-theme="dark"][data-template="paper"] {
  --bg: #0d1211; --bg-alt: #141b1a; --surface: #141b1a;
  --ink: #eef2f0; --ink-2: #a8b8b4; --ink-3: #7c8d89;
  --line: #232d2b; --line-2: #33403d;
  --accent: #6fbfa8; --accent-ink: #6fbfa8; --positive: #6fbfa8; --on-accent: #0d1211;
  --shadow: none; --shadow-l: 0 1px 0 rgba(0,0,0,.5);
}
:root[data-theme="dark"][data-template="midnight"] {
  --bg: #07100f; --bg-alt: #0c1c1a; --surface: #101f1e;
  --ink: #f2f7f5; --ink-2: #a4bdb7; --ink-3: #74908a;
  --line: #1a302d; --line-2: #26433f;
  --accent: #e8c383; --accent-ink: #e8c383; --on-accent: #07100f; --positive: #5cbfa6;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.8);
  --shadow-l: 0 2px 8px rgba(0,0,0,.5), 0 30px 70px -28px rgba(0,0,0,.9);
}
:root[data-theme="dark"][data-template="brass"] {
  --bg: #1a1710; --bg-alt: #221d14; --surface: #26211a;
  --ink: #f5efe2; --ink-2: #c4b7a0; --ink-3: #94886f;
  --line: #332c1f; --line-2: #453c2a;
  --accent: #e0b978; --accent-ink: #e0b978; --on-accent: #1a1710;
}
:root[data-theme="dark"][data-template="clinical"] {
  --bg: #0c1413; --bg-alt: #121c1b; --surface: #121c1b;
  --ink: #eaf1ef; --ink-2: #a2b6b2; --ink-3: #758985;
  --line: #1e2d2b; --line-2: #2b3d3a;
  --accent: #4fb3a6; --accent-ink: #4fb3a6; --positive: #4fb3a6; --on-accent: #0c1413;
}

/* Midnight and Petrol paint their tinted bands from their own ground so the
   panels stay distinguishable from the page behind them. */
[data-template="midnight"] .section--tint, [data-template="midnight"] .cta-band,
[data-template="midnight"] .mega-feature, [data-template="midnight"] .auth-aside { background: #0d2523; }
[data-template="midnight"] .brand-mark, [data-template="midnight"] .panel-mark { background: var(--brass); color: #07100f; }

/* ============================================================ responsive == */

@media (max-width: 1080px) {
  .mega-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .mega-feature { flex-direction: row; align-items: center; gap: 1.4rem; }
  .mega-feature-media { width: 220px; flex-shrink: 0; margin-bottom: 0; }
  .mega-feature .arrow-link { margin-top: .6rem; padding-top: 0; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-primary { display: none; }
  .nav-actions .btn { display: none; }   /* both live in the drawer instead */
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split--left .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }

  /* the mega menu becomes a drawer */
  .nav-drawer {
    display: block;
    position: fixed; inset: 68px 0 0; background: var(--bg); z-index: 90;
    overflow-y: auto; padding: 1.5rem var(--gutter) 4rem;
    transform: translateX(100%); transition: transform .26s var(--ease); visibility: hidden;
  }
  .nav-drawer[data-open="true"] { transform: translateX(0); visibility: visible; }
  .drawer-group { border-bottom: 1px solid var(--line); }
  .drawer-top {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 0; background: none; border: 0; font: inherit; font-size: 1.08rem;
    font-weight: 550; color: var(--ink); cursor: pointer; text-align: left; text-decoration: none;
  }
  .drawer-panel { max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
  .drawer-panel .mega-col-title { margin-top: .6rem; }
  .drawer-panel-inner { padding-bottom: 1.2rem; }
  .drawer-actions { display: grid; gap: .7rem; margin-top: 1.8rem; }
  .mega { display: none; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .flow-notes { grid-template-columns: 1fr; }
  .mega-feature { flex-direction: column; align-items: stretch; }
  .mega-feature-media { width: 100%; }
  .panel { width: calc(100vw - 1.5rem); height: calc(100vh - 5rem); }
  .btn-row > .btn, .plan .btn, .drawer-actions .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row > .small { text-align: center; }
}

@media print {
  .site-header, .dock, .nav-scrim, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ================================================================= auth === */

.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--petrol); color: var(--paper); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.auth-aside h2 { color: #fff; max-width: 18ch; }
.auth-aside p { color: #b9d2cc; max-width: 44ch; }
.auth-aside .ticks li { color: #cfe2dd; }
.auth-aside .ticks li::before { border-color: var(--brass-l); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem) var(--gutter); }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.8rem 0; color: var(--ink-3); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-target {
  display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem;
  padding: .8rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--radius-s);
  font-size: .82rem; color: var(--ink-3); overflow-wrap: anywhere;
}
.auth-target code { font-family: var(--mono); color: var(--accent-ink); }

.receipt { display: grid; gap: .75rem; margin: 1.8rem 0; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.receipt-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.receipt-row dt { color: var(--ink-3); margin: 0; }
.receipt-row dd { margin: 0; font-weight: 550; text-align: right; }
.receipt-total { border-top: 1px solid var(--line); padding-top: .75rem; font-size: 1.05rem; }

.state-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.4rem; }
.state-icon svg { width: 26px; height: 26px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.state-icon[data-kind="ok"] { background: color-mix(in srgb, var(--positive) 16%, transparent); color: var(--positive); }
.state-icon[data-kind="wait"] { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.state-icon[data-kind="err"] { background: color-mix(in srgb, #b3462f 14%, transparent); color: #b3462f; }

.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { order: 1; }
}
