/* Funnel Honza Šulec – brand z jansulec.cz: Merriweather + Open Sans, navy / šedomodrá / mátová / korálová */
:root {
  --navy: #151523;
  --navy-2: #1f2033;
  --ink: #181818;
  --mist: #cad1e5;
  --paper: #f5f7fc;
  --white: #ffffff;
  --mint: #bae8aa;
  --mint-dark: #a3dc8f;
  --coral: #f06c44;
  --coral-ink: #c4471f; /* korálová pro text na světlém pozadí (kontrast) */
  --grey: #4d4d4d;
  --line: #dfe3ef;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Open Sans", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.coral { color: var(--coral); }
.nowrap { white-space: nowrap; }

/* ---------- Tlačítko (mátové jako na jansulec.cz) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--mint); color: var(--navy);
  font-family: var(--sans); font-weight: 700; font-size: 18px; line-height: 1.3;
  text-decoration: none; text-align: center;
  padding: 18px 28px; border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(21, 21, 35, .18);
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--mint-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 600; font-size: 14px; opacity: .8; }
.btn[disabled] { opacity: .6; cursor: wait; }
.cta-note { font-size: 15px; margin: 12px 0 0; }

/* ---------- HERO (tmavě modrý) ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; padding-top: 28px; }
.hero-text { position: relative; z-index: 2; padding-bottom: 28px; }
.pre-title { font-size: 16px; font-weight: 600; color: var(--mist); margin-bottom: 14px; }
.pre-title::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--coral); vertical-align: middle; margin-right: 10px; }
.headline { display: none; }
html[data-v="a"] .headline[data-variant="a"],
html[data-v="b"] .headline[data-variant="b"],
html[data-v="c"] .headline[data-variant="c"],
html:not([data-v]) .headline[data-variant="a"] { display: block; }
.hero h1 { font-size: 25px; color: var(--white); }
.hero h1 .accent { color: var(--mint); }
.h1-lead { display: block; font-size: .72em; font-weight: 400; color: var(--mist); margin-bottom: 8px; }
.hero-lead { font-size: 17px; margin: 16px 0 22px; color: var(--white); }
.hero .btn { width: 100%; }
.hero .cta-note { color: var(--mist); text-align: center; }
.hero-photo { position: relative; margin: 0 -20px; }
.hero-photo img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 18%; }
.hero-photo::after { /* plynulý přechod fotky do modré */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(21,21,35,0) 22%, rgba(21,21,35,0) 75%, rgba(21,21,35,.55) 100%);
}

