/* Expect marketing site. The app's drafting-table world (DESIGN_SYSTEM.md §0):
   a grey cutting mat, white plan sheets, graphite ink, one steel blue. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f6f6f4;
  --surface: #ffffff;
  --panel: #fafaf9;
  --hair: #e6e6e3;
  --hair-strong: #d4d4d0;
  --ink: #18181b;
  --ink-hover: #3f3f46;
  --ink-muted: #5e6068;
  --ink-subtle: #6a6d75;
  --soft: #f1f1ef;
  --accent: #2f5d8a;
  --accent-text: #284f75;
  --accent-soft: #edf2f7;
  --warning: #b4580a;
  --danger: #c23a22;
  --success: #1e7a4c;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 64px;
  --rail-h: 56px;
  --r-btn: 6px;
  --r-input: 8px;
  --r-panel: 12px;
  --shadow-sheet: 0 1px 2px rgba(24, 24, 27, 0.06);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--rail-h) + 16px); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--hair-strong); }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p, li { text-wrap: pretty; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: normal; }
.num { font-variant-numeric: tabular-nums; }
.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-link { position: fixed; z-index: 100; left: 12px; top: 12px; transform: translateY(-200%); background: var(--surface); padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--r-btn); font-size: 14px; }
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 0; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand-dot { display: inline-block; width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { background: var(--surface); border-color: var(--hair-strong); color: var(--ink); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04); }
.btn-secondary:hover { background: var(--panel); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }
.text-link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-strong); }
.text-link:hover { text-decoration-color: var(--ink); }
.arrow { display: inline-block; width: 14px; height: 14px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(246, 246, 244, 0.94); border-bottom: 1px solid var(--hair); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(246, 246, 244, 0.82); backdrop-filter: saturate(1.2) blur(10px); } }
.nav-shell { height: 100%; display: flex; align-items: center; gap: 32px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 10px; border-radius: var(--r-btn); font-size: 14px; color: var(--ink-muted); text-decoration: none; transition: color 120ms, background-color 120ms; }
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--hair); border-radius: var(--r-btn); padding: 2px; background: var(--surface); }
.lang-switch a, .lang-switch span { padding: 5px 8px; border-radius: 4px; font-family: var(--mono); font-size: 12px; line-height: 1; text-decoration: none; color: var(--ink-subtle); }
.lang-switch span[aria-current] { background: var(--soft); color: var(--ink); }
.lang-switch a:hover { color: var(--ink); }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--hair); border-radius: var(--r-btn); background: var(--surface); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.menu-button svg { width: 18px; height: 18px; }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 39; background: var(--canvas); padding: 16px var(--gutter) 32px; overflow-y: auto; }
.mobile-menu a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; text-decoration: none; }
.mobile-menu .btn { width: 100%; margin-top: 24px; }
.mobile-menu .lang-switch { margin-top: 20px; }

/* ---------- Phase rail ---------- */
.rail { position: relative; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }
.rail li { min-width: 0; border-left: 1px solid var(--hair); }
.rail li:first-child { border-left: 0; }
.rail a { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 12px 14px; text-decoration: none; color: var(--ink-subtle); transition: color 200ms ease-out, background-color 200ms ease-out; }
.rail a:hover { background: var(--panel); color: var(--ink); }
.rail .rail-n { font-size: 12px; font-variant-numeric: tabular-nums; color: inherit; opacity: 0.7; }
.rail .rail-label { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .rail-mark { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--hair-strong); display: grid; place-items: center; transition: border-color 200ms, background-color 200ms; }
.rail a { grid-template-columns: 14px auto 1fr; }
.rail a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; transition: background-color 200ms; }
.rail [data-state="done"] a { color: var(--ink); }
.rail [data-state="done"] .rail-mark { background: var(--ink); border-color: var(--ink); }
.rail [data-state="done"] .rail-mark::after { content: ""; width: 6px; height: 3.5px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.rail [data-state="current"] a { color: var(--ink); background: var(--panel); }
.rail [data-state="current"] .rail-mark { border-color: var(--accent); }
.rail [data-state="current"] .rail-mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rail [data-state="current"] a::after { background: var(--ink); }
.rail-compact { display: none; }

.rail-dock { position: sticky; top: var(--header-h); z-index: 30; padding: 8px 0; background: rgba(246, 246, 244, 0.94); border-bottom: 1px solid transparent; transition: border-color 200ms; }
@supports (backdrop-filter: blur(8px)) { .rail-dock { background: rgba(246, 246, 244, 0.85); backdrop-filter: saturate(1.2) blur(10px); } }
.rail-dock.is-stuck { border-bottom-color: var(--hair); }
.rail-dock .rail ol { box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 20px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.25rem); line-height: 1.0; letter-spacing: -0.04em; }
.hero h1 .h1-quiet { display: block; color: var(--ink-subtle); }
.hero-lede { margin-top: 24px; max-width: 30em; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--ink-muted); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-proof { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-subtle); }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof svg { width: 14px; height: 14px; color: var(--ink-muted); }
.hero-stage { position: relative; margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2)); }
.hero-rail { margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Screens (product screenshots) ---------- */
.screen { position: relative; margin: 0; }
.screen-frame { position: relative; overflow: hidden; border-radius: var(--r-panel); border: 1px solid var(--hair-strong); background: var(--canvas); box-shadow: var(--shadow-sheet); aspect-ratio: var(--ar, 16 / 10); }
.screen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.hero-stage .screen-frame { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.screen figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 12.5px; color: var(--ink-subtle); }
.screen figcaption .mono, .screen-note-line .mono { font-family: var(--sans); font-size: 12px; }
.hero-stage .screen figcaption { padding-right: var(--gutter); }
.phone { position: relative; width: min(100%, 300px); margin: 0; }
.phone-frame { border-radius: var(--r-panel); border: 1px solid var(--hair-strong); background: var(--canvas); box-shadow: var(--shadow-sheet); overflow: hidden; }
.phone-frame img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.phone figcaption { margin-top: 12px; font-size: 12.5px; color: var(--ink-subtle); text-align: center; }

/* ---------- Spine (the dossier) ---------- */
.spine-intro { padding: clamp(72px, 9vw, 128px) 0 clamp(24px, 3vw, 40px); }
.spine-intro h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 16em; }
.spine-intro p { margin-top: 18px; max-width: 38em; color: var(--ink-muted); font-size: 18px; }
.phase { position: relative; padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--hair); }
.phase-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.phase-text { position: sticky; top: calc(var(--header-h) + var(--rail-h) + 40px); }
.phase-num { display: block; font-family: var(--sans); font-weight: 300; font-variant-numeric: tabular-nums; font-size: clamp(64px, 8vw, 120px); line-height: 0.85; letter-spacing: -0.05em; color: var(--ink); transition: color 500ms var(--ease-out); }
.phase h2 { margin-top: 20px; font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.04; letter-spacing: -0.035em; }
.phase-statement { margin-top: 14px; font-size: 19px; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; max-width: 24em; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--hair); max-width: 30em; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.5; color: var(--ink-muted); display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.facts li strong { color: var(--ink); font-weight: 500; }
.facts .fact-mark { font-size: 13px; line-height: 1.7; color: var(--ink-subtle); }
.facts .fact-mark.rule::before { content: ""; display: inline-block; width: 10px; height: 1px; background: var(--hair-strong); vertical-align: 0.35em; }
.facts .fact-mark.ai { color: var(--ink); }
.phase-visual { min-width: 0; }
.phase-visual .screen-frame { --ar: 16 / 10; }
.ai-mark { font-family: var(--sans); font-weight: 500; }
.ai-glyph { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }
.facts .fact-mark .ai-glyph { width: 14px; height: 14px; vertical-align: -2px; }
.principles .glyph .ai-glyph { width: 22px; height: 22px; }

