/* ============================================================
   DormantIQ — Reactivation Intelligence
   Aesthetic: premium dark editorial. Near-black charcoal field,
   a single confident violet accent, lime + warm-amber used only
   as quiet signals. Oversized Archivo headlines, a Fraunces
   italic for editorial accents, calm Hanken body, monospace
   reserved for small telemetry labels. Flat, architectural,
   border-led — no SaaS glow, no aurora, no template card grids.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:            #151516;
  --bg-2:          #18181a;
  --panel:         #1e1d20;
  --panel-2:       #232227;
  --panel-3:       #2a272d;
  --text:          #f2f0ec;
  --text-2:        #a9a4af;
  --muted:         #6f6b74;
  --accent:        #7657ff;   /* violet — the one strong accent */
  --accent-soft:   #9b86ff;
  --accent-dim:    rgba(118,87,255,0.12);
  --lime:          #c7ff3d;   /* used sparingly: live signals only */
  --warm:          #d28a4f;   /* used sparingly: large numbers */
  --border:        rgba(255,255,255,0.07);
  --border-2:      rgba(255,255,255,0.12);
  --hair:          rgba(255,255,255,0.06);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1200px;
  --radius:    12px;
  --radius-sm: 9px;
  --radius-lg: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Atmosphere: a soft violet wash at the very top + a faint grid that
   fades evenly downward. Calm and centered — no aurora, no stray blocks. */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(90vw 46vh at 50% -12%, rgba(118,87,255,0.07), transparent 70%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(#000, transparent 62%);
  mask-image: linear-gradient(#000, transparent 62%);
  opacity: .55;
  z-index: -2;
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(118,87,255,0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
section { position: relative; }
.section-pad { padding-block: clamp(54px, 6.5vw, 96px); }
/* quiet full-bleed hairline marking each section boundary */
.section-pad::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 18%, var(--border) 82%, transparent);
  pointer-events: none;
}
#problem::before { display: none; } /* first section flows out of the marquee band */

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; color: var(--text); }
.h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.h3 { font-size: clamp(1.1rem, 1.4vw, 1.28rem); font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: clamp(1rem, 1.1vw, 1.15rem); color: var(--text-2); line-height: 1.6; font-weight: 400; }

/* Editorial accent: Fraunces italic in violet — the signature.
   (kept on the .text-grad hook to avoid HTML churn; no longer a gradient) */
.text-grad {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-soft);
  letter-spacing: -0.02em;
}

/* eyebrow: a plain mono telemetry label, not a pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px rgba(199,255,61,0.6); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 20px; }
.section-head .lead { margin-top: 22px; }

/* brain mark — flattened, no glow box */
.brain-emblem { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 26px; }
.brain-emblem img { width: 46px; height: 46px; }
.section-head.center .brain-emblem { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 8px; border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: #876bff; transform: translateY(-2px); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(21,21,22,0.78);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.24rem; letter-spacing: -0.04em; }
.brand .mark { width: 26px; height: 26px; display: grid; place-items: center; }
.brand .mark svg, .brand .mark img { width: 26px; height: 26px; }
.brand .iq { color: var(--accent-soft); }

.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; padding: 0; }
.nav-links a { font-size: 0.92rem; color: var(--text-2); font-weight: 500; transition: color .25s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 16px; font-size: 0.84rem; border-radius: 7px; }

.menu-toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 9px; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: .3s; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-head { max-width: 1040px; }
.hero .h1 { margin-top: 26px; }
.hero-body {
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(40px, 6vw, 88px);
  align-items: center; margin-top: clamp(44px, 6vw, 80px);
}
.hero-body > * { min-width: 0; }
.hero-copy { max-width: 460px; }
.hero-copy .lead { max-width: 440px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-bullets { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 15px; border-top: 1px solid var(--hair); padding-top: 28px; }
.hero-bullets li { display: flex; align-items: center; gap: 13px; color: var(--text-2); font-size: 0.95rem; }
.check { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-soft); }
.check svg { width: 12px; height: 12px; }

