/* ============================================================
   OpenSACCO — marketing site
   Design tokens mirror the application (Inter Tight + JetBrains
   Mono, navy + indigo, hairline borders, 8px grid).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --primary: #0a2540;
  --primary-soft: #1d3858;
  --primary-tint: #e3e9f0;
  --accent: #635bff;
  --accent-soft: #e0deff;

  /* Status */
  --pos: #2d6a4f;
  --neg: #8b3a3a;
  --warn: #946f1c;

  /* Surfaces */
  --canvas: #fafaf7;
  --surface: #ffffff;
  --surface-alt: #f5f4ef;

  /* Ink */
  --ink: #161814;
  --ink-muted: #6b6f66;
  --hairline: rgba(20, 25, 18, 0.08);
  --hairline-strong: rgba(20, 25, 18, 0.14);

  /* On-primary text */
  --on-primary: #fafaf7;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Type */
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
  --header-h: 72px;

  /* Misc */
  --shadow-soft: 0 1px 2px rgba(10, 37, 64, 0.04), 0 8px 24px rgba(10, 37, 64, 0.05);
  --shadow-pop: 0 2px 6px rgba(10, 37, 64, 0.06), 0 20px 50px rgba(10, 37, 64, 0.10);
}

[data-theme="dark"] {
  --primary: #4d7fc0;       /* luminous navy for fills/text on dark */
  --primary-soft: #5d8dca;
  --primary-tint: #18283f;
  --accent: #837cff;
  --accent-soft: #2a2750;

  --pos: #6cc79b;
  --neg: #d98a8a;
  --warn: #d8b25a;

  --canvas: #0a0f1a;
  --surface: #101826;
  --surface-alt: #162033;
  --ink: #eceef2;
  --ink-muted: #9aa3b2;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --on-primary: #fafaf7;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Kill all transitions while the theme swaps so every var()-derived colour
   repaints instantly and completely (prevents body color/background getting
   stuck on the previous palette). */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: none !important;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Bind the page surface on <html> — the SAME element the theme tokens are
   defined on (:root / [data-theme]). Using the custom property where it is
   declared guarantees the used value re-evaluates when the theme attribute
   toggles (binding it on <body> via inheritance hits a Chromium custom-
   property invalidation bug that left body stuck on the old palette). */
html {
  background: var(--canvas);
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: inherit;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
.display {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.h2 { font-size: clamp(30px, 4vw, 46px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-muted); font-weight: 400; line-height: 1.5; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(44px, 6vw, 84px) 0; }
.section-tight { padding: clamp(32px, 4vw, 52px) 0; }
.center { text-align: center; }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

.section-head { max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .h2 { margin-top: 10px; }
.section-head .lead { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-soft); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.07); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-tint); }
.btn-ghost { padding: 10px 14px; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-arrow svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.btn:hover .btn-arrow svg, .btn.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.brand-name b { font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 13px;
  font-size: 15px;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  font-weight: 450;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-alt); }
.nav a.active { color: var(--ink); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface-alt); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(46% 40% at 6% 78%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 22px; max-width: 520px; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--ink-muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--pos); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-muted);
  box-shadow: var(--shadow-soft);
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos) 22%, transparent); }

.hero-caption { margin-top: 16px; font-size: 13.5px; color: var(--ink-muted); text-align: center; }

/* ---------- Dashboard mock ---------- */
.dash {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform 0.4s ease;
}
.dash:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }
.dash-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-alt);
}
.dash-top .tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-strong); }
.dash-body { padding: 20px; display: grid; gap: 16px; }

