/* CHCI NA DH — zoubkovaneli.cz custom rebuild
   Design pass 2026-08-27 (kolo 2): "sticker notebook" identita dotažená do dekorativní vrstvy.
   Display: Baloo 2 (bubble lettering jako na obálce e-booku) · Body: Inter.
   Nové v kole 2: bílá hero scéna (splývá s plátnem produktové grafiky), scallop okraje
   bílých sekcí, dot-grid "zápisníkové" pozadí, doodle vrstva (jiskra/srdce/zub),
   fixkou podtržené nadpisy, washi tape + slevová samolepka na priceboxu.
   Kolo 3 (animace): scroll-reveal "samolepky dopadají na místo" (assets/anim.js,
   IntersectionObserver, třída .js-anim na <html> jen bez prefers-reduced-motion),
   hero load-in, kreslící se fixkové podtržení, stamp samolepky + washi tape,
   ambientní pohyb doodlů, squish tlačítek, wiggle chipů, FAQ bounce, sparkle burst. */

:root {
  /* barvy — odvozeno z #ec1e79 */
  --pink: #ec1e79;
  --pink-deep: #c4145f;        /* hover, tmavší akcent */
  --pink-light: #fce4ef;       /* tag pozadí */
  --pink-lighter: #fdf0f6;     /* jemný panel */
  --rose: #faeaf2;             /* chip pozadí */
  --lilac: #f3e9fb;            /* druhý chip tón — z lavender tabletu v ilustraci */
  --tape: rgba(246, 158, 199, 0.5); /* washi tape */
  --ink: #2a1420;              /* nadpisy — teplá tmavě švestková, ne čerň */
  --black: var(--ink);         /* alias pro starší inline styly */
  --gray: #60505a;             /* body text — teplý šedoplum */
  --gray-light: #9b8a93;       /* muted */
  --cream: #fdf6f2;
  --white: #ffffff;
  --border: #f3dde8;

  --font-display: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(42, 20, 32, 0.04), 0 6px 16px rgba(236, 30, 121, 0.06);
  --shadow-md: 0 2px 4px rgba(42, 20, 32, 0.05), 0 16px 40px rgba(236, 30, 121, 0.10);
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray);
  /* dot-grid "zápisník" — jemné tečky na krémovém podkladu */
  background-color: var(--cream);
  background-image: radial-gradient(var(--border) 1px, transparent 1.4px);
  background-size: 26px 26px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header.topbar {
  padding: 22px 0 18px;
  text-align: center;
}

header.topbar .brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pink);
  text-decoration: none;
  font-size: 0.95rem;
}

section { padding: clamp(60px, 8vw, 92px) 0; }
section.tight { padding: clamp(28px, 4vw, 44px) 0; }

/* ---- bílá hero scéna (home) — plátno hero grafiky splývá se stránkou ---- */
.home header.topbar { background: var(--white); }
section.hero-stage {
  position: relative;
  background: var(--white);
  padding-bottom: clamp(44px, 6vw, 72px);
}

/* ---- scallop okraje — bílé sekce "vystřižené zubatými nůžkami" ---- */
section.alt { position: relative; background: var(--white); }
section.alt::before,
section.alt::after,
section.hero-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-repeat: repeat-x;
  background-size: 26px 14px;
  background-position: center;
  pointer-events: none;
}
section.alt::before {
  top: -13px;
  background-image: radial-gradient(circle at 13px 14px, var(--white) 13px, transparent 13.8px);
}
section.alt::after,
section.hero-stage::after {
  bottom: -13px;
  background-image: radial-gradient(circle at 13px 0px, var(--white) 13px, transparent 13.8px);
}

/* ---- doodle vrstva — jazyk převzatý z produktové ilustrace ---- */
.hero { position: relative; }
.doodle { position: absolute; pointer-events: none; opacity: 0.7; }
.doodle.d-1 { width: 30px; top: -6px; right: 6%; }
.doodle.d-2 { width: 26px; bottom: 4%; left: 44%; opacity: 0.55; transform: rotate(-12deg); }
.doodle.d-3 { width: 34px; top: 34%; left: -46px; opacity: 0.5; transform: rotate(10deg); }
.doodle.d-4 { width: 22px; top: -20px; left: -12px; }
.doodle.d-5 { width: 26px; top: -10px; right: 4%; opacity: 0.55; transform: rotate(-12deg); }
@media (max-width: 1120px) { .doodle.d-3 { display: none; } }
@media (max-width: 859px) { .doodle.d-2 { display: none; } .doodle.d-1 { top: -10px; right: 2%; } }

