/* ==========================================================================
   Golden — landing site (v4, 2026-10)
   Layout inspired by a bento-mosaic hero: tiles with asymmetric radii on the
   left, big headline + numbered rows on the right. Warm grey page, white
   tiles, golden accent, the app's night plum as the dark tile.
   NOTE: app-web/ copies this file (build.mjs) for the legal pages — keep the
   "SHARED WITH APP-WEB" block at the bottom working.
   ========================================================================== */

:root {
  /* colour */
  --page: #EFEDE8;         /* warm light grey */
  --page-2: #E4E0D8;       /* deeper warm grey tile */
  --paper: #FFFFFF;
  --ink: #2A1A06;          /* brand chocolate ink */
  --muted: #5E564C;        /* secondary text, AA on --page and white */
  --line: rgba(42, 26, 6, .28);
  --line-soft: rgba(42, 26, 6, .12);
  --gold: #FBBF24;
  --amber: #F59E0B;
  --ember: #B45309;
  --ember-ink: #94420A;    /* ember dark enough for small text on grey */
  --plum: #2A2140;         /* app night UI */
  --plum-2: #3A2F57;
  --cream: #FFF3D0;
  --star: #FFD05B;

  /* type */
  --font-display: "Baloo 2", "Nunito", "Avenir Next Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* shape + rhythm */
  --gutter: clamp(16px, 4vw, 56px);
  --r-xl: clamp(44px, 6vw, 104px);
  --r-l: clamp(28px, 3.4vw, 48px);
  --r-s: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; padding-block: 4px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--ink); }
.brand__star { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 3px 4px rgba(120, 60, 0, .18)); }
.brand__word b { font-weight: 800; color: var(--ember); }
.brand--light { color: #fff; }
.brand--light .brand__word b { color: var(--gold); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #FFF6DE; }
.btn--dark:hover { background: #3E2A10; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--xl { min-height: 64px; padding: 0 34px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.round-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-out), background .2s;
}
.round-btn:hover { transform: scale(1.05); }
.round-btn--dark { background: var(--ink); color: var(--gold); }
.round-btn--light { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line-soft); }
.round-btn--xl { width: 64px; height: 64px; }

/* --------------------------------------------------------------------------
   HERO — row 1: brand + nav on one line; then mosaic (left) + copy and
   numbered rows (right). Mosaic bottom = bottom hairline of the last row.
   -------------------------------------------------------------------------- */
.hero {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: 0 var(--gutter) 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand nav"
    "copy copy"
    "mosaic mosaic"
    "rows rows";
  column-gap: 16px;
}
.hero__brand { grid-area: brand; align-self: center; }
.hero-nav { grid-area: nav; align-self: center; display: flex; align-items: center; justify-content: flex-end; gap: 28px; padding: 18px 0; }
.hero-nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: clamp(16px, 1.8vw, 32px); align-items: center; }
.hero-nav__links a { white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.hero-nav__links a:hover, .hero-nav__links a[aria-current="true"] { text-decoration-line: underline; }
.hero-nav__right { display: flex; align-items: center; gap: 14px; }
.lang { background: none; border: 0; padding: 8px 6px; font-weight: 800; font-size: 16px; line-height: 1; cursor: pointer; letter-spacing: .04em; }
.lang:hover { text-decoration: underline; text-underline-offset: 6px; }

.hero__copy { grid-area: copy; padding-top: clamp(20px, 5vw, 40px); display: grid; gap: 20px; align-content: start; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(46px, 11.5vw, 70px);
  line-height: .95; letter-spacing: -0.025em;
  max-width: 11ch;
}
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 40ch; }

/* CTA cluster: pill, arrow circle and thumbnail share one 64px row */
.cta { --cta-h: 64px; display: flex; align-items: center; flex-wrap: wrap; row-gap: 12px; margin-top: 8px; }
.cta > * { height: var(--cta-h); }
.cta .btn--xl { min-height: 0; padding-inline: clamp(22px, 3vw, 34px); }
@media (max-width: 420px) { .cta { --cta-h: 56px; } }

