/* ============================================================
   ACRALLIS — marketing site
   "The Audit Instrument", brand register: light, hairline-precise.
   Violet is a structural line + one lit node, never a gradient wash.
   ============================================================ */

:root {
  /* --- neutral field (cool, not cream) --- */
  --bg:            #f7f9fb;
  --bg-deep:       #eef2f6;
  --surface:       #ffffff;
  --recessed:      #eef1f5;
  --hairline:      #e0e6ec;
  --hairline-soft: #eaeef3;

  /* --- ink --- */
  --ink:        #12161e;
  --ink-2:      #2b3340;
  --ink-muted:  #586374;
  --ink-faint:  #8a94a3;

  /* --- identity --- */
  --violet:        #6c4eff;
  --violet-press:  #5638e8;
  --violet-tint:   #6c4eff14;
  --violet-glow:   #6c4eff40;

  /* --- signal / status --- */
  --teal:       #0e7a8a;
  --teal-tint:  #17b8ce1f;
  --pass:       #2e8564;
  --pass-tint:  #2e85641f;
  --review:     #96652a;
  --review-tint:#96652a1f;
  --fail:       #b04a40;

  /* --- dark casing (control room) --- */
  --navy:       #0c1633;
  --navy-2:     #0f1c3f;
  --navy-line:  #24345f;
  --navy-text:  #eaeef8;
  --navy-muted: #93a4cf;

  /* --- type --- */
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* --- spacing / geometry --- */
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* --- motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- z --- */
  --z-header: 100;
  --z-menu: 200;
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  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; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------------- buttons ---------------- */
.btn {
  --pad-y: 11px; --pad-x: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.94rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-lg { --pad-y: 14px; --pad-x: 24px; font-size: 1rem; }
.btn-primary {
  background: var(--violet); color: #fff;
  box-shadow: 0 1px 2px #12161e14, 0 8px 24px -12px var(--violet-glow);
}
.btn-primary:hover { background: var(--violet-press); transform: translateY(-1px); box-shadow: 0 2px 4px #12161e1a, 0 14px 30px -12px var(--violet-glow); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn-line:hover { border-color: var(--ink-muted); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-deep); }
.btn-line-light { background: transparent; color: var(--navy-text); border-color: #ffffff33; }
.btn-line-light:hover { border-color: #ffffff77; background: #ffffff12; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--hairline); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand-mark { height: 40px; width: auto; }
/* On desktop the drawer is transparent: nav + cta act as direct flex children. */
.header-drawer { display: contents; }
.nav { display: flex; gap: 30px; margin-left: 14px; }
.nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-muted); transition: color .16s var(--ease); position: relative; }
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  /* faint schematic grid — the instrument's graph paper */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--hairline-soft) 1px, transparent 1px), linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, #000 0%, transparent 78%);
  opacity: .7;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-muted); text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-kicker::after { content: ""; width: 46px; height: 1px; background: var(--hairline); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 0 var(--pass); animation: livePulse 2.6s var(--ease) infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 #2e856455; } 70% { box-shadow: 0 0 0 7px #2e856400; } 100% { box-shadow: 0 0 0 0 #2e856400; } }

.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -0.035em; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--ink-muted); max-width: 34ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.hero-facts dt { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 5px; }
.hero-facts dd { font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }

/* hero visual stack */
.hero-visual { position: relative; z-index: 1; }
.mark-anim { position: absolute; top: 2px; right: 14px; width: clamp(100px, 11vw, 132px); height: auto; z-index: 3; overflow: visible; }
.mark-anim .md { fill: var(--ink); opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box; }
.mark-anim .md.node { fill: var(--violet); }
.mark-line, .cta-line {
  fill: none; stroke: var(--violet); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 3px 10px var(--violet-glow));
}

/* product surfaces (shared) */
.surface {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 2px #12161e0a, 0 26px 60px -34px #1b243440, 0 10px 24px -20px #1b243430;
}
/* Real app titlebar — the Acrallis mark + tab + live meta, not mac traffic lights */
.surface-chrome {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline-soft);
  background: var(--bg);
}
.sc-mark { width: 17px; height: 17px; flex: none; }
.sc-title { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.sc-path { font-size: 0.64rem; color: var(--ink-faint); margin-left: -2px; }
.sc-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.64rem; color: var(--ink-muted); }
.sc-live { width: 6px; height: 6px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 3px var(--pass-tint); flex: none; }
.surface-body { padding: 18px; }

