/* Spotový Radar – design systém (D42): ručně psané CSS bez buildu, žádné inline styly ani CDN (CSP).
   Pořadí: 1 písma, 2 tokeny, 3 základ, 4 rozvržení, 5 komponenty, 6 grafy, 7 stránky, 8 pohyb.
   Popis tokenů a pravidel je v docs/design-system.md. */

/* 1 Písma: Geist a Geist Mono (OFL, static/fonts/OFL.txt), variabilní řezy 100–900. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2 Tokeny. Světlý režim = A Den (papír, inkoust, limetka). Barvy textu splňují WCAG AA
   na --bg i --surface; barvy dílků grafů jsou jen pro plochy, ne pro text. */
:root {
  --bg: #f7f8f5;
  --bg-sunken: #eef0ea;
  --surface: #ffffff;
  --surface-muted: #f2f4ef;
  --line: #e4e7e0;
  --line-strong: #d5dad2;
  --ink: #0a0e13;
  --text-2: #3e4854;
  --muted: #5d6874;
  --inverse: #ffffff;
  --inverse-surface: #0a0e13;
  --inverse-muted: #b8c2cf;

  --accent: #c8f442;
  --accent-ink: #0a0e13;
  --brand-text: #087a5b;
  --link: #1f4fb8;
  --focus: #2f6feb;

  /* Teplotní škála grafů (D44): mint = levně, písková = běžně, korál = draho */
  --heat-0: #2dd4a7;
  --heat-1: #5cd8b0;
  --heat-2: #8bdcb8;
  --heat-3: #bae0c0;
  --heat-4: #e9e4c9;
  --heat-5: #eec6ac;
  --heat-6: #f4a890;
  --heat-7: #fa8974;
  --heat-8: #ff6b57;

  /* Semafor (D28) */
  --cheap: #2dd4a7;
  --cheap-text: #0b7f62;
  --normal: #d3d8de;
  --peak: #e4572e;
  --peak-text: #c2410c;
  --negative: #6366f1;
  --negative-text: #4338ca;

  /* Grafy */
  --chart-grid: #eef0ea;
  --chart-zero: #9aa3ae;
  --chart-axis: #5d6874;
  --chart-median: #0a0e13;
  --chart-actual: #0a0e13;
  --chart-forecast: #2f6feb;
  --chart-band: #dce7ff;

  /* Typografie */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --text-xs: 0.75rem;   /* 12 px: štítky, osy */
  --text-sm: 0.875rem;  /* 14 px: popisky, patička */
  --text-base: 1rem;    /* 16 px: text */
  --text-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.1875rem); /* 17–19 px */
  --text-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);        /* 18–22 px */
  --text-h2: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);          /* 30–48 px */
  --text-h1: clamp(2.375rem, 1.3rem + 4.4vw, 4.125rem);      /* 38–66 px */
  --text-number: clamp(2.5rem, 1.8rem + 2.8vw, 3.75rem);     /* 40–60 px: hlavní cena */
  --tracking-tight: -0.03em;
  --tracking-eyebrow: 0.12em;

  /* Prostor (násobky 4 px), zaoblení, rozvržení */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 104px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --container: 1240px;
  --container-narrow: 880px;
  --gutter: 24px;

  /* Pohyb (docs/emilkowalski): krátké, ease-out, nic, co se ukazuje často */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-press: 160ms;
  --duration-ui: 200ms;
  --duration-reveal: 1100ms;

  color-scheme: light dark;
}

/* Tmavý režim vychází z tmavé varianty loga: noční inkoust, mátová a modrá. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e13;
    --bg-sunken: #0e141b;
    --surface: #111922;
    --surface-muted: #16202b;
    --line: #1d2b38;
    --line-strong: #2a3a4a;
    --ink: #f1f5f9;
    --text-2: #c3ccd6;
    --muted: #8b98a9;
    --inverse: #0a0e13;
    --inverse-surface: #f1f5f9;
    --inverse-muted: #3e4854;

    --brand-text: #22e3a2;
    --link: #7faeff;
    --focus: #7faeff;

    --heat-0: #2fe0b0;
    --heat-1: #36bd9d;
    --heat-2: #3c9a8a;
    --heat-3: #437876;
    --heat-4: #4a5563;
    --heat-5: #775a65;
    --heat-6: #a46067;
    --heat-7: #d26669;
    --heat-8: #ff6b6b;
    --cheap: #2fe0b0;
    --cheap-text: #3fe0a8;
    --normal: #3a4654;
    --peak: #f06a43;
    --peak-text: #ff8a63;
    --negative: #818cf8;
    --negative-text: #a5b4fc;

    --chart-grid: #17212b;
    --chart-zero: #5d6874;
    --chart-axis: #8b98a9;
    --chart-median: #f1f5f9;
    --chart-actual: #f1f5f9;
    --chart-forecast: #4c8dff;
    --chart-band: #1d3157;
  }
}

/* 3 Základ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--text-base) / 1.6 var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.08; }
h1 { font-size: var(--text-h1); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.3; letter-spacing: -0.01em; }

a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: var(--link); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

strong { font-weight: 600; }

/* 4 Rozvržení */
.container { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-9) 0; }
.section-sunken { background: var(--bg-sunken); }
.section-surface { background: var(--surface); border-block: 1px solid var(--line); }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: var(--space-8) 0; }
}

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { display: block; }
.brand span { font-weight: 400; color: var(--brand-text); }

.nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); font-size: 0.9375rem; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-footer {
  margin-top: var(--space-8);
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}
.site-footer-inner { max-width: var(--container); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-7); }
.site-footer p { margin: 0 0 var(--space-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* 5 Komponenty */

/* Nadpisek nad titulkem: mono, verzálky, prostrkaný */
.eyebrow {
  margin: 0 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

.lead { margin: 0 0 var(--space-5); font-size: var(--text-lead); line-height: 1.55; color: var(--text-2); }

/* Limetkové zvýraznění části titulku */
.highlight {
  padding: 0 0.15em;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Tlačítka a odkazy jako tlačítka. Min. 44 px kvůli dotyku. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--inverse-surface); color: var(--inverse); }
.btn-primary:hover { color: var(--inverse); opacity: 0.88; }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); font-weight: 500; }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { color: var(--accent-ink); filter: brightness(0.96); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }

/* Přepínač (Dnes / Zítra / …): tlačítka s aria-pressed nebo odkazy s aria-current */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
}
.segmented > a,
.segmented > button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.segmented > a:hover,
.segmented > button:hover { color: var(--ink); }
.segmented > [aria-pressed="true"],
.segmented > [aria-current="true"],
.segmented > [aria-current="page"] { background: var(--inverse-surface); color: var(--inverse); }

/* Karty a dlaždice */
.card {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card-dark { background: var(--inverse-surface); border-color: var(--inverse-surface); color: var(--inverse); }
.card-dark .muted { color: var(--inverse-muted); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.tile { padding: 18px 20px; background: var(--surface-muted); border-radius: var(--radius); }
.tile-accent { background: var(--accent); color: var(--accent-ink); }
.tile-value { margin: 0; font-family: var(--font-mono); font-size: 1.875rem; font-weight: 500; line-height: 1.2; }
.tile-label { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--text-2); }
.tile-accent .tile-label { color: var(--accent-ink); }

.card-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* Čísla: ceny a metriky vždy mono a se stejnou šířkou číslic */
.number { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em; }
.number-xl { font-size: var(--text-number); line-height: 1; letter-spacing: -0.05em; }

/* Štítek (Ukázková data, Placená verze, Nejoblíbenější) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
}
.badge-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-family: var(--font-sans); font-weight: 600; }

/* Barvy semaforu pro text */
.is-cheap { color: var(--cheap-text); }
.is-peak { color: var(--peak-text); }
.is-negative { color: var(--negative-text); }

.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: var(--text-sm); }

.table-wrap { overflow-x: auto; }
.metrics { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.metrics th, .metrics td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.metrics td { font-family: var(--font-mono); }
.metrics th:first-child, .metrics td.muted { text-align: left; }
.metrics td.muted { font-family: var(--font-sans); }
.metrics thead th { color: var(--muted); font-size: var(--text-sm); font-weight: 500; vertical-align: bottom; }

.offline-note {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--peak);
  color: #ffffff;
  text-align: center;
  font-size: var(--text-sm);
}
.offline-note[hidden] { display: none; }