@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.9) rotate(-6deg); }
  50% { opacity: 0.9; transform: scale(1.05) rotate(8deg); }
}
.doodle-sparkle { animation: twinkle 3.6s ease-in-out infinite; }

/* ambientní pohyb zbylých doodlů — pomalý, malé plochy, jen transform */
@keyframes heart-beat {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(-7deg) scale(1.14); }
}
.doodle.d-2 { animation: heart-beat 3.8s ease-in-out infinite; }
.doodle.d-5 { animation: heart-beat 4.6s ease-in-out infinite; }
@keyframes tooth-bob {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-7px); }
}
.doodle.d-3 { animation: tooth-bob 6s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-art img { animation: floaty 7s ease-in-out infinite; }

/* ---- fixka: podtržení nadpisů sekcí ---- */
h2.center::after {
  content: "";
  display: block;
  width: 104px;
  height: 12px;
  margin: 12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M3 8 Q 13 3 23 8 T 43 8 T 63 8 T 83 8 T 103 8 T 117 7' fill='none' stroke='%23ec1e79' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---- zvýrazňovač v H1 ---- */
.hl {
  color: var(--ink);
  background-image: linear-gradient(180deg, transparent 52%, var(--pink-light) 52%, var(--pink-light) 94%, transparent 94%);
  padding: 0 0.14em;
  margin: 0 -0.14em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); color: var(--pink); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
h3 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

p { margin: 0 0 16px; color: var(--gray); }
strong { color: var(--ink); }

.pink { color: var(--pink); }
.eyebrow {
  display: inline-block;
  color: var(--pink-deep);
  background: var(--pink-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: var(--white) !important;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  padding: 17px 34px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 2px 4px rgba(196, 20, 95, 0.2), 0 10px 24px rgba(236, 30, 121, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  background: var(--pink-deep);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(196, 20, 95, 0.22), 0 14px 30px rgba(236, 30, 121, 0.3);
}
/* squish při kliknutí — tlačítko je "gumové" */
.btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 1px 2px rgba(196, 20, 95, 0.2), 0 5px 12px rgba(236, 30, 121, 0.2);
}
.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { border-radius: var(--radius-pill); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-sub { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--gray-light); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 24px;
}
/* Na mobilu (jeden sloupec) chce David obrázek první, text pod ním. Na desktopu
   (dva sloupce, text vlevo/obrázek vpravo) zůstává pořadí z HTML beze změny. */
@media (max-width: 859px) {
  .hero-art { order: -1; }
}
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
}

.pain-grid, .who-grid, .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .pain-grid { grid-template-columns: 1fr 1fr; gap: 22px 32px; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-light);
}
.card p { margin-bottom: 0; }
.card h3 + p { margin-top: 0; }

/* emoji jako "samolepka" v chipu — jednotná velikost a zarovnání */
.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--rose);
  border-radius: 16px;
  margin-bottom: 16px;
  transition: transform 0.18s ease;
}
/* chipy střídají tóny z ilustrace (rose / lilac / pink) */
.card:nth-child(3n+2) .icon { background: var(--lilac); }
.card:nth-child(3n) .icon { background: var(--pink-light); }
.card:hover .icon { transform: rotate(-7deg) scale(1.07); animation: chip-wiggle 0.45s ease; }
/* emoji chip se při hoveru rozkýve jako odlepovaná samolepka */
@keyframes chip-wiggle {
  0% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(-11deg) scale(1.14); }
  60% { transform: rotate(6deg) scale(1.05); }
  100% { transform: rotate(-7deg) scale(1.07); }
}
.pain-item:hover .emoji { animation: chip-wiggle 0.45s ease; transform: rotate(-7deg) scale(1.07); }
.step-card:hover .emoji { animation: chip-wiggle 0.45s ease; transform: rotate(-7deg) scale(1.07); }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pink-deep);
  background: var(--pink-light);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.pain-item { display: flex; gap: 16px; align-items: flex-start; }