/* staggered entrance */
.stagger > * { opacity: 0; transform: translateY(16px); animation: rise .8s var(--ease) forwards; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .14s; }
.stagger > *:nth-child(3) { animation-delay: .23s; }
.stagger > *:nth-child(4) { animation-delay: .32s; }
.stagger > *:nth-child(5) { animation-delay: .41s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Hero visual: layered modular panels ---------- */
.hero-visual { position: relative; }
.panel-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.85);
  opacity: 0; transform: translateY(22px);
  animation: rise .9s var(--ease) .3s forwards;
}
.ps-tag {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.ps-tag::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* signal / sparkline panel */
.signal { grid-column: 1 / -1; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 14px; }
.signal-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.signal-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.signal-head .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 1.9s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.spark { width: 100%; height: 78px; margin: 12px 0 8px; overflow: visible; }
.spark-line { fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.signal-foot { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--muted); }
.signal-foot .up { color: var(--lime); }

/* metric fragments */
.frag { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 5px; }
.frag-k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.frag-v { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; line-height: 1; margin-top: 4px; }
.frag-v.warm { color: var(--warm); }
.frag-s { font-size: 0.74rem; color: var(--text-2); }

/* quiet pipeline line */
.flowline { grid-column: 1 / -1; margin-top: 26px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted); flex-wrap: wrap; }
.flowline i { flex: 1; min-width: 14px; height: 1px; background: var(--hair); }
.flowline .on { color: var(--accent-soft); }
.ps-note { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); text-align: right; letter-spacing: 0.04em; margin-top: 2px; }

/* ---------- Trust marquee ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 30px; }
.trust .tlabel { text-align: center; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: scroll 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-2); white-space: nowrap; opacity: .55; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 52px; }
.marquee-track span::after { content: "/"; color: var(--accent); opacity: .55; font-family: var(--font-body); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Generic card (architectural, flat) ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: border-color .35s, background .35s, transform .35s var(--ease);
}
.card:hover { border-color: var(--border-2); background: var(--panel-2); }
.card-ico { width: 38px; height: 38px; display: grid; place-items: center; color: var(--accent-soft); margin-bottom: 22px; }
.card-ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.97rem; }

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

/* What We Do — editorial "ledger": asymmetric header + hairline columns */
#what .section-head.center {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0 clamp(40px, 5vw, 80px);
  align-items: end; max-width: none; text-align: left; margin-inline: 0;
  margin-bottom: clamp(40px, 5vw, 60px);
}
#what .section-head .brain-emblem { display: none; }
#what .section-head .eyebrow { grid-column: 1; grid-row: 1; }
#what .section-head .h2 { grid-column: 1; grid-row: 2; margin-top: 20px; max-width: 16ch; }
#what .section-head .lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; max-width: 46ch; }

#features-grid { gap: 0; counter-reset: feat; border-top: 1px solid var(--border-2); }
#features-grid .card {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-content: start;
  background: transparent; border: 0; border-left: 1px solid var(--hair);
  border-radius: 0; padding: 30px 28px 36px;
  transition: background .4s var(--ease);
}
#features-grid .card:first-child { border-left: 0; padding-left: 0; }
#features-grid .card:hover { background: rgba(255,255,255,0.014); transform: none; }
/* number, sitting on the top rule */
#features-grid .card::before {
  content: "0" counter(feat); counter-increment: feat;
  grid-column: 1; grid-row: 1; align-self: center;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em; color: var(--accent-soft);
}
/* icon, right-aligned on the same rule */
#features-grid .card-ico {
  grid-column: 2; grid-row: 1; align-self: center;
  width: auto; height: auto; margin: 0; color: var(--muted);
  transition: color .4s var(--ease), transform .4s var(--ease);
}
#features-grid .card-ico svg { width: 21px; height: 21px; stroke-width: 1.5; }
#features-grid .card:hover .card-ico { color: var(--accent-soft); transform: translateY(-2px); }
#features-grid .card h3 { grid-column: 1 / -1; grid-row: 2; margin: 30px 0 13px; }
#features-grid .card p { grid-column: 1 / -1; grid-row: 3; font-size: 0.94rem; line-height: 1.62; }
/* violet tab indicator grows from the top rule on hover */
#features-grid .card::after {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
#features-grid .card:hover::after { transform: scaleX(1); }

/* Why DormantIQ — panel cards, accent rule on top */
#benefits-grid .card { padding-top: 28px; }
#benefits-grid .card::after { content: ""; position: absolute; top: -1px; left: 30px; width: 32px; height: 2px; background: var(--accent); }
#benefits-grid .card-ico { color: var(--accent-soft); }

