/* Quotrace website - one stylesheet, no build step.
   Brand: deep navy, teal accent, white type. Light sections give contrast. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  /* Brand */
  --navy-950: #0A1230;
  --navy-900: #0F1B3D;
  --navy-850: #132150;
  --navy-800: #18285C;
  --navy-700: #22356F;
  --teal-300: #6FE6DA;
  --teal-400: #19C9B9;
  --teal-500: #12A99B;
  --teal-700: #0B7469;   /* teal text on light: 5.3:1 on white */
  --amber-300: #FFC978;

  /* Dark surfaces */
  --bg: var(--navy-900);
  --text: #F3F6FC;
  --text-muted: #B4C0DA;   /* 8.6:1 on navy-900 */
  --text-faint: #8E9CBE;   /* 5.4:1 on navy-900 */
  --line: rgba(180, 192, 218, 0.16);
  --line-strong: rgba(180, 192, 218, 0.28);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);

  /* Light surfaces */
  --paper: #F5F8FC;
  --paper-2: #FFFFFF;
  --ink: #0F1B3D;
  --ink-muted: #46557A;    /* 7.4:1 on paper */
  --paper-line: #DFE6F1;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(10, 18, 48, 0.06), 0 12px 32px -12px rgba(10, 18, 48, 0.18);
  --shadow-dark: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(25, 201, 185, 0.35), 0 10px 40px -10px rgba(25, 201, 185, 0.55);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --max: 1180px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal-300); text-underline-offset: 3px; }
