/* Darčekovník landing page. Tokens follow brand/README.md; no external resources (CSP: self). */

/* ---------- fonts (self-hosted, OFL 1.1 — see fonts/LICENSE-*) ---------- */
@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Outfit Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  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: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  /* brand palette */
  --malina: #B0204F;
  --malina-deep: #8F1A40;      /* hover of the primary button; white on it 9.0 : 1 */
  --malina-tint: #FBE4EC;
  --med: #F5B63E;
  --med-tint: #FDF0CF;
  --med-ink: #8A5B00;
  --ink: #2B1B2E;               /* Atrament, 15.3 : 1 on Krém */
  --muted: #6E6170;             /* Sivá slivka, 5.5 : 1 on Krém */
  --krem: #FFF8F0;
  --white: #FFFFFF;
  --line: #EFE4D8;              /* warm hairline */
  --free-ink: #1B7A52;
  --free-tint: #E3F4EC;
  --taken-tint: #F1EDF2;

  /* type */
  --font-display: "Outfit Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Figtree Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.375rem, 1.78rem + 2.54vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.46rem + 1.76vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.16rem + 0.39vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;

  /* space and shape */
  --wrap: 1120px;
  --gutter: max(20px, 4vw);
  --section: clamp(72px, 44px + 7.2vw, 144px);
  --r-tile: 24px;
  --r-card: 16px;
  --r-pill: 980px;
  --shadow-soft: 0 1px 2px rgba(43, 27, 46, 0.04), 0 12px 32px -12px rgba(43, 27, 46, 0.12);
  --shadow-phone: 0 2px 4px rgba(43, 27, 46, 0.06), 0 40px 80px -32px rgba(43, 27, 46, 0.35);

  /* motion */
  --ease-ui: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--krem);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.018em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--malina); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--malina); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; }
.icon { width: 1.25em; height: 1.25em; fill: none; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 20;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-white { background: var(--white); }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 + p { margin-top: 16px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.45; }
/* quiet on purpose: Malina is kept for actions */
.eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font: 600 var(--fs-body)/1.3 var(--font-display);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--r-pill);
  background: var(--malina); color: var(--white);
  font: 600 1.0625rem/1 var(--font-display); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.24s var(--ease-ui), transform 0.24s var(--ease-ui);
}
.btn:hover { background: var(--malina-deep); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.btn-light { background: var(--white); color: var(--malina); }
.btn-light:hover { background: var(--krem); }
.btn-light:focus-visible { outline-color: var(--white); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 600 1.0625rem/1 var(--font-display);
  text-decoration: none;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform 0.24s var(--ease-ui); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 240, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-ui);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
/* the lockup file carries its own clear space; pull it back so the box sits on the page's left edge */
.brand { display: block; margin-right: auto; margin-left: 0; border-radius: 8px; }
.brand img { width: 185px; height: 46px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a, .signin {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: var(--fs-small); font-weight: 500; text-decoration: none;
}
.site-nav a:hover, .signin:hover { color: var(--malina); }
.site-nav { margin-right: 12px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 56px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { max-width: 13.5em; }
.hero h1 span { display: block; color: var(--malina); }
.hero .lead { max-width: 31em; margin-top: 24px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.hero .note { margin-top: 20px; color: var(--muted); font-size: var(--fs-small); }

/* ---------- phone illustration (guest view of a wishlist; drawn in HTML/CSS, not a screenshot) ---------- */
.phone-stage { position: relative; justify-self: center; width: min(100%, 340px); }
.phone-stage::before {
  /* one flat Med disc behind the phone: the bow of the logo, enlarged */
  content: ""; position: absolute; z-index: 0;
  width: 78%; aspect-ratio: 1; right: -18%; top: -6%;
  border-radius: 50%; background: var(--med-tint);
}
.phone {
  position: relative; z-index: 1;
  padding: 10px; border-radius: 44px;
  background: var(--ink);
  box-shadow: var(--shadow-phone);
}
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 34px; background: var(--krem);
  padding: 22px 14px 16px;
  font-size: 0.8125rem; line-height: 1.35;
}
.phone-screen::before {
  content: ""; display: block; width: 72px; height: 5px; margin: 0 auto 18px;
  border-radius: 3px; background: rgba(43, 27, 46, 0.14);
}
.m-head { display: flex; align-items: center; gap: 12px; padding: 0 4px 14px; }
.m-avatar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--malina-tint); color: var(--malina);
  font: 600 1rem/1 var(--font-display);
}
.m-title { font: 600 1.0625rem/1.2 var(--font-display); }
.m-sub { color: var(--muted); font-size: 0.75rem; }
.m-list { display: grid; gap: 10px; }
.m-wish {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: start;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white);
}
.m-thumb {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--krem); color: var(--muted);
}
.m-thumb .icon { width: 22px; height: 22px; }
.m-name { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 0.875rem; }
.m-price { color: var(--muted); font-weight: 500; white-space: nowrap; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 26px; }
.m-hearts { display: inline-flex; gap: 1px; color: var(--malina); }
.m-hearts .icon { width: 12px; height: 12px; }
.m-hearts .off { color: #D9CFDB; }
.m-by { color: var(--muted); font-size: 0.75rem; }
.m-action {
  grid-column: 1 / -1; display: grid; place-items: center; height: 36px; margin-top: 8px;
  border-radius: var(--r-pill); background: var(--malina); color: var(--white);
  font: 600 0.8125rem/1 var(--font-display);
}
.m-toast {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; padding: 12px 14px; border-radius: var(--r-card);
  background: var(--ink); color: var(--white); font-size: 0.78125rem;
}
.m-toast .icon { width: 18px; height: 18px; color: var(--med); margin-top: 1px; }
.phone-caption { position: relative; z-index: 1; margin-top: 16px; color: var(--muted); font-size: var(--fs-caption); text-align: center; }

/* status chips — icon + label, colours from brand/README.md */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 7px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; }
.chip-free { background: var(--free-tint); color: var(--free-ink); }
.chip-mine { background: var(--malina-tint); color: var(--malina); }
.chip-taken { background: var(--taken-tint); color: var(--muted); }