/* Tanec: rovná linka (stabilita) a vlna (ženskost), které se proplétají */
.dance { display: block; width: 100%; height: 56px; color: var(--mint); }
.dance .straight { stroke: var(--mist); stroke-width: 1.5; fill: none; }
.dance .wave { stroke: var(--coral); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.hero .dance { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .hero .dance .straight { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s ease-out .2s forwards; }
  .hero .dance .wave { stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: draw 2.4s cubic-bezier(.45,.05,.25,1) .5s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sekce ---------- */
.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-mist { background: var(--mist); }
.section h2 { font-size: 26px; margin-bottom: 28px; color: var(--navy); }

/* 3 tajemství */
.secrets { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.secrets li { display: grid; grid-template-columns: 52px 1fr; gap: 0 14px; padding: 26px 0; border-top: 1px solid var(--mist); }
.secrets li:last-child { border-bottom: 1px solid var(--mist); }
.secrets li::before {
  counter-increment: s; content: counter(s);
  font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--coral);
}
.secrets h3 { font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.secrets p { margin: 0; }
.after-list { margin-top: 36px; }

/* Výrok avatara */
.statement { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.4; color: var(--navy); margin: 0 0 28px; }
.statement-wrap { border-left: 3px solid var(--coral); padding-left: 20px; }

/* O Honzovi */
.about { display: grid; gap: 28px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; }
.about h2 { margin-bottom: 18px; }
.signature { font-size: 16px; color: var(--grey); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.signature strong { color: var(--navy); display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 2px; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--coral); }

/* Závěrečná výzva */
.final { background: var(--navy); color: var(--white); text-align: center; }
.final h2 { color: var(--white); }
.final p { color: var(--white); }
.final .cta-note { color: var(--mist); }

/* ---------- Stránka s videem ---------- */
.vsl-hero { background: var(--navy); color: var(--white); padding: 28px 0 40px; text-align: center; }
.vsl-hero h1 { font-size: 24px; color: var(--white); max-width: 820px; margin: 0 auto 12px; }
.vsl-hero .lead { color: var(--mist); font-size: 17px; max-width: 700px; margin: 0 auto 22px; }
.video { position: relative; max-width: 860px; margin: 0 auto 24px; aspect-ratio: 16 / 9; background: #0c0c16; border-radius: 6px; overflow: hidden; }
.video-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mist); font-size: 16px; padding: 20px; text-align: center; }
.video-wait::before { content: ""; width: 0; height: 0; border-left: 26px solid var(--mint); border-top: 16px solid transparent; border-bottom: 16px solid transparent; display: block; margin: 0 auto 12px; }
@media (min-height: 600px) and (min-width: 900px) { .video { max-width: min(860px, calc((100vh - 330px) * 16 / 9)); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: k; }
.steps li { padding: 22px 0 22px 64px; position: relative; border-top: 1px solid var(--mist); }
.steps li::before { counter-increment: k; content: counter(k); position: absolute; left: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--navy); }
.steps h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.steps p { margin: 0; }

.stories { display: grid; gap: 22px; }
.story { background: var(--white); padding: 26px 24px; border-top: 3px solid var(--coral); }
.story h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.story p:last-child { margin-bottom: 0; }
.story .quote { font-family: var(--serif); font-size: 18px; color: var(--navy); margin-top: 12px; }

.fit { display: grid; gap: 28px; }
.fit h3 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.fit ul { margin: 0; padding-left: 20px; }
.fit li { margin-bottom: 8px; }

.faq details { border-top: 1px solid var(--mist); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--mist); }
.faq summary { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--navy); cursor: pointer; list-style: none; position: relative; padding-right: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 6px; width: 10px; height: 10px; border-right: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 12px; }
.faq details p { margin: 12px 0 0; }

/* ---------- Kalendář a poděkování ---------- */
.simple-hero { background: var(--navy); color: var(--white); padding: 34px 0 30px; text-align: center; }
.simple-hero h1 { font-size: 26px; color: var(--white); margin-bottom: 10px; }
.simple-hero p { color: var(--mist); margin: 0 auto; max-width: 640px; }
.calendar-box { max-width: 900px; margin: -10px auto 0; background: var(--white); min-height: 300px; position: relative; z-index: 2; }
.calendar-fallback { text-align: center; padding: 40px 20px; }
.wa-box { text-align: center; font-size: 16px; margin-top: 18px; }
.task { counter-reset: t; list-style: none; padding: 0; margin: 0 0 24px; }
.task li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--mist); }
.task li::before { counter-increment: t; content: counter(t); position: absolute; left: 0; top: 12px; font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--coral); }

.prose h1 { font-size: 30px; color: var(--navy); margin-bottom: 20px; }
.prose h2 { font-size: 21px; margin: 30px 0 10px; color: var(--navy); }
.prose ul { padding-left: 20px; }

/* ---------- Patička ---------- */
footer { background: var(--navy); color: var(--mist); font-size: 14px; padding: 30px 0; text-align: center; border-top: 1px solid var(--navy-2); }
footer p { margin: 0 0 8px; }
footer a { color: var(--mist); }
footer .disclaimer { max-width: 700px; margin: 0 auto 8px; }

