/* fieldtracker.eu (spec/WEBSITE.md §4): the app's identity — accent and
   Inter from src/renderer/shared/css/tokens.css — with a technical-drawing
   look: Commissioner for headings, JetBrains Mono for small labels. Every
   colour comes from the variables below, so the dark theme is one block. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/commissioner-latin-wght-normal.woff2") format("woff2");
  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: "Commissioner";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/commissioner-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  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: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --text: #171a21;
  --text-muted: #566070;
  --border: #e2e4e9;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eef2ff;
  --btn-bg: #2563eb;
  --btn-bg-hover: #1d4ed8;
  --on-accent: #ffffff;
  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --navy: #0f1b3d;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow: rgba(16, 24, 40, 0.08);
  --shadow-strong: rgba(15, 27, 61, 0.16);
  --grid: rgba(37, 99, 235, 0.07);
  --draw-ink: #3b4556;
  --draw-faint: #c5ccd8;
  --draw-fill: #eef1f6;
  --draw-todo: #98a1b2;
  --focus-ring: rgba(37, 99, 235, 0.45);
  --radius: 12px;
  --wrap: 1160px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Commissioner", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
/* Dark: the device's setting unless the visitor chose light (theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c111d;
    --bg-alt: #111827;
    --surface: #161f31;
    --text: #e6eaf2;
    --text-muted: #9aa5b8;
    --border: #263147;
    --accent: #7ea6ff;
    --accent-hover: #a3c0ff;
    --accent-soft: #17233f;
    --btn-bg: #2563eb;
    --btn-bg-hover: #3b76f6;
    --ok: #4ade80;
    --bad: #f87171;
    --warn: #fbbf24;
    --navy: #0a1430;
    --header-bg: rgba(12, 17, 29, 0.88);
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-strong: rgba(0, 0, 0, 0.5);
    --grid: rgba(126, 166, 255, 0.07);
    --draw-ink: #aeb8ca;
    --draw-faint: #34405a;
    --draw-fill: #121a2b;
    --draw-todo: #6c7891;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c111d;
  --bg-alt: #111827;
  --surface: #161f31;
  --text: #e6eaf2;
  --text-muted: #9aa5b8;
  --border: #263147;
  --accent: #7ea6ff;
  --accent-hover: #a3c0ff;
  --accent-soft: #17233f;
  --btn-bg: #2563eb;
  --btn-bg-hover: #3b76f6;
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --navy: #0a1430;
  --header-bg: rgba(12, 17, 29, 0.88);
  --shadow: rgba(0, 0, 0, 0.35);
  --shadow-strong: rgba(0, 0, 0, 0.5);
  --grid: rgba(126, 166, 255, 0.07);
  --draw-ink: #aeb8ca;
  --draw-faint: #34405a;
  --draw-fill: #121a2b;
  --draw-todo: #6c7891;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header: prospects first — the demo button is the filled one, on the right. */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(8px);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; position: relative; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  color: var(--text); text-decoration: none;
  font: 800 1.32rem/1 var(--font-display); letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.signin { color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.signin:hover { color: var(--accent); }
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg, .menu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
.menu { display: none; }
.menu summary {
  display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; list-style: none;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 40px var(--shadow-strong);
}
.menu-panel > a { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.menu-panel > a:hover { background: var(--bg-alt); }
.menu-panel .lang-menu { padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px; }
.menu-panel .lang-menu a { padding: 8px 10px; }
.menu-panel .theme-toggle { margin: 4px 10px; }

/* Language switcher: the current flag; the list drops down under it. */
.lang-switch { position: relative; }
.lang-switch summary {
  display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; cursor: pointer; list-style: none;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--accent); color: var(--accent); }
.lang-switch .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.lang-switch[open] .chev { transform: rotate(180deg); }
.flag { flex: none; width: 24px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--border); }
.lang-switch .lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 40px var(--shadow-strong);
}
.lang-menu { display: flex; flex-direction: column; gap: 2px; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.lang-menu a:hover { background: var(--bg-alt); color: var(--text); }
.lang-menu a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Buttons: pills; the primary one filled, with an arrow after the label
   (drawn from arrow.svg: no font here has the → glyph). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--btn-bg); color: var(--on-accent); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--on-accent); }