.dash-hero-tile {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.dash-hero-tile .label { font-size: 12px; opacity: 0.72; letter-spacing: 0.02em; }
.dash-hero-tile .value { font-family: var(--font-mono); font-size: clamp(30px, 4vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.dash-hero-tile .delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-family: var(--font-mono); color: #9ff0c4; }
.dash-hero-tile .spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 56px; opacity: 0.5; }

.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-tile {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 13px 14px;
  background: var(--surface);
}
.stat-tile .label { font-size: 11.5px; color: var(--ink-muted); }
.stat-tile .value { font-family: var(--font-mono); font-size: 21px; font-weight: 500; margin-top: 4px; letter-spacing: -0.01em; }
.stat-tile .sub { font-size: 11px; font-family: var(--font-mono); margin-top: 3px; }
.sub.pos { color: var(--pos); }
.sub.neg { color: var(--neg); }

.dash-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: stretch; }
.donut-card, .chart-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px;
  background: var(--surface);
}
.donut-card .ttl, .chart-card .ttl { font-size: 11.5px; color: var(--ink-muted); margin-bottom: 10px; }
.donut-wrap { display: flex; align-items: center; gap: 12px; }
.donut-legend { font-size: 11px; display: grid; gap: 6px; }
.donut-legend li { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.donut-legend .sw { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.donut-legend b { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }

.sacco-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sacco-chip {
  font-size: 11px; font-family: var(--font-mono);
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--hairline);
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.sacco-chip .d { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Generic cards / grid ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card.hover:hover { border-color: var(--hairline-strong); transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.icon-chip {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--hairline);
}
[data-theme="dark"] .icon-chip { color: #9fc0f0; }
.icon-chip svg { width: 21px; height: 21px; }
.icon-chip.accent { background: var(--accent-soft); color: var(--accent); }

/* three-icon row */
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 36px);
  margin-top: 36px;
}
.tri-item { text-align: left; }
.tri-item h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin: 16px 0 6px; }
.tri-item p { color: var(--ink-muted); font-size: 15.5px; }

/* dual value props */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prop {
  position: relative;
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  display: flex; flex-direction: column;
}
.prop.sacco { background: linear-gradient(180deg, var(--primary-tint), var(--surface) 60%); }
.prop .kicker { display: flex; align-items: center; gap: 10px; }
.prop h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 18px 0 4px; font-weight: 400; }
.prop .prop-sub { color: var(--ink-muted); font-size: 16px; }
.prop ul { margin: 22px 0 28px; display: grid; gap: 13px; }
.prop li { display: flex; gap: 11px; font-size: 15.5px; align-items: flex-start; }
.prop li svg { width: 18px; height: 18px; color: var(--pos); flex-shrink: 0; margin-top: 3px; }
.prop .btn { margin-top: auto; align-self: flex-start; }