/* 6 Grafy (SVG ze serveru, D36): barvy jen přes třídy, žádné inline styly */
figure { margin: var(--space-4) 0 0; }
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .zero { stroke: var(--chart-zero); stroke-width: 1.25; }
.chart .axis { fill: var(--chart-axis); font-family: var(--font-mono); font-size: 11px; }
/* Sloupce a dílky ciferníku mají výplň z přechodů teplotní škály (atribut fill/stroke). */
svg .heat-0 { stop-color: var(--heat-0); }
svg .heat-1 { stop-color: var(--heat-1); }
svg .heat-2 { stop-color: var(--heat-2); }
svg .heat-3 { stop-color: var(--heat-3); }
svg .heat-4 { stop-color: var(--heat-4); }
svg .heat-5 { stop-color: var(--heat-5); }
svg .heat-6 { stop-color: var(--heat-6); }
svg .heat-7 { stop-color: var(--heat-7); }
svg .heat-8 { stop-color: var(--heat-8); }
svg .heat-neg { stop-color: var(--negative); }
svg .fade { stop-opacity: 0.35; }
.chart .bar.now { stroke: var(--ink); stroke-width: 1.5; }
.chart .bar:hover { opacity: 0.75; }
.chart .band { fill: var(--chart-band); }
.chart .forecast { fill: none; stroke: var(--chart-forecast); stroke-width: 2; stroke-dasharray: 6 4; }
.chart .actual { fill: none; stroke: var(--chart-actual); stroke-width: 2.5; }
.chart .hover { fill: transparent; }
.chart .hover:hover { fill: var(--ink); opacity: 0.06; }

/* Na úzkém displeji se SVG zmenší zhruba na polovinu, popisky os proto zvětšit. */
@media (max-width: 600px) {
  .chart .axis { font-size: 20px; }
}

figcaption,
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-2);
}
.key::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
}
.key.negative::before { background: var(--negative); }
.key.cheap::before { background: var(--cheap); }
.key.normal::before { background: var(--normal); }
.key.heat::before {
  width: 44px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--heat-0), var(--heat-4), var(--heat-8));
  vertical-align: 0;
}
.key.expensive::before { background: var(--peak); }
.key.window::before { width: 18px; height: 6px; border-radius: var(--radius-pill); background: var(--accent); vertical-align: 1px; }
.key.actual::before { width: 18px; height: 3px; background: var(--chart-actual); vertical-align: 3px; }
.key.forecast::before {
  width: 18px;
  height: 0;
  border-top: 2px dashed var(--chart-forecast);
  border-radius: 0;
  vertical-align: 3px;
}
.key.band::before { background: var(--chart-band); }
.unit { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }

/* 7 Stránky (stávající landing, úspěšnost a právní texty; přestavba podle ciferníku je Fáze 4b) */
.hero h1 { margin: var(--space-7) 0 var(--space-3); font-size: var(--text-h2); }

.day {
  margin: 0 0 var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.day h2 { margin: 0 0 var(--space-3); font-size: var(--text-h3); letter-spacing: -0.01em; }
.day.pending { color: var(--muted); }

.now-price { margin: 0 0 var(--space-2); font-size: 1.0625rem; color: var(--text-2); }
.now-price strong { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 500; color: var(--ink); }

.stats { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0 0 var(--space-2); }
.stats div { min-width: 120px; }
.stats dt { color: var(--muted); font-size: var(--text-sm); }
.stats dd { margin: 0; font-family: var(--font-mono); font-weight: 500; }

@media (max-width: 600px) {
  .day { padding: var(--space-4); border-radius: var(--radius); }
}

.legal { margin-top: 56px; }
.legal h1 { margin: 0 0 var(--space-3); font-size: var(--text-h2); }
.legal p, .legal li { color: var(--text-2); max-width: 760px; }
.legal h2 { margin-top: 1.6em; font-size: var(--text-h3); letter-spacing: -0.01em; }

/* Teaser placené predikce (D38): ilustrační data, rozmazané jen pro dojem. */
.teaser-chart { filter: blur(4px); opacity: 0.85; user-select: none; }
.teaser-chart .axis { font-size: 14px; }
.teaser-badge {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* Úvodní stránka s ciferníkem dne (Fáze 4b, artboardy LandingCifernik a LandingCifernikMobil) */
.hero-dial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-7) 56px;
  padding-top: 56px;
  padding-bottom: var(--space-8);
}
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-copy h1 { margin: 0; line-height: 1.1; }
.hero-copy .lead { margin: var(--space-5) 0 0; max-width: 540px; }
.hero-copy .segmented { margin-top: 28px; }
.segmented > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; color: var(--muted); font-size: 0.9375rem; }

