/* generated from src/web/styles.css: edit the tokens there */
:root {
  --primary: #0b4f9e; --on-primary: #ffffff; --primary-container: #d6e4fb; --on-primary-container: #0a2f63;
  --secondary-container: #dfe5f1; --on-secondary-container: #14213d;
  --tertiary: #0b5f56; --on-tertiary: #ffffff; --tertiary-container: #d2efe7; --on-tertiary-container: #003d36;
  --attention: #8a5a00; --attention-container: #fff6e0; --on-attention-container: #3d2900; --lamp: #d4a84a;
  --error: #8b1a1a; --error-container: #fde4e1; --on-error-container: #5c0f0f;
  --surface-container-low: #f4f7fc; --surface-container: #eef2f9; --surface-container-high: #e6ebf4; --surface-container-highest: #dde3ee;
  --on-surface: #14213d; --on-surface-variant: #44506a; --outline: #6b7690; --outline-variant: #c5ccda;
  --stage: #14213d; --stage-high: #1f3058; --on-stage: #f2f5fb; --on-stage-variant: #b9c4dc; --stage-primary: #a9c7ff; --on-stage-primary: #062a5c; --stage-edge: #14213d;
  --inverse-surface: #14213d; --inverse-on-surface: #eef2fa;
  /* older names, kept for the website (site/build.ts copies this block) and the server pages; the M3 surface role is --bg */
  --fg: #14213d; --bg: #ffffff; --surface: #f4f7fc; --accent: #0b4f9e; --accent-fg: #ffffff; --hover: #e6eefb;
  --line: #6b7690; --muted: #44506a; --ok: #0a5c2e; --warn: #8b3a00; --risk: #8b1a1a; --focus: #b45309; --note-bg: #fff6e0; --note-line: #8a5a00; --own: #0b5f56; --own-bg: #e3f3ef; --radius: .5rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --primary: #a9c7ff; --on-primary: #062a5c; --primary-container: #1d4d8f; --on-primary-container: #dce8ff;
    --secondary-container: #2b3650; --on-secondary-container: #dbe3f7;
    --tertiary: #7fd6c0; --on-tertiary: #00382f; --tertiary-container: #12423b; --on-tertiary-container: #c4f2e5;
    --attention: #e6bd63; --attention-container: #2b2412; --on-attention-container: #ffe6b0;
    --error: #ffb4ab; --error-container: #5c1414; --on-error-container: #ffdad6;
    --surface-container-low: #161c28; --surface-container: #1a2130; --surface-container-high: #232b3c; --surface-container-highest: #2d3648;
    --on-surface: #e8ecf4; --on-surface-variant: #b6bfd1; --outline: #8a94a8; --outline-variant: #3c4659;
    --stage: #1a2a4d; --stage-high: #25386a; --stage-edge: #3c4659; --inverse-surface: #e8ecf4; --inverse-on-surface: #14213d;
    --fg: #e8ecf4; --bg: #10151f; --surface: #1a2130; --accent: #a9c7ff; --accent-fg: #062a5c; --hover: #232d42; --line: #8a94a8; --muted: #b6bfd1; --ok: #7fd6a0; --warn: #ffb36b; --risk: #ffb4ab; --focus: #ffb35c; --note-bg: #2b2412; --note-line: #e6bd63; --own: #7fd6c0; --own-bg: #12302c; }
}
/* closecalls.se. Colour tokens come first, from the game (tokens.css). Brand rules: docs/brand/brand-manual.md */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root { --navy: #14213d; --cream: #fff6e0; --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.55 var(--font); color: var(--fg); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: 42rem; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; line-height: 1.2; margin: 2rem 0 .75rem; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin-top: 1.5rem; }
h1.hero-title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
.lead { font-size: 1.25rem; line-height: 1.5; }
.hint { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.skip { position: absolute; left: -999px; top: .5rem; }
.skip:focus { left: .5rem; z-index: 5; background: var(--bg); padding: .6rem .9rem; }

/* header: lockup with the endorsement top-left, languages top-right, then the main menu */
.site-header { border-bottom: 1px solid var(--line); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 96px; width: auto; display: block; } /* "by Fivation" renders at 12px or more */
.langs, .menu, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.langs a, .menu a, .footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.menu { padding-bottom: .25rem; gap: 0 1.25rem; }
.menu a { font-weight: 600; text-decoration: none; }
.menu a:hover, .menu a[aria-current] { text-decoration: underline; }
.langs a[aria-current], .menu a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; color: var(--fg); }
.note { border: 2px solid var(--note-line); background: var(--note-bg); border-radius: var(--radius); padding: .5rem .75rem; margin: 1rem 0 0; }

/* buttons: one primary per screen; labels are verbs in sentence case */
.button { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .55rem 1.1rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--bg); color: var(--accent); font: 600 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--hover); }
.button.primary { background: var(--accent); color: var(--accent-fg); }
.button.primary:hover { filter: brightness(.9); }
.button[disabled] { color: var(--muted); border-color: var(--line); background: var(--surface); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1.5rem 0; }
.actions a:not(.button) { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 600; }

