/* ==========================================================================
   ikadro — public website (v3 · "Sayaç": Swiss grid, giant numerals, brand blue)
   Self-hosted font only (no third-party requests — KVKK cross-border rule).
   CSP: no inline styles anywhere; JS touches CSSOM only.
   Contrast rule: every text/background pair below is ≥ 4.5:1 (body) or ≥ 3:1 (large text, ≥ 24 px).
   #4d7fd4 is 3.63:1 on the light background (tools/kontrast.py) → only for large text, numerals and decoration.
   ========================================================================== */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (OMNI design spec 2.1 + logo) ---------- */
:root {
  --bg: #f4f5f7;            /* page */
  --surface: #ffffff;
  --ink: #0f172a;           /* text 16.4:1 on bg */
  --ink-2: #334155;         /* secondary text 9.5:1 */
  --ink-3: #475569;         /* tertiary text 7.0:1 */
  --label: #64748b;         /* 4.4:1 → only bold labels ≥ 14 px */
  --line: rgba(15, 23, 42, 0.09);
  --rule: #0f172a;

  --brand: #4d7fd4;         /* large text, numerals, decoration only */
  --brand-ink: #3d6cc0;     /* small blue text 4.7:1 on bg · button bg (white text 5.1:1) */
  --brand-deep: #2c5282;    /* hover / pressed */
  --navy: #0f2256;
  --ok: #22c55e;            /* "verified" dot only */
  --ok-ink: #15803d;        /* "verified" text on light, 4.6:1 */

  --dark: #0f172a;          /* dark bands */
  --dark-text: #f1f5f9;     /* 16.3:1 on dark */
  --dark-muted: #cbd5e1;    /* 12:1 on dark */
  --dark-brand: #60a5fa;    /* 7.0:1 on dark */
  --dark-line: rgba(203, 213, 225, 0.18);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
/* S484: reveal start states (scale 1.1) must not widen the layout viewport on mobile.
   Clip on <main>, NOT on <html>: a non-visible overflow on <html> stops body's overflow from propagating to the viewport,
   body becomes a scroll container and the sticky story stages stop pinning. overflow: clip creates no scroll container. */
main { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
:where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { font-weight: 800; font-stretch: 116%; letter-spacing: -0.035em; line-height: 0.96; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
::selection { background: rgba(77, 127, 212, 0.3); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { top: 12px; color: #fff; }
.blue { color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* decorative 12-column grid lines */
.grid-lines { position: fixed; inset: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2)); display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none; z-index: 0; }
.grid-lines i { border-left: 1px solid var(--line); }
.grid-lines i:last-child { border-right: 1px solid var(--line); }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Type scale ---------- */
.eyebrow { font-size: 0.78rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.display { font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: 0.92; letter-spacing: -0.045em; }
.h2 { font-size: clamp(2.25rem, 5.2vw, 5rem); line-height: 0.95; letter-spacing: -0.045em; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.035em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.num { font-weight: 200; font-stretch: 62%; letter-spacing: -0.05em; line-height: 0.8; color: var(--brand); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; background: var(--brand-ink); color: #fff;
  font-weight: 750; font-stretch: 112%; font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }
.mt-link { margin-top: 28px; }
.mt-link .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(244, 245, 247, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); border-bottom: 3px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.brand img { width: 28px; height: 28px; }
.wordmark { font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; font-size: 1.5rem; color: var(--navy); }
.wordmark .i { color: #4d7fd4; } .wordmark .k { color: #22c55e; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 0.8rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.07em; text-transform: uppercase; }
.nav a:hover { color: var(--brand-ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); box-shadow: inset 0 -3px 0 var(--brand-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.menu-toggle { display: none; min-height: 44px; min-width: 44px; padding: 0 14px; background: transparent; border: 2px solid var(--ink); color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.rule-top { border-top: 3px solid var(--rule); }
.dark { background: var(--dark); color: var(--dark-text); }
.dark .eyebrow { color: var(--dark-muted); }
.dark .lead, .dark p { color: var(--dark-muted); }
.dark a { color: var(--dark-brand); }

/* page hero (inner pages) */
.page-hero { min-height: 78vh; padding-top: calc(var(--header-h) + 80px); display: flex; flex-direction: column; }
.page-hero .display { margin-top: 20px; }
.page-hero-foot { margin-top: auto; padding: 26px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; border-top: 3px solid var(--rule); }
.page-hero-foot p { font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.toc { counter-reset: t; }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 0.85rem; font-weight: 750; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; }
.toc a::after { content: "0" counter(t); color: var(--ink-3); }
.toc a:hover { color: var(--brand-ink); }

/* ---------- Home hero ---------- */
.hero { min-height: 100vh; padding-top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; }
.hero-brand { display: grid; grid-template-columns: clamp(200px, 22vw, 300px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; margin: auto 0; padding: 24px 0 40px; }
.lockup { position: relative; margin: 0; padding-right: clamp(24px, 4vw, 56px); border-right: 3px solid var(--rule); }
.lockup img { width: 100%; height: auto; }
.lockup figcaption { position: absolute; right: clamp(10px, 2.6vw, 40px); top: 64%; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.hero .display { margin-top: 16px; font-size: clamp(2.6rem, 6vw, 6rem); }
.punch { margin-top: 22px; font-weight: 300; font-stretch: 116%; font-size: clamp(2rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--brand); }
.nos { display: flex; flex-wrap: wrap; margin-top: 28px; border-top: 1px solid var(--rule); }
.nos li { padding: 12px 22px 0 0; margin-right: 22px; border-right: 1px solid var(--line); font-size: 0.8rem; font-weight: 750; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; }
.nos li:last-child { border-right: 0; margin-right: 0; }
.hero-foot { padding: 24px 0 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; border-top: 3px solid var(--rule); font-size: 1.05rem; color: var(--ink-2); }
.hero-foot .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Pinned chapter scaffold ---------- */
.chapter { position: relative; }
.chapter > .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.h-400 { height: 400vh; } .h-500 { height: 500vh; } .h-600 { height: 600vh; }
.prog { position: absolute; left: 0; right: 0; bottom: 28px; height: 3px; background: var(--line); }
.prog i { display: block; height: 100%; width: calc(var(--p, 1) * 100%); background: var(--brand-ink); }
.dark .prog { background: var(--dark-line); } .dark .prog i { background: var(--dark-brand); }

/* step visibility (only when JS runs the chapter) */
html.js [data-at] { transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), color 0.3s; }
html.js .swap > [data-at] { opacity: 0; transform: translateY(22px); }
html.js .swap > [data-at].is-cur { opacity: 1; transform: none; }
html.js .chapter:not([data-step]) .swap > [data-at="1"], html.js .chapter[data-step="0"] .swap > [data-at="1"] { opacity: 1; transform: none; }
.swap { position: relative; }
.swap > [data-at] { position: absolute; inset: 0; }

/* ---------- Home counter (0 → 6 → 1 → 2) ---------- */
.counter { height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-top: var(--header-h); position: relative; }
.bignum { position: relative; height: 72vh; }
.bignum b { position: absolute; left: -0.04em; bottom: -0.12em; font-weight: 200; font-stretch: 62%; font-size: 92vh; line-height: 0.8; letter-spacing: -0.06em; color: var(--ink); }
.bignum b.blue { color: var(--brand); font-weight: 800; }
html.js .bignum b { opacity: 0; transform: translateY(18%); }
html.js .bignum b.is-cur { opacity: 1; transform: none; }
html.js .bignum b.is-on:not(.is-cur) { opacity: 0; transform: translateY(-18%); }
html.js .chapter:not([data-step]) .bignum b[data-at="1"], html.js .chapter[data-step="0"] .bignum b[data-at="1"] { opacity: 1; transform: none; }
.say { height: 400px; }
.say h2, .say h3 { margin-top: 14px; font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.say p:not(.eyebrow) { margin-top: 18px; font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
.six { margin-top: 22px; border-top: 3px solid var(--rule); counter-reset: s; }
.six li { counter-increment: s; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 650; }
.six li::before { content: "0" counter(s); display: inline-block; width: 38px; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
html.js .six li { opacity: 0; transform: translateX(-16px); transition: opacity 0.5s, transform 0.6s var(--ease); }
html.js .is-cur .six li { opacity: 1; transform: none; }
html.js .is-cur .six li:nth-child(2) { transition-delay: 0.08s; } html.js .is-cur .six li:nth-child(3) { transition-delay: 0.16s; }
html.js .is-cur .six li:nth-child(4) { transition-delay: 0.24s; } html.js .is-cur .six li:nth-child(5) { transition-delay: 0.32s; } html.js .is-cur .six li:nth-child(6) { transition-delay: 0.4s; }

/* ---------- People (own SVG silhouettes) ---------- */
.people ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--rule); }
/* people photos (AI-generated, representative; see assets/LISANSLAR.md) */
/* edges feather into the page; a brand-blue dot screen ("filigree") shows only along the edges;
   registered logo (negative: white wordmark, made from ikadro-logo-tescilli.png) in the corner */
.photo { --r: clamp(14px, 2vw, 26px); position: relative; margin: 0 0 clamp(36px, 5vw, 64px); border-radius: var(--r); overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 4.5%, #000 95.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 4.5%, #000 95.5%, transparent);
  mask-composite: intersect; }
.photo img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(61, 108, 192, 0.45) 1.1px, transparent 1.6px); background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000), linear-gradient(180deg, #000, transparent 12%, transparent 88%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000), linear-gradient(180deg, #000, transparent 12%, transparent 88%, #000); }
.photo::after { content: ""; position: absolute; right: 7%; bottom: 9%; z-index: 2; pointer-events: none;
  width: clamp(38px, 5.2vw, 72px); aspect-ratio: 216 / 334; background: url("../img/ikadro-logo-tescilli-negatif.png") no-repeat center / contain;
  opacity: 0.92; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35)); }
html.js .photo[data-reveal="scale"] { clip-path: inset(10% 10% 10% 10% round var(--r)); }
html.js .photo[data-reveal="scale"].is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.photo-band { padding: clamp(40px, 6vw, 80px) 0; }
.photo-band .photo { margin-bottom: 0; }
.people li { padding: 36px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.people li:last-child { border-right: 0; margin-right: 0; }
.people svg { height: clamp(180px, 22vw, 280px); width: auto; fill: var(--ink); stroke: var(--ink); color: var(--brand); }
.people h3 { margin-top: 28px; font-size: 1.6rem; }
.people p { margin-top: 10px; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- Legislation: vertical scroll drives a horizontal track ---------- */
.lawch .stage { display: flex; flex-direction: column; }
.law-head { padding-top: calc(var(--header-h) + 50px); }
.law-head .h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3.6rem); }
.track { position: absolute; left: 0; bottom: 12vh; display: flex; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); transform: translateX(calc(var(--p, 0) * (100vw - 100%))); will-change: transform; }
.track li { flex: 0 0 400px; padding: 24px 40px 0 0; margin-right: 40px; border-top: 1px solid var(--dark-line); }
.track b { display: block; font-weight: 300; font-stretch: 62%; font-size: 140px; line-height: 0.85; letter-spacing: -0.05em; color: #fff; }
.track b.blue { color: var(--dark-brand); }
.track h3 { margin-top: 22px; font-size: 1.35rem; color: #fff; }
.track p { margin-top: 10px; font-size: 1rem; line-height: 1.55; max-width: 34ch; }

/* ---------- Scenes (alternating, reveal on scroll) ---------- */
.scene { display: grid; grid-template-columns: 140px minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 40px; align-items: start; padding: 80px 0; border-top: 3px solid var(--rule); }
.scene.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) 140px; }
.scene.flip .sc-img { order: 1; } .scene.flip .sc-txt { order: 2; } .scene.flip .sc-num { order: 3; text-align: right; }
.sc-num { font-size: 150px; }
.sc-txt h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sc-txt p { margin-top: 18px; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }
.sc-txt ul { margin-top: 22px; border-top: 1px solid var(--rule); }
.sc-txt li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.06em; text-transform: uppercase; }
.sc-txt .link-arrow { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(15, 23, 42, 0.45); }

/* browser and phone frames */
.browser { margin: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(15, 23, 42, 0.45); }
.browser .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #eef1f5; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.browser .bar span { margin-left: 10px; font-size: 0.72rem; color: var(--ink-3); }
.frames { position: relative; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.phone { margin: 0; width: min(31vh, 300px); aspect-ratio: 540 / 1170; padding: 10px; border-radius: 40px; background: #0b1220; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2), 0 50px 90px -40px rgba(15, 23, 42, 0.6); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #0f172a; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
html.js .frames img, html.js .phone .screen img { opacity: 0; transform: scale(1.03); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
html.js .frames img.is-cur, html.js .phone .screen img.is-cur { opacity: 1; transform: none; pointer-events: auto; }
html.js .chapter:not([data-step]) .frames img[data-at="1"], html.js .chapter[data-step="0"] .frames img[data-at="1"],
html.js .chapter:not([data-step]) .phone .screen img[data-at="1"], html.js .chapter[data-step="0"] .phone .screen img[data-at="1"] { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Pinned step chapter (phone or browser + list + text) ---------- */
.steps { height: 100%; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: center; padding-top: var(--header-h); position: relative; }
.steps.with-phone { grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1fr); }
.step-side h2 { margin-top: 12px; font-size: clamp(2rem, 3.2vw, 2.8rem); }
.step-side h2 b { display: block; font-weight: 200; font-stretch: 62%; font-size: clamp(96px, 10vw, 150px); line-height: 0.82; letter-spacing: -0.05em; color: var(--brand); margin-bottom: 10px; }
.step-lead { margin-top: 14px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.step-list { margin-top: 24px; border-top: 3px solid var(--rule); }
.step-list li { display: flex; gap: 14px; align-items: center; min-height: 42px; border-bottom: 1px solid var(--line); font-size: 0.85rem; font-weight: 750; font-stretch: 112%; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.step-list li span { color: var(--ink-3); }
.step-list li.is-on { color: var(--ink); }
.step-list li.is-cur, .step-list li.is-cur span { color: var(--brand-ink); }
html.js .chapter:not([data-step]) .step-list li[data-at="1"], html.js .chapter[data-step="0"] .step-list li[data-at="1"] { color: var(--brand-ink); }
.step-txt { height: 120px; margin-top: 22px; }
.step-txt h3 { font-size: 1.6rem; }
.step-txt p { margin-top: 8px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.step-txt ul { margin-top: 14px; border-top: 1px solid var(--rule); max-width: 46ch; }
.step-txt ul li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; font-weight: 600; }
.with-phone .step-txt { height: 380px; margin-top: 0; }
.with-phone .step-txt h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.with-phone .step-txt p { font-size: 1.1rem; margin-top: 16px; }
/* per-step screenshot: only on phones (desktop shows the pinned frame) */
.step-shot { display: none; margin: 18px 0 0; background: var(--surface); border: 1px solid var(--line); }
.step-shot.phone-shot { width: min(72vw, 280px); padding: 8px; border-radius: 28px; background: #0b1220; border: 0; }
.step-shot.phone-shot img { border-radius: 21px; }
.bigidx { position: relative; height: 200px; margin-top: 10px; }
.bigidx b { position: absolute; left: -0.04em; top: 0; font-weight: 200; font-stretch: 62%; font-size: 230px; line-height: 0.85; letter-spacing: -0.05em; color: var(--brand); }
html.js .bigidx b { opacity: 0; transform: translateY(20%); }
html.js .bigidx b.is-cur { opacity: 1; transform: none; }
html.js .bigidx b.is-on:not(.is-cur) { opacity: 0; transform: translateY(-20%); }
html.js .chapter:not([data-step]) .bigidx b[data-at="1"], html.js .chapter[data-step="0"] .bigidx b[data-at="1"] { opacity: 1; transform: none; }
.group .stage { border-top: 3px solid var(--rule); background: var(--bg); }
/* keep the browser frame + caption inside short viewports (frame is 16:9 + ~190 px of text) */
.steps:not(.with-phone) .browser { max-width: calc((100vh - var(--header-h) - 260px) * 16 / 9); }

/* six layers: big numeral + large text on the right */
.layers .step-txt { height: 300px; margin-top: 6px; }
.layers .step-txt h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.layers .step-txt .eyebrow { margin-bottom: 12px; }
.layers .step-txt p:not(.eyebrow) { margin-top: 14px; font-size: 1.15rem; max-width: 46ch; }
.num.tiny { font-size: 88px; margin-bottom: 14px; }
.dark .num { color: var(--dark-brand); }
.statement .h2 { margin: 16px 0 24px; }

/* ---------- Spec rows (security) ---------- */
.spec { border-top: 3px solid var(--rule); }
.spec > div { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 0.8rem; font-weight: 750; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 8px; }
.spec dd { font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }
.spec strong { display: block; margin-bottom: 6px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }

/* ---------- Grid of facts / cards ---------- */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--rule); }
.cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols > li, .cols > div { padding: 26px 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line); }
.cols > :last-child { border-right: 0; margin-right: 0; }
.cols h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.cols p { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.dark .cols { border-top-color: var(--dark-text); }
.dark .cols > li, .dark .cols > div { border-right-color: var(--dark-line); }
.dark .cols h3 { color: #fff; }
/* dark bands: component text colours are set for light pages — override them here (higher specificity) */
.dark .cols p, .dark .step-lead, .dark .lead, .dark .spec dd, .dark .sc-txt p { color: var(--dark-muted); }
.dark h2, .dark h3 { color: #fff; }

/* ---------- Plans (pricing without prices) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--rule); }
.plan { display: flex; flex-direction: column; padding: 28px 26px 32px 0; margin-right: 26px; border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; margin-right: 0; }
.plan .tag { align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; background: var(--brand-ink); color: #fff; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.plan h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.plan .for { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); min-height: 3em; }
.plan ul { margin: 20px 0 24px; border-top: 1px solid var(--rule); }
.plan li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; line-height: 1.45; }
.plan .btn { margin-top: auto; align-self: flex-start; }

.plans-note { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 1.05rem; color: var(--ink-2); }
.plans-note b { color: var(--ink); }

/* ---------- FAQ (native details: works without JS) ---------- */
.faq { border-top: 3px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 1.2rem; font-weight: 750; font-stretch: 112%; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.8rem; font-weight: 300; color: var(--brand-ink); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 70ch; color: var(--ink-2); line-height: 1.65; }

/* ---------- Company facts ---------- */
.facts { border-top: 3px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.facts dd { font-size: 1.1rem; color: var(--ink); }

/* ---------- Demo form ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
form.demo { display: grid; gap: 22px; padding-top: 26px; border-top: 3px solid var(--rule); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 0.8rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.field .opt { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35); color: var(--ink); font: inherit; font-size: 1rem; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand-ink); outline-offset: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { box-shadow: inset 0 0 0 2px #b91c1c; }
.field .err { display: none; font-size: 0.9rem; color: #b91c1c; font-weight: 600; }
.field.invalid .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label, .consent label { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.98rem; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; }
.consent { display: grid; gap: 10px; }
.consent label { display: flex; font-weight: 500; line-height: 1.5; }
input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-ink); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 18px; border-left: 4px solid var(--brand-ink); background: var(--surface); line-height: 1.55; }
.form-status.show { display: block; }
.form-status.ok { border-left-color: var(--ok-ink); }
.form-status.fail { border-left-color: #b91c1c; }
.contact-list { border-top: 3px solid var(--rule); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(90px, 12vw, 160px) 0; border-top: 3px solid var(--rule); }
.cta-band .row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; font-size: 1.05rem; color: var(--ink-2); }
.cta-band .row a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 40px; background: var(--dark); color: var(--dark-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
.site-footer .wordmark { color: #fff; font-size: 2rem; }
.site-footer .slogan { margin-top: 8px; color: var(--dark-muted); }
.site-footer address { margin-top: 18px; font-style: normal; font-size: 0.95rem; line-height: 1.6; color: var(--dark-muted); }
.site-footer h4 { font-size: 0.78rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-muted); }
.site-footer ul { margin-top: 12px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: var(--dark-brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 0.88rem; color: var(--dark-muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a { color: var(--dark-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.footer-note { margin-top: 10px; font-size: 0.82rem; color: var(--dark-muted); }

/* ---------- Page variants ---------- */
.page-hero.short { min-height: 0; padding-bottom: 40px; }
.page-hero.short .lead { margin-top: 22px; }
.section.tight { padding-top: 24px; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.one { grid-template-columns: 1fr; border-top-width: 1px; }
.cols.one > li { margin-right: 0; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
.cols p + p { margin-top: 0.9em; }
.cols .h3 { margin-bottom: 4px; }
.aside-h { margin: 40px 0 6px; font-size: 1.4rem; }
.addr { display: block; padding-top: 6px; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.mt-s { margin-top: 16px; }
.row-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; padding-top: calc(var(--header-h) + 80px); display: flex; flex-direction: column; justify-content: center; }
.notfound .num { font-size: clamp(160px, 30vw, 380px); }

/* ==========================================================================
   Reveal on scroll (two-way) · split words · click to enlarge
   ========================================================================== */
html.js [data-reveal] { transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 1s var(--ease), clip-path 1.1s var(--ease); }
html.js [data-reveal="up"] { opacity: 0; transform: translateY(32px); }
html.js [data-reveal="left"] { opacity: 0; transform: translateX(-48px); }
html.js [data-reveal="right"] { opacity: 0; transform: translateX(48px); }
html.js [data-reveal="blur"] { opacity: 0; filter: blur(14px); transform: scale(1.02); }
html.js [data-reveal="scale"] { opacity: 0; transform: scale(1.1); clip-path: inset(10% 10% 10% 10%); }
html.js [data-reveal="mask"] { opacity: 0; clip-path: inset(0 0 60% 0); transform: translateY(24px); } /* not 100%: IntersectionObserver counts the clipped area */
html.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* only the clipping variants end on a clip: a generic final clip would cut anything that overflows the box (e.g. the ® of the logo) */
html.js [data-reveal="scale"].is-in, html.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
html.js .d1 { transition-delay: 0.12s; } html.js .d2 { transition-delay: 0.24s; } html.js .d3 { transition-delay: 0.36s; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.12em; margin: -0.04em 0 -0.12em; }
[data-split] .w > span { display: inline-block; }
html.js [data-reveal="words"] .w > span { transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
html.js [data-reveal="words"].is-in .w > span { transform: none; }

img[data-zoom] { cursor: zoom-in; }
img[data-zoom]:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 4px; }
.zoomable { position: relative; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; background: rgba(15, 23, 42, 0.86); color: #fff; font-size: 0.75rem; font-weight: 650; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; }
.zoomable:hover .zoom-hint { opacity: 1; transform: none; }
.zoom-back { position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, 0.74); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.45s var(--ease); cursor: zoom-out; }
.zoom-back.on { opacity: 1; }
.zoom-clone { position: fixed; z-index: 201; margin: 0; object-fit: contain; background: #fff; transform-origin: center center; transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease); cursor: zoom-out; }
.zoom-clone.on { box-shadow: 0 40px 140px rgba(0, 0, 0, 0.55); }
.zoom-clone.phone-shot { background: #0f172a; border-radius: 4px; }

/* ==========================================================================
   Stacked layout: no JS, reduced motion, and narrow screens (≤ 900 px)
   Pinned chapters become plain sections: every step visible with its own image.
   ========================================================================== */
html.reduce *, html.reduce *::before, html.reduce *::after { transition: none !important; animation: none !important; }
html:not(.js) .chapter, html.reduce .chapter { height: auto; }
html:not(.js) .chapter > .stage, html.reduce .chapter > .stage { position: static; height: auto; overflow: visible; padding: 80px 0; }
html:not(.js) .swap > [data-at], html.reduce .swap > [data-at] { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 28px; }
html:not(.js) .swap, html.reduce .swap { height: auto !important; }
html:not(.js) .bignum, html.reduce .bignum, html:not(.js) .bigidx, html.reduce .bigidx, html:not(.js) .prog, html.reduce .prog { display: none; }
html:not(.js) .frames, html.reduce .frames { aspect-ratio: auto; display: grid; gap: 16px; }
html:not(.js) .frames img, html.reduce .frames img, html:not(.js) .phone .screen img, html.reduce .phone .screen img { position: static; height: auto; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
html:not(.js) .phone, html.reduce .phone { aspect-ratio: auto; } html:not(.js) .phone .screen, html.reduce .phone .screen { display: grid; gap: 10px; background: transparent; }
html:not(.js) .track, html.reduce .track { position: static; flex-wrap: wrap; transform: none; padding: 0 var(--gutter); margin-top: 50px; }

/* Dark left margin (approved 09.11.2026; left side only): navy at the viewport edge, dissolving through a dot screen into the light page
   at the content edge. Fixed overlay, transparent over the content column, so full-width bands are unaffected. */
@media (min-width: 1400px) {
  /* % inside the gradient stops = overlay width (viewport without scrollbar) */
  body::before, body::after { --side: calc((100% - var(--wrap)) / 2); content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none; }
  body::before { background: linear-gradient(90deg, var(--navy) 0, var(--navy) calc(var(--side) * 0.08), rgba(15, 34, 86, 0) calc(var(--side) * 0.5)); }
  body::after { background-image: radial-gradient(circle, rgba(15, 34, 86, 0.6) 1.4px, transparent 1.9px); background-size: 9px 9px;
    -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--side) * 0.04), #000 calc(var(--side) * 0.2), transparent calc(var(--side) * 0.45));
    mask-image: linear-gradient(90deg, transparent calc(var(--side) * 0.04), #000 calc(var(--side) * 0.2), transparent calc(var(--side) * 0.45)); }
}
@media print { body::before, body::after { display: none; } }

@media (max-width: 1080px) {
  .nav { display: none; }
  html:not(.js) .nav { display: flex; flex-wrap: wrap; order: 3; width: 100%; margin: 0; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; }
  html:not(.js) .menu-toggle { display: none; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 3px solid var(--rule); }
  .site-header.open .nav a { min-height: 52px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .login { display: none; }
}

@media (max-width: 900px) {
  /* sideways reveals would widen the page on phones: rise instead */
  html.js [data-reveal="left"], html.js [data-reveal="right"] { transform: translateY(32px); }
  /* pinned → stacked */
  .chapter { height: auto !important; }
  .chapter > .stage { position: static; height: auto; overflow: visible; padding: 72px 0; }
  .swap > [data-at] { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 28px; }
  .swap { height: auto !important; }
  .bignum, .bigidx, .prog { display: none; }
  .frames { aspect-ratio: auto; display: grid; gap: 14px; }
  .frames img, .phone .screen img { position: static; height: auto; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .phone { width: min(78vw, 300px); aspect-ratio: auto; margin-inline: auto; }
  .phone .screen { display: grid; gap: 10px; background: transparent; }
  .track { position: static; flex-direction: column; transform: none !important; padding: 0 var(--gutter); margin-top: 40px; }
  .track li { flex: none; width: 100%; margin: 0 0 28px; padding-right: 0; }
  .track b { font-size: 96px; }
  .counter, .steps, .steps.with-phone { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .say { height: auto; }
  .six li { opacity: 1 !important; transform: none !important; }
  .step-list { display: none; }
  .steps .browser, .steps .phone { display: none; }
  .step-shot { display: block; }
  .step-txt, .with-phone .step-txt { height: auto; }

  .hero-brand { grid-template-columns: 1fr; gap: 28px; }
  .lockup { width: min(220px, 60vw); padding-right: 0; border-right: 0; }
  .lockup figcaption { right: -14px; }
  .hero-foot, .page-hero-foot { flex-direction: column; align-items: flex-start; grid-template-columns: 1fr; }
  .people ul, .cols, .cols.two, .cols.three, .plans { grid-template-columns: 1fr; }
  .people li, .cols > li, .cols > div, .plan { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .scene, .scene.flip { grid-template-columns: 1fr; gap: 20px; padding: 56px 0; }
  .scene.flip .sc-img, .scene.flip .sc-txt, .scene.flip .sc-num { order: initial; text-align: left; }
  .sc-num { font-size: 96px; }
  .spec > div, .facts > div { grid-template-columns: 1fr; gap: 6px; }
  .demo-grid, .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero { min-height: auto; padding-bottom: 0; }
}
@media (max-width: 480px) {
  .grid-lines { grid-template-columns: repeat(4, 1fr); }
  .grid-lines i:nth-child(n+5) { display: none; }
  .nos li { border-right: 0; margin-right: 14px; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { min-height: 44px; padding: 0 12px; font-size: 0.72rem; white-space: nowrap; }
  .site-header .wrap { gap: 10px; }
  .wordmark { font-size: 1.3rem; }
}

@media print {
  .site-header, .cta-band, .menu-toggle, .grid-lines { display: none; }
  .chapter { height: auto !important; } .chapter > .stage { position: static; height: auto; }
}

/* ---------- Privacy notice step (demo form, S484) ---------- */
.notice-field { padding: 16px 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.notice-text { margin: 0; line-height: 1.55; color: var(--ink-2); }
.notice-text a { color: var(--brand-ink); font-weight: 650; }
.notice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
html:not(.js) .notice-row { display: none; }
.notice-open[aria-invalid=true] { box-shadow: inset 0 0 0 2px #b91c1c; color: #b91c1c; }
.notice-state { font-size: 0.85rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.notice-field.done .notice-state { color: var(--ok-ink); }
.notice-field.done .notice-state::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.notice-dialog { width: min(760px, 100% - 32px); max-height: min(86vh, 900px); margin: auto; padding: 0; border: 0; background: var(--bg); color: var(--ink); box-shadow: 0 40px 140px rgba(0, 0, 0, 0.45); }
.notice-dialog[open] { display: flex; flex-direction: column; }
.notice-dialog::backdrop { background: rgba(15, 23, 42, 0.74); }
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 3px solid var(--rule); }
.notice-head .h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin: 0; }
.notice-close { min-height: 44px; min-width: 44px; padding: 8px 14px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 2px var(--ink); }
.notice-close:hover { background: var(--ink); color: #fff; }
.notice-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 22px; }
.notice-body:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: -3px; }
.notice-loading { color: var(--ink-3); }
.notice-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 22px; border-top: 1px solid var(--rule); background: var(--surface); }
.notice-hint { margin: 0; font-size: 0.92rem; color: var(--ink-3); }
.notice-ok[disabled] { background: var(--label); cursor: not-allowed; opacity: 0.75; }
.self-serve a { color: var(--brand-ink); font-weight: 700; }

/* ---------- Legal pages + notice dialog body (moved from inline <style>, S484) ---------- */
.legal { max-width: 78ch; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.legal h2 { margin: 44px 0 12px; padding-top: 10px; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.legal h3 { margin: 24px 0 8px; font-size: 1.08rem; color: var(--ink); }
.legal p, .legal li { margin: 10px 0; }
.legal ul, .legal ol { margin: 10px 0; padding-left: 22px; }
.legal ul, .notice-body ul { list-style: disc; }
.legal a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); }
.legal .meta { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legal .intro { margin: 18px 0 8px; font-size: 1.08rem; color: var(--ink-2); }
.legal .box, .legal .toc { margin: 18px 0; padding: 18px 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.legal .box .lbl { display: block; margin-top: 12px; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.legal .box .lbl:first-child { margin-top: 0; }
.legal .toc a { display: block; padding: 6px 0; min-height: 32px; color: var(--brand-ink); text-decoration: none; font-size: 0.95rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; text-transform: none; }
.legal .toc a::after { content: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal .note { margin: 18px 0; padding: 6px 0 6px 14px; border-left: 3px solid var(--brand-ink); font-size: 0.95rem; color: var(--ink-3); }
.notice-body { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); }
.notice-body h2 { margin: 28px 0 8px; font-size: 1.12rem; color: var(--ink); }
.notice-body ul { padding-left: 22px; }
.notice-body a { color: var(--brand-ink); }
.notice-body .meta { margin-top: 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.notice-body .box { padding: 14px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.notice-body .box .lbl { display: block; margin-top: 10px; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.notice-body .box .lbl:first-child { margin-top: 0; }
.notice-body .note { padding-left: 12px; border-left: 3px solid var(--brand-ink); color: var(--ink-3); }
