/* Genscraper · survey-map identity. Map ink + contour teal, survey-flag yellow is the only accent. */
:root {
  --ink: #0F1C21;
  --ink-2: #14262C;
  --ink-3: #1B3139;
  --contour: #2F5864;
  --paper: #E6EDE8;
  --muted: #93A9A6;
  --flag: #F2C230;
  --flag-ink: #241C00;
  --line: rgba(159, 194, 189, 0.16);
  --sans: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--flag); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--flag); color: var(--flag-ink); }
html { scrollbar-color: var(--contour) var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--contour); border-radius: 10px; border: 2px solid var(--ink); }
input, textarea { caret-color: var(--flag); }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
body { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--flag); color: var(--flag-ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }

h1, h2, h3 { font-family: var(--sans); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(38px, min(6.4vw, 8.4svh), 84px); line-height: 0.98; letter-spacing: -0.035em; max-width: 14ch; }
h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.025em; max-width: 20ch; }
.lede { color: var(--muted); max-width: 52ch; margin: 18px 0 0; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font: 600 16px/1 var(--sans); text-decoration: none; transition: background-color .15s, color .15s; }
.btn-flag { background: var(--flag); color: var(--flag-ink); }
.btn-flag:hover { background: #ffd451; }
.btn-line { border: 1px solid var(--line); }
.btn-line:hover { background: rgba(230, 237, 232, 0.06); }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; background: linear-gradient(var(--ink) 30%, transparent); padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.mark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.mark svg { align-self: center; color: var(--muted); }
.mark span { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.mark small { color: var(--muted); font-size: 13px; }
nav { display: flex; align-items: center; gap: 6px; }
nav a:not(.btn) { padding: 10px 12px; text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:not(.btn):hover { color: var(--paper); }
nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 720px) { nav a:not(.btn) { display: none; } .mark small { display: none; } }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: radial-gradient(120% 80% at 70% 30%, #183039 0%, var(--ink) 60%); }
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; padding-bottom: clamp(40px, 8vh, 110px); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { text-shadow: 0 2px 30px rgba(15, 28, 33, 0.8); }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; max-width: 40ch; min-height: 3.2em; }
.steps li { grid-area: 1 / 1; font-size: clamp(17px, 1.6vw, 20px); color: var(--paper); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; text-shadow: 0 1px 16px var(--ink); }
.steps li.on { opacity: 1; transform: none; }
.steps.static { display: block; min-height: 0; }
.steps.static li { margin-top: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.scroll-hint { position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: 28px; z-index: 2; margin: 0; font: 500 14px var(--sans); color: var(--muted); writing-mode: vertical-rl; }
@media (max-width: 720px) { .scroll-hint { display: none; } .hero-copy { padding-bottom: 40px; } }

/* bands */
.band { padding-block: clamp(72px, 11vw, 140px); border-top: 1px solid var(--line); }
.band-dark { background: var(--ink-2); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* score weights: one horizontal bar per factor, width = weight */
.weights { display: grid; gap: 26px; }
.w { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: baseline; }
.w b { font: 500 34px/1 var(--mono); color: var(--flag); font-variant-numeric: tabular-nums; }
.w span { font-weight: 600; font-size: 20px; }
.w p { grid-column: 2; margin: 6px 0 0; color: var(--muted); font-size: 16px; max-width: 46ch; }
.w::after { content: ""; grid-column: 2; height: 4px; margin-top: 12px; width: calc(var(--w) * 1% * 2.4); max-width: 100%; background: linear-gradient(90deg, var(--flag), rgba(242, 194, 48, 0.25)); border-radius: 2px; }

.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.checks div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.checks dt { font-weight: 600; font-size: 20px; }
.checks dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .checks { grid-template-columns: 1fr; } }

.queries { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.queries li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 19px; background: var(--ink-2); }
.queries span { color: var(--paper); font-weight: 600; }

.cta { padding-block: clamp(80px, 12vw, 150px); text-align: left; border-top: 1px solid var(--line); background: radial-gradient(90% 120% at 90% 110%, #183039 0%, var(--ink) 65%); }
.cta h2 { max-width: 16ch; margin-bottom: 32px; font-size: clamp(34px, 4.6vw, 60px); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--ink-2); padding-top: 56px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.foot p { color: var(--muted); font-size: 15px; max-width: 40ch; }
.foot h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.foot-grid a:not(.mark) { display: block; color: var(--muted); font-size: 15px; text-decoration: none; padding: 4px 0; }
.foot-grid a:not(.mark):hover { color: var(--paper); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-base a { text-decoration: none; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .steps li, .btn { transition: none; } }
@media (hover: none) { .btn-flag:hover { background: var(--flag); } }