.pain-item .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  line-height: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.pain-item:nth-child(2n) .emoji { background: var(--lilac); border-color: transparent; }
.pain-item:nth-child(3n) .emoji { background: var(--rose); border-color: transparent; }
.pain-item p { margin-bottom: 0; padding-top: 8px; }

/* zvýrazněný odstavec (deadline / pointa sekce) */
.callout {
  background: var(--pink-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.story-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

/* hero grafika bez boxu — bílé plátno PNG splývá s bílou scénou */
.hero-art { position: relative; }
.hero-art img { margin: 0 auto; max-width: min(100%, 520px); }

blockquote {
  background: var(--pink-lighter);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0 0;
  font-style: italic;
  color: var(--ink);
}
blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pink-deep);
}

.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
}
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--ink);
  font-weight: 500;
}
.toc li + li { border-top: 1px solid var(--pink-lighter); }
.toc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.85;
}

.pricebox {
  position: relative;
  background: var(--white);
  border: 2px solid var(--pink-light);
  border-radius: 28px;
  padding: 44px 34px 34px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
/* washi tape — pricebox jako "vlepená stránka" v zápisníku */
.pricebox::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 148px;
  height: 32px;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(105deg, var(--tape), rgba(246, 158, 199, 0.68));
  border-left: 2px dotted rgba(255, 255, 255, 0.75);
  border-right: 2px dotted rgba(255, 255, 255, 0.75);
  border-radius: 2px;
}
/* slevová samolepka */
.sticker-badge {
  position: absolute;
  top: -26px;
  right: -8px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transform: rotate(9deg);
  border: 2px dashed rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 5px var(--pink), 0 10px 22px rgba(236, 30, 121, 0.32);
}
@media (max-width: 640px) {
  .sticker-badge { width: 78px; height: 78px; font-size: 0.92rem; top: -22px; right: -4px; }
}
.pricebox .items { text-align: left; margin: 26px 0 0; }
.pricebox .item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--ink);
}
.pricebox .item:last-child { border-bottom: none; }
.pricebox .item .val { font-weight: 700; white-space: nowrap; color: var(--gray-light); }
.pricebox .bonus {
  color: var(--pink-deep) !important;
  background: var(--pink-light);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.pricebox .totalline {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
  font-weight: 700;
  color: var(--ink);
}
.pricebox .strike { text-decoration: line-through; color: var(--gray-light); font-weight: 500; }
.pricebox .final {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--pink);
  margin: 4px 0 4px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--pink-light); background: var(--pink-lighter); }
.faq details[open] > p { background: var(--white); border-radius: 12px; padding: 14px 16px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}
.faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq summary:hover::after { background: var(--pink); color: var(--white); }
/* odpověď "vyskočí" s lehkým overshootem místo tvrdého zobrazení */
.faq details[open] > p {
  animation: faq-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top center;
}
@keyframes faq-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
}
.faq p { margin-top: 14px; margin-bottom: 0; }

/* garance jako "lísteček přelepený washi páskou" */
.guarantee {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 30px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-0.6deg);
}
.guarantee::before,
.guarantee::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 96px;
  height: 28px;
  background: linear-gradient(105deg, var(--tape), rgba(246, 158, 199, 0.66));
  border-left: 2px dotted rgba(255, 255, 255, 0.75);
  border-right: 2px dotted rgba(255, 255, 255, 0.75);
  border-radius: 2px;
}
.guarantee::before { left: 7%; transform: rotate(-7deg); }
.guarantee::after { right: 7%; transform: rotate(6deg); }
.guarantee h3 { font-size: 1.25rem; }

footer {
  padding: 48px 0 64px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gray-light);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
footer a { color: var(--gray-light); text-decoration: underline; text-underline-offset: 3px; margin: 0 8px; }
footer a:hover { color: var(--pink-deep); }
footer p { color: var(--gray-light); margin: 14px 0 0; }

.center { text-align: center; }
.mt { margin-top: 34px; }

.confirm-box {
  max-width: 560px;
  margin: 72px auto;
  text-align: center;
  padding: 0 20px;
}
.confirm-icon {
  width: 76px; height: 76px;
  border-radius: 24px;
  background: var(--pink-light);
  color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
}
.confirm-box h1 { color: var(--ink); }

.steps-list { display: grid; gap: 18px; margin: 26px 0 44px; }
.step-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-card .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--rose);
  border-radius: 16px;
}
.step-card .dl-btn {
  margin-top: 14px;
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.step-card .dl-btn:hover { background: var(--pink-deep); transform: translateY(-1px); }
.step-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink-deep);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin: 34px 0 10px;
}

