/* ============================================================
   RAILORA — Landing v3
   Precision, not promises: quai-grey + graphite + copper, real
   product surfaces (screenshots, share poster, live link, board,
   real operator marks) standing in for icon-and-copy filler.
   Bricolage Grotesque (display) · Schibsted Grotesk (body) ·
   Spline Sans Mono (data) · Nunito for embedded real-UI recreations.
   ============================================================ */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.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: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/spline-sans-mono-latin.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: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/spline-sans-mono-latin-ext.woff2") format("woff2");
  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;
}
/* Nunito — matches board.css/trip-share.css exactly, for the recreated real-UI
   fragments (share poster, live-link mock, board row) so they read as the real
   product, not a reinterpretation in the marketing typeface. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.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: "Nunito";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  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;
}

:root {
  --quai: #F1F2F4;
  --panel: #FFFFFF;
  --ink: #15171A;
  --ink-dim: #5B6068;
  --ink-faint: #8A8F97;
  --line: #D8DADE;
  --graphite: #1B1D21;
  --graphite-2: #24272C;
  --graphite-line: #34383E;
  --paper: #EDE8DC;

  --copper: #B56A3A;
  --copper-bright: #DD9460;
  --copper-deep: #8F5228;
  --copper-soft: rgba(181, 106, 58, 0.12);

  --green: #009757;
  --amber: #C2600A;
  --red: #FF3B30;
  --platform: #F5B400;

  --display: "Bricolage Grotesque", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;
  --nunito: "Nunito", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);

  /* Motion tokens — three curves, each with a job. Never animate box-shadow/filter
     on a large element (repaint, not composite); use a pseudo-element instead. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* entrances, reveals */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);       /* in-place state changes */
  --ease-settle: cubic-bezier(0.34, 1.3, 0.64, 1); /* micro-elements only — never a text block */
  --t-micro: 150ms;
  --t-small: 300ms;
  --t-section: 600ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--quai);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  line-height: 1.5;
}
a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-deep); }
img { display: block; max-width: 100%; }
::selection { background: var(--copper); color: #fff; }
.mono { font-family: var(--mono); }

/* Subtle paper grain — the one texture allowed, confined to the whole page at very
   low opacity so it never competes with the graphite section's own contrast. */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 100px 0; }
