/* ==========================================================================
   Kabina — landing page
   Barvy a typografie převzaty z aplikace (Compose theme).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-semibold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-extrabold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  /* Brand navy — used as a DARK surface (store badge, "for whom" band, phone
     frame). Kept constant across themes; text colours live in --text/--text-2. */
  --ink:        #0b1129;
  --ink-2:      #14181f;
  --muted:      #5c6573;
  --bg:         #f6f7f9;
  --white:      #ffffff;
  --line:       #e2e5ea;
  --red:        #c62828;
  --red-ink:    #a51f1f;
  --red-soft:   #fbe9e9;
  --red-bright: #ff6b6b;

  /* Text tokens (flip in dark mode; the navy surface tokens above do not). */
  --text:       #0b1129;
  --text-2:     #14181f;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  color-scheme: light;
}

/* Dark theme — applied when the user picks it (data-theme="dark") or, absent an
   explicit choice, when the OS prefers dark. Mirrors the app's dark palette. */
:root[data-theme="dark"] {
  --ink:        #0e1730;   /* navy surface, a touch lighter than the page */
  --ink-2:      #131c38;
  --muted:      #9aa6bd;
  --bg:         #080c1e;   /* near-black navy page */
  --white:      #131a30;   /* cards / menus / soft badges */
  --line:       #273150;
  --red:        #ff6b6b;   /* accent brightened for dark */
  --red-ink:    #ff8a8a;
  --red-soft:   #3a2024;
  --red-bright: #ff8080;
  --text:       #f2f5fb;
  --text-2:     #dfe6f1;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #0e1730;
    --ink-2:      #131c38;
    --muted:      #9aa6bd;
    --bg:         #080c1e;
    --white:      #131a30;
    --line:       #273150;
    --red:        #ff6b6b;
    --red-ink:    #ff8a8a;
    --red-soft:   #3a2024;
    --red-bright: #ff8080;
    --text:       #f2f5fb;
    --text-2:     #dfe6f1;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

/* grid/flex děti nesmí roztáhnout layout přes šířku okna */
.hero-text, .hero-art, .f-text, .f-art { min-width: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typography ------------------------------------------------------------- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4.5rem); overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

/* small red rule used as a hand-drawn accent under headings */
.rule { width: 56px; height: 3px; background: var(--red); border: 0; margin: 1.4rem 0 0; border-radius: 2px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; color: var(--text); letter-spacing: -.02em; font-size: 1.2rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }

.lang { display: flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 700; color: var(--muted); }
.lang a { text-decoration: none; color: var(--muted); padding: .2rem .15rem; }
.lang a[aria-current="true"] { color: var(--text); }
.lang span { opacity: .4; }

.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* Buttons / store badges ------------------------------------------------- */
.stores { display: flex; flex-wrap: wrap; gap: .8rem; }
.store {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--ink); color: #fff;
  padding: .7rem 1.15rem; border-radius: 14px;
  text-decoration: none; position: relative;
  border: 1px solid var(--ink);
}
.store.is-soon { background: var(--white); color: var(--text); cursor: default; border-color: var(--line); }
.store svg { width: 22px; height: 22px; flex: none; }
.store .s-small { display: block; font-size: .68rem; line-height: 1; color: inherit; opacity: .72; font-weight: 600; }
.store .s-big { display: block; font-size: 1.02rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.store .soon {
  margin-left: .35rem; font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red);
  background: var(--red-soft); padding: .2rem .45rem; border-radius: 999px;
}

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 span { color: var(--red); }
.hero .lead { max-width: 30ch; margin-top: 1.4rem; }
.hero .stores { margin-top: 2rem; }
.hero .fineprint { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone { transform: rotate(-3deg); }
.hero-art .phone.back {
  position: absolute; left: 4%; top: 8%; transform: rotate(5deg) scale(.82);
  filter: saturate(.96); opacity: .96; z-index: -1;
}

/* Phone frame ------------------------------------------------------------ */
.phone {
  background: var(--ink);
  padding: 9px;
  border-radius: 40px;
  box-shadow: 0 30px 60px -24px rgba(11,17,41,.45), 0 8px 20px -10px rgba(11,17,41,.3);
  width: clamp(220px, 30vw, 310px);
}
.phone img { border-radius: 31px; width: 100%; }

/* Statement band --------------------------------------------------------- */
.statement { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.statement p {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800; letter-spacing: -.02em; color: var(--text);
  line-height: 1.18; max-width: 20ch; margin: 0;
}
.statement em { color: var(--red); font-style: normal; }

/* Feature rows ----------------------------------------------------------- */
.feature { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.feature.reverse .f-text { order: 2; }
.feature .f-num { font-size: .9rem; font-weight: 800; color: var(--line); letter-spacing: .1em; }
.feature .f-text h2 { margin-top: .4rem; }
.feature .f-text .lead { margin-top: 1.3rem; max-width: 38ch; }
.feature ul.points { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.feature ul.points li {
  padding: .55rem 0 .55rem 1.4rem; position: relative;
  color: var(--text-2); font-weight: 500; border-top: 1px solid var(--line);
}
.feature ul.points li:first-child { border-top: 0; }
.feature ul.points li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 8px; height: 8px; border-radius: 2px; background: var(--red);
}
.f-art { display: flex; justify-content: center; gap: 1.2rem; }
.f-art .phone { width: clamp(210px, 26vw, 270px); }
.f-art .phone:nth-child(2) { margin-top: 2.6rem; }

/* Showcase strip --------------------------------------------------------- */
.showcase { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.showcase h2 { text-align: center; max-width: 16ch; margin-inline: auto; }
.showcase .strip {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem); margin-top: 2.6rem;
  justify-content: center; flex-wrap: wrap;
}
.showcase .phone { width: clamp(170px, 20vw, 230px); }
.showcase .phone:nth-child(even) { margin-top: 1.8rem; }

/* Dark "for whom" band --------------------------------------------------- */
.audience { background: var(--ink); color: #e8eaf0; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.audience h2 { color: #fff; max-width: 18ch; }
.audience .rule { background: var(--red-bright); }
.audience .grid {
  margin-top: 3rem; display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(3, 1fr);
}
.audience .who h3 { color: #fff; }
.audience .who p { color: #aab2c5; margin: .6rem 0 0; font-size: .98rem; }
.audience .who .tag { color: var(--red-bright); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* Final CTA -------------------------------------------------------------- */
.cta { padding: clamp(4rem, 8vw, 7rem) 0; text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lead { max-width: 44ch; margin: 1.2rem auto 0; }
.cta .stores { justify-content: center; margin-top: 2.2rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.4rem 0; }
.site-footer .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer .f-meta { margin-left: auto; color: var(--muted); font-size: .85rem; display:flex; gap: 1.2rem; align-items:center; flex-wrap: wrap; }
.site-footer .f-meta a { color: var(--muted); text-decoration: none; }
.site-footer .f-meta a:hover { color: var(--text); }

/* Reveal on scroll (jen když běží JS — bez JS je obsah vždy vidět) -------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .phone { transform: none; }
  .hero-art .phone.back { display: none; }
  .feature .wrap { grid-template-columns: 1fr; gap: 2.4rem; }
  .feature.reverse .f-text { order: 0; }
  .f-art { order: -1; }
  .f-art .phone:nth-child(2) { display: none; }
  .audience .grid { grid-template-columns: 1fr; }

  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1.2rem var(--gutter) 1.6rem;
  }
  .nav.open .lang { margin-top: .4rem; }
  .menu-btn { display: block; }
  .lang.desktop-only { display: none; }
}
@media (min-width: 901px) { .lang.mobile-only { display: none; } }

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .statement p { font-size: 1.55rem; }
  .hero .lead { max-width: none; }
  .phone { width: min(78vw, 300px); }
  .hero-art .phone, .f-art .phone, .showcase .phone { width: min(72vw, 280px); }
  .showcase .strip { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
  .showcase .phone { flex: 0 0 auto; scroll-snap-align: center; }
  .showcase .phone:nth-child(even) { margin-top: 0; }
}

/* Footer navigation (legal links) --------------------------------------- */
.site-footer .wrap { align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin-left: auto; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.site-footer .f-meta { width: 100%; margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .footer-nav { margin: 1rem 0 0; width: 100%; } }

/* Legal / article pages -------------------------------------------------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal .wrap-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.legal .back { font-size: .9rem; font-weight: 600; margin: 0 0 1.6rem; }
.legal .back a { color: var(--red); text-decoration: none; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .updated { color: var(--muted); font-size: .9rem; margin: .8rem 0 2.4rem; }
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 2.6rem 0 0; }
.legal h2 + p, .legal h2 + ul { margin-top: .9rem; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; }
.legal a { color: var(--red-ink); }
.legal ul { padding-left: 1.2rem; margin: .6rem 0 1.1rem; }
.legal li { margin: .35rem 0; }
.legal .lead-note {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 0 1.6rem;
  color: var(--muted); font-size: .95rem;
}
.legal .todo { background: var(--red-soft); color: var(--red-ink); padding: .05em .35em; border-radius: 5px; font-weight: 700; }
.legal h2:first-of-type { margin-top: 0; }

/* Theme toggle (header) ---------------------------------------------------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; margin-left: .5rem;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--white); color: var(--text); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Screenshot light/dark toggle (showcase) ---------------------------------- */
.shot-toggle {
  display: inline-flex; gap: .25rem; margin: 1.6rem auto 0;
  padding: .28rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.shot-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700; color: var(--muted);
  padding: .45rem 1.1rem; border-radius: 999px; line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.shot-toggle button.is-active { background: var(--red); color: #fff; }
.showcase .head { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Pro tag (inline badge in feature lists) ---------------------------------- */
.pro-tag {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red);
  background: var(--red-soft); padding: .12rem .4rem; border-radius: 999px;
  margin-left: .35rem; vertical-align: middle;
}

/* ==========================================================================
   Iterace 2 — víc navy střídání, oprava hera, viditelnost tmavých snímků
   ========================================================================== */

/* Rám telefonu je v tmavém režimu světlejší, aby tmavé screenshoty appky
   (skoro černé) byly na tmavém pozadí vidět. */
:root[data-theme="dark"] .phone { background: #26375a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone { background: #26375a; }
}

/* „Statement" pruh je nově navy — přidává rytmus střídání s audience pruhem. */
.statement { background: var(--ink); }
.statement p { color: #fff; }
.statement em { color: var(--red-bright); }

/* Hero: oba telefony musí být vidět — přední už nepřekrývá celý zadní. */
.hero-art { align-items: center; justify-content: flex-end; }
.hero-art .phone { transform: rotate(-4deg); width: clamp(190px, 25vw, 260px); margin-right: 4%; z-index: 1; }
.hero-art .phone.back {
  left: 0; top: 2%; transform: rotate(8deg) scale(.9);
  width: clamp(190px, 25vw, 260px);
  opacity: 1; filter: none; z-index: 0;
}

/* ==========================================================================
   Iterace 3 — mobil: menší, srovnané telefony (screenshoty nedominují)
   (na konci souboru, aby přebilo dřívější pravidla i Iteraci 2)
   ========================================================================== */
@media (max-width: 640px) {
  /* Hero: jeden telefon, na střed, bez naklonění, kompaktní. */
  .hero-art { justify-content: center; align-items: center; }
  .hero-art .phone {
    transform: none;
    width: min(60vw, 225px);
    margin: 0 auto;
  }
  .hero-art .phone.back { display: none; }

  /* Funkce: telefon menší a na střed, ať nezabere půl obrazovky. */
  .f-art { justify-content: center; }
  .f-art .phone { width: min(56vw, 210px); }
  .f-art .phone:nth-child(2) { display: none; }

  /* Showcase: swipe pás s menšími telefony (víc jich vykoukne). */
  .showcase .phone { width: min(52vw, 195px); }
}

/* Užší telefony ještě zmenšíme, ať se vejdou pohodlně. */
@media (max-width: 400px) {
  .hero-art .phone { width: 62vw; }
  .f-art .phone { width: 58vw; }
  .showcase .phone { width: 55vw; }
}