/* hero: text left, framed picture right; picture below on phones; never text over the picture */
.hero { display: grid; gap: 1.5rem; align-items: center; padding: 1rem 0 2rem; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.tagline { font-style: italic; color: var(--muted); margin: 0; }
.frame { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.frame img { display: block; width: 100%; height: auto; }
@media (prefers-color-scheme: dark) { .frame img { filter: brightness(.9); } }

/* cards and sections */
.band { padding: 1rem 0 2rem; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; overflow-wrap: anywhere; }
.band.alt .card { background: var(--bg); }
.card > :last-child { margin-bottom: 0; }
.card .frame { margin: -1.25rem -1.25rem 1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-inline-end: .6rem; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }

/* videos: a thumbnail or a navy "coming" panel; the player only after a click */
.video { margin: 0; }
.video .player { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video .player > a, .video .player img, .video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .player img.mark { width: 3rem; height: 3rem; margin: 1rem; border-radius: 22%; }
@media (prefers-color-scheme: dark) { .video .player img:not(.mark) { filter: brightness(.9); } }
.video figcaption { padding-top: .75rem; }
.video figcaption .row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.video figcaption .row a { min-height: 2.75rem; display: inline-flex; align-items: center; }

/* status: the word always carries the meaning; the border style doubles it */
.status { list-style: none; padding: 0; display: grid; gap: .5rem; }
.status li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: start; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow-wrap: anywhere; }
.status .what { font-weight: 600; }
.status .hint { grid-column: 1 / -1; margin: 0; }
.badge { display: inline-block; padding: .05rem .6rem; border: 2px solid var(--line); border-radius: 1rem; font-size: .875rem; font-weight: 700; white-space: nowrap; color: var(--fg); }
.badge.live { border-color: var(--ok); color: var(--ok); }
.badge.demo { border-color: var(--accent); color: var(--accent); }
.badge.coming { border-style: dashed; color: var(--muted); }
.badge.planned { border-style: dotted; color: var(--muted); }
.stores { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.stores li { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .4rem .9rem; border: 2px dashed var(--line); border-radius: var(--radius); font-weight: 600; }
.stores li.live { border-style: solid; border-color: var(--accent); }

/* form */
form .field { margin: 0 0 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input:not([type=checkbox]), textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); min-height: 2.75rem; padding: .5rem .75rem; border: 2px solid var(--muted); border-radius: var(--radius); }
textarea { min-height: 9rem; resize: vertical; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.5rem; height: 1.5rem; flex: none; margin: .1rem 0 0; }
.hp { display: none; }
.result { font-weight: 600; min-height: 1.5rem; }
.result.ok { color: var(--ok); } .result.err { color: var(--risk); }

/* footer */
.site-footer { margin-top: 0; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer p { margin: .5rem 0; }
.endorse { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card h2 { font-size: 1.5rem; margin: 0 0 .5rem; }
.price { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.plans .card { display: flex; flex-direction: column; }
.plans .card > :last-child { margin-top: auto; }
main { padding-bottom: 3rem; }
main:has(> .band:last-child) { padding-bottom: 0; }
.cards.plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* phones: logo and a menu button on one row (no JavaScript: <details>); the full menu stays on wider screens */
.site-header { position: relative; }
.phone-menu { display: none; }
.phone-menu > summary { list-style: none; display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding: .4rem .9rem; border: 2px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-weight: 600; cursor: pointer; }
.phone-menu > summary::-webkit-details-marker { display: none; }
.phone-menu .panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
.phone-menu .menu { flex-direction: column; }
@media (max-width: 40rem) {
  .desk { display: none !important; }
  .phone-menu { display: block; }
  .logo img { height: 56px; }
  .top { flex-wrap: nowrap; padding: .25rem 0; }
}
.error-summary { border: 2px solid var(--risk); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; }
.error-summary h3 { color: var(--risk); margin: 0 0 .25rem; }
.error-summary p { margin: 0; }
[aria-invalid="true"] { border-color: var(--risk) !important; border-width: 3px !important; }
details.markets { margin: .5rem 0; }
details.markets summary { cursor: pointer; min-height: 2.75rem; display: list-item; padding-block: .6rem; color: var(--accent); font-weight: 600; }
details.markets ul { padding-left: 1.25rem; font-size: .875rem; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.fiction { margin-top: 1.5rem; }