/* Leads: two screens, the reply laid over the queue. */
.stack { position: relative; padding-bottom: 14%; }
.stack .screen:first-child { width: 86%; }
.stack .screen:last-child { position: absolute; right: 0; bottom: 0; width: 70%; }
.stack .screen:last-child .screen-frame { box-shadow: 0 2px 4px rgba(24, 24, 27, 0.1); outline: 6px solid var(--canvas); }

/* Bod: phone + desktop portal. */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.duo .phone { width: clamp(170px, 15vw, 220px); }
.solo { display: grid; justify-items: center; }
.solo .phone { width: clamp(220px, 24vw, 300px); }
.solo .screen-note-line { width: 100%; }

/* Region table (dossier). */
.regions { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }
.regions-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 18px 20px; border-bottom: 1px solid var(--hair); }
.regions-head h3 { font-size: 16px; letter-spacing: -0.01em; }
.regions-head p { font-size: 13px; color: var(--ink-subtle); }
.regions-scroll { overflow-x: auto; }
.regions table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.regions th, .regions td { text-align: left; padding: 11px 20px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.regions tbody tr:last-child td { border-bottom: 0; }
.regions thead th { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); background: var(--panel); }
.regions tbody th { font-weight: 500; color: var(--ink); width: 26%; }
.regions td { color: var(--ink-muted); }
.regions td.no { color: var(--ink-subtle); }

