/* =====================================================================
   Cinkáto – základ: font, barvy (tokeny), reset, typografie, utility
   ===================================================================== */

/* ---------- Font: Manrope Variable (OFL), lokálně ---------- */
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-wght-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: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Záložní font s podobnými rozměry (méně poskakování při načtení) */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 98%;
  descent-override: 27%;
}

/* ---------- Tokeny ---------- */
:root {
  color-scheme: dark;

  /* Pozadí a plochy */
  --bg: #0D0D12;
  --bg-raise: #14141a;
  --card-from: #1C1C21;
  --card-to: #0D0D12;
  --glass: rgba(22, 22, 28, 0.58);

  /* Text (kontrast vůči --bg: text 17:1, muted 8:1, faint 5:1) */
  --text: #F5F2EA;
  --muted: #B3AEA3;
  --faint: #8E897F;

  /* Zlatá z ikony mince */
  --gold-light: #FFE066;
  --gold: #F5C518;
  --gold-dark: #B8860B;
  --gold-deep: #8B6400;
  --premium-a: #FFC74D;
  --premium-b: #F28C1A;
  --line: rgba(255, 224, 102, 0.14);
  --line-strong: rgba(255, 224, 102, 0.32);

  /* Barvy skóre (stejné jako v appce) */
  --score-green: #4DD98C;
  --score-blue: #59ADFA;
  --score-orange: #FFB340;
  --score-red: #FF6161;

  /* Typografie */
  --font: "Manrope Variable", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);

  /* Rozměry */
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 16px;
  --container: 1240px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.8);
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Jemná zlatá záře místo ploché černé (fixní vrstva, ať nemá hranu na konci prvního viewportu) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(245, 197, 24, 0.13), transparent 62%),
    radial-gradient(900px 700px at -10% 60%, rgba(242, 140, 26, 0.06), transparent 60%),
    radial-gradient(1000px 700px at 110% 100%, rgba(245, 197, 24, 0.07), transparent 60%);
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }

/* Nadpis se zlatým gradientem */
.gold-text {
  background: linear-gradient(180deg, #FFF4BD 0%, var(--gold-light) 38%, var(--gold) 70%, #D9A514 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold-light); /* záloha bez background-clip */
  -webkit-text-fill-color: transparent;
}

/* Čísla ve skóre a cenách */
.num { font-variant-numeric: tabular-nums; }

.muted { color: var(--muted); }

.link-gold { color: var(--gold-light); font-weight: 700; }
.link-gold:hover { color: #fff; }

/* ---------- Přístupnost ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 8px;
}
main:focus-visible { outline: none; }

/* ---------- Pilulky a tečky (styl z videa) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.36em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.pill-gold { border-color: var(--line-strong); color: var(--gold-light); background: rgba(245, 197, 24, 0.06); }
.pill-muted { color: var(--muted); font-size: 0.8rem; }
.pill-premium {
  border: 0;
  background: linear-gradient(135deg, var(--premium-a), var(--premium-b));
  color: #1a1000;
  font-weight: 800;
}
.pill-premium .icon { width: 0.95em; height: 0.95em; }
.pill-soon { border-color: var(--line-strong); color: var(--gold-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pill-ok { border-color: rgba(77, 217, 140, 0.4); color: var(--score-green); }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.8);
  flex: none;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s;
}
/* Primární CTA: žluté s tmavým textem (kontrast 11:1) */
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 8px 30px -8px rgba(245, 197, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-small { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.9rem; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
}