.btn-primary::after {
  content: ""; flex: none; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: url("/assets/arrow.svg") center / contain no-repeat;
  mask: url("/assets/arrow.svg") center / contain no-repeat;
  transition: transform 0.15s ease;
}
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* Section headers: centred, a mono eyebrow between two short rules. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
  color: var(--accent); font: 600 0.76rem/1.5 var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.eyebrow::before, .section-head .eyebrow::after { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head h2 { margin-bottom: 0; }
.section-head .section-intro { margin: 18px auto 0; }
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.section-intro { color: var(--text-muted); max-width: 65ch; margin-bottom: 32px; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.three { grid-template-columns: repeat(3, 1fr); }
.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card p { color: var(--text-muted); margin: 0; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--shadow); }
.trust-line { margin-top: 20px; color: var(--text-muted); font-size: 0.95rem; }

/* Small outline icons in a light accent square (pains, feature groups). */
.icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Hero: text left, the installation drawing right, a blueprint grid behind
   that fades out towards the edges. */
.hero { position: relative; padding: 72px 0 64px; overflow-x: clip; }
.hero::before, .contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 65% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 65% 45%, #000 35%, transparent 80%);
}
.hero > .wrap, .contact > .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 16ch; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 34rem; }

/* The drawing (inline SVG): colours from the variables, labels from the
   strings; the callouts are HTML chips placed over it. */