.eyebrow { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); font-weight: 600; margin-bottom: 16px; }
.eyebrow.center { text-align: center; }
.center { text-align: center; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.015em; line-height: 1.12; }
.lede { font-size: 17px; line-height: 1.65; color: var(--ink-dim); }
.ink-accent { color: var(--copper); }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-section) var(--ease-out), transform var(--t-section) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1.in { transition-delay: .08s; }
.reveal.d2.in { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Stagger: children fade in one after another instead of as one flat block —
   landing.js sets transition-delay per child when the parent's IO fires. */
.stagger > * { opacity: 0; transform: translateY(12px); transition: opacity var(--t-section) var(--ease-out), transform var(--t-section) var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .stagger > * { opacity: 1; transform: none; transition: none; } }

/* Keyboard focus — visible everywhere. */
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

/* ============================================================ BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--body); font-size: 15px; font-weight: 600; height: 50px; padding: 0 22px; border-radius: 10px; border: none; cursor: pointer; transition: transform var(--t-micro) var(--ease-out), background var(--t-micro) var(--ease-io); white-space: nowrap; }
.btn:active { transform: scale(0.985); transition-duration: 90ms; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-faint); }
/* Ombre portée sur pseudo-élément (jamais box-shadow en transition directe — repaint). */
.tf { position: relative; display: inline-flex; align-items: center; gap: 11px; height: 52px; padding: 0 20px 0 16px; border-radius: 12px; border: none; cursor: pointer; background: linear-gradient(180deg, var(--copper-bright), var(--copper-deep)); box-shadow: 0 6px 18px -6px rgba(181,106,58,.5); transition: transform var(--t-micro) var(--ease-out); }
.tf::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; box-shadow: 0 14px 30px -8px rgba(181,106,58,.55); opacity: 0; transition: opacity var(--t-micro) var(--ease-out); }
.tf:hover { transform: translateY(-2px); }
.tf:hover::after { opacity: 1; }
.tf:active { transform: translateY(0) scale(0.985); transition-duration: 90ms; }
.tf-ic { width: 24px; height: 24px; flex: none; }
.tf-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.tf-k { font-family: var(--body); font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.tf-m { font-family: var(--body); font-size: 15px; font-weight: 700; color: #fff; }

/* ============================================================ HERO — headline + CTA, real board widget (no photo here) */
.hero { padding-top: 56px; padding-bottom: 64px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-text h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.06; margin: 0 0 22px; }
.hero-text .lede { max-width: 460px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-board { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.board-example-lg { width: 100%; max-width: 380px; padding: 24px; border-radius: 20px; background: var(--panel); box-shadow: 0 24px 50px -24px rgba(21,23,26,.28); }
.board-example-lg .be-time { font-size: 22px; }
.board-example-lg .be-route { font-size: 16px; }
.board-example-lg .be-platform { width: 38px; height: 38px; font-size: 15px; }
.board-example-lg .op-logo-sm { height: 20px; }
.hero-board-caption { font-size: 13px; color: var(--ink-faint); text-align: center; }

/* Kept out of .reveal — fading everything in together read as unfinished. */
@media (prefers-reduced-motion: no-preference) {
  .hero-in-1 { animation: rise-lg 750ms var(--ease-out) 60ms backwards; }
  .hero-in-2 { animation: rise-sm 550ms var(--ease-out) 180ms backwards; }
  .hero-in-3 { animation: rise-sm 550ms var(--ease-out) 280ms backwards; }
  .hero-board { animation: phone-in 900ms var(--ease-out) 220ms backwards; }
}
@keyframes rise-sm { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-lg { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ============================================================ LOGO BAND — flagship marks, right after the hero */
.logoband { padding: 8px 0 56px; }
.logoband-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 20px; }
.logoband-row { display: flex; align-items: center; flex-wrap: wrap; gap: 34px; }
.logoband-row .op-logo { height: 30px; max-width: 100px; }

/* ============================================================ ABOUT — Quentin, identity card + narrative, distinct from
   the hero's split so the two don't read as the same "split image/text" layout twice. */
.about-in { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 44px -22px rgba(21,23,26,.28); }
.about-id { margin-top: 14px; }
.about-name { display: block; font-family: var(--display); font-weight: 800; font-size: 16px; }
.about-role { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.about-text .h2 { max-width: 520px; margin-bottom: 20px; }
.about-quote { font-size: clamp(20px, 2.4vw, 25px); font-weight: 700; line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); max-width: 560px; margin-bottom: 22px; }
.about-text .lede { max-width: 560px; margin-bottom: 14px; }
.about-text .lede:last-of-type { margin-bottom: 26px; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.about-links a { font-size: 13.5px; font-weight: 700; color: var(--ink-dim); }
.about-links a:hover { color: var(--copper); }

/* ============================================================ COVERAGE */
.coverage .h2 { max-width: 560px; margin: 16px 0 14px; }
.coverage .lede { max-width: 560px; margin-bottom: 40px; }
.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cov-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform var(--t-small) var(--ease-out), border-color var(--t-small) var(--ease-io); }
.cov-card:hover { transform: translateY(-3px); border-color: var(--copper); }
.cov-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cov-country { font-family: var(--display); font-weight: 700; font-size: 17px; }
.cov-status { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--copper); font-weight: 600; }
.cov-logo-groups { display: flex; flex-direction: column; gap: 14px; }
.cov-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cov-logo-item { display: inline-flex; align-items: center; gap: 8px; }
.cov-logo-label { font-size: 11px; color: var(--ink-faint); }
/* Regional/product-line marks read as one family: smaller, tucked under a label,
   inside the same country row instead of a separate block further down the page. */
.cov-secondary { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.cov-secondary-label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.cov-logos-sm { gap: 14px; }
/* Full brand color always (not dimmed/grayscale — these logos ARE the coverage proof); a
   small lift on hover instead of a scale zoom, which reads as an artifact on a flat mark. */
.op-logo { height: 26px; width: auto; max-width: 76px; object-fit: contain; transition: transform var(--t-micro) var(--ease-out); }
.op-logo:hover { transform: translateY(-2px); }
.op-logo-raster { height: 28px; }
.op-logo-sm { height: 18px; }
.cov-stats { display: flex; gap: 48px; margin-top: 36px; }
.cov-stats .n { font-size: 26px; font-weight: 600; color: var(--ink); }
.cov-stats .l { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }

.board-teaser { position: relative; margin-top: 44px; display: flex; align-items: center; gap: 22px; padding: 18px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); max-width: 780px; transition: transform var(--t-small) var(--ease-out), border-color var(--t-small) var(--ease-io); }
.board-teaser::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; box-shadow: 0 8px 20px -12px rgba(181,106,58,.3); opacity: 0; transition: opacity var(--t-small) var(--ease-out); }
.board-teaser:hover { transform: translateY(-2px); border-color: var(--copper); }
.board-teaser:hover::after { opacity: 1; }
.board-example { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; font-family: var(--nunito); flex: none; width: 320px; }
.be-time { font-weight: 900; font-size: 17px; color: var(--ink); }
.be-status { display: flex; align-items: center; gap: 5px; font-family: var(--body); font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; margin-top: 2px; }
.be-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.be-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.be-meta .op-logo-sm { height: 16px; }
.be-route { font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.be-platform { background: var(--platform); color: #16110C; font-weight: 900; font-size: 13px; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.board-teaser-text { font-size: 14px; color: var(--ink-dim); }
.board-teaser-text b { color: var(--copper); font-weight: 700; }

/* ============================================================ FEATURES — 3 hero cards + 3 grouped lists, no screenshots */
.features .h2 { max-width: 560px; margin: 16px 0 40px; }

/* Bento, not 3 equal cards: the flagship "live map" feature spans both rows on the left,
   the other two stack on the right. Map card gets a tinted background (bento cells need
   real visual variation, not 3 identical white panels). */
.feat-hero-row { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.feat-hero { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform var(--t-small) var(--ease-out), border-color var(--t-small) var(--ease-io); }
.feat-hero:hover { transform: translateY(-3px); border-color: var(--copper); }
.feat-hero-map { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(155deg, var(--copper-soft), var(--panel) 60%); }
.feat-hero-icon { width: 26px; height: 26px; color: var(--copper); margin-bottom: 14px; }
.feat-hero h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.feat-hero p { font-size: 14px; line-height: 1.6; color: var(--ink-dim); margin-bottom: 14px; }

.feat-groups { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feat-group { padding: 22px 24px; border-left: 1px solid var(--line); }
.feat-group:first-child { border-left: none; }
.feat-group-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.feat-list { list-style: none; margin: 12px 0 0; padding: 0; }
.feat-row { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.feat-row:first-child { border-top: none; padding-top: 0; }
.feat-dot { flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--copper); }
.feat-row-body { flex: 1; min-width: 0; }
.feat-row-body h4 { font-family: var(--display); font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.feat-row-body p { font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.feat-row .feature-tag { flex: none; align-self: flex-start; margin-top: 2px; }

.feature-tag { display: inline-block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--copper); font-weight: 600; }


/* ============================================================ FAQ — native <details>, no JS needed */
.faq .h2 { margin: 16px 0 32px; }
.faq-list { max-width: 720px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-family: var(--display); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 20px; color: var(--copper); transition: transform var(--t-micro) var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 22px; max-width: 62ch; font-size: 15px; line-height: 1.6; color: var(--ink-dim); }


/* ============================================================ FINAL CTA */
.finalcta-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.finalcta .h2 { margin: 0 0 12px; }
.finalcta .lede { margin: 0 auto 30px; }
.cta-row { display: flex; justify-content: center; margin-bottom: 26px; }
.capture-row { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.capture-row input { flex: 1; height: 50px; border-radius: 10px; border: 1px solid var(--line); padding: 0 16px; font-family: var(--body); font-size: 14px; background: var(--panel); }
.capture-row input:focus-visible { outline: 2px solid var(--copper); outline-offset: 1px; }
.capture-ok, .capture-err { display: none; align-items: center; gap: 8px; justify-content: center; font-size: 14px; margin-top: 12px; }
.capture-ok.show, .capture-err.show { display: flex; }
.capture-ok { color: var(--green); }
.capture-err { color: var(--red); }

/* ============================================================ FOOTER */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.brand .word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand .word b { color: var(--copper); }
.f-tag { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; max-width: 320px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-dim); }
.footer ul a:hover { color: var(--copper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 100px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .about-in { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { position: static; width: 100%; max-width: 320px; margin: 0 auto; }
  .feat-hero-row { grid-template-columns: 1fr; grid-template-rows: none; }
  .feat-hero-map { grid-row: auto; }
  .feat-groups { grid-template-columns: 1fr; }
  .feat-group { border-left: none; border-top: 1px solid var(--line); }
  .feat-group:first-child { border-top: none; }
  .cov-grid { grid-template-columns: 1fr; }
  .board-teaser { flex-direction: column; align-items: flex-start; }
  .board-example { width: 100%; }
  .cov-stats { gap: 28px; flex-wrap: wrap; }
  .cov-stats .n { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* .btn keeps white-space:nowrap (it's a short label everywhere else it's used), so
     "Keep me posted" can't shrink below its text width — on a narrow phone that pushed
     the row past the viewport instead of wrapping (body's overflow-x:clip hid it from
     a naive scroll-width check; caught by screenshotting the actual render). Stack. */
  .capture-row { flex-direction: column; }
  .capture-row .btn { width: 100%; }
}
