/* Pola AI site, brand v4. Phone first: the phone layout is the default, the desktop layout from 768px.
   Ported from the board source (boards-src/gen.py BASE_CSS, PHONE_CSS, DESK_CSS).
   Rules:
   - "Amber is never text on light: text uses --accent; the focus ring is ink in light, amber in dark."
   - "Light is designed, not inverted." Both themes on every page.
   - "One filled (amber) button per view"; the hero's second action is an outline button.
   - "No coloured glow shadows: elevation is a neutral shadow or a 1 px ring."
   - "Sentence case everywhere, buttons too. No uppercase labels, no exclamation marks."
   - "Headings never skip a level: h1, then h2, then h3." */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/fonts/figtree-400.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/fonts/figtree-600.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/fonts/figtree-700.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(/fonts/figtree-800.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800.woff2) format('woff2'); }

/* ---------------------------------------------------------------- tokens (spec §0.1) */
:root {
  color-scheme: light;
  --bg: #F6F5F2; --elev: #FFFFFF; --elev2: #EBE9E4; --text: #0E0E10; --muted: #55555E; --tert: #9A9AA2;
  --accent: #8A4800; --fill: #F5A623; --ink: #0E0E10; --asoft: #FDEFD7;
  --border: rgba(0,0,0,.09); --border2: rgba(0,0,0,.16); --nav: rgba(246,245,242,.92); --focus: #0E0E10;
  --bad: #A8231B; --badsoft: #FBE9E7; --good: #17703F; --goodsoft: #E4F2E8;
  --mark: #B86E00; --arena: #0F6B66; --arenasoft: #DDF0EC; --tacti: #1D5FB8;
  --floodring: transparent; --miniring: rgba(0,0,0,.10); --glow: rgba(245,166,35,.30);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0B0D; --elev: #161619; --elev2: #222227; --text: #F8F7F4; --muted: #A8A8B3; --tert: #6E6E78;
    --accent: #F5A623; --fill: #F5A623; --ink: #0B0B0D; --asoft: #3A2D1B;
    --border: rgba(255,255,255,.09); --border2: rgba(255,255,255,.16); --nav: rgba(11,11,13,.92); --focus: #F5A623;
    --bad: #FF7B70; --badsoft: #3A1B19; --good: #4ADE8B; --goodsoft: #12301F;
    --mark: #F5A623; --arena: #3FD0C4; --arenasoft: #0E2B28; --tacti: #6AAEFF;
    --floodring: rgba(255,255,255,.14); --miniring: rgba(255,255,255,.16); --glow: rgba(245,166,35,.34);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0D; --elev: #161619; --elev2: #222227; --text: #F8F7F4; --muted: #A8A8B3; --tert: #6E6E78;
  --accent: #F5A623; --fill: #F5A623; --ink: #0B0B0D; --asoft: #3A2D1B;
  --border: rgba(255,255,255,.09); --border2: rgba(255,255,255,.16); --nav: rgba(11,11,13,.92); --focus: #F5A623;
  --bad: #FF7B70; --badsoft: #3A1B19; --good: #4ADE8B; --goodsoft: #12301F;
  --mark: #F5A623; --arena: #3FD0C4; --arenasoft: #0E2B28; --tacti: #6AAEFF;
  --floodring: rgba(255,255,255,.14); --miniring: rgba(255,255,255,.16); --glow: rgba(245,166,35,.34);
}
/* Page accent (spec §0.1): Arena's page takes teal for links, the current nav item, picture panels, selection and
   the hero glow. "Buttons stay amber on every page; a product's accent colours its links, selection, pictures and
   glow, never a button." (--fill is not touched.) */