.drawing { position: relative; margin: 0; }
.drawing-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-mono); }
.drawing-svg .axis { fill: none; stroke: var(--draw-faint); stroke-width: 1; stroke-dasharray: 12 3 2 3; }
.drawing-svg .bubble { fill: var(--bg); stroke: var(--draw-ink); stroke-width: 1; }
.drawing-svg .bubble-text { fill: var(--draw-ink); font-size: 12px; font-weight: 600; text-anchor: middle; }
.drawing-svg .dim { fill: none; stroke: var(--draw-ink); stroke-width: 0.8; }
.drawing-svg .dim-text { fill: var(--text-muted); font-size: 10.5px; text-anchor: middle; }
.drawing-svg .mark-line { fill: none; stroke: var(--draw-faint); stroke-width: 1; stroke-dasharray: 2 3; }
.drawing-svg .mark-tri { fill: none; stroke: var(--draw-ink); stroke-width: 1; }
.drawing-svg .mark { fill: var(--draw-ink); font-size: 11.5px; font-weight: 500; }
.drawing-svg .shaft { fill: var(--draw-fill); stroke: var(--draw-faint); stroke-width: 1; }
.drawing-svg .tray { fill: none; stroke: var(--draw-faint); stroke-width: 4; }
.drawing-svg .wall { fill: none; stroke: var(--draw-ink); stroke-width: 2; }
.drawing-svg .slab { fill: var(--draw-ink); }
.drawing-svg .ground { fill: none; stroke: var(--draw-ink); stroke-width: 1.6; }
.drawing-svg .hatch { fill: none; stroke: var(--draw-faint); stroke-width: 1; }
.drawing-svg .route { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.drawing-svg .route.pulled { stroke: var(--accent); }
.drawing-svg .route.todo { stroke: var(--draw-todo); stroke-dasharray: 6 5; stroke-linecap: butt; }
.drawing-svg .head { fill: var(--accent); }
.drawing-svg .board { fill: var(--surface); stroke: var(--draw-ink); stroke-width: 1.2; }
.drawing-svg .board-text { fill: var(--draw-ink); font-size: 8.5px; font-weight: 600; text-anchor: middle; }
.drawing-svg .reel { fill: var(--surface); stroke: var(--draw-ink); stroke-width: 1.6; }
.drawing-svg .reel-wind { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0.75; }
.drawing-svg .reel-hub { fill: var(--draw-ink); }
.drawing-svg .reel-stand { fill: none; stroke: var(--draw-ink); stroke-width: 1.4; }
.drawing-svg .legend-text { fill: var(--text-muted); font-size: 11px; }
.drawing-svg .tb { fill: var(--surface); stroke: var(--draw-ink); stroke-width: 1.2; }
.drawing-svg .tb-line { fill: none; stroke: var(--draw-ink); stroke-width: 0.7; }
.drawing-svg .tb-label { fill: var(--text-muted); font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.drawing-svg .tb-value { fill: var(--text); font-size: 10.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.drawing-svg .tb-accent { fill: var(--accent); }
.drawing-svg .leader { fill: none; stroke: var(--text-muted); stroke-width: 1; }
.drawing-svg .dot { fill: var(--text); }
.callout {
  position: absolute; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 6px 18px var(--shadow); font-size: 0.78rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.callout svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Anchors in the drawing's own units (viewBox 640 × 520). */
.co-progress { left: 31.25%; top: 73.5%; }
.co-claims { right: 34.4%; top: 62.7%; }
.co-report { left: 30.6%; top: 45.8%; }
.co-crews { right: 33.8%; top: 28.8%; }
.co-stock { left: 76.6%; top: 61.2%; }

/* Facts strip and the moving strip of what we cover. */
.facts { padding: 40px 0 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 4px 28px; border-left: 1px solid var(--border); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-value { margin: 0 0 10px; font: 800 2.4rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.fact-text { margin: 0; font: 500 0.72rem/1.55 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.ticker {
  margin-top: 32px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.ticker-list li {
  white-space: nowrap; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 0.9rem; font-weight: 500;
}
.ticker-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Pain points: cards with an icon (not red borders: they read as errors). */
.pain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.pain p { color: var(--text-muted); margin: 0; }

/* Today → with FieldTracker+ */
.compare { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-head span { padding: 14px 24px; font: 600 0.76rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.compare-head span:first-child { color: var(--text-muted); }
.compare-head span:last-child { background: var(--btn-bg); color: var(--on-accent); }
.compare-row { border-top: 1px solid var(--border); }
.compare-row p { margin: 0; padding: 18px 24px 18px 52px; position: relative; }
.compare-row p::before { position: absolute; left: 22px; top: 17px; font-weight: 700; }
.before { color: var(--text-muted); }
.before::before { content: "✕"; color: var(--bad); }
.after { background: var(--accent-soft); font-weight: 500; }
.after::before { content: "✓"; color: var(--ok); }

/* Features: three groups, each with its three outcomes. */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.group { padding: 30px 28px 18px; }
.group h3 { font-size: 1.35rem; margin-bottom: 6px; }
.card .group-intro { margin-bottom: 18px; }
.outcomes { list-style: none; margin: 0; padding: 0; }
.outcomes li { padding: 14px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; }
.outcomes strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 650; }

/* Getting started */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.steps li::before {
  content: "0" counter(step); display: block; margin-bottom: 14px;
  color: var(--accent); font: 600 0.8rem/1 var(--font-mono); letter-spacing: 0.1em;
}
.steps p { color: var(--text-muted); margin: 0; }

/* Motion: fade up once when scrolled into view. Hidden only once reveal.js
   has marked <html>, so nothing is hidden without JavaScript. */
.reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

[hidden] { display: none !important; }

/* Free guide: the bait, right after the pains, on a light accent band. */
.guide-band { background: var(--accent-soft); }
.guide-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.guide-points { list-style: none; padding: 0; margin: 0; }
.guide-points li { position: relative; padding: 6px 0 6px 28px; }
.guide-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.guide-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px;
  box-shadow: 0 20px 40px var(--shadow);
}

/* Contact: the pitch on the dark band, the form on a white card. */
.contact { position: relative; background: var(--navy); color: #fff; --grid: rgba(126, 166, 255, 0.09); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact .section-intro { color: #c7cfe2; }
.contact .eyebrow { color: #9dbaff; }
.contact-points { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-points li { position: relative; padding: 6px 0 6px 28px; color: #e6eaf4; }
.contact-points li::before { content: "✓"; position: absolute; left: 0; color: #7ea6ff; font-weight: 700; }
.contact-direct { color: #c7cfe2; font-size: 0.95rem; }
.contact .email { color: #fff; font-weight: 600; }

.demo-form {
  background: var(--surface); color: var(--text); border-radius: 14px; padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.form-row { display: block; margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form label, .guide-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.demo-form input, .guide-form input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; font-weight: 400; font-size: 0.95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.demo-form input:focus, .guide-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-form .btn, .guide-form .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.demo-form .btn:disabled, .guide-form .btn:disabled { opacity: 0.6; cursor: default; }
.form-note { margin: 12px 0 0; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* The guide page (served by the app from the guide folder, WEBSITE.md §6.2.3) */
.guide-page { max-width: 820px; }
.guide-files { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--border); }
.guide-files li { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); }
.guide-files h2 { font-size: 1.05rem; margin-bottom: 4px; }
.guide-files p { margin: 0 0 4px; color: var(--text-muted); }
.guide-files .btn { flex: none; }
.guide-demo { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.guide-demo p { margin: 0; font-weight: 500; }

/* Offer pages (spec/WEBSITE.md §7) */
.offer-page { max-width: 820px; }
.offer-page h2 { margin-top: 40px; }
.offer-steps { padding-left: 22px; margin: 0; }
.offer-steps li { padding: 4px 0; }
.offer-form { scroll-margin-top: 80px; margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.offer-form h2 { margin-top: 0; }
.offer-q { border: 0; padding: 0; margin: 0 0 22px; }
.offer-q legend, .offer-country { display: block; font-weight: 600; margin-bottom: 10px; padding: 0; }
.offer-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-choices label { position: relative; cursor: pointer; }
.offer-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.offer-choices span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 0.95rem;
}
.offer-choices label:hover span { border-color: var(--accent); }
.offer-choices input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.offer-choices input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus-ring); }
.offer-country select {
  display: block; margin-top: 10px; width: 100%; max-width: 320px; padding: 10px 12px; font: inherit;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
}
.offer-form .btn { border: 0; cursor: pointer; font-family: inherit; }
.offer-form .btn:disabled { opacity: 0.6; cursor: default; }
.offer-faq { margin-bottom: 32px; }
.offer-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.offer-faq summary { cursor: pointer; font-weight: 600; }
.offer-faq p { margin: 10px 0 0; color: var(--text-muted); }
.offer-price { width: 100%; max-width: 560px; border-collapse: collapse; margin: 24px 0; }
.offer-price th, .offer-price td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 400; }
.offer-price td { text-align: right; white-space: nowrap; padding-left: 16px; }
.offer-price .discount td { color: var(--ok); }
.offer-price .subtotal th, .offer-price .subtotal td { font-weight: 600; }
.offer-price .total th, .offer-price .total td { font-weight: 700; font-size: 1.15rem; border-bottom: 0; }
.offer-pay { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; max-width: 560px; }
.offer-pay p { margin-bottom: 14px; }
.offer-pay-form { max-width: 560px; margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; }
.offer-pay-form h2 { margin-top: 0; }
.offer-pay-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.offer-pay-form input[type="text"], .offer-pay-form input[type="tel"] {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; font-weight: 400; font-size: 0.95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.offer-pay-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.offer-pay-form .offer-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; margin-bottom: 10px; }
.offer-pay-form .offer-check input { margin-top: 4px; flex: none; accent-color: var(--accent); }
.offer-pay-form .btn { border: 0; cursor: pointer; font-family: inherit; }
.offer-pay-form .btn-ghost { border: 1px solid var(--border); }
.form-error { color: var(--warn); font-weight: 600; }
.offer-page .result-icon { margin-left: 0; }
.offer-answers { margin: 0 0 12px; max-width: 560px; }
.offer-answers div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.offer-answers dt { color: var(--text-muted); }
.offer-answers dd { margin: 0; font-weight: 500; text-align: right; }

/* Form result pages */
.result { max-width: 560px; }
.result-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: #fff;
}
.result-icon.ok { background: var(--ok); }
.result-icon.bad { background: var(--warn); }
.cta-row.center { justify-content: center; }
.email { font-weight: 600; }

/* Text pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin-top: 32px; }

/* Language choice (/) and 404 */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.center-page img { margin: 0 auto 32px; width: 220px; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.notfound p { margin-bottom: 4px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 44px 0 24px; background: var(--bg-alt); }
.foot-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot .brand { font-size: 1.15rem; margin-bottom: 10px; }
.foot .brand img { width: 24px; height: 24px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: var(--text-muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 1020px) {
  .nav { gap: 16px; }
  .top-row { gap: 16px; }
}
@media (max-width: 900px) {
  .nav, .top-actions .lang-switch, .top-actions .signin { display: none; }
  .menu { display: block; order: 3; }
  .top-actions { order: 1; margin-left: auto; }
  .top-demo { order: 2; }
  .three, .steps, .hero-grid, .contact-grid, .guide-grid, .groups { grid-template-columns: 1fr; }
  .four { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 40px; }
  .drawing { max-width: 600px; }
  .facts-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  /* Phone: the drawing under the text, without the callouts. */
  .callout, .drawing-svg .leaders { display: none; }
}
@media (max-width: 560px) {
  .top-row { gap: 10px; min-height: 60px; }
  .top-actions { display: none; }
  .top-demo { margin-left: auto; padding: 8px 14px; font-size: 0.85rem; }
  .top-demo::after { display: none; }
  .brand { font-size: 1.12rem; gap: 7px; }
  .brand img { width: 24px; height: 24px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .lead { font-size: 1.05rem; }
  .fact { padding: 0 0 0 16px; }
  .fact-value { font-size: 1.9rem; }
  .four, .compare-head, .compare-row, .form-row.two { grid-template-columns: 1fr; }
  .demo-form, .guide-form, .offer-form, .offer-pay-form { padding: 20px; }
  .guide-files li { flex-direction: column; align-items: flex-start; }
  .compare-head span:first-child { display: none; }
  .compare-row p { padding: 12px 16px 12px 44px; }
  .compare-row p::before { left: 16px; top: 11px; }
}
@media (max-width: 440px) {
  /* Room for logo, demo button and menu: the F+ mark alone (alt text). */
  .top .brand span { display: none; }
}

/* Reduced motion: the strip stands still and wraps, nothing fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; width: auto; justify-content: center; }
  .ticker-list { flex-wrap: wrap; justify-content: center; padding: 0 20px; row-gap: 10px; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .reveal, .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn-primary::after { transition: none; }
}