.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.legal h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--ink);
  line-height: 1.15;
}
.legal h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pink-deep);
  letter-spacing: 0.02em;
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.legal p, .legal li { color: var(--gray); font-size: 0.95rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.legal a.back:hover { color: var(--pink); }

/* ================= kolo 3: animační vrstva ================= */
/* Třídu .js-anim přidá assets/anim.js na <html> POUZE když je JS živý,
   IntersectionObserver dostupný a uživatel nemá prefers-reduced-motion.
   Všechny "skrývací" stavy jsou zamčené za .js-anim, takže bez JS
   (nebo s reduced motion) je obsah normálně staticky viditelný. */

/* -- scroll-reveal: prvky dopadají na místo jako lepené samolepky -- */
.js-anim .reveal:not(.in) { opacity: 0; }
.js-anim .reveal.in {
  animation: reveal-pop 0.6s cubic-bezier(0.22, 1.2, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}
/* "to" keyframe je záměrně implicitní: prvek doletí do své vlastní
   klidové hodnoty (guarantee si tak drží rotate(-0.6deg), karty hover). */
@keyframes reveal-pop {
  from { opacity: 0; transform: translateY(22px) scale(0.965) rotate(-1.2deg); }
}

/* -- fixkové podtržení nadpisů se "kreslí" při najetí do view -- */
.js-anim h2.center.reveal:not(.in)::after { clip-path: inset(0 100% 0 0); }
.js-anim h2.center.reveal.in::after {
  animation: draw-line 0.7s ease-out 0.3s both;
}
@keyframes draw-line {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -2% 0 0); }
}

/* -- hero load-in: text nastupuje po řádcích, grafika za ním -- */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
}
.js-anim .hero-stage .eyebrow,
.js-anim .hero-stage h1,
.js-anim .hero-stage .lead,
.js-anim .hero-stage .hero > div > p:not(.lead),
.js-anim .hero-stage .hero .btn {
  animation: hero-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.js-anim .hero-stage h1 { animation-delay: 0.08s; }
.js-anim .hero-stage .lead { animation-delay: 0.16s; }
.js-anim .hero-stage .hero > div > p:not(.lead) { animation-delay: 0.22s; }
.js-anim .hero-stage .hero .btn { animation-delay: 0.3s; }
.js-anim .hero-art { animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }

/* -- pricebox: washi tape se přilepí, sleva se "orazítkuje" -- */
.js-anim .pricebox.reveal.in::before {
  animation: tape-in 0.45s ease-out 0.25s both;
}
@keyframes tape-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px) rotate(-7deg); }
  to { opacity: 1; transform: translateX(-50%) rotate(-3deg); }
}
.js-anim .pricebox.reveal.in .sticker-badge {
  animation: stamp-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(26deg) scale(1.9); }
  to { opacity: 1; transform: rotate(9deg) scale(1); }
}

/* -- sparkle burst při kliknutí na CTA (částice tvoří anim.js) -- */
.spark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  pointer-events: none;
  font-size: var(--s, 15px);
  line-height: 1;
  will-change: transform, opacity;
  animation: spark-fly 0.75s cubic-bezier(0.16, 0.8, 0.4, 1) forwards;
}
@keyframes spark-fly {
  0% { opacity: 1; transform: translate(var(--x), var(--y)) scale(0.4) rotate(0deg); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1.1) rotate(var(--r, 0deg)); }
}

/* -- Stripe Embedded Checkout modal — platba přímo na stránce, žádné přesměrování -- */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.checkout-modal.is-open { display: flex; }
.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 20, 32, 0.45);
  backdrop-filter: blur(2px);
}
.checkout-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 12px;
}
.checkout-modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--rose);
  color: var(--pink-deep);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
}
.checkout-modal-close:hover { background: var(--pink-light); }
#checkout-embed { clear: both; min-height: 320px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .step-card .dl-btn:hover, .btn:active { transform: none; }
  /* pojistka: kdyby se .js-anim přesto objevila, nic nesmí zůstat skryté */
  .js-anim .reveal:not(.in) { opacity: 1; }
  .js-anim h2.center.reveal:not(.in)::after { clip-path: none; }
  .spark { display: none; }
}