/* ---------- Modální okna ---------- */
.modal { position: fixed; inset: 0; background: rgba(21, 21, 35, .72); display: none; align-items: flex-start; justify-content: center; padding: 16px; z-index: 50; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: var(--white); width: 100%; max-width: 520px; margin: auto; padding: 32px 22px 24px; position: relative; border-radius: 6px; border-top: 4px solid var(--coral); }
.modal-box h2 { font-size: 22px; color: var(--navy); margin-bottom: 8px; padding-right: 30px; }
.modal-box .sub { font-size: 16px; color: var(--grey); margin-bottom: 18px; }
.modal-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 11px; top: 19px; width: 18px; height: 2px; background: var(--navy); transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.field { margin-bottom: 14px; }
.field label, .q-label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; color: var(--navy); }
.field input, .quiz textarea, .quiz input[type=text], .quiz input[type=email], .quiz input[type=tel] {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid #b9c0d4; border-radius: 4px; background: var(--white); color: var(--ink);
}
.field input:focus, .quiz textarea:focus, .quiz input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(240, 108, 68, .25); }
.modal .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--grey); margin: 12px 0 0; }
.form-note a { color: var(--grey); }
.form-error { color: #b42318; font-size: 15px; font-weight: 600; min-height: 1em; margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; }

/* Dotazník */
.quiz-progress { height: 4px; background: var(--paper); margin: 6px 0 6px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--coral); transition: width .3s; }
.quiz-count { font-size: 14px; color: var(--grey); margin-bottom: 16px; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step .q-label { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.35; margin-bottom: 14px; }
.quiz-step .q-help { font-size: 15px; color: var(--grey); margin: -6px 0 14px; }
.quiz textarea { min-height: 120px; resize: vertical; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 4px; margin-bottom: 8px; cursor: pointer; font-size: 17px; line-height: 1.4; }
.opt:hover { border-color: var(--mist); background: var(--paper); }
.opt input { margin-top: 3px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.opt:has(input:checked) { border-color: var(--navy); background: var(--paper); }
.quiz-nav { margin-top: 18px; }
.quiz-back { display: none; background: none; border: 0; font: inherit; font-size: 16px; color: var(--grey); text-decoration: underline; cursor: pointer; margin: 12px auto 0; padding: 6px; }
.quiz-back.show { display: block; }

/* Cookie lišta (consent.js) */
.cc { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 420px; background: var(--white); color: var(--ink); padding: 18px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 60; font-size: 14px; }
.cc-title { font-weight: 700; margin: 0 0 4px; }
.cc-text { margin: 0 0 12px; }
.cc-row { display: flex; gap: 8px; margin-bottom: 8px; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn { font: inherit; font-weight: 600; padding: 9px 14px; border: 1.5px solid var(--navy); background: var(--white); border-radius: 4px; cursor: pointer; }
.cc-primary { background: var(--navy); color: var(--white); }
.cc-link { font: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* ---------- Větší obrazovky ---------- */
@media (min-width: 760px) {
  body { font-size: 19px; }
  .section { padding: 96px 0; }
  .section h2 { font-size: 34px; margin-bottom: 40px; }
  .secrets li { grid-template-columns: 90px 1fr; padding: 34px 0; }
  .secrets li::before { font-size: 60px; }
  .secrets h3 { font-size: 25px; }
  .statement { font-size: 32px; }
  .statement-wrap { padding-left: 34px; }
  .about { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .stories { grid-template-columns: repeat(3, 1fr); }
  .fit { grid-template-columns: 1fr 1fr; gap: 56px; }
  .vsl-hero h1 { font-size: 34px; }
  .simple-hero h1 { font-size: 36px; }
  .modal { align-items: center; }
  .modal-box { padding: 40px 36px 30px; }
  .hero .btn { width: auto; }
  .hero .cta-note { text-align: left; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 40px; padding-top: 0; min-height: 640px; }
  .hero-text { align-self: center; padding: 72px 0 110px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 20px; max-width: 600px; margin: 22px 0 30px; }
  .hero-photo { margin: 0 -20px 0 0; }
  .hero-photo img { height: 100%; min-height: 640px; object-position: 50% 20%; }
  .hero-photo::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(21,21,35,0) 30%), linear-gradient(0deg, rgba(21,21,35,.6) 0%, rgba(21,21,35,0) 25%); }
  .hero .dance { height: 80px; bottom: 26px; }
}

/* Tmavé tlačítko na šedomodrém pozadí (mátová tam nemá kontrast) */
.section-mist .btn { background: var(--navy); color: var(--white); }
.section-mist .btn:hover { background: var(--navy-2); }

/* Reference klientek */
.voices { display: grid; gap: 34px; }
.voice { margin: 0; padding-top: 22px; border-top: 1px solid var(--mist); position: relative; }
.voice::before { content: "“"; position: absolute; top: -6px; right: 0; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--coral); }
.voice-head { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--navy); margin: 0 40px 12px 0; }
.voice blockquote { margin: 0 0 12px; font-size: 17px; }
.voice figcaption { font-weight: 700; color: var(--navy); }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Zvýraznění „tohle video vám odhalí:“ – mátový fix, který se při zobrazení dotáhne */
.mark-line {
  background-image: linear-gradient(transparent 60%, rgba(186, 232, 170, .85) 60%, rgba(186, 232, 170, .85) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px;
}
.modal-box h2 { margin-bottom: 18px; }

/* Tři tajemství přijíždějí zleva postupně (jen s JS a bez omezení pohybu) */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] > li { opacity: 0; transform: translateX(-48px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  html.js [data-reveal] > li:nth-child(2) { transition-delay: .18s; }
  html.js [data-reveal] > li:nth-child(3) { transition-delay: .36s; }
  html.js [data-reveal].in > li { opacity: 1; transform: none; }
  html.js .mark-line { background-size: 0% 100%; transition: background-size 1s ease .2s; }
  html.js .mark-line.in { background-size: 100% 100%; }
}

/* Videa z YouTube na stránce s úkolem (náhled → přehrávač po kliknutí) */
.yt-grid { display: grid; gap: 28px; }
.yt-card { margin: 0; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background: #0c0c16 center / cover no-repeat; border-radius: 4px; overflow: hidden; }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(21, 21, 35, .25); transition: background-color .2s; }
.yt:hover::after { background: rgba(21, 21, 35, .1); }
.yt:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.yt-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--mint); }
.yt-play::before { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid var(--navy); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.yt.playing { cursor: default; }
.yt.playing::after { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-card figcaption { margin-top: 12px; font-size: 16px; }
.yt-card figcaption strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
@media (min-width: 900px) { .yt-grid { grid-template-columns: repeat(3, 1fr); } }