a:hover { color: #fff; }
strong { font-weight: 700; color: inherit; }
ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 6px;
}
.light :focus-visible { outline-color: var(--teal-700); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--teal-400); color: var(--navy-950); padding: 10px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 61, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; margin-right: auto; }
.brand:hover { color: #fff; }
.brand .mark { width: 36px; height: 34px; flex: none; }
.brand .tld { color: var(--teal-400); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line-strong); color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a.navlink {
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 11px; border-radius: 10px; transition: color .2s, background .2s;
}
.site-nav a.navlink:hover, .site-nav a.navlink[aria-current="page"] { color: #fff; background: var(--glass); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

@media (max-width: 979px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(10, 18, 48, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a.navlink { padding: 14px 12px; font-size: 1.05rem; }
  .js .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .js .nav-actions .btn { justify-content: center; }
  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .site-nav { flex-wrap: wrap; width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .975rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal-400); color: var(--navy-950); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--teal-300); color: var(--navy-950); transform: translateY(-1px); }
.btn-ghost { background: var(--glass); color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--glass-strong); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-quiet { color: var(--text-muted); background: transparent; padding-inline: 12px; }
.btn-quiet:hover { color: #fff; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; border-radius: 14px; }
.light .btn-ghost { background: #fff; color: var(--ink); border-color: var(--paper-line); }
.light .btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.light .btn-dark { background: var(--ink); color: #fff; }
.light .btn-dark:hover { background: var(--navy-700); color: #fff; }

/* ---------- Pills and badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-300); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.light .eyebrow { color: var(--teal-700); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-strong);
  color: var(--text-muted); font-size: .875rem; font-weight: 600; text-decoration: none;
}
.pill:hover { color: #fff; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(25,201,185,.2); flex: none; margin-left: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { background: rgba(25, 201, 185, .14); color: var(--teal-300); border: 1px solid rgba(25,201,185,.35); }
.badge-dev  { background: rgba(255, 201, 120, .12); color: var(--amber-300); border: 1px solid rgba(255,201,120,.35); }
.badge-pilot { background: rgba(150, 170, 255, .12); color: #C3CEFF; border: 1px solid rgba(150,170,255,.35); }
.light .badge-live { background: #E3F8F5; color: var(--teal-700); border-color: #B5EAE3; }
.light .badge-dev  { background: #FFF3DF; color: #8A5300; border-color: #F6D9A8; }
.light .badge-pilot { background: #ECEFFF; color: #3346A8; border-color: #CCD4FB; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
@media (max-width: 639px) { .section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.light { background: var(--paper); color: var(--ink); color-scheme: light; }
.light .section-head p, .light p.muted { color: var(--ink-muted); }
.light a { color: var(--teal-700); }
.light a:hover { color: var(--ink); }
.light a.btn-primary { color: var(--navy-950); }
.deep { background: var(--navy-950); }
.muted { color: var(--text-muted); }

/* The dashed "trace" line from the logo, running between sections. */
.trace-v {
  position: absolute; left: 50%; top: -36px; width: 2px; height: 72px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--teal-400) 0 6px, transparent 6px 12px);
  opacity: .85; z-index: 2;
}
.trace-v::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px;
  transform: translateX(-50%); border-radius: 50%; background: var(--teal-400);
  box-shadow: 0 0 0 5px rgba(25, 201, 185, .2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 96px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(25, 201, 185, .18), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(70, 96, 220, .25), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 48px; } .hero { padding: 96px 0 128px; } }
.hero h1 { margin: 22px 0 20px; }
.accent-text {
  background: linear-gradient(90deg, var(--teal-400), var(--teal-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 40em; }
.light .lead { color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--text-faint); font-size: .9rem; font-weight: 600; }
.proof-row li { display: inline-flex; align-items: center; gap: 8px; }
.proof-row svg { width: 16px; height: 16px; color: var(--teal-400); flex: none; }

/* Hero product visual */
.hero-visual { position: relative; margin: 0; }
.window {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
.window-bar span { margin-left: 10px; font-size: .78rem; color: var(--text-faint); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-body { padding: 20px; }
.deal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.deal-head .t { font-size: 1rem; font-weight: 800; margin: 0 0 2px; }
.deal-head p { margin: 0; font-size: .8rem; color: var(--text-faint); }
.stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; }
.stages::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-400) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; opacity: .7;
  animation: trace-x 1.6s linear infinite;
}
.stage {
  position: relative; z-index: 1; min-width: 0;
  padding: 12px 10px; border-radius: 12px;
  background: rgba(15, 27, 61, .92); border: 1px solid var(--line-strong);
}
.stage small { display: block; font-size: .66rem; color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stage strong { display: block; font-size: clamp(.9rem, 2.4vw, 1.08rem); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stage.done { border-color: rgba(25,201,185,.55); box-shadow: 0 0 24px -8px rgba(25,201,185,.6); }
.meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; display: flex; margin-bottom: 8px; }
.meter b { display: block; height: 100%; }
.meter .m-paid { width: 35%; background: var(--teal-400); }
.meter .m-inv { width: 15%; background: rgba(25,201,185,.5); }
.meter .m-ord { width: 30%; background: rgba(150,170,255,.45); }
.meter-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: var(--text-faint); margin: 0 0 18px; padding: 0; list-style: none; }
.meter-legend li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.meter-legend .l1 { --c: var(--teal-400); } .meter-legend .l2 { --c: rgba(25,201,185,.5); } .meter-legend .l3 { --c: rgba(150,170,255,.45); }
.mini-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.mini-figs div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.mini-figs dt { font-size: .72rem; color: var(--text-faint); font-weight: 600; }
.mini-figs dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(.9rem, 2.4vw, 1.05rem); }
/* Sits below the mock window (overlapping only its bottom padding), so it never covers figures. */
.float-card {
  position: relative; z-index: 2; margin: -12px 16px 0 auto; width: min(360px, 92%);
  padding: 14px 16px; border-radius: 16px;
  background: rgba(10, 18, 48, .95); border: 1px solid rgba(255,201,120,.4);
  box-shadow: var(--shadow-dark);
  animation: float 6s ease-in-out infinite;
}
.float-card p { margin: 8px 0 10px; font-size: .85rem; color: var(--text-muted); line-height: 1.45; }
.fc-actions { display: flex; gap: 8px; }
.fc-actions span { font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid var(--line-strong); }
.fc-actions span.ok { background: var(--teal-400); color: var(--navy-950); border-color: transparent; }
.visual-note { margin: 16px 0 0; font-size: .78rem; color: var(--text-faint); }
.float-card .fc-title { margin: 0 0 4px; color: var(--amber-300); font-size: .85rem; }
.float-card .fc-title strong { color: inherit; }
@media (max-width: 519px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stages::before { display: none; }
  .mini-figs { grid-template-columns: 1fr; }
  .float-card { width: 100%; margin: 14px 0 0; animation: none; }
  .visual-note { margin-top: 12px; }
}

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(25,201,185,.4); box-shadow: 0 20px 40px -24px rgba(25,201,185,.45); }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card h3 { margin-top: 0; }
.card .badge { margin-bottom: 14px; }
.light .card { background: var(--paper-2); border-color: var(--paper-line); box-shadow: var(--shadow); }
.light .card:hover { border-color: #9FDCD5; box-shadow: 0 24px 48px -28px rgba(11,116,105,.45); }
.light .card p { color: var(--ink-muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(25,201,185,.12); color: var(--teal-300); border: 1px solid rgba(25,201,185,.3);
}
.icon svg { width: 22px; height: 22px; }
.light .icon { background: #E3F8F5; color: var(--teal-700); border-color: #B5EAE3; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Who it's for */
.for-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .for-grid { grid-template-columns: 1.15fr 1fr; } }
.for-main {
  padding: 32px; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(25,201,185,.35), transparent 60%),
    linear-gradient(145deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow);
}
.for-main h3, .for-side h3 { font-size: 1.5rem; }
.for-main p { color: var(--text-muted); }
.for-main ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.for-main li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.for-main li svg { width: 20px; height: 20px; color: var(--teal-400); flex: none; margin-top: 3px; }
.for-side { padding: 32px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--paper-line); box-shadow: var(--shadow); }
.for-side p { color: var(--ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--paper-line); font-weight: 600; font-size: .9rem; color: var(--ink); }

/* How it works */
.flow { position: relative; display: grid; gap: 28px; list-style: none; padding: 0; margin: 0 0 56px; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .flow::before {
    content: ""; position: absolute; left: 34px; right: 10%; top: 34px; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--teal-400) 0 8px, transparent 8px 16px);
    background-size: 32px 2px; animation: trace-x 2s linear infinite; opacity: .75;
  }
}
.flow li { position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--navy-900); border: 1px solid rgba(25,201,185,.5); color: var(--teal-300);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(25,201,185,.6);
}
.step-num svg { width: 28px; height: 28px; }
.flow h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow p { color: var(--text-muted); font-size: .975rem; }
.flow .tag { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 700; color: var(--teal-300); }