/* numbered rows */
.rows { grid-area: rows; list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 64px 44px minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 16px 0 18px; border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows__num { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.rows__thumb { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); object-fit: cover; object-position: 50% 30%; }
.rows p { font-size: 15px; line-height: 1.4; color: var(--muted); }
.rows p strong { display: block; color: var(--ink); font-weight: 800; font-size: 15.5px; }
.rows__tag { grid-column: 3; font-size: 13.5px; font-weight: 700; color: var(--ember-ink); }

/* mosaic — 2×2 bento: outer corners get the big radius, inner corners the small one */
.mosaic {
  --gap: 10px;
  grid-area: mosaic;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 360px 124px;
  gap: var(--gap); margin: 36px 0 28px;
}
.tile { position: relative; overflow: hidden; border-radius: var(--r-s); min-width: 0; }
.tile__caps { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.45; color: #F4EEFF; }
.tile__caps--ink { color: var(--ink); }

.tile--phone { background: var(--page-2); border-top-left-radius: var(--r-xl); }
.tile--phone { display: grid; place-items: center; padding: 22px 16px; background: radial-gradient(120% 80% at 50% 100%, #F7E3B0 0%, var(--page-2) 62%); }

/* iPhone 17 Pro style frame: titanium rim, black bezel, Dynamic Island, side keys.
   The whole screen stays visible (no crop). */
.iphone {
  --w: 230px;
  position: relative; width: var(--w); aspect-ratio: 800 / 1739; flex: none;
  padding: calc(var(--w) * .038);
  border-radius: calc(var(--w) * .2);
  background: #0B0B0C;
  box-shadow:
    0 0 0 calc(var(--w) * .009) #8C8B88,
    0 0 0 calc(var(--w) * .016) #3B3A38,
    0 28px 48px -12px rgba(42, 26, 6, .38);
}
.iphone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--w) * .165); background: #1C1308; }
.iphone::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 1; left: 50%; top: calc(var(--w) * .066); translate: -50% 0;
  width: 31%; height: calc(var(--w) * .088); border-radius: 999px; background: #000;
}
.iphone::after { /* side keys */
  content: ""; position: absolute; top: 24%; right: calc(var(--w) * -.026);
  width: calc(var(--w) * .014); height: 15%; border-radius: 0 3px 3px 0; background: #5B5A57;
  box-shadow: calc(var(--w) * -1.05) calc(var(--w) * -.12) 0 0 #5B5A57, calc(var(--w) * -1.05) calc(var(--w) * .26) 0 0 #5B5A57;
}
.iphone--hero { --w: min(240px, calc((100svh - 330px) * .46)); }
@media (max-width: 1023px) { .iphone--hero { --w: 142px; } }
@media (min-width: 640px) and (max-width: 1023px) { .iphone--hero { --w: 186px; } }

.tile--family { background: linear-gradient(175deg, #FFFFFF 0%, #FFF5DA 48%, #FBE2A0 100%); border-top-right-radius: var(--r-xl); }
.family-note { position: relative; z-index: 1; padding: 18px 18px 0; font-weight: 700; font-size: 13px; line-height: 1.45; }

/* mini film: tasks → wish → wish comes true → happy family (crossfade, 16s loop) */
.reel { position: absolute; inset: 0; }
.reel__img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(100%, 92%); height: auto; max-height: 72%; object-fit: contain; object-position: bottom; opacity: 0; }
.reel__img--wide { width: 128%; max-width: none; max-height: none; bottom: 18%; }
.reel__img:last-child { opacity: 1; }
.reel-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 3px; }
.reel-steps li { padding: 3px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, .7); }
.reel-steps li:last-child { background: var(--ink); color: #FFF6DE; }
@media (max-width: 639px) { .reel-steps { flex-wrap: wrap; } }
@media (prefers-reduced-motion: no-preference) {
  .reel__img { animation: reelImg 16s infinite; }
  .reel__img:last-child { opacity: 0; }
  .reel-steps li, .reel-steps li:last-child { animation: reelStep 16s infinite; background: rgba(255, 255, 255, .7); color: var(--muted); }
  .reel__img:nth-child(2), .reel-steps li:nth-child(2) { animation-delay: 4s; }
  .reel__img:nth-child(3), .reel-steps li:nth-child(3) { animation-delay: 8s; }
  .reel__img:nth-child(4), .reel-steps li:nth-child(4) { animation-delay: 12s; }
  @keyframes reelImg {
    0% { opacity: 0; transform: translateY(14px) scale(.97); }
    6%, 25% { opacity: 1; transform: none; }
    31%, 100% { opacity: 0; transform: translateY(-6px) scale(1.02); }
  }
  @keyframes reelStep {
    0%, 28% { background: var(--ink); color: #FFF6DE; }
    31%, 100% { background: rgba(255, 255, 255, .7); color: var(--muted); }
  }
}

.tile--gold { background: linear-gradient(160deg, var(--gold), var(--amber)); border-bottom-left-radius: var(--r-xl); color: var(--ink); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right; }
.tile--plum { background: var(--plum); border-bottom-right-radius: var(--r-xl); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; color: #F4EEFF; }
.tile--gold .tile__caps { max-width: 15ch; }
.tile__icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.tile__icons li { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 191, 36, .16); color: var(--gold); }
.tile__icons li:nth-child(2) { color: #FFD9A0; }
.tile__icons li:nth-child(3) { color: #FF9DB5; background: rgba(255, 157, 181, .14); }
.tile__claim { font-size: 13px; line-height: 1.35; color: #CFC6E6; }
.tile__claim strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.05; color: #fff; }
@media (max-width: 639px) { .tile__claim span { display: none; } .tile__icons li { width: 28px; height: 28px; } }
@media (min-width: 1024px) { .tile__claim strong { font-size: clamp(20px, 1.7vw, 26px); } .tile__claim { font-size: 14.5px; } }

@media (prefers-reduced-motion: no-preference) {
  .mosaic .tile { animation: tileIn .8s var(--ease-out) both; }
  .mosaic .tile:nth-child(even) { animation-delay: .1s; }
  .mosaic .tile:nth-child(n+3) { animation-delay: .18s; }
  @keyframes tileIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

@media (min-width: 640px) {
  .mosaic { grid-template-rows: 460px 150px; }
  .family-note { padding: 24px 26px 0; font-size: 14.5px; }
  .tile--gold, .tile--plum { padding: 24px 28px; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "brand nav"
      "mosaic copy"
      "mosaic rows";
    column-gap: clamp(40px, 5vw, 96px);
    height: clamp(780px, 100svh, 960px);
    padding-bottom: clamp(24px, 4vh, 44px);
  }
  .hero-nav { justify-content: space-between; padding: 26px 0; }
  .mosaic {
    --gap: 12px;
    margin: 0; min-height: 0;
    grid-template-columns: 1fr 1.08fr;
    grid-template-rows: minmax(0, 1fr) clamp(132px, 17vh, 168px);
  }
  .family-note { padding: 30px 30px 0; }
  .reel-steps li { font-size: 12px; padding: 4px 10px; }
  .hero__copy { align-self: center; padding-top: 0; gap: 24px; }
  .hero h1 { font-size: clamp(60px, 6vw, 96px); }
  .rows li { grid-template-columns: 96px 48px minmax(0, 1fr) auto; padding: 18px 0 20px; }
  .rows__num { font-size: 48px; }
  .rows__thumb { width: 48px; height: 48px; }
  .rows__tag { grid-column: auto; align-self: start; padding-top: 3px; white-space: nowrap; }
}
@media (min-width: 1180px) { .hero-nav__links { display: flex; } [data-menu-open] { display: none; } }
.ig { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); text-decoration: none; transition: background .2s; }
.ig:hover { background: rgba(42, 26, 6, .08); }
.ig[aria-disabled="true"] { cursor: default; }
.menu__ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: #fff; font-weight: 800; text-decoration: none; }
.menu__ig:hover { color: var(--gold); }
@media (min-width: 1024px) and (max-height: 860px) { .hero__rows li:nth-child(3) { display: none; } .hero__rows li:nth-child(2) { border-bottom: 1px solid var(--line); } }

/* --------------------------------------------------------------------------
   PINNED BAR + BACK TO TOP
   -------------------------------------------------------------------------- */
.pinbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 8px var(--gutter);
  background: rgba(239, 237, 232, .82);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(-110%); transition: transform .22s var(--ease-out);
}
.pinbar.is-shown { transform: none; }
.pinbar__inner { width: min(1328px, 100%); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.pinbar__nav { margin-left: auto; }
.pinbar .hero-nav__right { margin-left: auto; }
.pinbar__nav + .hero-nav__right { margin-left: 0; }
.pinbar .brand { font-size: 21px; }
.pinbar .brand__star { width: 34px; height: 34px; }
.pinbar .hero-nav__links a { font-size: 15px; }
.round-btn--sm { width: 44px; height: 44px; }
[id] { scroll-margin-top: 84px; }

.to-top {
  position: fixed; z-index: 45;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); text-decoration: none;
  box-shadow: 0 10px 24px rgba(42, 26, 6, .25);
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease-out);
}
.to-top.is-shown { opacity: 1; transform: none; }
.to-top:focus-visible { outline-color: var(--amber); }
@media (min-width: 1024px) { .to-top { right: calc(28px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }

/* --------------------------------------------------------------------------
   MENU OVERLAY
   -------------------------------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 50; visibility: hidden; transition: visibility 0s linear .5s; }
.menu[data-open="true"] { visibility: visible; transition-delay: 0s; }
.menu__backdrop { position: absolute; inset: 0; background: rgba(20, 14, 30, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease-out); border: 0; padding: 0; cursor: pointer; }
.menu[data-open="true"] .menu__backdrop { opacity: 1; }
.menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%;
  padding: 18px var(--gutter) 0;
  background: var(--plum); color: #fff;
  border-radius: 0;
  transform: translateX(100%); transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .menu__panel { width: 420px; padding-inline: 28px; border-radius: var(--r-xl) 0 0 0; } }
.menu[data-open="true"] .menu__panel { transform: translateX(0); }
.menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.menu__close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu__close:hover { background: rgba(255, 255, 255, .22); }
.menu__list { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu__list li { border-top: 1px solid rgba(255, 255, 255, .16); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 4px; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s, color .2s;
}
.menu__list a::before { counter-increment: m; content: counter(m, decimal-leading-zero); font-family: var(--font-body); font-size: 13px; font-weight: 800; color: var(--gold); }
.menu__list a:hover { color: var(--gold); }
.menu[data-open="true"] .menu__list a { opacity: 1; transform: none; }
.menu__cta { margin-top: auto; padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); opacity: 0; transition: opacity .4s; }
.menu[data-open="true"] .menu__cta { opacity: 1; transition-delay: .4s; }
.menu :focus-visible { outline-color: var(--gold); }

/* --------------------------------------------------------------------------
   SECTIONS — shared
   -------------------------------------------------------------------------- */
.wrap { width: min(1328px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 132px); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 860px; }
.sec-head h2, .author h2, .privacy h2, .finale h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: .98; letter-spacing: -0.02em; }
.sec-head--split { max-width: none; }
.sec-head--split > p { color: var(--muted); font-size: 18px; max-width: 46ch; }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 56px; }
}
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-ink); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker--light { color: var(--gold); }

.has-js .reveal { opacity: 0; transform: translateY(28px); }
.has-js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

/* --------------------------------------------------------------------------
   PROČ GOLDEN — bento of three
   -------------------------------------------------------------------------- */
.why { display: grid; gap: 12px; }
.why__tile { position: relative; overflow: hidden; display: grid; gap: 14px; align-content: start; padding: clamp(26px, 3vw, 44px); padding-right: clamp(26px, 3vw, 44px); min-height: 300px; border-radius: var(--r-s); }
.why__tile h3 { font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); max-width: 14ch; position: relative; }
.why__tile p { max-width: 38ch; font-size: 16.5px; line-height: 1.6; position: relative; }
.why__num { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.why__art { width: clamp(130px, 34%, 210px); height: auto; justify-self: end; margin-top: 6px; filter: drop-shadow(0 12px 16px rgba(42, 26, 6, .16)); }
.why__tile--white { background: var(--paper); border-top-left-radius: var(--r-xl); }
.why__tile--white p { color: var(--muted); }
.why__tile--gold { background: linear-gradient(160deg, var(--gold), var(--amber)); border-top-right-radius: var(--r-xl); }
.why__tile--plum { background: var(--plum); color: #fff; border-bottom-right-radius: var(--r-xl); }
.why__tile--plum p { color: #E6DEF7; }
.why__tile--plum .why__num { color: var(--gold); }
@media (min-width: 900px) {
  .why { grid-template-columns: 1.05fr 1fr; grid-template-rows: auto auto; }
  .why__tile--white { grid-row: 1 / 3; min-height: 560px; }
  .why__tile--white .why__art { position: absolute; right: 6%; bottom: 6%; width: 44%; }
  .why__tile--gold, .why__tile--plum { grid-template-columns: minmax(0, 1fr) 34%; column-gap: 16px; min-height: 274px; }
  .why__tile--gold > :not(img), .why__tile--plum > :not(img) { grid-column: 1; }
  .why__tile--gold .why__art, .why__tile--plum .why__art { grid-column: 2; grid-row: 1 / 4; align-self: end; width: 100%; margin: 0; }
}
.pledges { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pledges li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.pledges li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

/* --------------------------------------------------------------------------
   JAK TO FUNGUJE — three tiles with phones peeking from the bottom
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 28px 28px 0; background: var(--paper); border-radius: var(--r-s); }
.step:nth-child(1) { border-top-left-radius: var(--r-l); }
.step:nth-child(2) { border-top-right-radius: var(--r-l); }
.step:nth-child(3) { border-top-left-radius: var(--r-l); border-top-right-radius: var(--r-l); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--amber); -webkit-text-stroke: 1px var(--ember); }
.step h3 { font-weight: 800; font-size: 26px; }
.step p { color: var(--muted); font-size: 16px; max-width: 34ch; }
.step__shot { margin: 18px -28px 0; padding: 28px 0 30px; background: var(--page-2); border-radius: var(--r-s) var(--r-s) 0 0; display: flex; justify-content: center; }
.step__shot .iphone { --w: min(210px, 52vw); }

/* --------------------------------------------------------------------------
   CO UMÍ A CO CHYSTÁME — feature portfolio rows with votes
   -------------------------------------------------------------------------- */
.feats { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.feat__num { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; color: var(--muted); }
.feat__main { display: grid; gap: 4px; justify-items: start; }
.feat__main h3 { font-weight: 800; font-size: 21px; line-height: 1.15; }
.feat__main p { color: var(--muted); font-size: 15.5px; }
.feat__votes { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 820px) {
  .feat { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; padding: 20px 0; }
  .feat__num { font-size: 32px; }
  .feat__main { grid-template-columns: 112px minmax(0, 14em) minmax(0, 1fr); align-items: center; column-gap: 20px; justify-items: stretch; }
  .feat__main .chip { justify-self: start; }
  .feat__votes { grid-column: 3; justify-content: flex-end; }
}
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--live { background: var(--ink); color: var(--gold); }
.chip--planned { background: var(--gold); color: var(--ink); }
.chip--idea { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.vote {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 800; font-size: 14px; cursor: pointer;
  transition: background .2s, color .2s;
}
.vote:hover { background: rgba(42, 26, 6, .06); }
.vote[aria-pressed="true"] { background: var(--ink); color: var(--gold); }
.vote--no { border-color: var(--line); color: var(--muted); }
.vote--no[aria-pressed="true"] { background: var(--page-2); color: var(--ink); border-color: var(--ink); }

.vote-follow { grid-column: 1 / -1; margin: 6px 0 4px; padding: 20px; border-radius: var(--r-s) var(--r-l) var(--r-s) var(--r-s); background: var(--paper); display: grid; gap: 14px; }
@media (min-width: 820px) { .vote-follow { margin-left: 72px; padding: 22px 26px; } }
.vote-follow__thanks { font-size: 15.5px; }

/* subscribe form (inline after a vote + finale) */
.subscribe { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 800; }
.field input {
  width: 100%; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 16px/1 var(--font-body);
}
.field input:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.subscribe__privacy { font-size: 14px; font-weight: 700; color: var(--ember-ink); text-underline-offset: 3px; justify-self: start; }
.subscribe__msg { font-size: 14.5px; font-weight: 700; }
.subscribe__msg:empty { display: none; }
.subscribe__msg.is-ok { color: #1F6B3A; }
.subscribe__msg.is-err { color: #A02C14; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
  .subscribe--inline { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .subscribe--inline .check, .subscribe--inline .subscribe__privacy, .subscribe--inline .subscribe__msg { grid-column: 1 / -1; }
}
.vote-follow .field input { background: var(--page); border-color: transparent; }

/* --------------------------------------------------------------------------
   PROČ GOLDEN VZNIKLO — author + storyboard
   -------------------------------------------------------------------------- */
.author { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .author { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); } }
.author__photo {
  margin: 0; position: relative; overflow: hidden; aspect-ratio: 1;
  max-width: 480px; width: 100%;
  border-radius: var(--r-xl) var(--r-s) var(--r-xl) var(--r-s);
  background: linear-gradient(160deg, var(--gold), var(--amber));
}
.author__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.author__text { display: grid; gap: 18px; justify-items: start; }
.author__text > p:not(.kicker) { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 58ch; }
.author__sign { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink) !important; }
.author__sign::before { content: "— "; color: var(--amber); }
.link-arrow { font-weight: 800; color: var(--ember-ink); text-underline-offset: 4px; text-decoration-thickness: 2px; }

.board { margin-top: clamp(48px, 6vw, 80px); }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.board__title { font-weight: 800; font-size: 24px; }
.board__nav { display: flex; gap: 8px; }
.board__track {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.board__track:focus-visible { outline-offset: -3px; }
.board__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; }
.card {
  scroll-snap-align: start; width: min(78vw, 280px); flex: none;
  display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px;
  background: var(--paper); border-radius: var(--r-s);
}
.card:nth-child(odd) { border-top-left-radius: var(--r-l); }
.card:nth-child(even) { border-bottom-right-radius: var(--r-l); }
.card:nth-child(3) { background: linear-gradient(160deg, var(--gold), var(--amber)); }
.card:nth-child(6) { background: var(--plum); color: #fff; }
.card:nth-child(6) p { color: #E6DEF7; }
.card:nth-child(6) .card__num { color: var(--gold); }
.card__num { font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--ember-ink); }
.card:nth-child(3) .card__num { color: var(--ink); }
.card img { width: 150px; height: 150px; margin: 4px auto 6px; }
.card h4 { font-weight: 800; font-size: 21px; }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card:nth-child(3) p { color: var(--ink); }

/* --------------------------------------------------------------------------
   SOUKROMÍ — compact plum strip
   -------------------------------------------------------------------------- */
.privacy { background: var(--plum); color: #fff; border-radius: var(--r-s) var(--r-xl) var(--r-s) var(--r-s); padding: clamp(28px, 4vw, 56px); display: grid; gap: 28px; }
.privacy h2 { font-size: clamp(30px, 3.6vw, 48px); }
.privacy__head { display: grid; gap: 12px; }
.privacy__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .privacy__facts { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.privacy__facts li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.privacy__facts h3 { font-weight: 800; font-size: 20px; color: var(--gold); }
.privacy__facts p { color: #E6DEF7; font-size: 15.5px; }
.privacy__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.privacy__links a { color: #fff; font-weight: 800; text-underline-offset: 4px; }
.privacy :focus-visible { outline-color: var(--gold); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
@media (min-width: 900px) { .faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; translate: 0 -50%; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1A06' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq__body { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* --------------------------------------------------------------------------
   STÁHNOUT + NOVINKY
   -------------------------------------------------------------------------- */
.finale { display: grid; gap: 12px; }
@media (min-width: 900px) { .finale { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.finale__main { position: relative; display: grid; gap: 18px; justify-items: start; align-content: start; padding: clamp(28px, 4vw, 56px); background: linear-gradient(160deg, var(--gold), var(--amber)); border-radius: var(--r-xl) var(--r-s) var(--r-s) var(--r-s); }
.finale__main h2 { max-width: 12ch; position: relative; }
.finale__main > p { max-width: 40ch; font-size: 18px; position: relative; }
.finale__star { position: absolute; z-index: 1; right: clamp(16px, 4vw, 56px); top: clamp(-96px, -7vw, -48px); width: clamp(120px, 16vw, 210px); height: auto; rotate: 12deg; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(120, 60, 0, .28)); }
.finale { margin-top: clamp(48px, 6vw, 96px); }
.finale__news { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 4vw, 48px); background: var(--paper); border-radius: var(--r-s) var(--r-s) var(--r-xl) var(--r-s); }
.finale__news h3 { font-weight: 800; font-size: 28px; }
.finale__news > p { color: var(--muted); }
.finale__news .field input { background: var(--page); border-color: transparent; }
.finale__news .btn { justify-self: start; }

/* store badges (official Apple / Google badges) */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: relative; }
.badge-link { position: relative; display: inline-flex; border-radius: 10px; transition: transform .2s var(--ease-out), opacity .2s; }
.badge-link:hover { transform: translateY(-1px); }
.badge-img { height: 50px; width: auto; display: block; }
.badge-link.is-soon .badge-img { opacity: .62; filter: grayscale(.2); }
.badge-link.is-soon::after { content: "Brzy"; position: absolute; top: -8px; right: -8px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--gold); font: 800 11px/1.4 var(--font-body); }
html[lang="en"] .badge-link.is-soon::after { content: "Soon"; }
.badges__status { font-size: 14.5px; font-weight: 700; max-width: 42ch; position: relative; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { padding-block: 40px 56px; font-size: 15px; color: var(--muted); }
.footer .wrap { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 32px; }
@media (min-width: 720px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.footer__brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer__copy { display: grid; gap: 6px; }
.footer__copy a { color: var(--ink); font-weight: 700; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { text-decoration: none; font-weight: 700; color: var(--ink); }
.footer nav a:hover { color: var(--ember-ink); text-decoration: underline; }

/* --------------------------------------------------------------------------
   SHARED WITH APP-WEB (legal + support pages copy this stylesheet)
   -------------------------------------------------------------------------- */
.nav { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.nav__links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links a { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.nav__links a:hover { background: var(--cream); }
.brand__icon { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 6px rgba(120, 60, 0, .25); }
.legal-top { background: linear-gradient(160deg, var(--gold), var(--amber)); color: var(--ink); border-radius: 0 0 var(--r-xl) 0; }
.legal-top__title { padding: 24px 0 56px; display: grid; gap: 10px; }
.legal-top__title h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
.legal-top__title p { font-size: 17px; }
.legal { padding-block: 48px 96px; }
.legal .wrap { max-width: 780px; display: grid; gap: 28px; }
.legal h2 { font-size: 26px; margin-top: 12px; }
.legal h3 { font-size: 20px; margin-top: 6px; }
.legal p, .legal li { color: var(--muted); }
.legal ul, .legal ol { padding-left: 22px; margin: 0; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { color: var(--ink); font-weight: 800; }
.legal .table-wrap { overflow-x: auto; }
.legal .callout { padding: 18px 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink); }
.legal a { color: var(--ember-ink); font-weight: 700; }
.legal .steps-list li { padding: 4px 0; }
.legal .meta { font-size: 14px; color: var(--muted); }

/* testovací prostředí (docs/ENVIRONMENTS.md) */
.env-bar { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 100; padding: 6px 12px; border-radius: 999px; background: #2A1A06; color: #FFD54A; font: 800 12px/1.2 var(--font-body); letter-spacing: .04em; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); pointer-events: none; opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .has-js .reveal { opacity: 1; transform: none; }
}

/* small-screen refinements */
@media (max-width: 639px) {
  .tile__caps { font-size: 11.5px; letter-spacing: .12em; }
  .finale__star { width: 104px; top: -52px; right: 18px; }
  .finale__main h2 { max-width: 9ch; }
  .vote { min-height: 38px; padding: 0 14px; }
}
.step { display: flex; flex-direction: column; }
.step__shot { margin-top: auto; flex: none; }
.step p { margin-bottom: 18px; }

/* storyboard marquee (site.js clones the cards; reduced motion keeps the manual scroller) */
.board__track.is-marquee {
  scroll-snap-type: none; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.board__track.is-marquee::-webkit-scrollbar { display: none; }
.board__track.is-marquee .card { scroll-snap-align: none; }