/* The reservation in the phone plays once: free -> button pressed -> reserved by me + confirmation.
   Without animation (reduced motion, old browser) the final, reserved state is what is drawn. */
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; justify-self: start; }
.m-wish .before { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .m-wish .before { animation: swap-out 3.2s var(--ease-ui) 0.3s both; }
  .scene.is-active .m-wish .after { animation: swap-in 3.2s var(--ease-ui) 0.3s both; }
  .scene.is-active .m-action.before { animation: press 3.2s var(--ease-ui) 0.3s both; }
  .scene.is-active .m-wish-becomes-mine { animation: becomes-mine 3.2s var(--ease-ui) 0.3s both; }
  .scene.is-active .m-toast { animation: toast 3.2s var(--ease-out) 0.3s both; }
}
@keyframes becomes-mine {
  0%, 54% { background: var(--white); border-color: var(--line); box-shadow: none; }
  62%, 100% { background: var(--malina-tint); border-color: var(--malina); box-shadow: inset 0 0 0 1px var(--malina); }
}
@keyframes swap-out { 0%, 52% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes swap-in { 0%, 54% { opacity: 0; } 62%, 100% { opacity: 1; } }
@keyframes press {
  0%, 40% { opacity: 1; transform: scale(1); }
  46% { opacity: 1; transform: scale(0.96); }
  52% { opacity: 1; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes toast {
  0%, 62% { opacity: 0; transform: translateY(12px); }
  76%, 100% { opacity: 1; transform: translateY(0); }
}
/* the button row holds both states in one cell so the card never changes height */
.m-foot { grid-column: 1 / -1; display: grid; margin-top: 8px; }
.m-foot > * { grid-area: 1 / 1; margin-top: 0; }
.m-done {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px;
  border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted);
  font: 600 0.8125rem/1 var(--font-display);
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px 36px; border-radius: var(--r-tile);
  background: var(--white);
}
.step-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px;
  border-radius: 16px; background: var(--malina-tint); color: var(--malina);
}
.step-icon .icon { width: 26px; height: 26px; }
.step::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: 28px; right: 28px;
  color: var(--line); font: 600 3.25rem/1 var(--font-display);
}
.step p { margin-top: 12px; color: var(--muted); }