/* features grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feat:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.feat h3 { font-size: 17.5px; font-weight: 500; letter-spacing: -0.01em; margin: 14px 0 6px; }
.feat p { color: var(--ink-muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- How it works diagram ---------- */
.how { position: relative; }
.diagram {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}
.diagram-stage { position: relative; }
.diag-svg { width: 100%; height: auto; overflow: visible; }
.diag-line { stroke: var(--hairline-strong); stroke-width: 2; fill: none; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1s ease; }
.diagram.in .diag-line { stroke-dashoffset: 0; }
.diag-line.flow { stroke: var(--accent); stroke-width: 2.5; }
.flow-dot { fill: var(--accent); opacity: 0; }
.diagram.in .flow-dot { animation: flowPulse 2.4s ease-in-out infinite; }
@keyframes flowPulse { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

.diag-node {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  width: max-content;
  max-width: 240px;
}
.diagram.in .diag-node { opacity: 1; transform: translateY(0); }
.diag-node .nh { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; }
.diag-node .nh .d { width: 9px; height: 9px; border-radius: 50%; }
.diag-node .nr { font-size: 12px; color: var(--ink-muted); font-family: var(--font-mono); margin-top: 7px; display: flex; justify-content: space-between; gap: 16px; }
.diag-node .nr b { color: var(--ink); font-weight: 500; }
.diag-node.platform { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.diag-node.platform .brand-name { font-size: 16px; }
.diag-node.platform small { opacity: 0.7; font-size: 11.5px; display: block; margin-top: 4px; }
.diag-node.member { border-color: var(--accent); }
.diag-node.member .nw { font-family: var(--font-mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.diag-node.member .lbl { font-size: 11.5px; color: var(--ink-muted); }

.custody-note {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  font-size: 15.5px;
}
.custody-note svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.custody-note b { font-weight: 600; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; counter-reset: step; }
.step { position: relative; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.step h3 { font-size: 18px; font-weight: 500; margin: 10px 0 6px; letter-spacing: -0.01em; }
.step p { color: var(--ink-muted); font-size: 14.5px; }
.step::after {
  content: ""; position: absolute; top: 8px; right: -10px; width: 1px; height: 70%;
  background: var(--hairline);
}
.step:last-child::after { display: none; }

/* ---------- Trust band ---------- */
.trust-band { background: var(--primary); color: var(--on-primary); border-radius: 0; }
.trust-band .eyebrow { color: color-mix(in srgb, var(--on-primary) 60%, transparent); }
.trust-band .lead { color: color-mix(in srgb, var(--on-primary) 78%, transparent); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.trust-points { display: grid; gap: 16px; margin-top: 8px; }
.trust-points li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; color: color-mix(in srgb, var(--on-primary) 86%, transparent); }
.trust-points svg { width: 20px; height: 20px; color: #9ff0c4; flex-shrink: 0; margin-top: 3px; }
.lock-visual {
  border: 1px solid color-mix(in srgb, var(--on-primary) 16%, transparent);
  border-radius: var(--r-xl);
  padding: 32px;
  background: color-mix(in srgb, #000 16%, transparent);
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 36px auto 0; }
.price-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 36px;
  background: var(--surface);
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-soft); position: relative; }
.price-card .ribbon { position: absolute; top: 20px; right: 20px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.price-card .plan { font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.price-card .amount { font-size: clamp(34px, 4vw, 44px); font-weight: 300; letter-spacing: -0.02em; margin: 14px 0 4px; }
.price-card .amount small { font-size: 16px; color: var(--ink-muted); font-weight: 400; }
.price-card .for { color: var(--ink-muted); font-size: 15px; }
.price-card ul { margin: 24px 0 28px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 11px; font-size: 15px; align-items: flex-start; }
.price-card li svg { width: 17px; height: 17px; color: var(--pos); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; margin-top: 24px; color: var(--ink-muted); font-size: 13.5px; }

/* ---------- Feature rows (alternating) ---------- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.frow + .frow { margin-top: clamp(36px, 5vw, 60px); }
.frow.flip .frow-media { order: -1; }
.frow-copy h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; }
.frow-copy .lead { margin-top: 14px; font-size: 17px; }
.frow-copy ul { margin-top: 20px; display: grid; gap: 11px; }
.frow-copy li { display: flex; gap: 10px; font-size: 15.5px; align-items: flex-start; }
.frow-copy li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.frow-media {
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* mini mock panels inside feature rows */
.mock-pane { padding: 22px; display: grid; gap: 12px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; }
.mock-head .ttl { font-size: 13px; font-weight: 500; }
.mock-head .pill { font-size: 11px; font-family: var(--font-mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--ink-muted); }
.mock-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; }
.mock-line .mono { font-size: 13px; }
.mock-line .who { display: flex; align-items: center; gap: 9px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 600; font-family: var(--font-mono); }
.status-pill { font-size: 10.5px; font-family: var(--font-mono); padding: 3px 8px; border-radius: 999px; }
.status-pill.ok { background: color-mix(in srgb, var(--pos) 14%, transparent); color: var(--pos); }
.status-pill.wait { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.status-pill.pend { background: var(--surface-alt); color: var(--ink-muted); }

/* approval chain */
.chain { display: flex; align-items: center; gap: 0; }
.chain .node { flex: 1; text-align: center; position: relative; }
.chain .ring { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; border: 2px solid var(--hairline-strong); background: var(--surface); color: var(--ink-muted); }
.chain .node.done .ring { border-color: var(--pos); background: var(--pos); color: #fff; }
.chain .node.cur .ring { border-color: var(--accent); color: var(--accent); }
.chain .node small { font-size: 11px; color: var(--ink-muted); }
.chain .bar { position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: var(--hairline-strong); z-index: -1; }
.chain .node.done .bar { background: var(--pos); }
.chain .ring svg { width: 16px; height: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 32px auto 0; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  font-size: 18px; font-weight: 450; letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--ink-muted); transition: transform 0.3s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 4px 24px; color: var(--ink-muted); font-size: 16px; max-width: 660px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: var(--on-primary);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 80% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  opacity: 0.5; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .h2 { color: var(--on-primary); }
.cta-band .lead { color: color-mix(in srgb, var(--on-primary) 80%, transparent); margin: 14px auto 0; max-width: 540px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 30px; }
.cta-band .signin-link { display: block; margin-top: 18px; font-size: 14px; color: color-mix(in srgb, var(--on-primary) 72%, transparent); }
.cta-band .signin-link a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: clamp(48px, 6vw, 72px) 0 40px; background: var(--surface-alt); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--ink-muted); font-size: 14.5px; margin-top: 16px; }
.footer-col h4 { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-muted);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.confirm-tag { font-family: var(--font-mono); font-size: 11px; color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 50%, transparent); padding: 2px 7px; border-radius: var(--r-sm); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dash { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .dual, .trust-grid, .frow, .frow.flip .frow-media, .price-grid { grid-template-columns: 1fr; }
  .frow.flip .frow-media { order: 0; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav, .header-right .desktop-only { display: none; }
  .menu-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--hairline); }
  .menu-btn svg { width: 20px; height: 20px; }
  .tri, .feat-grid { grid-template-columns: 1fr; }
  .tri { gap: 28px; }
  .dash { transform: none; }
  .diagram { padding: 20px 16px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 40;
  background: var(--canvas);
  padding: 24px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid var(--hairline); }
.mobile-menu .btn { margin-top: 10px; justify-content: center; }