.loop-note { margin-top: 28px; display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-muted); }
.loop-note .mono { white-space: nowrap; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--ink); border: 1px solid var(--hair-strong); background: var(--surface); padding: 3px 8px; border-radius: 4px; }

/* Ghosting: ahead phases wait in pencil, the current one is inked. */
.js .phase[data-state="ahead"] .phase-num { color: var(--hair-strong); }
.js .phase .phase-visual { transition: opacity 700ms var(--ease-out), filter 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .phase[data-state="ahead"] .phase-visual { opacity: 0.38; filter: grayscale(1) contrast(0.85); transform: translateY(18px); }
.js .phase[data-state="done"] .phase-num { color: var(--ink-subtle); }

/* ---------- Bands ---------- */
.band { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--hair); }
.band-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.band h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -0.035em; }
.band-lede { font-size: 18px; color: var(--ink-muted); max-width: 34em; }


.principles { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.principles > div { padding: 22px 24px 4px 0; }
.principles > div + div { padding-left: 24px; border-left: 1px solid var(--hair); }
.principles h3 { font-size: 17px; letter-spacing: -0.015em; }
.principles p { margin-top: 8px; font-size: 15px; color: var(--ink-muted); }
.principles .glyph { display: block; font-size: 22px; line-height: 1; margin-bottom: 14px; color: var(--ink); }

/* A ⌬ proposal, drawn the way the app draws one. */
.proposal { margin-top: clamp(36px, 4vw, 56px); border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; padding: 20px 22px; align-items: center; }
.proposal-title { font-size: 15px; font-weight: 500; }
.proposal-title .ai-mark { margin-right: 6px; }
.proposal-basis { margin-top: 6px; font-size: 13.5px; color: var(--ink-muted); }
.proposal-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--hair); background: var(--panel); font-size: 12px; color: var(--ink-muted); }
.proposal-actions { display: flex; gap: 8px; }
.proposal-actions .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.sample-note { margin-top: 10px; font-size: 12px; color: var(--ink-subtle); }

.facts-grid { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }
.facts-grid > div { padding: 22px 22px 24px; border-left: 1px solid var(--hair); }
.facts-grid > div:first-child { border-left: 0; }
.facts-grid dt { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.facts-grid dd { margin: 8px 0 0; font-size: 14px; color: var(--ink-muted); }

/* ---------- Close (demo request) ---------- */
.close { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--hair); }
.close-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.close h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.0; letter-spacing: -0.04em; }
.close-lede { margin-top: 18px; font-size: 18px; color: var(--ink-muted); max-width: 26em; }
.close-steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; }
.close-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink-muted); }
.close-steps li::before { content: counter(step, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-subtle); line-height: 1.9; }
.close-steps strong { color: var(--ink); font-weight: 500; }