body.page-arena { --accent: var(--arena); --asoft: var(--arenasoft); --glow: rgba(46,196,182,.30); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.page-arena { --glow: rgba(63,208,196,.30); }
}
:root[data-theme="dark"] body.page-arena { --glow: rgba(63,208,196,.30); }
:root[data-theme="light"] body.page-arena { --glow: rgba(46,196,182,.30); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over a component's display (the venue name field, the phone menu). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* Every link, button and field shows a 2 px --focus ring at 2 px offset (spec §8). */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
h1 { font-size: 38px; line-height: 1.05; }
h2 { font-size: 28px; line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; }
.muted { color: var(--muted); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: 'Barlow Condensed', Figtree, sans-serif; font-variant-numeric: tabular-nums; }
/* "Numerals in Barlow Condensed (.n), words in Figtree" */
.n { font-family: 'Barlow Condensed', Figtree, sans-serif; font-variant-numeric: tabular-nums; font-size: 1.14em; font-weight: 700; letter-spacing: .01em; }
.measure { max-width: 32em; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------------- layout */
.wrap { margin: 0 auto; width: 100%; max-width: 1180px; padding-inline: 16px; }
.sec { padding-top: 56px; padding-bottom: 56px; }
.page-top { padding-top: 40px; }
.sec-end { padding-bottom: 56px; }
.col820 { max-width: 820px; }
.stack24 { display: flex; flex-direction: column; gap: 24px; }
.grid2, .grid3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.sub { font-size: 18px; line-height: 1.5; }
.btns { display: flex; gap: 12px; flex-direction: column; }

/* ---------------------------------------------------------------- lockups */
.lk { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.lk-name { font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.lk-by { font-weight: 600; color: var(--muted); line-height: 1; margin-left: -2px; align-self: center; }

/* ---------------------------------------------------------------- top bar (spec §0.4) */
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav a.lk { min-height: 44px; text-decoration: none; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { background: var(--elev2); }
.nav-links a[aria-current=page] { color: var(--accent); background: var(--asoft); }
.menu-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; background: var(--elev2); color: var(--text); border: 0;
  font: inherit; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.menu-btn svg[hidden] { display: none; }
/* The phone menu: a full-width list under the bar (boards "menu · phone open"). */
.menu { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 19; overflow-y: auto; background: var(--bg); padding-top: 8px; padding-bottom: 32px; }
.menu[hidden] { display: none; }
.menu-row { display: flex; align-items: center; min-height: 56px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.menu-row[aria-current=page] { color: var(--accent); }
.menu-btns { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.menu-mail { margin-top: 20px; font-size: 16px; }

/* ---------------------------------------------------------------- buttons, cards (spec §0.6) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-family: inherit; font-size: 17px; font-weight: 700; text-decoration: none !important; border: 0; cursor: pointer; white-space: nowrap; width: 100%; }
.btns-inline .btn { width: auto; }
/* "One filled (amber) button per view": .btn-fill is the only amber surface a view gets. */
.btn-fill { background: var(--fill); color: var(--ink) !important; }
.btn-line { background: transparent; color: var(--text) !important; box-shadow: inset 0 0 0 1.5px var(--border2); }
.btn-flood { background: transparent; color: #F8F7F4 !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); }
.btn[disabled] { opacity: .6; cursor: default; }
.card { background: var(--elev); border-radius: 16px; box-shadow: 0 0 0 .5px var(--border2), 0 1px 2px rgba(0,0,0,.04); }
.soon { white-space: nowrap; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--elev2); color: var(--muted); }
.arrow { font-weight: 700; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }

/* The floodlit card: #121215 in both themes, a neutral 1 px ring (no coloured shadow), the glow top right. */
.flood { background: #121215; color: #F8F7F4; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--floodring); }
.flood::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 88% -6%, var(--glow), transparent 58%); pointer-events: none; }
.flood > * { position: relative; }
.flood .muted { color: #B7B7C1; }
.flood .mini .muted { color: var(--muted); }

/* ---------------------------------------------------------------- pictures (spec §0.6) */
.mini { background: var(--elev); border-radius: 12px; box-shadow: 0 0 0 1px var(--miniring), 0 6px 20px rgba(0,0,0,.10); padding: 12px 14px; font-size: 14px; text-align: left; color: var(--text); }
.mini b { font-weight: 700; }
/* inline-block, not flex: flex drops the spaces round a .n numeral ("Fri10Oct"). */
.pill { display: inline-block; height: 22px; line-height: 22px; white-space: nowrap; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.good { background: var(--goodsoft); color: var(--good); }
.pill.acc { background: var(--asoft); color: var(--accent); }
.pic { border-radius: 18px; background: var(--asoft); display: flex; align-items: center; justify-content: center; padding: 28px 20px; }
.pic.plain { background: var(--elev2); }
.step { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.tlist { display: grid; gap: 0 24px; border-top: 1px solid var(--border); }
.tlist article { padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.tlist h3 { font-size: 18px; }

/* ---------------------------------------------------------------- FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--tert); flex: none; font-weight: 400; font-size: 22px; line-height: 1; }
.faq summary .chev::before { content: "+"; }
.faq details[open] summary .chev::before { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 32em; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 16px; padding: 0; }
.input { width: 100%; min-height: 48px; border-radius: 12px; background: var(--elev); border: 0; box-shadow: inset 0 0 0 1px var(--border2); padding: 12px 14px; font: inherit; font-size: 17px; color: var(--text); }
textarea.input { min-height: 140px; resize: vertical; }
.input.err { box-shadow: inset 0 0 0 1.5px var(--bad); }
.errtxt { color: var(--bad); font-size: 15px; font-weight: 600; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border2); background: var(--elev); font-weight: 600; }
.radio.on { background: var(--asoft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border2); flex: none; background: var(--elev); }
.radio.on .dot { box-shadow: inset 0 0 0 6px var(--accent); }
.banner { border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 16px; }
.banner.bad { background: var(--badsoft); color: var(--bad); }

/* ---------------------------------------------------------------- legal, table */
.legal h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text); max-width: 32em; }
.legal p + p { margin-top: 12px; }
.legal ul + p, .legal ul + h2 { margin-top: 16px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal b { font-weight: 700; }
.side a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; }
.side a[aria-current=page] { background: var(--asoft); color: var(--accent); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--border); }
.tbl th { font-size: 14px; color: var(--muted); font-weight: 700; }
.tbl td:first-child { font-weight: 800; white-space: nowrap; }
.legal-row { display: block; }
.legal-row .side { display: none; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
/* Links inside paragraphs get a 44 px hit area on phone without changing the line height. */
.legal p a, .legal li a, .faq p a { padding-block: 12px; }

/* ---------------------------------------------------------------- about */
.about-card { padding: 4px 20px; }
.about-card dl { margin: 0; }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.dl-row dt { font-weight: 700; font-size: 15px; }
.dl-row dd { margin: 0; }
.dl-row .tap { margin: -10px 0; }

/* ---------------------------------------------------------------- footer (spec §0.5) */
.foot { border-top: 1px solid var(--border); background: var(--elev); }
.foot-in { padding-top: 40px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.foot-grid > :first-child { grid-column: 1 / -1; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand p { font-size: 16px; }
/* Column labels are h2 (they follow the page's h1/h2), styled small. */
.foot h2 { margin: 0 0 6px; font-size: 14px; line-height: 1.4; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.foot li a { color: var(--text); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; font-size: 16px; }
.foot li a:hover { text-decoration: underline; }
.foot-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.legalline { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------- contact (spec §6) */
/* Phone: heading, form, then what happens next. Desktop: heading and next on the left, the form on the right. */
.contact-grid { grid-template-areas: "head" "form" "next"; }
.contact-head { grid-area: head; display: flex; flex-direction: column; gap: 12px; }
.contact-form { grid-area: form; }
.contact-next { grid-area: next; margin-top: 8px; display: flex; flex-direction: column; gap: 28px; }
.stack14 { display: flex; flex-direction: column; gap: 14px; }
.h2-22 { font-size: 22px; line-height: 1.25; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n { font-size: 28px; font-weight: 800; line-height: 1; color: var(--accent); min-width: 16px; }
.contact-co { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.co-name { font-weight: 700; }
.form-card { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.form-card[hidden] { display: none; }
.kinds { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.kinds legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 8px; }
.radio { cursor: pointer; }
.radio:has(input:checked) { background: var(--asoft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.radio:has(input:checked) .dot { box-shadow: inset 0 0 0 6px var(--accent); }
.radio:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio:has(input:disabled) { opacity: .6; cursor: default; }
.opt { font-weight: 500; }
.small { font-size: 14px; }
.input:disabled { opacity: .6; }
.sent-card { padding: 28px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sent-card .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--goodsoft); color: var(--good); display: flex; align-items: center; justify-content: center; }
.sent-h { font-size: 26px; }
.sent-h:focus { outline: none; }
.sent-h:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sent-next { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 6px; display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
@media (min-width: 768px) {
  .form-row.contact-grid { grid-template-areas: "head form" "next form"; grid-template-rows: auto 1fr; gap: 40px 64px; }
  .contact-head h1 { font-size: 52px; }
  .contact-next { margin-top: 0; align-self: start; }
  .form-card { padding: 36px; }
  .sent-card { padding: 48px; }
  .sent-h { font-size: 30px; }
}

/* ---------------------------------------------------------------- picture fitting (public/js/fit.js) */
.fit { position: relative; width: 100%; margin-inline: auto; }
.fit-in { transform-origin: top left; }
.fit-fixed .fit-in { position: absolute; top: 0; left: 0; }

/* ---------------------------------------------------------------- home (spec §1) */
.home-hero { padding-top: 20px; }
.hero-card { border-radius: 20px; padding: 36px 20px 28px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.h1-hero { font-size: 46px; line-height: 1; }
.proof { display: flex; justify-content: center; }
.loop-step { display: flex; flex-direction: column; gap: 16px; }
.loop-pic { height: 190px; }
.step-row { display: flex; gap: 14px; align-items: flex-start; }
.step-row p { font-size: 18px; font-weight: 600; padding-top: 6px; }
.aud-card { display: flex; flex-direction: column; }
.aud-card h3 { font-weight: 800; letter-spacing: -0.02em; }
.aud-lk { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 10px; }
/* Round 5, weighted (spec §1 table): venues and players large, Tacticore and investors small. lockup() writes
   inline sizes, hence !important. The small lockup is 22 px on phone so "Tacticore by Pola AI" and "Coming soon"
   share a line at 360. */
.aud-lg { padding: 28px 24px; gap: 16px; }
.aud-lg h3 { font-size: 28px; }
.aud-lg p { font-size: 17px; }
.aud-lg .aud-lk .lk svg { width: 28px; height: 28px; }
.aud-lg .aud-lk .lk-name { font-size: 20px !important; }
.aud-lg .aud-lk .lk-by { font-size: 14px !important; }
.aud-sm { padding: 20px; gap: 10px; }
.aud-sm h3 { font-size: 19px; }
.aud-sm p { font-size: 16px; }
.aud-sm .arrow { font-size: 16px; }
.aud-sm .aud-lk .lk svg { width: 22px; height: 22px; }
.aud-sm .aud-lk .lk-name { font-size: 16px !important; }
.aud-sm .aud-lk .lk > svg + .lk-name:last-child { font-size: 17px !important; }
.aud-sm .aud-lk .lk-by { font-size: 11px !important; }
.aud-more { margin-top: 16px; }
.aud-soon { height: 24px; padding: 0 9px; font-size: 12px; flex: none; }
.close-card { padding: 28px 20px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
  .home-hero { padding-top: 32px; }
  .hero-card { border-radius: 28px; padding: 72px 64px; }
  .h1-hero { font-size: 84px; }
  .loop-pic { height: 200px; }
  .aud-lg { padding: 44px 40px; }
  .aud-lg h3 { font-size: 36px; }
  .aud-lg p { font-size: 19px; }
  .aud-lg .aud-lk .lk svg { width: 36px; height: 36px; }
  .aud-lg .aud-lk .lk-name { font-size: 26px !important; }
  .aud-lg .aud-lk .lk-by { font-size: 18px !important; }
  .aud-sm { padding: 24px 28px; }
  .aud-sm h3 { font-size: 21px; }
  .aud-sm .aud-lk .lk svg { width: 24px; height: 24px; }
  .aud-sm .aud-lk .lk-name { font-size: 17px !important; }
  .aud-sm .aud-lk .lk > svg + .lk-name:last-child { font-size: 19px !important; }
  .aud-sm .aud-lk .lk-by { font-size: 12px !important; }
  .aud-more { margin-top: 24px; }
  .close-card { padding: 48px 56px; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
}
/* Two hero columns only where the 420 px proof fits beside the words; between 768 and 1023 it stacks. */
@media (min-width: 768px) and (max-width: 1023px) {
  .home-hero .hero-row { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .home-hero .proof { justify-content: flex-end; }
  .home-hero .proof .fit { flex: none; width: 420px; }
}

/* ---------------------------------------------------------------- product pages (spec §2, §3) */
.prod-hero { padding-top: 40px; padding-bottom: 40px; }
.hero-flood { border-radius: 24px; padding: 24px 12px; display: flex; justify-content: center; }
.feats { padding-bottom: 48px; }
.feat-grid { row-gap: 36px; }
.feat { display: flex; flex-direction: column; gap: 14px; }
.tlist { margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
.start-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.start-card h2 { font-size: 26px; }
.strong { font-weight: 600; }
.faq-h { margin-bottom: 16px; }
@media (min-width: 768px) {
  .prod-hero { padding-top: 80px; padding-bottom: 72px; }
  .hero-flood { padding: 40px 16px; }
  .feats { padding-bottom: 88px; }
  .grid2.feat-grid { row-gap: 56px; }
  .feat-pic { min-height: 300px; }
  .tlist { margin-top: 56px; }
  .tlist-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tlist-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .start-card { padding: 36px; }
  .start-card h2 { font-size: 30px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .prod-hero .hero-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- Jadi (spec §3) */
.jadi-flood { padding: 24px 16px; }
.a2hs { margin: auto; width: calc(100% - 32px); max-width: 420px; padding: 24px; border: 0; color: var(--text); background: var(--elev);
  flex-direction: column; gap: 12px; }
.a2hs:popover-open { display: flex; }
.a2hs h2 { font-size: 22px; line-height: 1.25; }
.a2hs::backdrop { background: rgba(0,0,0,.45); }
.flood-close { border-radius: 20px; padding: 32px 20px; display: flex; flex-direction: column; gap: 20px; }
.flood-close-text { display: flex; flex-direction: column; gap: 12px; max-width: 32em; }
.flood a.on-flood { color: #F5A623; }
@media (min-width: 768px) {
  .jadi-flood { padding: 36px; }
  .flood-close { border-radius: 28px; padding: 56px 64px; flex-direction: row; justify-content: space-between; align-items: center; gap: 40px; }
  .flood-close .btn { flex: none; }
}

/* ---------------------------------------------------------------- pricing (spec §4) */
.pricing-sec { padding-bottom: 48px; }
.pricing-h1 { margin-bottom: 24px; }
.price-table { padding: 8px 16px; max-width: 980px; }
.price-table .c-prod { width: 250px; }
.price-table .c-who { width: 190px; }
.price-table .c-price { max-width: 34em; }
.price-cards { display: flex; flex-direction: column; gap: 12px; }
.price-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.price-card h3 { font-size: 20px; }
.price-card .who { font-size: 15px; font-weight: 600; }
.price-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.price-act .btn { width: auto; }
.stack16 { display: flex; flex-direction: column; gap: 16px; }
/* Questions: small muted group headings, 24 px above the first, 40 above the rest, 4 below. */
.faq-group { color: var(--muted); font-size: 16px; line-height: 1.4; margin: 40px 0 4px; }
.faq-group.first { margin-top: 24px; }
@media (min-width: 768px) {
  .pricing-sec { padding-bottom: 80px; }
  .pricing-h1 { margin-bottom: 40px; }
  .faq-group { font-size: 16px; }
}

/* ---------------------------------------------------------------- policies (spec §7) */
.legal-sec { padding-top: 28px; padding-bottom: 56px; }
.legal h1 { font-size: 32px; margin-bottom: 12px; }
.legal .legal-note { font-size: 16px; color: var(--muted); }
.legal .updated { font-size: 15px; margin-top: 8px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; }
/* Phone: the pills scroll sideways inside their own box, never the page; the row bleeds to the right edge and
   fades there so the cut pill reads as "more". */
.pills { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px 0; padding: 0 48px 4px 0; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.pills::-webkit-scrollbar { display: none; }
.pills a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  text-decoration: none; background: var(--elev2); color: var(--text); }
.pills a[aria-current=page] { background: var(--asoft); color: var(--accent); }
@media (min-width: 768px) {
  .legal-sec { padding-top: 72px; padding-bottom: 96px; }
  .legal h1 { font-size: 48px; }
}

.only-desk { display: none !important; }

/* ================================================================ desktop */
@media (min-width: 768px) {
  .wrap { padding-inline: 40px; }
  h1 { font-size: 64px; line-height: 1.02; }
  h2 { font-size: 40px; line-height: 1.08; }
  h3 { font-size: 21px; line-height: 1.25; }
  .sec { padding-top: 96px; padding-bottom: 96px; }
  .page-top { padding-top: 80px; }
  .sec-end { padding-bottom: 96px; }
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .hero-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
  .sub { font-size: 20px; line-height: 1.5; max-width: 40ch; }
  .btns { flex-direction: row; flex-wrap: wrap; }
  .btn { width: auto; }
  .nav-links { display: flex; }
  .menu-btn, .menu { display: none !important; }
  .foot-in { padding-top: 56px; padding-bottom: 40px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .foot-grid > :first-child { grid-column: auto; }
  .legal-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
  .legal-row .side { display: block; }
  .form-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  .legal p a, .legal li a, .faq p a { padding-block: 0; }
  .about-card { padding: 8px 32px; }
  .dl-row { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
  .only-desk { display: revert !important; }
  .only-phone { display: none !important; }
}