.three-step {
  display: grid; gap: 16px; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
}
@media (min-width: 860px) { .three-step { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; } }
.ts-item { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ts-circle {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--teal-300), var(--teal-500)); color: var(--navy-950);
  box-shadow: 0 0 0 6px rgba(25,201,185,.14), 0 0 40px -4px rgba(25,201,185,.6);
}
.ts-circle.dev { background: radial-gradient(circle at 30% 30%, #FFE0AE, #E9A646); box-shadow: 0 0 0 6px rgba(255,201,120,.14), 0 0 40px -6px rgba(255,201,120,.5); }
.ts-circle svg { width: 28px; height: 28px; }
.ts-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ts-item p { margin: 6px 0 0; color: var(--text-muted); font-size: .92rem; line-height: 1.45; }
.ts-arrow { width: 56px; height: 2px; justify-self: center; background: repeating-linear-gradient(90deg, var(--teal-400) 0 6px, transparent 6px 12px); }
@media (max-width: 859px) { .ts-arrow { width: 2px; height: 28px; margin-left: 31px; justify-self: start; background: repeating-linear-gradient(180deg, var(--teal-400) 0 6px, transparent 6px 12px); } }

.figures { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.figures div { flex: 1 1 140px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.figures dt { font-weight: 800; }
.figures dd { margin: 2px 0 0; font-size: .875rem; color: var(--text-muted); }

/* Split layouts */
.split { display: grid; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.reverse > :first-child { order: 2; } }

/* Agent section */
.agent-panel { padding: 20px; }
.work-item { padding: 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(10,18,48,.6); }
.work-item + .work-item { margin-top: 12px; }
.wi-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wi-head strong { font-size: .95rem; }
.work-item p { margin: 0 0 12px; font-size: .9rem; color: var(--text-muted); }
.wi-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wi-actions span { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); }
.wi-actions span.ok { background: var(--teal-400); color: var(--navy-950); border-color: transparent; }
.principle {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius);
  border: 1px dashed rgba(25,201,185,.55); background: rgba(25,201,185,.06); color: var(--text);
}
.principle strong { color: var(--teal-300); }
.light .principle { color: var(--ink); background: #EFFAF8; border-color: #7FD3C9; }
.light .principle strong { color: var(--teal-700); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text-muted); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(25,201,185,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FE6DA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid rgba(25,201,185,.4);
}
.light .checklist li { color: var(--ink-muted); }
.light .checklist li strong { color: var(--ink); }
.light .checklist li::before {
  background: #E3F8F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7469' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: #B5EAE3;
}

/* MCP diagram */
.mcp-diagram { padding: 24px; }
.mcp-node { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(10,18,48,.6); }
.mcp-node .icon { margin: 0; flex: none; }
.mcp-node strong { display: block; }
.mcp-node span { font-size: .85rem; color: var(--text-muted); }
.mcp-link { display: flex; align-items: center; gap: 14px; height: 44px; margin-left: 37px; }
.mcp-link::before { content: ""; width: 2px; height: 100%; flex: none; background: repeating-linear-gradient(180deg, var(--teal-400) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: trace-y 1.4s linear infinite; }
.mcp-link span { font-size: .75rem; font-family: var(--mono); color: var(--text-faint); }

/* Currency table */
.panel { padding: 8px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--paper-line); box-shadow: var(--shadow); color: var(--ink); overflow-x: auto; }
.panel table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.panel caption { text-align: left; font-weight: 800; padding: 14px 14px 10px; }
.panel th, .panel td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--paper-line); font-size: .95rem; }
.panel th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.panel tr:last-child td { border-bottom: 0; }
.panel .num { text-align: right; }
.panel .cur { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: #EEF2F8; }
.panel-note { font-size: .8rem; color: var(--ink-muted); padding: 6px 14px 10px; margin: 0; }

/* Gallery */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tab {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  padding: 10px 16px; min-height: 44px; border-radius: 999px; color: var(--ink-muted);
  background: #fff; border: 1px solid var(--paper-line);
  transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); border-color: var(--ink-muted); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
html:not(.js) .tabs { display: none; }
.shots { display: grid; gap: 40px; }
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 4px rgba(10,18,48,.06), 0 40px 80px -30px rgba(10,18,48,.45);
  border: 1px solid var(--paper-line);
}
.shot figcaption { text-align: center; margin-top: 14px; color: var(--ink-muted); font-size: .95rem; }
.shot[hidden] { display: none; }
.shots-frame { position: relative; max-width: 1040px; margin: 0 auto; }
.shots-frame::before {
  content: ""; position: absolute; inset: 10% -4% -6% -4%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(25,201,185,.25), transparent); filter: blur(20px);
}
.shots-frame .shots { position: relative; z-index: 1; }