/* ---------- Forms ---------- */
.form-sheet { border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow-sheet); padding: clamp(20px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--ink-subtle); }
.field input, .field textarea, .field select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--hair-strong); border-radius: var(--r-input); background: var(--surface); font-size: 15px; line-height: 1.4; transition: border-color 120ms, box-shadow 120ms; }
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-subtle); }
.field input:hover, .field textarea:hover { border-color: var(--ink-subtle); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--soft); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-privacy { font-size: 12.5px; color: var(--ink-subtle); max-width: 34em; }
.turnstile-slot { margin-top: 16px; min-height: 0; }
.form-error { margin-top: 16px; padding: 10px 12px; border-radius: var(--r-input); background: #fbefec; color: var(--danger); font-size: 14px; }
.form-success { padding: 8px 0; }
.form-success h2 { font-size: 20px; letter-spacing: -0.02em; }
.form-success p { margin-top: 8px; color: var(--ink-muted); }
.form-success .mono { color: var(--ink); }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.0; letter-spacing: -0.04em; max-width: 14em; }
.page-head .lede { margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-muted); max-width: 34em; }
.page-head .hero-actions { margin-top: 28px; }
.feature-shot { padding-bottom: clamp(56px, 7vw, 96px); }
.feature-body { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--hair); }
.feature-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.feature-cols h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.08; letter-spacing: -0.03em; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.feature-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.feature-list h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.feature-list p { font-size: 15px; color: var(--ink-muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px 0 0; }
.pager a { display: block; padding: 18px 20px; border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); text-decoration: none; transition: border-color 150ms; }
.pager a:hover { border-color: var(--ink-subtle); }
.pager span { display: block; font-size: 12px; color: var(--ink-subtle); }
.pager strong { display: block; margin-top: 4px; font-weight: 500; }
.pager .next { text-align: right; }

.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.offer-card { border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow-sheet); }
.offer-card > div { padding: 22px 24px; border-top: 1px solid var(--hair); }
.offer-card > div:first-child { border-top: 0; }
.offer-card h2 { font-size: 15px; font-weight: 500; }
.offer-card h2.price { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.close-steps.in-card { margin-top: 8px; }
.close-steps.in-card li:first-child { border-top: 0; }
.offer-card .price { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.035em; }
.offer-card .price-note { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }
.offer-card ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.offer-card li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 15px; color: var(--ink-muted); }
.offer-card li svg { width: 14px; height: 14px; margin-top: 5px; color: var(--ink); }
.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-subtle); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-muted); max-width: 44em; }

