/* =====================================================================
   Cinkáto – rozvržení: kontejnery, navigace, stage s telefonem, sekce, patička
   ===================================================================== */

/* ---------- Kontejnery ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(860px + 2 * var(--gutter)); }

/* ---------- Navigace (sticky, glassmorphism) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px var(--gutter) 0;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  min-height: 60px;
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand-coin {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 12px rgba(245, 197, 24, 0.35));
}
.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { min-height: 40px; padding-inline: 0.85em; font-weight: 800; letter-spacing: 0.04em; }
.lang-switch:hover { border-color: var(--line-strong); color: var(--gold-light); }

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 4px;
    margin-right: auto;
  }
  .nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
  }
  .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
  .brand { margin-right: 12px; }
}

/* ---------- Sekce ---------- */
.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section-head {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 40rem;
}
.section-title { font-size: var(--fs-h2); }
.section-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36rem; }
.sub-title { font-size: 1.4rem; margin-bottom: 6px; }

/* Tenká zlatá svislá linka vlevo od nadpisu (motiv z videa) */
.section-head::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(12px, 2vw, 28px));
  width: 1px;
  height: 120px;
  margin-top: -12px;
  background: linear-gradient(180deg, transparent, var(--gold) 40%, transparent);
  opacity: 0.55;
}
@media (max-width: 639px) {
  .section-head::before { left: 4px; height: 80px; }
}

/* ---------- Stage: sekce + sticky telefon ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.stage > * { min-width: 0; }

/* Hero */
.hero {
  display: grid;
  align-items: center;
  padding-top: clamp(40px, 8vw, 72px);
  padding-bottom: 24px;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-title { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; padding-bottom: 0.06em; }
.hero-lead { font-size: var(--fs-lead); color: var(--muted); max-width: 34rem; }
.hero-cta { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.hero-meta { color: var(--faint); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; }
.eyebrow { white-space: normal; }

/* Sloupec s telefonem */
.phone-col { position: relative; }
.phone-sticky {
  position: relative;
  display: grid;
  place-items: center;
  /* Mobil: výšku určuje mockup, kolem je místo pro mince ve 3D */
  padding-block: 28px 56px;
}
.phone-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(245, 197, 24, 0.22), rgba(242, 140, 26, 0.06) 55%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}
.phone-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  pointer-events: none;
}
.phone-col.is-3d .phone-canvas { opacity: 1; }
.phone-col.is-3d [data-static-phone] { opacity: 0; transform: scale(0.96); }

/* Desktop: dva sloupce, telefon sticky přes sekce */
@media (min-width: 1024px) {
  .stage {
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.75fr);
    column-gap: clamp(32px, 4vw, 72px);
  }
  .stage > .section { grid-column: 1; }
  .phone-col {
    grid-column: 2;
    grid-row: 1 / span 40;
  }
  .phone-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding-block: 0;
  }
  /* Canvas přesahuje sloupec, ať mince kolem telefonu mají místo (je pod obsahem, neklikatelný) */
  .phone-canvas {
    left: -12vw;
    width: calc(100% + 24vw);
    max-width: none;
  }
  .hero {
    min-height: calc(100svh - var(--header-h));
    padding-block: 48px;
  }
}

/* ---------- Patička ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.6), transparent);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand .brand { color: var(--text); }
.footer-tagline { color: var(--muted); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-legal { display: grid; gap: 8px; font-size: 0.85rem; color: var(--faint); }
.footer-apple { font-size: 0.78rem; }
.product-hunt:hover { border-color: var(--line-strong); }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr; }
  .footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.1fr 0.7fr 1.2fr; }
  .footer-legal { grid-column: auto; padding-top: 0; border-top: 0; }
}

/* ---------- Podstránky ---------- */
.page-head { display: grid; gap: 12px; padding-block: 56px 32px; }