.surface-posture {
  position: relative; z-index: 2; width: min(100%, 452px); margin-left: auto; margin-top: 0;
}
.posture-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.posture-score { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.ps-num { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; font-feature-settings: "tnum" 1; }
.ps-unit { font-size: 1.2rem; font-weight: 600; color: var(--ink-muted); }
.ps-cap { font-size: 0.82rem; color: var(--ink-muted); margin-left: 8px; align-self: center; }
.seal { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; }
.seal-ready { color: var(--pass); background: var(--pass-tint); }
.posture-bar { height: 6px; border-radius: 99px; background: var(--recessed); margin: 16px 0 4px; overflow: hidden; }
.posture-bar i { display: block; height: 100%; border-radius: 99px; background: var(--violet); box-shadow: 0 0 12px -2px var(--violet-glow); }

.control-rows { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-direction: column; }
.control-rows li { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline-soft); }
.cr-name { font-size: 0.86rem; color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-fresh { font-size: 0.68rem; color: var(--ink-faint); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; }
.chip-pass { color: var(--pass); background: var(--pass-tint); } .chip-pass i { background: var(--pass); }
.chip-review { color: var(--review); background: var(--review-tint); } .chip-review i { background: var(--review); }
.chip-teal { color: var(--teal); background: var(--teal-tint); } .chip-teal i { background: var(--teal); }

.evidence-pop {
  position: absolute; left: -8px; bottom: 22px; z-index: 4;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 11px 14px; box-shadow: 0 18px 40px -22px #1b243466; max-width: 260px;
}
.ep-source { font-family: var(--mono); font-size: 0.66rem; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }
.ep-line { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 500; color: var(--ink-2); margin-top: 5px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pass); flex: none; box-shadow: 0 0 0 0 #2e856455; animation: livePulse 2.6s var(--ease) infinite; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 30px; flex-wrap: wrap; }
.strip-lead { font-size: 0.98rem; color: var(--ink-muted); line-height: 1.45; max-width: 40ch; }
.strip-marks { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; }
.fw { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; color: var(--ink); }
.fw-src { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--ink-faint); letter-spacing: .01em; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.85rem); letter-spacing: -0.03em; }
.section-lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-muted); margin-top: 18px; line-height: 1.55; }

/* feature blocks */
.feature {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature-reverse .feature-copy { order: 2; }
.feature-idx { color: var(--violet); display: block; margin-bottom: 14px; }
.feature-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.feature-copy > p { color: var(--ink-muted); font-size: 1.04rem; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 0.98rem; color: var(--ink-2); font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--violet-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Cpath d='m5.5 9.7 2.4 2.4L13.5 6.4' fill='none' stroke='%236c4eff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- feature surfaces --- */
.surface-map .map-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--hairline-soft); }
.surface-map .map-row:first-of-type { border-top: 0; padding-top: 4px; }
.map-control { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.map-line { display: none; }
.map-tags { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 1 / -1; }
.tag { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--recessed); color: var(--ink-muted); }
.tag-teal { background: var(--teal-tint); color: var(--teal); }
.map-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline-soft); }

.surface-evidence .ev-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--hairline-soft); }
.surface-evidence .ev-item:first-of-type { border-top: 0; padding-top: 2px; }
.ev-check { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--pass-tint); color: var(--pass); }
.ev-check-amber { background: var(--review-tint); color: var(--review); }
.ev-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.ev-src { font-size: 0.68rem; color: var(--ink-faint); }
.ev-time { flex: none; margin-left: auto; font-size: 0.68rem; color: var(--ink-faint); }

.surface-risk .trend { position: relative; padding: 6px 0 16px; }
.trend-svg { width: 100%; height: 96px; }
.trend-area { fill: var(--violet-tint); }
.trend-line { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trend-tags { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.trend-now { color: var(--violet); font-weight: 600; }
.risk-rows { border-top: 1px solid var(--hairline-soft); margin-top: 8px; }
.risk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline-soft); }
.risk-row:first-child { border-top: 0; }
.risk-name { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }

/* ============================================================
   CONTROL ROOM (dark)
   ============================================================ */
.room { position: relative; background: var(--navy); color: var(--navy-text); border-radius: clamp(20px, 3vw, 34px); margin-inline: var(--gutter); overflow: hidden; }
.room::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #ffffff10 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%);
}
.room .section-title { color: #fff; }
.room .section-lede { color: var(--navy-muted); }
.room .shell { position: relative; z-index: 1; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--r-lg); padding: 28px 26px 30px; }
.step-num { color: var(--violet); font-size: 0.82rem; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.22rem; color: #fff; margin-bottom: 10px; letter-spacing: -0.02em; }
.step p { font-size: 0.95rem; color: var(--navy-muted); line-height: 1.55; }
.step-arrow::before, .step-arrow::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 1px; background: var(--navy-line);
}
.step-arrow::before { left: -21px; }
.step-arrow::after { right: -21px; }