/* ---------- surprise explainer ---------- */
.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.view { padding: 28px; border-radius: var(--r-tile); background: var(--krem); }
.view-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.view-head .icon { width: 24px; height: 24px; color: var(--muted); }
.view-head h3 { font-size: 1.1875rem; }
.view-head p { color: var(--muted); font-size: var(--fs-small); }
.rows { border-radius: var(--r-card); background: var(--white); border: 1px solid var(--line); }
.rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 16px; font-weight: 500; font-size: 1rem;
}
.rows li + li { border-top: 1px solid var(--line); }
.rows .who { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; color: var(--muted); font-size: var(--fs-caption); font-weight: 400; }
.view-note { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: clamp(40px, 5vw, 64px); }
.fact .icon { width: 28px; height: 28px; margin-bottom: 16px; color: var(--ink); }
.fact h3 { font-size: 1.1875rem; }
.fact p { margin-top: 8px; color: var(--muted); }

/* ---------- occasions ---------- */
.occasions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.occasion { padding: 28px 24px 32px; border-radius: var(--r-tile); background: var(--white); }
.occasion-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px;
  border-radius: 50%; background: var(--med-tint); color: var(--med-ink);
}
.occasion-icon .icon { width: 26px; height: 26px; }
.occasion p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.occasion p a { white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 600 1.1875rem/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--malina); }
.faq-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: var(--white); color: var(--ink);
  transition: transform 0.3s var(--ease-ui), background-color 0.24s var(--ease-ui);
}
.faq-toggle .icon { width: 16px; height: 16px; }
.faq details[open] .faq-toggle { transform: rotate(45deg); }
.faq details p { max-width: 60ch; padding: 0 52px 24px 0; color: var(--muted); }
.faq details p + p { margin-top: -12px; }