.prose { max-width: 44em; }
.prose h2 { margin-top: 40px; font-size: 20px; letter-spacing: -0.02em; }
.prose p { margin-top: 12px; color: var(--ink-muted); }
.prose p.updated { margin-top: 0; font-size: 13px; color: var(--ink-subtle); }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.contact-card { font-size: 15px; color: var(--ink-muted); display: grid; gap: 16px; }
.contact-card strong { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: 48px 0 32px; font-size: 14px; color: var(--ink-muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.footer-grid h2 { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-line { margin-top: 12px; max-width: 26em; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12.5px; color: var(--ink-subtle); }

.not-found { min-height: 60vh; display: grid; align-content: center; padding: 64px 0; }
.not-found .mono { font-size: 13px; color: var(--ink-subtle); }
.not-found h1 { margin-top: 12px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
.not-found p { margin-top: 12px; color: var(--ink-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rail .rail-label { font-size: 12px; }
  .rail a { padding: 11px 10px; column-gap: 6px; }
  .rail .rail-n { display: none; }
  .rail a { grid-template-columns: 14px 1fr; }
}
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .menu-button { display: inline-flex; }
  .nav-actions .btn, .nav-actions .lang-switch { display: none; }
  .hero-grid, .phase-grid, .band-head, .close-grid, .feature-cols, .offer, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { margin-right: calc(-1 * var(--gutter)); }
  .phase-text { position: static; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid > div:nth-child(3) { border-left: 0; }
  .facts-grid > div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .rail ol { display: none; }
  .rail-compact { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; padding: 10px 14px; border: 1px solid var(--hair); border-radius: var(--r-panel); background: var(--surface); }
  .rail-compact .mono { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-subtle); }
  .rail-compact strong { font-size: 14px; font-weight: 500; }
  .rail-compact .bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .rail-compact .bars span { height: 3px; border-radius: 2px; background: var(--hair); transition: background-color 250ms; }
  .rail-compact .bars span.on { background: var(--ink); }
  .rail-compact .bars span.now { background: var(--accent); }
  .hero-rail .rail-compact .bars span { background: var(--ink); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .screen-frame.has-mobile { aspect-ratio: 390 / 600; }
  .screen-frame.has-mobile img { object-fit: cover; object-position: top; }
  .hero-stage { margin-right: 0; }
  .hero-stage .screen-frame { border-right: 1px solid var(--hair-strong); border-radius: var(--r-panel); }
  .hero-stage .screen figcaption { padding-right: 0; }
  /* Small screens: zoom into the part of the screen that tells the story. */
  .screen-frame.zoom { aspect-ratio: 4 / 3.4; }
  .screen-frame.zoom img { width: 210%; max-width: none; height: auto; object-fit: initial; transform: translate(var(--zx, -26%), var(--zy, -4%)); }
  .stack { padding-bottom: 0; display: grid; gap: 16px; }
  .stack .screen:first-child, .stack .screen:last-child { position: static; width: 100%; }
  .duo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .duo .screen { display: none; }
  .duo .phone { width: min(78%, 280px); }
  .proposal { grid-template-columns: minmax(0, 1fr); }
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-grid > div { border-left: 0; border-top: 1px solid var(--hair); }
  .facts-grid > div:first-child { border-top: 0; }
  .feature-list li { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .loop-note { flex-direction: column; align-items: flex-start; gap: 8px; }
  .regions table { min-width: 0; }
  .regions thead { display: none; }
  .regions tbody tr { display: block; padding: 14px 20px; border-bottom: 1px solid var(--hair); }
  .regions tbody tr:last-child { border-bottom: 0; }
  .regions tbody th, .regions tbody td { display: grid; grid-template-columns: 96px 1fr; gap: 12px; width: auto; padding: 3px 0; border: 0; }
  .regions tbody th { display: block; padding-bottom: 6px; }
  .regions td::before { content: attr(data-label); font-size: 12px; color: var(--ink-subtle); padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .phase[data-state] .phase-visual { opacity: 1; filter: none; transform: none; }
  .js .phase[data-state] .phase-num { color: var(--ink); }
}

/* ---------- Small pieces ---------- */
.screen-note-line { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 12.5px; color: var(--ink-subtle); }
.screen-note-line .mono { font-size: 12px; }
.rental-note { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--hair-strong); font-size: 14px; color: var(--ink-muted); max-width: 30em; }
.demo-grid { padding-bottom: clamp(56px, 7vw, 96px); }
.demo-grid .close-steps { margin: 0 0 32px; }
.not-found-fr { margin-top: 40px; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.03em; }

.feature-list.band-list { margin-top: clamp(36px, 4vw, 56px); border-top-color: var(--ink); }
.phone.short .phone-frame img { aspect-ratio: 390 / 560; }

/* Generated: mobile focus per screenshot */
.shot-hero-estate { --zx: -17%; --zy: -9%; }
.shot-valuation { --zx: -18%; --zy: -9%; }
.shot-dossier { --zx: -18%; --zy: -20%; }
.shot-publications { --zx: -16%; --zy: -8%; }
.shot-today { --zx: -15%; --zy: -9%; }
.shot-reply { --zx: -18%; --zy: -9%; }
.shot-matches { --zx: -14%; --zy: -14%; }
.shot-timeline { --zx: -18%; --zy: -9%; }
.shot-opportunities { --zx: -18%; --zy: -30%; }
.shot-owner-desktop { --zx: -8%; --zy: -7%; }
.shot-buyer-desktop { --zx: -26%; --zy: -8%; }
.screen-frame.tall { aspect-ratio: 4 / 3; }