/* ============================================================
   FRAMEWORKS
   ============================================================ */
.fw-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.fw-intro .section-lede { max-width: 42ch; }
.fw-intro .btn { margin-top: 28px; }
.fw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fw-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 22px 22px 24px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.fw-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px #1b243455; border-color: var(--hairline); }
.fw-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fw-name { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; }
.fw-card p { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.5; }
.fw-card-soon { background: var(--bg-deep); border-style: dashed; }

/* ============================================================
   SECURITY
   ============================================================ */
.security-inner { max-width: 900px; }
.security-copy .section-lede { max-width: 54ch; }
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 40px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.sec-item { background: var(--surface); padding: 26px 26px 28px; }
.sec-item h4 { font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.sec-item h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }
.sec-item p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.55; }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; padding-block: clamp(72px, 10vw, 132px); text-align: center; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 84px; height: 84px; margin-bottom: 30px; overflow: visible; }
.cta-mark .md { fill: var(--ink); opacity: .9; }
.cta-mark .md.node { fill: var(--violet); }
.cta-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; }
.cta-sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-muted); max-width: 46ch; margin: 20px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.cta .btn-line-light { color: var(--ink-2); border-color: var(--hairline); background: var(--surface); }
.cta .btn-line-light:hover { border-color: var(--ink-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--hairline); background: var(--surface); padding-top: clamp(48px, 6vw, 72px); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-mark { height: 38px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; color: var(--ink-muted); max-width: 34ch; line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h5 { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 500; margin-bottom: 4px; }
.footer-col a { font-size: 0.92rem; color: var(--ink-muted); transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--hairline-soft); font-size: 0.84rem; color: var(--ink-faint); flex-wrap: wrap; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--ink-2); }

/* ============================================================
   DEMO PAGE
   ============================================================ */
.demo-main { padding-block: clamp(40px, 6vw, 84px); }
.demo-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.demo-lead h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
.demo-lead .section-lede { max-width: 40ch; margin-top: 16px; }
.demo-points { list-style: none; padding: 0; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.demo-points li { position: relative; padding-left: 30px; font-size: 0.98rem; color: var(--ink-2); font-weight: 500; }
.demo-points li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--violet-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Cpath d='m5.5 9.7 2.4 2.4L13.5 6.4' fill='none' stroke='%236c4eff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.demo-trust { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-muted); }
.demo-trust .sc-live { position: static; }

.demo-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 38px); box-shadow: 0 1px 2px #12161e0a, 0 30px 60px -40px #1b243440; }
.demo-card h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.demo-card .card-sub { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field label .req { color: var(--violet); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  padding: 11px 13px; background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease); appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235c687d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 14px; line-height: 1.5; }
.form-status { margin-top: 16px; padding: 13px 15px; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--pass-tint); color: var(--pass); }
.form-status.err { background: var(--review-tint); color: var(--review); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   REVEAL MOTION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dot-live, .pulse { animation: none !important; }
  .mark-anim .md { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub { max-width: 46ch; }
  .hero-visual { min-height: 380px; margin-top: 8px; }
  .feature, .feature-reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-reverse .feature-copy { order: 0; }
  .fw-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow::before, .step-arrow::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-toggle { display: flex; margin-left: auto; }
  .header-drawer { display: none; }
  .site-header.menu-open .header-drawer {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--hairline);
    padding: 6px var(--gutter) 18px; box-shadow: 0 24px 40px -28px #1b243455;
  }
  .site-header.menu-open .nav { flex-direction: column; gap: 0; margin: 0; }
  .site-header.menu-open .nav a { padding: 14px 2px; border-bottom: 1px solid var(--hairline-soft); font-size: 1rem; color: var(--ink); }
  .site-header.menu-open .header-cta { display: flex; gap: 10px; margin: 16px 0 0; }
  .site-header.menu-open .header-cta .btn { flex: 1; justify-content: center; padding-block: 13px; }
  .security-grid { grid-template-columns: 1fr; }
  .fw-cards { grid-template-columns: 1fr; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .surface-posture { margin-top: 0; width: 100%; }
  .evidence-pop { left: 0; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .hero-facts { gap: 20px; }
  .cta-actions .btn, .hero-actions .btn { flex: 1; justify-content: center; }
}