/* ---------- closing call to action ---------- */
.cta { padding-bottom: var(--section); }
.cta-tile {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: 32px; background: var(--malina); color: var(--white);
}
.cta-tile h2 { max-width: 18em; }
.cta-tile p { max-width: 34em; margin-top: 16px; color: #FBE4EC; font-size: var(--fs-lead); line-height: 1.45; }
.cta-tile .btn { margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer { padding-block: 40px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-brand { margin-left: 0; }
.footer-brand img { width: 161px; height: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--malina); text-decoration: underline; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.footer-social a:hover { background: var(--line); }
.footer-social img { display: block; width: 32px; height: 32px; }
.footer-legal { width: 100%; }

/* ---------- placeholder legal pages ---------- */
.plain { min-height: 60vh; padding-block: clamp(56px, 8vw, 120px); }
.plain h1 { font-size: var(--fs-h2); }
.plain p { max-width: 38em; margin-top: 20px; color: var(--muted); font-size: var(--fs-lead); }
.plain .link-arrow { margin-top: 28px; }

/* ---------- entrance (only after site.js opts in; content is visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
  .reveal.is-in:nth-child(2) { transition-delay: 0.08s; }
  .reveal.is-in:nth-child(3) { transition-delay: 0.16s; }
  .reveal.is-in:nth-child(4) { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { margin-bottom: 8px; }
}
@media (max-width: 820px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .steps, .views, .facts { grid-template-columns: 1fr; }
  .facts { gap: 32px; }
  .step { padding: 28px 24px 32px; }
  .view { padding: 20px; }
}
@media (max-width: 520px) {
  .bar { min-height: 60px; gap: 12px; }
  .brand img { width: 161px; height: 40px; }
  .signin { display: none; }
  .actions .btn { width: 100%; }
  .actions { justify-content: center; }
  .occasions { grid-template-columns: 1fr; }
  .occasion { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 20px; }
  .occasion-icon { grid-row: span 2; margin-bottom: 0; }
  .occasion p { margin-top: 4px; }
  .faq summary { font-size: 1.0625rem; }
  .faq details p { padding-right: 0; }
  .rows li { flex-wrap: wrap; gap: 6px 12px; }
  .rows .who { justify-content: flex-start; width: 100%; }
  .rows li:not(:has(.who)) { min-height: 52px; }
  .cta-tile { border-radius: 24px; }
  .cta-tile .btn { width: 100%; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

/* ---------- v1.1 features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px 28px 32px; border-radius: var(--r-tile); background: var(--krem); }
.feature-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px;
  border-radius: 16px; background: var(--white); color: var(--malina);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.feature .link-arrow { margin-top: 8px; font-size: 1rem; }

/* ---------- AI assistants ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ai-grid .section-head { margin-bottom: 0; }
.ai-points { display: grid; gap: 14px; margin-top: 28px; }
.ai-points li { display: flex; gap: 12px; align-items: flex-start; }
.ai-points .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--free-ink); }
.chat {
  display: grid; gap: 12px; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-tile); background: var(--white); box-shadow: var(--shadow-soft);
  font-size: 0.9375rem; line-height: 1.45;
}
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 20px; }
.bubble-me { justify-self: end; border-bottom-right-radius: 6px; background: var(--ink); color: var(--white); }
.bubble-ai { justify-self: start; border-bottom-left-radius: 6px; background: var(--krem); color: var(--ink); }
.bubble-ai .icon { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--malina); }
.chat-caption { margin-top: 16px; color: var(--muted); font-size: var(--fs-caption); text-align: center; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin-inline: auto; }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vw, 40px); border-radius: var(--r-tile);
  background: var(--white); border: 1px solid var(--line);
}
.plan-plus { border: 2px solid var(--malina); }
.plan-name { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h3); }
.plan-badge {
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--med-tint); color: var(--med-ink);
  font: 600 0.8125rem/1.5 var(--font-text);
}
.plan-price { margin-top: 20px; font: 600 clamp(2.5rem, 2rem + 2vw, 3.25rem)/1 var(--font-display); letter-spacing: -0.02em; }
.plan-term { margin-top: 8px; color: var(--muted); font-size: var(--fs-small); }
.plan-list { display: grid; gap: 12px; margin-top: 28px; margin-bottom: 32px; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; }
.plan-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--free-ink); }
.plan-list strong { font-weight: 600; }
.plan-sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.plan .btn, .plan .plan-hint { margin-top: auto; }
.plan .btn { align-self: flex-start; }
.plan-hint { color: var(--muted); font-size: var(--fs-small); }
.guests {
  display: flex; gap: 14px; align-items: flex-start; max-width: 920px; margin: 28px auto 0;
  padding: 20px 24px; border-radius: var(--r-card); background: var(--free-tint); color: var(--ink);
}
.guests .icon { width: 24px; height: 24px; color: var(--free-ink); margin-top: 1px; }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ai-grid, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; padding: 20px; }
  .feature-icon { grid-row: span 3; margin-bottom: 0; }
  .feature p { margin-top: 4px; }
  .plan .btn { width: 100%; }
}

/* ---------- name-day pages: /meniny, /meniny/<dd>-<mm>/, /meniny/<mesiac>/ (generated by tools/build-namedays.py) ---------- */
.nd-hero { padding-block: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); font-size: var(--fs-small); }
.crumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.crumbs span { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--malina); text-decoration: underline; }
.nd-eyebrow { display: flex; align-items: center; gap: 8px; margin: clamp(24px, 4vw, 40px) 0 16px; }
.nd-eyebrow .icon { color: var(--malina); }
.nd-title { max-width: 18em; font-size: var(--fs-h3); line-height: 1.2; font-weight: 500; }
.nd-lead { display: block; color: var(--ink); }
.nd-names {
  display: block; margin-top: 8px; color: var(--malina);
  font-size: var(--fs-h1); font-weight: 600; line-height: 1.06; letter-spacing: -0.022em;
  overflow-wrap: anywhere;
}
.nd-names-none { color: var(--muted); }
.nd-title-month { font-size: var(--fs-h1); font-weight: 600; line-height: 1.06; letter-spacing: -0.022em; }
.nd-note { max-width: 38em; margin-top: 20px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.45; }
.nd-daynav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nd-daynav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white);
  color: var(--ink); font: 600 var(--fs-small)/1 var(--font-display); text-decoration: none;
  transition: border-color 0.24s var(--ease-ui), color 0.24s var(--ease-ui);
}
.nd-daynav a:hover { border-color: var(--malina); color: var(--malina); }
.nd-daynav .icon { width: 1em; height: 1em; }

.nd-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "up cta" "month cta" "months cta";
  gap: 20px clamp(20px, 4vw, 56px); align-items: start;
  padding-bottom: var(--section);
}
.nd-grid-month { grid-template-areas: "up cta" "months cta"; }
.nd-upcoming { grid-area: up; }
.nd-cta { grid-area: cta; }
.nd-monthlink { grid-area: month; }
.nd-months { grid-area: months; margin-top: clamp(28px, 4vw, 48px); }
.nd-subhead { margin-bottom: 16px; font-size: 1.1875rem; line-height: 1.3; }

