/* Starito landing — tokeny směru B „Souhvězdí" (app/lib/ui/sky/sky_theme.dart,
   paper_theme.dart). Fonty self-host, viz spec 2026-09-14 §5. */
@font-face { font-family: 'Grandstander'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/grandstander-latin-ext.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; }
@font-face { font-family: 'Grandstander'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/grandstander-latin.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: 'Karla'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/karla-latin-ext.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; }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/karla-latin.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; }

:root {
  --night: #0B1815; --night-mid: #14271F;
  --gold: #F5C542; --gold-dark: #C8971C; --starlight: #FFF3DE; --ink-on-gold: #14271F;
  /* --ink-mute je nejsvětlejší inkoust, jaký smí na --paper: 4,66:1 (WCAG AA
     chce 4,5:1). Nese ho .kicker, .faq summary::after a .legal .meta. */
  --paper: #FAF2E4; --card: #FFFCF4; --line: #E7DBC4; --ink: #1A2B24; --ink-soft: #5E5344; --ink-mute: #7A6B52;
  --display: 'Grandstander', 'Avenir Next', sans-serif; --body: 'Karla', 'Avenir Next', sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
/* `height: auto` sem patří vždycky s `max-width`. Bez něj zůstane v platnosti
   výška z HTML atributu, zatímco šířku strop srazí — obrázek pak dostane
   rozměry, které nemá ani jeden zdroj (ukázky appky takhle vyšly 137×844
   místo 217×440 a `object-fit: cover` z nich ukrojil oba okraje). */
img { max-width: 100%; height: auto; display: block; }
/* UA styl dává <figure> margin 1em 40px — ve čtyřsloupcové mřížce to sebralo
   80 px z každého sloupce. */
figure { margin: 0; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); }
p { margin: 0; }

/* nav */
/* Přeskočení navigace — schované, dokud na něj nesedne tabulátor. */
.skip { position: absolute; left: 12px; top: -80px; z-index: 5; padding: 12px 18px; border-radius: 12px;
  background: var(--gold); color: var(--ink-on-gold); font-weight: 700; text-decoration: none; transition: top .15s ease-out; }
.skip:focus { top: 12px; }
.nav { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--starlight); font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav li a { color: var(--starlight); opacity: .75; text-decoration: none; font-weight: 700; font-size: 14px; }
.nav li a:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink-on-gold); box-shadow: 0 3px 0 var(--gold-dark); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--starlight); border: 1.5px solid rgba(255,243,222,.3); }
.nav .btn { height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 720px) { .nav ul { display: none; } }

/* hero */
.hero { position: relative; min-height: 100svh; background: var(--night); color: var(--starlight); overflow: hidden; display: grid; place-items: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 640px; padding: 120px 24px 200px; }
/* Obsah hera je viditelný by default a schovává ho až třída .sky-js, kterou
   na <html> přidá inline skript v <head>. Obráceně to nejde: bez JS by se
   .arrived nikdy nepřidala a přepis z <noscript><style> nepomůže — style-src
   'self' v _headers inline styly blokuje (sheet === null). Takhle zůstane
   nadpis, CTA i drobný text vidět i bez JS a i když sky.js vůbec nedojede.
   visibility + pointer-events musí jít s opacity ruku v ruce: samotná
   opacity:0 nechává odkaz v pořadí tabulátoru a klikatelný. */
.sky-js .hero-content { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
  transition: opacity .5s ease-out, transform .5s ease-out, visibility .5s ease-out; }
.sky-js .hero.arrived .hero-content { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.hero h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 800; letter-spacing: -.01em; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); opacity: .85; margin: 18px auto 34px; max-width: 32ch; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 26px; font-size: 13px; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .sky-js .hero-content { transition: none; } }

/* sekce */
.section { padding: 88px 0; }
.section-night { background: var(--night-mid); color: var(--starlight); }
.section-night .muted { color: rgba(255,243,222,.7); }
.kicker { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.section-night .kicker { color: rgba(255,243,222,.5); }
.lead-p { font-size: 18px; color: var(--ink-soft); max-width: 60ch; margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 44px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink-on-gold); font-family: var(--display); font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; margin-top: 36px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); }
.section-night .feature p { color: rgba(255,243,222,.7); }
.tiers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tier { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--ink-on-gold); }
.tier-bronze { background: #E0A36B; } .tier-silver { background: #DCE4EA; } .tier-gold { background: var(--gold); } .tier-platinum { background: #B9E3D2; }

/* screenshoty */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: 40px; }
.phone { background: #0F1A17; border-radius: 34px; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.phone img { border-radius: 26px; width: 100%; }
.phone figcaption { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.section-night .phone figcaption { color: rgba(255,243,222,.65); }

/* faq */
.faq { max-width: 760px; margin-top: 32px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-mute); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-soft); margin-top: 10px; max-width: 62ch; }

/* cta pruh + patička */
.cta-band { background: var(--night); color: var(--starlight); text-align: center; padding: 72px 0; }
.cta-band p { opacity: .8; margin: 12px 0 28px; }
footer { background: var(--night); color: rgba(255,243,222,.6); font-size: 13px; padding: 28px 0 40px; border-top: 1px solid rgba(255,243,222,.1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,243,222,.85); text-decoration: none; }
footer nav { display: flex; gap: 20px; }

/* právní stránky */
.legal { max-width: 720px; padding: 120px 24px 80px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal .meta { color: var(--ink-mute); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
/* Globální `p { margin: 0 }` platí i tady, takže odstupy mezi odstavci a
   seznamy musí dát tyhle sousedské selektory — jinak se text slepí do bloku.
   CSP (_headers) nepustí inline <style> ani style="…", proto to patří sem. */
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
/* „Krátce" — shrnutí nad zásadami; taky jen třídou, inline styl CSP nepustí. */
.legal ul.souhrn { margin-top: 12px; padding: 18px 22px 18px 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.legal ul.souhrn li { color: var(--ink); }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-nav { position: absolute; top: 0; left: 0; right: 0; }
.legal-nav .brand { color: var(--ink); }
