/* turve.ee – one stylesheet, no inline styles (CSP style-src 'self'). */

/* ---------- fonts (self-hosted, OFL; see /assets/fonts/OFL.txt) ---------- */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-400-normal.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: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-500-normal.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: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-600-normal.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: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --ink: #0d1b2a;
  --ink-2: #1b2b40;
  --paper: #f6f5f1;
  --paper-2: #edebe4;
  --card: #ffffff;
  --line: #dcd9d0;
  --field-border: #7a8494;
  --text: #0d1b2a;
  --muted: #4f5b6b;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-bright: #2dd4bf;
  --on-accent: #ffffff;
  --pass: #15803d;
  --warn: #b45309;
  --fail: #b91c1c;
  --offer: #dc2626; /* the year-end offer's frame: the only red on the site's pages */
  /* The giveaway (TURVE-014): only the nav tab, the countdown digits and the /loos/ eyebrow. Same in dark mode. */
  --gold: #f2c14e;
  --gold-glow: rgba(242, 193, 78, 0.55);
  --info: #4f5b6b;
  --on-dark: #f6f5f1;
  --on-dark-muted: #c9d3df;
  --grid-line: rgba(45, 212, 191, 0.08);
  --radius: 0.75rem;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1622;
    --paper-2: #0f1d2c;
    --card: #12233a;
    --line: #26384d;
    --field-border: #6b7b90;
    --text: #e8ecf1;
    --muted: #a9b4c2;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --on-accent: #0d1b2a;
    --pass: #4ade80;
    --warn: #fbbf24;
    --fail: #f87171;
    --offer: #f05252;
    --info: #a9b4c2;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scrollbar-gutter: short pages (no scrollbar) don't shift the centred layout sideways. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
/* Text-heavy pages: same left edge as the page head and the wide pages, but lines kept to a readable length. */
.narrow > * { max-width: 43.5rem; }
.muted { color: var(--muted); }
a[href^="tel:"] { white-space: nowrap; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }

