/* SlotScout pages: warm paper, near-black ink, one green accent, flat panels with a 1 px line. */
:root {
  --bg: #fbfbf9;
  --card-bg: #ffffff;
  --rail-bg: #f5f5f0;
  --fg: #1d1d1b;
  --muted: #5c5c57;
  --line: #dcdcd4;
  --accent: #1f6f5c;
  --accent-fg: #ffffff;
  --code: #efefe9;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121412;
    --card-bg: #1a1d1b;
    --rail-bg: #171a18;
    --fg: #ecebe6;
    --muted: #a9a8a0;
    --line: #2d322f;
    --accent: #5fb39c;
    --accent-fg: #0d1210;
    --code: #222724;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.65 var(--sans); overflow-x: hidden; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
code { font-family: var(--mono); font-size: 0.875em; background: var(--code); border-radius: 4px; padding: 1px 4px; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }
.wrap.narrow { max-width: 64rem; }
.wrap.narrow > * { max-width: 44rem; }

/* Top bar: brand, sections, one action. On a phone the sections hide, never wrap. */
.bar { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar .wrap { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; }
.nav { display: flex; gap: 16px; margin-left: auto; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav { display: none; } .bar .btn { margin-left: auto; } }

.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.display { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 40rem; }
h2 { font-size: 1.375rem; font-weight: 620; letter-spacing: -0.01em; line-height: 1.25; }
h3 { font-size: 1rem; font-weight: 620; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 8px; border: 1px solid var(--accent); font: 600 0.9375rem/1 var(--sans); text-decoration: none;
  white-space: nowrap; cursor: pointer; background: transparent; color: var(--accent);
}
.btn-solid { background: var(--accent); color: var(--accent-fg); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

section { padding: 64px 0 0; }
section > .wrap > * + * { margin-top: 16px; }
section h2 + * { margin-top: 16px; }

/* Hero: the promise on the left, the scan form on the right; stacked on a phone. */
.hero { padding-top: 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.hero-copy > * + * { margin-top: 24px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 24px; } }

.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.card > * + * { margin-top: 16px; }
.field { display: grid; gap: 4px; }
.field label, .field summary { font-weight: 600; font-size: 0.9375rem; }
.field .hint { color: var(--muted); font-size: 0.8125rem; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
}
textarea { min-height: 96px; font-family: var(--mono); font-size: 0.875rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
details summary { cursor: pointer; color: var(--accent); }
details[open] summary { margin-bottom: 8px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { color: var(--muted); font-size: 0.875rem; min-height: 1.4em; }
.status.error { color: var(--fg); }

/* Headline figures: 4 numbers a reader can repeat, each with its range and its source. */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .figures { grid-template-columns: 1fr; } }
.figure { background: var(--rail-bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.figure .value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.figure .what { margin-top: 8px; font-size: 0.9375rem; }
.figure .src { margin-top: 8px; font-size: 0.75rem; color: var(--muted); }

.headline { font-size: 1.125rem; font-weight: 560; max-width: 48rem; }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
/* A row label reads as body text; only column heads take the small label style. */
tbody th { font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg); white-space: normal; }
td.nowrap { white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.best td { font-weight: 650; }
/* On a phone a wide table becomes one card per row: the first cell is the title, the rest are labelled lines. */
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; padding: 4px 0; border: 0; text-align: right; white-space: normal; }
  table.stack td::before { content: attr(data-label); float: left; margin-right: 16px; color: var(--muted); font-size: 0.875rem; }
  table.stack td:first-child { text-align: left; padding-bottom: 8px; }
  table.stack td:first-child::before { content: none; }
}
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

ol.steps { padding-left: 24px; }
ol.steps li + li { margin-top: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.price { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 0.9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 20px; }
.plan ul li + li { margin-top: 4px; }
.plan-main { border-color: var(--accent); }

.note { background: var(--card-bg); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.note > * + * { margin-top: 8px; }
.note .label { display: block; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { padding: 8px 12px; font-size: 0.875rem; overflow-wrap: anywhere; }

dl.sources { display: grid; grid-template-columns: 12rem 1fr; gap: 8px 24px; font-size: 0.9375rem; }
dl.sources dt { font-weight: 600; }
@media (max-width: 640px) { dl.sources { grid-template-columns: 1fr; gap: 4px; } dl.sources dd { margin-bottom: 8px; } }

.foot { margin-top: 64px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot .wrap > * + * { margin-top: 8px; }

[hidden] { display: none !important; }

@media print {
  .bar, .no-print, .foot nav { display: none !important; }
  body { background: #fff; color: #000; }
  section { padding-top: 24px; }
}