/* Timeline (Now / Next / Later) */
.timeline { display: grid; gap: 20px; }
@media (min-width: 960px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.lane { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.lane h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.35rem; flex-wrap: wrap; }
.lane > p { color: var(--text-muted); font-size: .95rem; }
.lane ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.lane li { position: relative; padding: 12px 14px 12px 36px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .95rem; }
.lane li::before { content: ""; position: absolute; left: 14px; top: 19px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c, var(--teal-400)); }
.lane.now { border-color: rgba(25,201,185,.45); background: linear-gradient(180deg, rgba(25,201,185,.10), rgba(25,201,185,.02)); }
.lane.now li::before { background: var(--teal-400); }
.lane.next { --c: #9FB0FF; }
.lane.later { --c: var(--amber-300); }
.lane li small { display: block; color: var(--text-faint); font-size: .84rem; margin-top: 2px; }

/* Story */
.story-grid { display: grid; gap: 40px; }
.story-grid > * { min-width: 0; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.stage-card { padding: 28px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--paper-line); box-shadow: var(--shadow); }
.stage-card h3 { margin-bottom: 20px; }
.stage-list { list-style: none; padding: 0; margin: 0; position: relative; }
.stage-list::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, var(--teal-500) 0 6px, transparent 6px 12px); }
.stage-list li { position: relative; padding: 0 0 22px 36px; }
.stage-list li:last-child { padding-bottom: 0; }
.stage-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-500); }
.stage-list li.current::before { background: var(--teal-400); box-shadow: 0 0 0 5px rgba(25,201,185,.25); }
.stage-list strong { display: block; color: var(--ink); }
.stage-list span { color: var(--ink-muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); border: 1px solid var(--paper-line); background: #fff; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2.5px solid var(--teal-700); border-bottom: 2.5px solid var(--teal-700); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 24px; border-radius: 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(25,201,185,.35), transparent 70%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-dark);
  color: var(--text);
}
.cta-band h2 { max-width: 18em; margin-left: auto; margin-right: auto; }
.cta-band p { color: var(--text-muted); max-width: 40em; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; margin: 0; }
.cta-band .small { margin: 20px auto 0; font-size: .9rem; color: var(--text-faint); }
.cta-band a:not(.btn) { color: var(--teal-300); }
.cta-band .btn-ghost { background: var(--glass); color: #fff; border-color: var(--line-strong); }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 72px 0 64px;
  background:
    radial-gradient(800px 360px at 90% 0%, rgba(25,201,185,.16), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }
.page-hero .lead { max-width: 46em; margin-bottom: 0; }
.page-hero .hero-actions { margin-bottom: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--ink-muted); }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper-line); vertical-align: top; color: var(--ink-muted); }
.prose th { color: var(--ink); }
.updated { font-size: .9rem; color: var(--ink-muted); }
.note { padding: 16px 18px; border-radius: 12px; background: #FFF8EC; border: 1px solid #F6D9A8; color: #5C3B00; }
.note p { color: #5C3B00; margin: 0; }
.light .note a { color: #5C3B00; }

/* Forms */
.form-wrap { display: grid; gap: 40px; }
.form-wrap > * { min-width: 0; }
@media (min-width: 960px) { .form-wrap { grid-template-columns: 1.3fr .7fr; gap: 56px; } }
.form-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--paper-line); box-shadow: var(--shadow); }
@media (max-width: 479px) { .form-card { padding: 20px 16px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px; border-radius: 12px; border: 1.5px solid #B9C5DA; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(25,201,185,.28); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--teal-700); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.turnstile-slot { min-height: 65px; }
.form-status { margin: 0; font-weight: 600; color: #8A1C12; }
.form-status:empty { display: none; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.aside-list li { display: flex; gap: 14px; }
.aside-list .icon { margin: 0; flex: none; }
.aside-list strong { display: block; color: var(--ink); }
.aside-list span { color: var(--ink-muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--text-muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-grid > * { min-width: 0; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { max-width: 26em; margin-top: 14px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-faint); display: grid; gap: 8px; }
.footer-legal p { margin: 0; }

/* ---------- Motion ---------- */
@keyframes trace-x { to { background-position: 24px 0; } }
@keyframes trace-y { to { background-position: 0 24px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s var(--ease) both; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }

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

@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Brand imagery ---------- */
.for-visual { width: 100%; border-radius: 14px; margin: -8px 0 24px; border: 1px solid var(--line); }
/* Subtle dotted "trace" texture on dark sections (tileable, 160px). */
.section:not(.light), .site-footer {
  background-image: url("/assets/texture-dark.svg");
  background-size: 160px 160px;
}