.nd-days { border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--white); overflow: hidden; }
.nd-days li + li { border-top: 1px solid var(--line); }
.nd-days a {
  display: grid; grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.2fr) auto; align-items: center; gap: 4px 16px;
  min-height: 60px; padding: 12px 20px; color: var(--ink); text-decoration: none;
  transition: background-color 0.2s var(--ease-ui);
}
.nd-days a:hover { background: var(--krem); }
.nd-days a:hover .nd-who { color: var(--malina); }
.nd-days a:focus-visible { outline-offset: -3px; border-radius: 0; }
.nd-when { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; color: var(--muted); font-size: var(--fs-small); line-height: 1.3; }
.nd-when strong { color: var(--ink); font: 600 1rem/1.3 var(--font-display); }
.nd-who { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.nd-empty { color: var(--muted); font-weight: 400; font-size: var(--fs-small); }
.nd-chev { width: 18px; height: 18px; color: var(--muted); }

.nd-cta {
  position: sticky; top: 96px;
  padding: clamp(28px, 3.5vw, 40px); border-radius: var(--r-tile);
  background: var(--white); box-shadow: var(--shadow-soft);
}
.nd-cta-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px;
  border-radius: 50%; background: var(--med-tint); color: var(--med-ink);
}
.nd-cta-icon .icon { width: 26px; height: 26px; }
.nd-cta h2 { font-size: var(--fs-h3); }
.nd-cta p { margin-top: 12px; color: var(--muted); }
.nd-cta .btn { margin-top: 24px; }
.nd-cta .nd-cta-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.nd-cta-alt a { font-weight: 600; }

.nd-months ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-months a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line);
  color: var(--ink); font-size: var(--fs-small); font-weight: 500; text-decoration: none;
}
.nd-months a:hover { border-color: var(--malina); color: var(--malina); }
.nd-months a[aria-current], .nd-months a.is-current { background: var(--malina); border-color: var(--malina); color: var(--white); }

@media (max-width: 820px) {
  .nd-grid { grid-template-columns: 1fr; grid-template-areas: "cta" "up" "month" "months"; }
  .nd-grid-month { grid-template-areas: "up" "cta" "months"; }
  .nd-cta { position: static; }
}
@media (max-width: 520px) {
  .nd-days a { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .nd-when, .nd-who { grid-column: 1; }
  .nd-chev { grid-column: 2; grid-row: 1 / span 2; }
  .nd-cta .btn { width: 100%; }
  .nd-daynav a { flex: 1 1 0; justify-content: center; padding: 0 12px; }
}

/* "čoskoro" next to a feature that is not offered yet (T-120: AI assistants) */
.soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--malina-tint); color: var(--malina-deep); font-size: 0.75rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; text-transform: none; vertical-align: middle; }


/* ---------- hero scenes (T-122): five app screens take turns in the phone ----------
   All scenes share one grid cell, so the phone keeps the height of the tallest. Without JavaScript only the first
   (marked is-active in the markup) is shown; site.js rotates them and shows the dots. */
.phone-screen { display: grid; }
.phone-screen::before { grid-area: 1 / 1; align-self: start; }
.scene { grid-area: 1 / 1; padding-top: 23px; opacity: 0; visibility: hidden; transform: translateX(-24px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s; }
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease-out) 0.2s, transform 0.55s var(--ease-out) 0.2s, visibility 0s; }
/* the next scene comes in from the right, the old one leaves to the left */
.scene.is-active ~ .scene:not(.is-active) { transform: translateX(24px); }
@media (prefers-reduced-motion: reduce) { .scene, .scene.is-active ~ .scene { transform: none; } }

/* whose the wish is, as a whole card (Marek 2026-11-26): mine Malina, taken by others grey */
.m-wish-becomes-mine { background: var(--malina-tint); border-color: var(--malina); box-shadow: inset 0 0 0 1px var(--malina); }
.m-wish.is-taken { background: var(--taken-tint); border-color: transparent; }
.m-wish.is-taken .m-thumb { opacity: 0.55; }
.m-wish.is-taken .m-name > span:first-child { color: var(--muted); }

.m-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.m-card + .m-card { margin-top: 10px; }
.m-name > span:first-child:has(.icon) { display: inline-flex; align-items: center; gap: 6px; }
.m-name .icon { width: 16px; height: 16px; flex: none; color: var(--malina); }
.m-avatar-icon .icon { width: 20px; height: 20px; }