/* ---------- Problem split (asymmetric) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.problem-list { list-style: none; padding: 0; margin-top: 4px; display: grid; gap: 0; }
.problem-list li { display: flex; gap: 17px; align-items: flex-start; padding: 19px 2px; border-bottom: 1px solid var(--hair); color: var(--text-2); font-size: 0.98rem; line-height: 1.55; transition: color .3s var(--ease); }
.problem-list li:first-child { border-top: 1px solid var(--hair); }
.problem-list li:hover { color: var(--text); }
.problem-list .x { flex: 0 0 14px; width: 14px; height: 14px; display: grid; place-items: center; color: var(--warm); opacity: .85; margin-top: 4px; }
.problem-list .x svg { width: 14px; height: 14px; }
.problem-list .x path { stroke-width: 1.6px; }
.transition-line {
  margin-top: 32px; padding: 26px 0 0; border-top: 1px solid var(--border-2);
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.32; color: var(--text); letter-spacing: -0.01em;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 30px 26px 8px 0; border-top: 1px solid var(--border-2); }
.step + .step { padding-left: 26px; }
.step .num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; }
.step .num b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--accent-soft); letter-spacing: -0.04em; line-height: 1; }
.step h3 { margin-bottom: 9px; }
.step p { color: var(--text-2); font-size: 0.95rem; }
.step-note { margin-top: 44px; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--text-2); max-width: 620px; }

/* ---------- Services ---------- */
.services { align-items: stretch; }
.service { display: flex; flex-direction: column; padding: 32px; }
.service.featured { border-color: rgba(118,87,255,0.5); background: linear-gradient(180deg, rgba(118,87,255,0.06), transparent 60%) , var(--panel); }
.service .tag { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-soft); }
.service .label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.service h3 { margin: 14px 0 14px; font-size: 1.32rem; }
.service .desc { color: var(--text-2); font-size: 0.95rem; }
.service .best { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.service .best b { color: var(--text-2); font-weight: 600; }
.service ul { list-style: none; padding: 22px 0 26px; margin: 22px 0 0; border-top: 1px solid var(--hair); display: grid; gap: 12px; }
.service ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.91rem; color: var(--text-2); }
.service ul li svg { flex: 0 0 15px; width: 15px; height: 15px; color: var(--accent-soft); margin-top: 4px; }
.service .btn { margin-top: auto; }

/* ---------- Brand safety ---------- */
.safety { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 64px); }
.safety-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.safety-checks { list-style: none; padding: 0; display: grid; gap: 0; }
.safety-checks li { display: flex; gap: 13px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 0.94rem; color: var(--text); }
.safety-checks li:first-child { border-top: 1px solid var(--hair); }
.safety-checks .check { background: var(--accent-dim); color: var(--accent-soft); }
.safety .disclaimer { margin-top: 28px; font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* ---------- Audience ---------- */
.aud-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hair);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.aud {
  display: flex; align-items: center; gap: 13px;
  padding: 22px 24px; min-height: 76px; background: var(--bg);
  font-size: 0.93rem; color: var(--text-2);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.aud:hover { color: var(--text); background: var(--panel); }
.aud i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 6px; box-shadow: 0 0 8px rgba(118,87,255,0.5); }
.aud-qual { margin-top: 40px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.4; color: var(--text); max-width: 820px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid var(--border); background: transparent; transition: border-color .3s; }
.faq:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--text); transition: color .25s; }
.faq summary:hover { color: var(--accent-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--accent-soft); transition: transform .35s var(--ease); position: relative; }
.faq summary .ico::before, .faq summary .ico::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq summary .ico::before { width: 13px; height: 2px; }
.faq summary .ico::after { width: 2px; height: 13px; transition: transform .35s var(--ease); }
.faq[open] summary .ico { transform: rotate(90deg); }
.faq[open] summary .ico::after { transform: scaleY(0); }
.faq .ans { padding: 0 4px 26px; color: var(--text-2); font-size: 0.98rem; max-width: 72ch; }

