/* Ariadne Intelligence — shared styles (v2.3)
   One stylesheet for every page. Sections are grouped by component. */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --ground: #16171A;
  --surface: #1B1C20;
  --raised: #202126;
  --line: #2A2B2F;
  --line-strong: #3A3B40;
  --ink: #E4E2DD;
  --muted: #A09D96;
  --faint: #88857E;
  --accent: #B9CBDD;
  --gold: #D8C3A0;
  --gold-strong: #EBDCBF;
  --gold-glow: rgba(216, 195, 160, 0.16);
  --sage: #C9D3C1;
  --flag: #D9C7A3;
  --risk: #E3B5AA;
  --error: #E8AE9F;

  /* IBM Plex Mono has no Greek glyphs: it is used only for pure numbers/Latin. */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(96px, 13vw, 168px);
  --radius: 2px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--ground);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ground); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
.num { font-variant-numeric: tabular-nums; }
.code { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.muted { color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--ground);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ───────────────────────── Layout ───────────────────────── */
.container {
  width: 100%;
  max-width: 84rem;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.section { position: relative; padding-block: var(--section-y); }
/* Section rule draws itself in from the left the first time it is seen */
.section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line); transform-origin: left center; transform: scaleX(var(--draw, 1));
}
.split { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 4fr 8fr; gap: 64px; }
  .split-sticky { position: sticky; top: 112px; align-self: start; }
}
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.h2-narrow { max-width: 18ch; }
.lede { margin-top: 24px; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.head-row { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* Word-by-word reveal (spans are added by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.wi { display: inline-block; will-change: transform; }

/* ───────────────────────── Buttons & links ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-gold { border: 1px solid rgba(216, 195, 160, 0.55); color: var(--gold-strong); transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), box-shadow .3s var(--ease-out), color .2s; }
.btn[disabled] { opacity: .5; cursor: progress; }
@media (hover: hover) {
  .btn-primary:hover { background: #F2F0EB; }
  .btn-ghost:hover { border-color: var(--muted); }
  .btn-gold:hover { border-color: var(--gold); background: rgba(216, 195, 160, 0.06); box-shadow: 0 0 32px var(--gold-glow); }
}
.arrow { width: 14px; height: 14px; flex: none; transition: transform .25s var(--ease-out); }
@media (hover: hover) { .btn:hover .arrow, .link:hover .arrow { transform: translateX(3px); } }
.actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .actions { flex-direction: row; } }
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

/* ───────────────────────── Logos ───────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-mark { flex: none; }
/* Latin wordmark, so uppercase + wide tracking is safe (no Greek accents to lose). */
.brand-word { font-size: .875rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; }
.brand-lg { gap: 16px; }
.brand-stack { display: grid; gap: 4px; line-height: 1; }
.brand-lg .brand-word { font-size: 1.0625rem; }
.brand-sub { font-size: .6875rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
/* Menu lockup: INTELLIGENCE sits under ARIADNE, small and quiet, set to the same width. */
.brand-nav { gap: 5px; }
.brand-nav .brand-word { font-size: .875rem; }
.brand-nav .brand-sub { font-size: .5rem; letter-spacing: .3em; margin-right: -.3em; }
.footer-slogan { margin-top: 18px; font-size: .875rem; letter-spacing: .04em; color: var(--gold); }
.product-mark { display: inline-flex; align-items: center; gap: 10px; }
.product-mark img, .p-logo { display: block; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }


/* ───────────────────────── Navigation ───────────────────────── */
.nav {
  --p: 0;
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(22, 23, 26, calc(var(--p) * 0.74));
  border-bottom: 1px solid rgba(42, 43, 47, var(--p));
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    backdrop-filter: blur(calc(var(--p) * 18px)) saturate(calc(1 + var(--p) * 0.3));
    -webkit-backdrop-filter: blur(calc(var(--p) * 18px)) saturate(calc(1 + var(--p) * 0.3));
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(22, 23, 26, calc(var(--p) * 0.96)); }
}
.nav.is-open { --p: 1; background: rgba(22, 23, 26, 0.97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.nav-links { display: none; gap: 32px; font-size: .875rem; color: var(--muted); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}
.menu-icon { position: relative; width: 18px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease-out);
}
.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }
.nav.is-open .menu-icon::before { transform: translateY(4.25px) rotate(45deg); }
.nav.is-open .menu-icon::after { transform: translateY(-4.25px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); overflow: hidden; background: var(--ground); }
.mobile-menu ul { padding-block: 8px 24px; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.mobile-menu a[aria-current] { color: var(--accent); }
.mobile-menu a.btn { justify-content: center; width: 100%; min-height: 48px; margin-top: 20px; border-bottom: 0; font-size: .9375rem; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}
@media (max-width: 420px) { .nav-end .btn-sm { display: none; } }

/* ───────────────────────── Hero (home) ───────────────────────── */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(128px + env(safe-area-inset-top));
  background:
    radial-gradient(55% 65% at 78% 46%, rgba(216, 195, 160, 0.075), transparent 70%),
    radial-gradient(40% 50% at 92% 70%, rgba(185, 203, 221, 0.04), transparent 70%),
    var(--ground);
}
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .container { position: relative; }
.hero-body { padding-bottom: clamp(64px, 9vw, 112px); will-change: transform; }
.h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 1.2rem + 5.2vw, 6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero-lede { margin-top: 40px; max-width: 38rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.hero .actions { margin-top: 40px; }

.index { display: grid; border-top: 1px solid var(--line); background: linear-gradient(to bottom, rgba(22,23,26,.6), var(--ground)); }
@media (min-width: 768px) { .index { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .index-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .index-4 { grid-template-columns: repeat(4, 1fr); } }
.index-title .soon-tag { font-size: .75rem; font-weight: 400; color: var(--gold); }
/* Phones: the four products become compact 2×2 tiles (name + arrow), not a long list. */
@media (max-width: 639px) {
  .index.index-4 { grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 24px; border-top: 0; background: none; }
  .index.index-4 a {
    align-content: space-between; min-height: 84px; padding: 14px 14px 12px;
    border: 1px solid var(--line); border-radius: 3px; background: rgba(27, 28, 32, 0.6);
    transition: border-color .2s var(--ease-out);
  }
  .index.index-4 a:active { border-color: var(--line-strong); }
  .index-4 .index-title { flex-direction: column; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.3; }
  .index-4 .index-text { display: none; }
}
.index a { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
@media (min-width: 768px) {
  .index a { padding: 28px 32px 32px 0; border-bottom: 0; }
  .index a + a { padding-left: 32px; border-left: 1px solid var(--line); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .index-4 a { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
  .index-4 a + a { padding-left: 0; border-left: 0; }
  .index-4 a:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
.index-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9375rem; font-weight: 500; }
.index-text { font-size: .9375rem; line-height: 1.55; color: var(--muted); transition: color .2s; }
@media (hover: hover) { .index a:hover .index-text { color: var(--ink); } .index a:hover .arrow { transform: translateX(3px); } }

/* ───────────────────────── About (verbatim statement) ───────────────────────── */
.statement {
  font-size: clamp(1.625rem, 1.1rem + 1.9vw, 2.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.statement-body { display: grid; gap: 24px; margin-top: 48px; max-width: 42rem; }
@media (min-width: 1024px) { .statement-body { grid-template-columns: 1fr 1fr; max-width: none; gap: 48px; } }
.statement-body p { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); }

/* ───────────────────────── Solutions (cards) ───────────────────────── */
.solutions { display: grid; gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .solutions { grid-template-columns: repeat(3, 1fr); } }
.solution { display: flex; flex-direction: column; padding: 32px 28px; background: var(--ground); }
@media (min-width: 640px) { .solution { padding: 40px 36px; } }
.solution h3 { margin-top: 28px; font-size: 1.5rem; letter-spacing: -0.015em; }
.solution > p { margin-top: 14px; line-height: 1.7; color: var(--muted); }
.solution ul { margin-top: 28px; margin-bottom: 32px; }
.solution li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9375rem; line-height: 1.5; }
.solution li svg { flex: none; margin-top: 3px; color: var(--gold); }
.solution .link { margin-top: auto; }

/* ───────────────────────── Visual break & placeholders ───────────────────────── */
.eco { width: 100%; max-width: 72rem; margin-inline: auto; justify-self: center; }
.eco svg { width: 100%; height: auto; }
.eco-wide { display: none; }
@media (min-width: 768px) { .eco-wide { display: block; } .eco-tall { display: none; } }
.eco-tall { width: 100%; max-width: 26rem; margin-inline: auto; }
.thread { stroke-dasharray: 1; stroke-dashoffset: var(--thread, 0); }

/* Full-width globe with Ariadne's thread drawn over it */
.eco-section { padding-top: clamp(32px, 5vw, 64px); }
.globe { position: relative; height: clamp(340px, 52vw, 820px); margin-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.globe-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.globe-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ground) 0%, rgba(22, 23, 26, 0.2) 22%, rgba(22, 23, 26, 0.3) 60%, var(--ground) 100%),
    linear-gradient(to right, rgba(22, 23, 26, 0.35), transparent 25%, transparent 75%, rgba(22, 23, 26, 0.35));
}
/* Over a busy photograph the thread needs its own light to read as the main line.
   The glow is a wider, faint copy of the path (CSS filters on SVG parts render unreliably). */
.globe .thread { stroke-width: 2.2px; }
.globe-over { position: relative; height: 100%; display: flex; align-items: center; }
.eco-wide text { paint-order: stroke; stroke: rgba(14, 15, 18, 0.8); stroke-width: 5px; stroke-linejoin: round; }
@media (min-width: 768px) { .eco-tall-wrap { display: none; } }

/* Real product screenshots */
.shot-img { margin: 0; }
.shot-img img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
/* Phone crop of a wide dashboard: fade its cut right edge so it reads as a close-up. */
@media (max-width: 639px) {
  .shot-img picture img { -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent); }
}
.shot-img figcaption { margin-top: 16px; font-size: .875rem; line-height: 1.5; color: var(--faint); }
.shot-band { padding-bottom: clamp(72px, 10vw, 120px); }
.shot-band-tight { padding-bottom: clamp(48px, 7vw, 80px); }
.shot-band-tight .shot-img { max-width: 72rem; margin-inline: auto; }
.break-grid { display: grid; gap: 48px; }

.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: var(--muted); transition: transform .35s var(--ease-out); }
.plus::after { transform: rotate(90deg); }
details.is-open > summary .plus::after { transform: rotate(0deg); }

/* ───────────────────────── Benefits ───────────────────────── */
.benefits { display: grid; }
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.benefits li { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.benefits h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.benefits p { margin-top: 10px; max-width: 30rem; line-height: 1.65; color: var(--muted); }

/* ───────────────────────── Argos ───────────────────────── */
.argos { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .argos { grid-template-columns: 1fr minmax(320px, 440px); gap: 64px; } }
.argos-cta { margin-top: 32px; }
.argos-visual { margin: 0; justify-self: center; width: min(72%, 320px); }
.argos-visual img { display: block; width: 100%; height: auto; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.argos-name { font-size: clamp(4rem, 2rem + 9vw, 10rem); line-height: .9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
@supports not (-webkit-text-stroke: 1px black) { .argos-name { color: var(--line-strong); } }
.soon { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--accent); }
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.argos p { margin-top: 20px; max-width: 30rem; line-height: 1.7; color: var(--muted); }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 500; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 6px; }
.faq-a { overflow: hidden; }
.faq-a p { max-width: 40rem; padding-bottom: 24px; line-height: 1.7; color: var(--muted); }

/* ───────────────────────── Demo request form ───────────────────────── */
.steps { margin-top: 48px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); font: 400 .8125rem/1.6 var(--mono); color: var(--faint); }
.steps strong { display: block; font-weight: 500; }
.steps span { display: block; margin-top: 2px; font-size: .9375rem; color: var(--muted); }

.form { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.form-row { display: grid; gap: 24px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-g { display: grid; gap: 8px; }
.label { font-size: .875rem; font-weight: 500; }
.label .opt { font-weight: 400; color: var(--faint); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-size: 1rem; line-height: 1.4;
  background: var(--ground); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 112px; resize: vertical; }
.input::placeholder { color: var(--faint); opacity: 1; }
@media (hover: hover) { .input:hover { border-color: #4B4C52; } }
.input:focus { outline: none; border-color: var(--ink); }
.input:focus-visible { outline: none; }
.input[aria-invalid="true"] { border-color: var(--error); }
.error { font-size: .8125rem; color: var(--error); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .choices { grid-template-columns: repeat(4, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .9375rem; text-align: center;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s;
}
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ground); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .choice input:not(:checked):hover + span { border-color: #4B4C52; } }
.choices[aria-invalid="true"] .choice span { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-note { font-size: .8125rem; line-height: 1.5; color: var(--faint); max-width: 22rem; }
.form-alert { padding: 14px 16px; border: 1px solid var(--error); font-size: .875rem; line-height: 1.5; }
.form-alert ul { margin-top: 6px; }
.form-alert a { text-decoration: underline; text-underline-offset: 3px; }
.done { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.done h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.done p { margin-top: 12px; line-height: 1.65; color: var(--muted); }
.done .actions { margin-top: 28px; }

/* ───────────────────────── Product pages ───────────────────────── */
.p-hero { position: relative; padding-top: calc(144px + env(safe-area-inset-top)); padding-bottom: clamp(72px, 10vw, 128px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; font-size: .875rem; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.p-title { display: flex; align-items: center; gap: 16px; }
.p-title .h1 { max-width: none; }
.p-desc { margin-top: 36px; max-width: 46rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.6; color: var(--muted); }
.p-hero .actions { margin-top: 40px; }
.p-points { display: grid; gap: 10px; margin-top: 28px; max-width: 46rem; }
.p-points li { display: flex; gap: 12px; font-size: 1.0625rem; line-height: 1.5; }
.p-points li svg { flex: none; margin-top: .2em; color: var(--gold); }

.feature-grid { display: grid; margin-top: 56px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1100px) { .feature-grid.three { grid-template-columns: repeat(3, 1fr); } }
.feature-grid li { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.feature-grid h3 { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.feature-grid p { margin-top: 10px; line-height: 1.65; color: var(--muted); }

.check-groups { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 900px) { .check-groups { grid-template-columns: 1fr 1fr; gap: 48px; } }
.check-groups h3 { padding-bottom: 12px; font-size: 1rem; font-weight: 500; color: var(--muted); }
.check-groups li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.check-groups li span { color: var(--faint); font-size: .875rem; text-align: right; }
.check-note { margin-top: 32px; max-width: 46rem; line-height: 1.65; color: var(--muted); }

.other { display: grid; gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .other { grid-template-columns: repeat(3, 1fr); } }
.other a { display: grid; gap: 8px; padding: 28px; background: var(--ground); transition: background-color .25s var(--ease-out); }
.other a:hover { background: var(--surface); }
.other strong { display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.other span { font-size: .9375rem; color: var(--muted); }
.other .soon-tag { color: var(--accent); font-size: .8125rem; }

.cta-band { text-align: center; }
.cta-band .h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; }
.cta-band .actions { justify-content: center; margin-top: 40px; }

/* Shared pieces carried over from Sylvia 1.5.1 (checks demo, previews) */
.demo { border: 1px solid var(--line); background: var(--surface); }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.demo-note { font-size: .75rem; color: var(--faint); white-space: nowrap; }
.entries { display: grid; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .entries { grid-template-columns: repeat(3, 1fr); } }
.entry {
  display: grid; gap: 2px; text-align: left;
  min-height: 64px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.entry[aria-pressed="true"] { border-color: var(--ink); background: rgba(228,226,221,0.04); }
@media (hover: hover) { .entry:hover { border-color: var(--line-strong); } .entry[aria-pressed="true"]:hover { border-color: var(--ink); } }
@media (max-width: 599px) {
  .entry { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; min-height: 56px; }
  .entry-kind { grid-column: 2; grid-row: 1; }
  .entry-plate { grid-column: 1; grid-row: 1; }
  .entry-meta { grid-column: 1 / -1; }
}
.entry-kind { font-size: .75rem; color: var(--faint); }
.entry-plate { font-size: .9375rem; }
.entry-meta { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-body { display: grid; }
@media (min-width: 720px) { .demo-body { grid-template-columns: 16rem 1fr; } }
.rules { padding: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .rules { border-bottom: 0; border-right: 1px solid var(--line); } }
.rules-title { margin-bottom: 12px; font-size: .75rem; color: var(--faint); }
.rules li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .8125rem; line-height: 1.4; color: var(--faint); transition: color .25s var(--ease-out); }
.rule-icon { width: 14px; height: 14px; flex: none; display: grid; place-items: center; }
.rule-icon::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.rules li.is-ok { color: var(--muted); }
.rules li.is-flag { color: var(--ink); }
.rules li.is-ok .rule-icon::before, .rules li.is-flag .rule-icon::before { content: none; }
.rules li.is-running .rule-icon::before { background: var(--ink); }
.finding { padding: 24px 20px; min-height: 26rem; }
@media (min-width: 720px) { .finding { padding: 28px; } }
.finding-idle { display: grid; place-items: center; min-height: 20rem; text-align: center; color: var(--faint); font-size: .875rem; }
.risk { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; }
.risk-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.risk-score { font: 400 .75rem/1 var(--mono); color: var(--faint); }
.meter { position: relative; height: 2px; margin-top: 14px; background: var(--line); overflow: hidden; }
.meter-fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0); }
.risk-high { color: var(--risk); } .risk-high .meter-fill { background: var(--risk); }
.risk-mid { color: var(--flag); } .risk-mid .meter-fill { background: var(--flag); }
.risk-none { color: var(--sage); }
.finding h3 { margin-top: 24px; font-size: 1.3125rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.finding .expl { margin-top: 10px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.evidence { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: .8125rem; }
.evidence caption { padding-bottom: 8px; text-align: left; font-size: .75rem; color: var(--faint); }
.evidence td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.evidence td + td { padding-left: 12px; }
.evidence td:not(:first-child) { color: var(--muted); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.action { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: .875rem; line-height: 1.55; }
.action b { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 400; color: var(--faint); }

.preview { min-width: 0; align-self: start; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.preview-title { font-size: .75rem; color: var(--faint); }
.flow { margin-top: 20px; }
.flow li { position: relative; padding: 0 0 20px 28px; }
.flow li::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: -6px; width: 1px; background: var(--line-strong); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::before { content: none; }
.flow-dot { position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border: 1px solid var(--line-strong); background: var(--ground); }
.flow-dot.on { border-color: var(--sage); background: var(--sage); }
.mini { padding: 14px 16px; border: 1px solid var(--line); }
.mini-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mini-id { font-size: .875rem; }
.mini-sub { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; white-space: nowrap; }
.chip-ok { color: var(--sage); }
.chip-flag { color: var(--flag); }
.rows { margin-top: 16px; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.rows dd { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rows .total dt, .rows .total dd { color: var(--ink); font-weight: 500; }
.pair { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 1024px) { .pair { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* ───────────────────────── 404 ───────────────────────── */
.nf { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 96px; }
.nf .h1 { max-width: 16ch; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { position: relative; padding-bottom: env(safe-area-inset-bottom); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.footer-inner { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 5fr 7fr; } }
.footer-tag { margin-top: 16px; max-width: 26rem; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h2 { margin-bottom: 8px; font-size: .8125rem; font-weight: 400; color: var(--faint); }
.footer-cols a { display: inline-flex; align-items: center; min-height: 40px; font-size: .9375rem; color: var(--muted); transition: color .2s; }
.footer-cols a:hover { color: var(--ink); }
.footer-cols .soon-tag { margin-left: 8px; font-size: .75rem; color: var(--accent); }
.footer-legal { padding-block: 20px 32px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--faint); }

/* ───────────────────────── Motion states ───────────────────────── */
.js .section { --draw: 0; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); }
.js [data-hero] { opacity: 0; transform: translate3d(0, 20px, 0); }
.js [data-split] .wi { transform: translate3d(0, 140%, 0); }
.js .thread { --thread: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .section { --draw: 1; }
  .js .thread { --thread: 0; }
  .js [data-split] .wi { transform: none; }
  .js [data-reveal], .js [data-hero] { transform: none; transition: opacity .25s ease; }
  .js [data-reveal].is-in, .js [data-hero].is-in { opacity: 1; }
  .arrow, .plus::before, .plus::after, .menu-icon::before, .menu-icon::after { transition: none; }
  .soon::before { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: rgba(22, 23, 26, var(--p)); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #45464B; --line-strong: #5E5F65; --muted: #C3C0B9; --faint: #A9A69F; }
}
@media (forced-colors: active) {
  .btn, .entry, .mini, .demo, .preview, .form, .input, .choice span, .shot-img img { border: 1px solid CanvasText; }
  .meter-fill { background: Highlight; }
  .field { display: none; }
}