.m-progress { height: 8px; margin: 10px 0 6px; border-radius: 4px; background: var(--krem); overflow: hidden; }
.m-progress-bar { display: block; height: 100%; width: var(--to); border-radius: inherit; background: var(--malina); }
.m-progress-label { color: var(--muted); font-size: 0.75rem; }
.m-progress-label strong { color: var(--ink); }

.m-people { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.78125rem; }
.m-people li { display: flex; align-items: center; gap: 8px; }
.m-people li > span:last-child { margin-left: auto; color: var(--muted); font-weight: 600; }
.m-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--malina-tint); color: var(--malina); font: 600 0.6875rem/1 var(--font-display); }
.m-gift .m-action { margin-top: 12px; }

.m-occasion { display: flex; align-items: center; gap: 12px; }
.m-occasion + .m-occasion { margin-top: 0; }
.m-days { flex: none; min-width: 58px; padding: 6px 8px; border-radius: 10px; background: var(--krem); color: var(--ink); font: 600 0.75rem/1.2 var(--font-display); text-align: center; }
.m-soon { border-color: var(--malina); }
.m-soon .m-days { background: var(--malina); color: var(--white); }
.m-occ-title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.875rem; }
.m-occ-title .icon { width: 16px; height: 16px; color: var(--malina); }

.m-own .m-meta { min-height: 18px; }
.m-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--med-tint); color: var(--ink); font-size: 0.78125rem; }
.m-note .icon { width: 18px; height: 18px; flex: none; color: var(--ink); margin-top: 1px; }

.m-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 4px; height: 72px; margin-top: 12px; }
.m-bars span { height: var(--h); min-height: 3px; border-radius: 3px 3px 0 0; background: var(--malina-tint); }
.m-bars .m-bar-peak { background: var(--malina); }
.m-bar-labels { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 0.6875rem; }
.m-people.m-spend { margin-top: 10px; padding: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .m-progress-bar { animation: fill 1s var(--ease-out) 0.3s both; }
  .scene.is-active .m-new { animation: toast 2.6s var(--ease-out) 0.3s both; }
  .scene.is-active .m-bars span { animation: grow 0.9s var(--ease-out) both; }
  .scene.is-active .m-bars span:nth-child(n+7) { animation-delay: 0.15s; }
  .scene.is-active .m-occasion { animation: rise 0.6s var(--ease-out) both; }
  .scene.is-active .m-occasion:nth-child(2) { animation-delay: 0.12s; }
  .scene.is-active .m-occasion:nth-child(3) { animation-delay: 0.24s; }
  .scene.is-active .m-note { animation: toast 2.6s var(--ease-out) 0.2s both; }
}
@keyframes fill { from { width: 0; } to { width: var(--to); } }
@keyframes grow { from { height: 3px; } to { height: var(--h); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.scene-dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.scene-dots[hidden] { display: none; }
.scene-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.scene-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(43, 27, 46, 0.2); transition: width 0.3s var(--ease-out), background-color 0.3s; }
.scene-dot[aria-current="true"]::before { width: 22px; background: var(--malina); }
.scene-dots + .phone-caption { margin-top: 6px; }

/* ---------- legal pages (generated by tools/build-legal.py from docs/legal/*.md) ---------- */
.legal .wrap { max-width: 46em; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { margin-top: 48px; font-size: var(--fs-h3, 1.375rem); }
.legal h3 { margin-top: 28px; font-size: 1.0625rem; }
.legal p, .legal li { max-width: none; color: var(--ink); font-size: 1rem; line-height: 1.65; }
.legal p { margin-top: 14px; }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 1.4em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li::marker { color: var(--malina); }
.legal li + li { margin-top: 6px; }
.legal li > ul, .legal li > ol { margin-top: 6px; }
.legal code { font-size: 0.9em; }
.legal-table { margin-top: 16px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font-weight: 600; background: var(--white); }

/* photos in the hero scenes (brand/scenes/*.jpg, Pexels licence; sources in docs/design/scene-photos.md) */
.m-thumb img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.m-avatar img, .m-dot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.m-avatar:has(img), .m-dot:has(img) { overflow: hidden; background: none; }
.m-occ-title img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.m-gift-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.m-gift-head img { width: 56px; height: 56px; border-radius: 14px; }
.m-gift-head .m-sub { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.m-gift-head .m-sub .icon { width: 14px; height: 14px; color: var(--malina); }