/* ---------- Contact / CTA ---------- */
.cta-shell { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 68px); position: relative; overflow: hidden; }
.cta-shell::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 60%); z-index: 2; }
.cta-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 5vw, 64px); align-items: start; position: relative; z-index: 1; }
.cta-copy .h2 { margin: 20px 0; }
.cta-copy .lead { max-width: 440px; }
.cta-aside { margin-top: 32px; display: grid; gap: 16px; border-top: 1px solid var(--hair); padding-top: 28px; }
.cta-aside .pt { display: flex; gap: 13px; align-items: center; color: var(--text-2); font-size: 0.93rem; }

/* form */
.form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; letter-spacing: 0.01em; }
.field label .req { color: var(--accent-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 12px 14px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(118,87,255,0.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b86ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.form .btn { margin-top: 8px; }
.form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form .btn .spin { display: none; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.form .btn.loading .btn-label { opacity: .85; }
.form .btn.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { display: none; font-size: 0.85rem; color: #ffb4b4; margin-top: 12px; text-align: center; padding: 10px 12px; background: rgba(255,90,90,0.08); border: 1px solid rgba(255,90,90,0.25); border-radius: 8px; }
.form-error.show { display: block; }
.form-note { font-size: 0.77rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success { display: none; text-align: center; padding: 32px 10px; }
.form-success.show { display: block; animation: rise .6s var(--ease); }
.form-success .badge { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-soft); border: 1px solid rgba(118,87,255,0.3); }
.form-success .badge svg { width: 26px; height: 26px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-2); max-width: 40ch; margin-inline: auto; }

/* ---------- Footer (minimal, spacious) ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 76px) 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { color: var(--text-2); font-size: 0.92rem; margin-top: 20px; max-width: 32ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 13px; }
.footer-col a { color: var(--text-2); font-size: 0.92rem; transition: color .25s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding-top: 26px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.83rem; }
.footer-bottom .mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin-inline: auto; padding-block: clamp(64px, 8vw, 104px); }
.legal .warn { background: var(--accent-dim); border: 1px solid rgba(118,87,255,0.28); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--accent-soft); font-size: 0.92rem; margin-bottom: 38px; }
.legal h1 { margin-bottom: 12px; }
.legal .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 38px; }
.legal .intro { font-size: 1.05rem; color: var(--text-2); margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 14px; scroll-margin-top: 100px; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-2); margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent-soft); }
.legal .lead-in { color: var(--text); font-weight: 600; }

.toc { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 28px; margin: 30px 0 8px; }
.toc h2 { font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.toc ol { columns: 2; column-gap: 38px; padding-left: 18px; margin: 0; }
.toc li { margin-bottom: 9px; break-inside: avoid; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--accent-soft); }

.legal dl { margin: 8px 0 16px; }
.legal dt { color: var(--text); font-weight: 600; margin-top: 14px; }
.legal dd { color: var(--text-2); margin: 4px 0 0; padding-left: 0; }
.legal .note { margin-top: 50px; padding: 18px 20px; border-top: 1px solid var(--border); font-size: 0.86rem; color: var(--muted); font-style: italic; }
.legal .backtop { display: inline-block; margin-top: 42px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-body { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy, .hero-copy .lead { max-width: 620px; }
  .split, .safety-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  #features-grid { grid-template-columns: repeat(2, 1fr); }
  #features-grid .card:nth-child(odd) { border-left: 0; padding-left: 0; }
  #features-grid .card:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step + .step { padding-left: 0; }
  .steps .step:nth-child(odd) { padding-right: 26px; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  #what .section-head.center { display: block; }
  #what .section-head .lead { max-width: 620px; margin-top: 22px; }
  #what .section-head .h2 { max-width: 22ch; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .h2 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }
  .hero .h1 { overflow-wrap: break-word; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { gap: 10px; }
  .mobile-menu { display: block; }
  .grid-4, .grid-3, .grid-2, .steps, .aud-grid, #features-grid { grid-template-columns: 1fr; }
  #features-grid .card { border-left: 0; padding-left: 0; }
  #features-grid .card:not(:first-child) { border-top: 1px solid var(--hair); }
  .panel-stack { grid-template-columns: 1fr; }
  .step, .steps .step:nth-child(odd) { padding-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toc ol { columns: 1; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; position: fixed; inset: 78px 0 auto 0; z-index: 99; background: rgba(21,21,22,0.98); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 22px 24px 30px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .35s var(--ease); }
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 14px 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; border-bottom: 1px solid var(--hair); letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 20px; }