.tile-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); max-width: 480px; margin-top: var(--space-4); }
.tile-surface { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.tile-surface .tile-label { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.tile-range { margin: var(--space-1) 0 0; font-size: 1.125rem; font-weight: 600; }
.tile-price { margin: 2px 0 0; font-family: var(--font-mono); font-size: var(--text-sm); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 28px; }

.dial-panel { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.dial-wrap { display: grid; width: 100%; max-width: 580px; }
.dial-wrap > * { grid-area: 1 / 1; }
.dial { display: block; width: 100%; height: auto; }
.dial-center { position: relative; z-index: 1; place-self: center; width: 46%; text-align: center; }
.dial-center p { margin: 0; }
.dial-caption { font-size: var(--text-sm); color: var(--muted); }
.dial-center .number-xl { margin-top: 2px; }
.dial-unit { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--text-2); }
.dial-unit span { font-weight: 600; }
.dial-legend { justify-content: center; margin: 0; }

.dial .dial-face { fill: var(--surface); stroke: var(--line); }
.dial .dial-ring { fill: none; stroke: var(--line); }
.dial .dial-tick { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.dial .seg { stroke-linecap: round; }
.dial .seg:hover { opacity: 0.75; }
.dial .dial-window { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; }
.dial .dial-hand { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dial .dial-label { fill: var(--text-2); font-family: var(--font-mono); font-size: 15px; }

.trust-bar .container-wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px var(--space-6);
  padding-block: 22px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.trust-bar strong { color: var(--ink); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-5); margin-bottom: var(--space-6); }
.section-head h2, .section-title { margin: 0; max-width: 720px; }
.section-title { margin-bottom: var(--space-7); }
.section-note { margin: 0; max-width: 420px; font-size: 1.0625rem; color: var(--text-2); }
.section-head .stats { margin: 0; }
.chart-card .chart-text { margin-top: 0; color: var(--text-2); }

.features .card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.features h3 { margin: var(--space-3) 0 0; }
.features p { margin: 0; flex: 1; color: var(--text-2); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent); }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-copy { flex: 1 1 380px; min-width: 0; }
.split-copy h2 { margin: 0; }
.split-copy .lead { margin-top: var(--space-5); }
.arrow-link { color: var(--link); font-weight: 600; }
.score-grid { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); align-content: start; }
.score { padding: var(--space-5); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }
.score-wide { grid-column: 1 / -1; }
.score .tile-label { margin: 0; }
.score-value { margin: 10px 0; font-family: var(--font-mono); font-size: 2.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.score-value span { border-bottom: 6px solid var(--accent); }
.score-pending { font-size: 1.375rem; letter-spacing: 0; color: var(--muted); }
.page-note { margin: var(--space-6) 0 0; }

@media (max-width: 600px) {
  .hero-dial { padding-top: var(--space-6); gap: var(--space-6); }
  .tile-pair { max-width: none; }
  .actions .btn { flex: 1 1 auto; }
  .dial-center { width: 52%; }
  .dial-center .number-xl { font-size: 2.25rem; }
  .score-value { font-size: 2.25rem; }
}

/* Úspěšnost a právní stránky */
.page-hero { padding-top: 56px; padding-bottom: var(--space-6); }
.page-hero h1 { margin: 0; font-size: var(--text-h2); }
.page-hero .lead { margin: var(--space-5) 0 0; max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.card-lg { padding: var(--space-7) clamp(var(--space-4), 4vw, 40px); border-radius: var(--radius-xl); }
.card-lg .section-head { margin-bottom: var(--space-4); }
.card-title { margin: 0 0 var(--space-4); font-size: var(--text-h3); letter-spacing: -0.01em; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin-top: 28px; }
.readable { max-width: 760px; padding-left: 1.2em; color: var(--text-2); }
.readable li + li { margin-top: var(--space-2); }
.readable strong { color: var(--ink); }

/* 8 Pohyb. Stisk tlačítka dává odezvu; grafy a ceny se v aplikaci neanimují (časté zobrazení).
   Jednorázový náběh je povolen jen na veřejném landingu (.reveal), nejvýš --duration-reveal. */
.btn,
.segmented > a,
.segmented > button {
  transition:
    transform var(--duration-press) var(--ease-out),
    background-color var(--duration-ui) ease,
    color var(--duration-ui) ease,
    opacity var(--duration-ui) ease;
}
.btn:active,
.segmented > a:active,
.segmented > button:active { transform: scale(0.97); }

@keyframes sr-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes sr-spin-in {
  from { opacity: 0; transform: rotate(-12deg) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: sr-reveal var(--duration-reveal) var(--ease-out) 150ms both; }
.spin-in,
.dial-wrap .dial { transform-origin: 50% 50%; animation: sr-spin-in 700ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:active,
  .segmented > a:active,
  .segmented > button:active { transform: none; }
}