.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--card); color: var(--text); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0.5rem; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: baseline; text-decoration: none; color: inherit; font-weight: 600; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1; }
.brand:hover { color: inherit; }
.brand-cursor { display: inline-block; width: 0.5em; height: 0.78em; margin-left: 0.07em; background: var(--accent-bright); transform: translateY(0.06em); }
.brand-small { font-size: 1.35rem; }
.brand-xl { font-size: clamp(3.5rem, 12vw, 7rem); margin-bottom: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .brand-cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; min-height: 4.25rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.site-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
.site-nav ul { display: flex; align-items: baseline; gap: 1.25rem; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
/* Narrow screens: the sideways-scrolling nav clips what sticks out of it. 0.5rem of padding, taken back by the
   negative margin (same layout), leaves room for focus outlines and the giveaway tab's ring. */
@media (max-width: 59.99rem) {
  .site-nav { flex-basis: calc(100% + 1rem); margin: -0.5rem; padding: 0.5rem; }
}
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { border-bottom-color: var(--accent); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.lang-switch { font-size: 0.95rem; color: var(--muted); }
@media (min-width: 60rem) {
  .site-nav { order: 0; flex-basis: auto; overflow: visible; margin-left: 1rem; }
}

/* ---------- buttons ---------- */
.button {
  display: inline-block; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; text-decoration: none; padding: 0.65rem 1.25rem; border-radius: 0.5rem; cursor: pointer; line-height: 1.3;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-strong); }
.button.small { padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .button, .page-head .button, .cta-band .button { --accent: #2dd4bf; --accent-strong: #5eead4; --on-accent: #0d1b2a; }
.button.ghost.on-dark, .cta-band .button.ghost { color: var(--on-dark); border-color: rgba(246, 245, 241, 0.6); }
.button.ghost.on-dark:hover, .cta-band .button.ghost:hover { background: rgba(246, 245, 241, 0.1); color: var(--on-dark); }

/* ---------- dark bands: hero, page head, CTA ---------- */
.hero, .page-head, .cta-band {
  background-color: var(--ink);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--on-dark);
}
.hero a:not(.button), .page-head a:not(.button), .cta-band a:not(.button) { color: var(--accent-bright); }
.hero .lead, .page-head .lead, .cta-band p { color: var(--on-dark-muted); }
.hero-inner { padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 9vw, 6rem); }
.hero h1 { max-width: 18ch; }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .hero-inner { grid-template-columns: 1.15fr 1fr; } }
.terminal { background: #07111c; border: 1px solid rgba(45, 212, 191, 0.25); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.terminal-bar { display: flex; gap: 0.4rem; margin: 0; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(246, 245, 241, 0.08); }
.terminal-bar span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(246, 245, 241, 0.18); }
.terminal pre { margin: 0; padding: 1.1rem 1.25rem 1.4rem; font-family: var(--mono); font-size: 0.92rem; line-height: 1.75; color: var(--on-dark-muted); white-space: pre-wrap; }
.t-prompt { color: var(--accent-bright); }
.t-ok { color: #4ade80; }
.t-bad { color: #f87171; }
.t-warn { color: #fbbf24; }
.t-grade { color: var(--on-dark); font-weight: 500; }
.eyebrow { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 1.25rem; }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 22ch; }
.cta-band { padding: 3.5rem 0; }
.cta-band p { max-width: 40rem; }

.hero-check { margin: 2rem 0 1.25rem; max-width: 34rem; }
.hero-check label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.input-row { display: flex; gap: 0.5rem; }
.input-row input { flex: 1; min-width: 0; }
.hero-check input { background: #fff; color: #0d1b2a; border-color: transparent; }

/* ---------- sections and grids ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.tight { padding: 2.5rem 0; }
.section.alt { background: var(--paper-2); }
.section-lead { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card-grid.two { grid-template-columns: 1fr; gap: 2rem 2.5rem; }
@media (min-width: 48rem) { .card-grid.two { grid-template-columns: 1fr 1fr; } }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.card p { color: var(--muted); flex: 1; }
.card-link { font-weight: 600; text-decoration: none; }
.point { border-left: 3px solid var(--accent); padding-left: 1.1rem; }
.point p { color: var(--muted); margin: 0; }
.split { display: grid; gap: 2rem 3rem; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.2fr 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 500; color: var(--accent); }
.checklist.cross li::before { content: '✕'; color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-weight: 500; color: var(--accent);
  border-top: 2px solid var(--accent); padding-top: 0.75rem; margin-bottom: 0.5rem;
}
.steps p { color: var(--muted); margin: 0; }

.reference { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; max-width: 46rem; }
.definitions { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0; }
.definitions dt { font-weight: 600; font-family: var(--mono); color: var(--accent); }
.definitions dd { margin: 0.25rem 0 0; color: var(--muted); }

.notice { border-left: 4px solid var(--accent); background: var(--card); padding: 0.85rem 1rem; border-radius: 0 0.5rem 0.5rem 0; }
.notice.error { border-left-color: var(--fail); }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---------- packages and pricing ---------- */
.package-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.package { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.package h3 { margin: 0; }
.package-summary { color: var(--muted); margin: 0; flex: 1; }
.package-includes summary { cursor: pointer; font-weight: 500; color: var(--accent); }
.package-includes ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin: 0.75rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); font-family: var(--mono); }
.price-sum { font-weight: 500; font-size: 1.15rem; }
.price-note { flex-basis: 100%; color: var(--muted); font-size: 0.85rem; }
.price-was { flex-basis: 100%; color: var(--muted); font-size: 0.9rem; }
.pick { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; padding-top: 0.5rem; }
.pick label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; cursor: pointer; }
.pick input[type='checkbox'] { width: 1.3rem; height: 1.3rem; accent-color: var(--accent); }
.pick-qty input { width: 4.5rem; padding: 0.35rem 0.5rem; }
.package.offer { border: 2px solid var(--offer); padding: calc(1.5rem - 1px); }
.offer-status { font-family: var(--mono); color: var(--accent); margin: 0.25rem 0 0; }
.offer-status.closed { color: var(--muted); }
.offer-band { background: var(--paper-2); }
.offer-band .eyebrow { color: var(--accent); }
.offer-band .offer-status { margin-bottom: 1.25rem; }

.package.selected { border: 2px solid var(--accent); padding: calc(1.5rem - 1px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.package.offer.selected { border-color: var(--offer); }

.rates { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.rates li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; gap: 1.5rem; align-items: baseline; }
.rates strong { font-family: var(--mono); font-weight: 500; font-size: 1.25rem; }

.estimator-summary { position: sticky; bottom: 0; z-index: 40; background: var(--ink); color: var(--on-dark); padding: 1rem 0; box-shadow: 0 -8px 24px rgba(13, 27, 42, 0.25); }
.estimator-summary h2 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.summary-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.summary-totals { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-family: var(--mono); margin: 0; }
.summary-totals strong { color: var(--accent); font-weight: 500; }
.summary-note { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }
.estimator-summary .summary-totals strong { color: var(--accent-bright); }
.estimator-summary .summary-note { color: var(--on-dark-muted); }
.summary-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.estimator-summary .button { --accent: #2dd4bf; --accent-strong: #5eead4; --on-accent: #0d1b2a; }
.estimator-summary .button.ghost { color: var(--on-dark); border-color: rgba(246, 245, 241, 0.6); }

/* ---------- forms ---------- */
.field { margin-bottom: 1.25rem; }
.field > label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 0.92rem; margin: -0.15rem 0 0.4rem; }
input[type='text'], input[type='email'], input[type='tel'], input[type='number'], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--field-border); border-radius: 0.5rem; padding: 0.65rem 0.8rem;
}
textarea { resize: vertical; }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border: 2px solid var(--fail); }
.consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.selection { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.selection h2 { font-size: 1.2rem; }
.selection-lines { list-style: none; padding: 0; margin: 0 0 0.75rem; font-family: var(--mono); font-size: 0.95rem; }
.selection-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- security check ---------- */
.check-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.check-summary { display: flex; align-items: center; gap: 1.25rem; margin: 2rem 0 1.5rem; }
.check-domain { font-family: var(--mono); font-size: 1.3rem; font-weight: 500; margin: 0; word-break: break-all; }
.grade { margin: 0; width: 5rem; height: 5rem; border-radius: 1rem; display: grid; place-items: center; font-family: var(--mono); font-size: 2.6rem; font-weight: 500; color: #fff; flex: none; }
.grade-a, .grade-b { background: #15803d; }
.grade-c { background: #b45309; }
.grade-d, .grade-f { background: #b91c1c; }
.findings { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.finding { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: 0.5rem; padding: 0.9rem 1rem; }
.finding p { margin: 0.2rem 0 0; color: var(--muted); }
.finding .evidence { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.finding .fix { color: var(--text); }
.badge { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; align-self: start; padding: 0.15rem 0.4rem; border-radius: 0.35rem; text-align: center; border: 1px solid currentColor; }
.status-pass { border-left-color: var(--pass); } .status-pass .badge { color: var(--pass); }
.status-warn { border-left-color: var(--warn); } .status-warn .badge { color: var(--warn); }
.status-fail { border-left-color: var(--fail); } .status-fail .badge { color: var(--fail); }
.status-info { border-left-color: var(--info); } .status-info .badge { color: var(--info); }
details.findings-ok summary { cursor: pointer; font-weight: 600; margin-bottom: 0.75rem; }
@media (max-width: 30rem) { .finding { grid-template-columns: 1fr; gap: 0.4rem; } .badge { justify-self: start; } }

/* ---------- browser fingerprint ---------- */
.fp-top { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 56rem) { .fp-top { grid-template-columns: 1fr 1.15fr; } }
.fp-id-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.fp-id-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.fp-id { font-family: var(--mono); font-weight: 500; font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: 0.04em; color: var(--accent); margin: 0 0 0.5rem; word-break: break-all; }
.fp-steps { margin: 0 0 1rem; padding-left: 1.3rem; }
.fp-small { font-size: 0.92rem; }
.fp-terminal-title { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--on-dark-muted); margin: 0; padding: 1.1rem 1.25rem 0; letter-spacing: 0; }
.fp-facts { list-style: none; margin: 0; padding: 0.9rem 1.25rem 1.4rem; display: grid; gap: 0.55rem; font-family: var(--mono); font-size: 0.92rem; line-height: 1.55; color: var(--on-dark); }
.fp-facts li { position: relative; padding-left: 1.5rem; }
.fp-facts li::before { content: '→'; position: absolute; left: 0; color: var(--accent-bright); }
.fp-facts li.fp-good::before { content: '✓'; color: #4ade80; }
.fp-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fp-table th, .fp-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
.fp-table tbody tr:last-child th, .fp-table tbody tr:last-child td { border-bottom: 0; }
.fp-table thead th { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.fp-table tbody th { font-weight: 600; white-space: nowrap; }
.fp-table td:nth-child(2) { font-family: var(--mono); font-size: 0.86rem; overflow-wrap: anywhere; }
.fp-power { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.power-high { color: var(--fail); }
.power-medium { color: var(--warn); }
.power-low { color: var(--muted); }
.fp-table-wrap + .fp-small { margin-top: 0.6rem; }
.fp-canvas { margin: 1.5rem 0; }
.fp-canvas canvas { display: block; width: 100%; max-width: 30rem; height: auto; border-radius: 0.5rem; border: 1px solid var(--line); }
.fp-canvas-hash { font-family: var(--mono); font-size: 0.9rem; margin: 0.6rem 0 0.25rem; }
.fp-canvas figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; max-width: 40rem; }
.fp-bait { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; }
.fp-crosslink { margin: 2.5rem 0 0; }
@media (max-width: 36rem) {
  .fp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fp-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.75rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
  .fp-table tbody tr:last-child { border-bottom: 0; }
  .fp-table tbody th, .fp-table tbody td { padding: 0; border: 0; white-space: normal; }
  .fp-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .fp-table tbody td:nth-child(3) { grid-column: 2; grid-row: 1; }
}

/* ---------- about ---------- */
.person { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48rem) { .person { grid-template-columns: 18rem 1fr; } }
.person-photo { width: 100%; max-width: 18rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.person-photo.placeholder { display: grid; place-items: center; background: var(--ink); color: var(--accent-bright); font-family: var(--mono); font-size: 1.5rem; }
.person-role { font-family: var(--mono); color: var(--accent); }
.person-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 600; }

/* ---------- giveaway (TURVE-014): gold only on the nav tab, the countdown digits and the /loos/ eyebrow ---------- */
.site-header .nav-giveaway, .site-footer .nav-giveaway {
  display: inline-block; padding: 0.35rem 0.8rem; border: 0; border-radius: 0.5rem; line-height: 1.3;
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-header .nav-giveaway:hover, .site-footer .nav-giveaway:hover { background: #f6d27a; color: var(--ink); }
/* On /loos/ itself: a still ring instead of the pulse. */
.site-header .nav-giveaway[aria-current='page'] { color: var(--ink); outline: 2px solid var(--gold); outline-offset: 3px; }
/* A soft ring that grows and fades from the header tab (box-shadow: no layout shift). Not in the footer: one is enough. */
@media (prefers-reduced-motion: no-preference) {
  .site-header .nav-giveaway:not([aria-current='page']) { animation: giveaway-pulse 2.4s ease-out infinite; }
}
@keyframes giveaway-pulse {
  from { box-shadow: 0 0 0 0 var(--gold-glow); }
  to { box-shadow: 0 0 0 0.6rem rgba(242, 193, 78, 0); }
}
/* Teal on gold barely shows: the header tab's focus ring is in the text colour (ink in light mode, near-white in dark). */
.site-header .nav-giveaway:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; animation: none; }

.eyebrow.giveaway-eyebrow { color: var(--gold); }
.countdown { margin: 1.75rem 0 2rem; }
.countdown-when { font-family: var(--mono); font-weight: 500; color: var(--on-dark); margin: 0 0 0.85rem; }
.countdown-digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; max-width: 28rem; }
.countdown-box {
  display: grid; justify-items: center; gap: 0.2rem; padding: 0.8rem 0.25rem 0.65rem;
  background: #07111c; border: 1px solid rgba(45, 212, 191, 0.25); border-radius: 0.5rem;
}
.countdown-num { font-family: var(--mono); font-weight: 500; font-size: clamp(1.9rem, 7vw, 2.75rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown-unit { font-family: var(--mono); font-size: 0.8rem; color: var(--on-dark-muted); }
/* Waiting for the winner: a gold dot breathes in front of the line. */
.draw[data-state='drawing'] .countdown-when::before {
  content: ''; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.6em; border-radius: 50%; background: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .draw[data-state='drawing'] .countdown-when::before { animation: giveaway-breathe 1.4s ease-in-out infinite; }
  .draw .winner:not([open]) .winner-button { animation: giveaway-pulse 2.4s ease-out infinite; }
}
@keyframes giveaway-breathe { 50% { opacity: 0.25; transform: scale(0.7); } }

/* The winner: a gold "Näita võitjat" button, then a terminal card where the name decodes in gold (giveaway.js). */
.winner { margin: 1.75rem 0 2rem; max-width: 34rem; }
.winner > summary { list-style: none; }
.winner > summary::-webkit-details-marker { display: none; }
.winner[open] > summary { display: none; }
.draw .winner-button, .draw .winner-button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.draw .winner-button:hover { background: #f6d27a; border-color: #f6d27a; }
.winner-card { background: #07111c; border: 1px solid rgba(45, 212, 191, 0.25); border-radius: var(--radius); overflow: hidden; }
.winner-body { padding: 1.1rem 1.25rem 1.4rem; font-family: var(--mono); }
.winner-body p { margin: 0; }
.winner-cmd { color: var(--on-dark-muted); font-size: 0.92rem; }
.winner-body .winner-title { margin-top: 1rem; color: var(--on-dark-muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.winner-company { color: var(--gold); font-weight: 500; font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.2; overflow-wrap: anywhere; min-height: 1.2em; }
.winner-body .winner-business { color: var(--on-dark); margin-top: 0.35rem; }
.winner-body .winner-congrats { color: var(--on-dark-muted); margin-top: 1rem; font-family: var(--sans); }
/* While the name spins, what comes after it waits; then it fades in and the card glows twice. */
.winner-card.revealing .winner-business, .winner-card.revealing .winner-congrats { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .winner-card.revealed { animation: winner-glow 1.6s ease-out 2; }
  .winner-card.revealed .winner-business, .winner-card.revealed .winner-congrats { animation: winner-in 0.6s ease-out both; }
  .winner-card.revealed .winner-congrats { animation-delay: 0.35s; }
}
@keyframes winner-glow {
  from { box-shadow: 0 0 0 0 var(--gold-glow); }
  to { box-shadow: 0 0 0 1.25rem rgba(242, 193, 78, 0); }
}
@keyframes winner-in { from { opacity: 0; transform: translateY(0.4rem); } }
.steps .step-text { color: var(--text); font-weight: 500; }
.giveaway-note { color: var(--muted); max-width: 44rem; margin: 1.5rem 0 0; }
.giveaway-cta { margin: 1.5rem 0 0; }
.rules { margin: 0; padding-left: 1.75rem; display: grid; gap: 0.9rem; }
.rules li { padding-left: 0.35rem; }
.rules li::marker { font-family: var(--mono); font-weight: 500; color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 3rem 0 1.5rem; }
.site-footer a { color: var(--on-dark); }
.site-footer .brand { color: var(--on-dark); margin-bottom: 0.75rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.no-tracking { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-bright); border-top: 1px solid rgba(246, 245, 241, 0.15); padding-top: 1.25rem; margin: 2rem 0 0; }

/* ---------- style tile (dev only) ---------- */
.swatches { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.swatch { display: grid; gap: 0.2rem; font-size: 0.92rem; align-content: start; }
.swatch-color { height: 4.5rem; border-radius: 0.5rem; border: 1px solid var(--line); }
[data-swatch='--ink'] { background: #0d1b2a; }
[data-swatch='--ink-2'] { background: #1b2b40; }
[data-swatch='--paper'] { background: #f6f5f1; }
[data-swatch='--card'] { background: #ffffff; }
[data-swatch='--line'] { background: #dcd9d0; }
[data-swatch='--muted'] { background: #4f5b6b; }
[data-swatch='--accent'] { background: #0f766e; }
[data-swatch='--accent-bright'] { background: #2dd4bf; }
[data-swatch='--pass'] { background: #15803d; }
[data-swatch='--warn'] { background: #b45309; }
[data-swatch='--fail'] { background: #b91c1c; }
[data-swatch='--offer'] { background: #dc2626; }
[data-swatch='--gold'] { background: #f2c14e; }
.mono-sample code { display: inline-block; background: var(--card); border: 1px solid var(--line); padding: 0.2rem 0.5rem; border-radius: 0.35rem; margin: 0 0.5rem 0.5rem 0; }

@media print {
  .site-header, .site-footer, .estimator-summary, .cta-band { display: none; }
  .hero, .page-head { background: none; color: #000; }
}
