/* Hista-Paja – funnel (start.hista-paja.cz) */
:root {
  --bg: #FCF9F0;
  --card: #FFFEF9;
  --line: #E3DED1;
  --line-strong: #C9C1B0;
  --green: #42684C;
  --green-dark: #34543D;
  --green-soft: #ECEFE8;
  --green-mark: #DFE7DA;
  --ink: #2E2117;
  --muted: #756A5D;
  --dark: #2E2117;
  --on-dark-muted: #D9CFC0;
  --sand: #E8D6A8;
  --pain-bg: #F4E3DA;
  --pain-ink: #8A3B22;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(46,33,23,0.05), 0 12px 32px rgba(46,33,23,0.07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.mark {
  background: var(--green-mark);
  padding: 0 10px;
  border-radius: 10px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Bars */
.topbar {
  background: var(--green); color: #fff; text-align: center;
  padding: 12px 24px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.confirm { background: var(--green-soft); padding: 16px 24px; }
.confirm .inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; }
.promo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 12px 24px; background: var(--dark); color: #fff; text-decoration: none; font-size: 15px; text-align: center;
}
.promo-bar:hover { color: #fff; }
.promo-bar .bar-price { color: var(--sand); }
.pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--sand); color: var(--ink); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tabular { font-variant-numeric: tabular-nums; }

/* Icons */
.ico {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; width: 26px; height: 26px; margin-top: 1px;
}
.ico svg { display: block; }
.ico-ok { background: var(--green); color: #fff; }
.ico-no { background: var(--pain-bg); color: var(--pain-ink); }
.ico-lg { width: 36px; height: 36px; background: var(--green); color: #fff; margin: 0; }
.list { display: flex; flex-direction: column; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.list { padding: 0; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 14px; border: 0;
  font-family: var(--font-body); font-size: 18px; font-weight: 800; text-decoration: none; cursor: pointer;
  background: var(--green); color: #fff; transition: background 0.15s ease;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-light { background: var(--card); color: var(--green); }
.btn-light:hover { background: #fff; color: var(--green-dark); }
.btn-block { display: flex; width: 100%; }
.btn:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px;
}

/* Hero */
.hero { padding: 56px 0 28px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 760px; margin: 22px auto 0; }
.hero .lead strong { color: var(--ink); }

.offer { padding: 24px 0 72px; }
.offer .row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.offer .col-mock { flex: 1 1 340px; min-width: 0; max-width: 420px; display: flex; justify-content: center; }
.offer .col-form { flex: 1 1 420px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.arrow { display: none; flex: 0 0 110px; justify-content: center; color: var(--ink); }
@media (min-width: 1000px) { .arrow { display: flex; } }

/* PDF mockup */
.pdf { position: relative; width: 100%; max-width: 400px; height: 500px; }
.pdf .back {
  position: absolute; top: 36px; left: 52px; right: 0; bottom: 4px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; transform: rotate(4deg); box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.pdf .back .t { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.pdf .back .s { font-size: 13px; font-weight: 700; color: var(--muted); }
.pdf .lines { display: flex; flex-direction: column; gap: 12px; width: 48%; }
.pdf .lines span { display: flex; align-items: center; gap: 8px; }
.pdf .lines i { width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 4px; }
.pdf .lines b { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.pdf .front {
  position: absolute; top: 0; left: 0; right: 64px; bottom: 44px; background: var(--green); color: #fff;
  border-radius: 18px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 40px rgba(46,33,23,0.22);
}
.pdf .brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.92; }
.pdf .title { font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.06; }
.pdf .sub { font-size: 15px; opacity: 0.92; margin-top: 10px; }
.pdf .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pdf .tags span { padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--green); font-size: 13px; font-weight: 800; }

/* Form */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: 14px; font-weight: 700; margin-top: 6px; }
.form input[type=text], .form input[type=email] {
  height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink); width: 100%;
}
.form .btn { margin-top: 12px; }
.form .note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 8px; }

/* Úprava vzhledu formuláře z Ecomailu, aby ladil se stránkou */
.ecm-form [id^="f-3-"] { min-height: 230px; }
.ecm-form [id^="f-3-"] * { font-family: var(--font-body) !important; }
.ecm-form [id^="f-3-"] form, .ecm-form [id^="f-3-"] > div { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; max-width: none !important; }
.ecm-form [id^="f-3-"] label { font-size: 14px !important; font-weight: 700 !important; color: var(--ink) !important; }
.ecm-form [id^="f-3-"] input[type=text], .ecm-form [id^="f-3-"] input[type=email] {
  height: 52px !important; padding: 0 14px !important; border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important; font-size: 16px !important; background: #fff !important; color: var(--ink) !important; width: 100% !important;
}
.ecm-form [id^="f-3-"] button, .ecm-form [id^="f-3-"] input[type=submit] {
  min-height: 56px !important; width: 100% !important; border: 0 !important; border-radius: 14px !important;
  background: var(--green) !important; color: #fff !important; font-size: 18px !important; font-weight: 800 !important; cursor: pointer !important;
}
.ecm-form [id^="f-3-"] button:hover, .ecm-form [id^="f-3-"] input[type=submit]:hover { background: var(--green-dark) !important; }

/* Sections */
.divider { border-top: 2px dashed var(--line-strong); }
.section { padding: 80px 0; }
.section-tight { padding: 40px 0; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.split .media { flex: 1 1 300px; min-width: 0; max-width: 400px; }
.split .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split.reverse { flex-wrap: wrap-reverse; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
h2.big { font-size: clamp(30px, 3.4vw, 44px); }
h2.mid { font-size: clamp(26px, 3vw, 38px); }
.text p { color: var(--muted); }
.text p strong { color: var(--ink); }

.photo {
  aspect-ratio: 4 / 5; border-radius: 22px; background: var(--green-soft); border: 2px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700;
  color: var(--green); padding: 24px; width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }

/* App section */
.app { background: var(--green); color: #fff; padding: 88px 0; }
.app h2 { color: #fff; text-align: center; max-width: 860px; margin: 0 auto 48px; font-size: clamp(30px, 3.6vw, 46px); }
.app .row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: center; }
.app .box { flex: 1 1 460px; min-width: 0; max-width: 560px; background: var(--card); color: var(--ink); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.app .name { font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1; }
.chip { background: var(--green-mark); padding: 0 6px; border-radius: 4px; font-weight: 800; }

.phone { flex: 0 1 320px; min-width: 0; display: flex; justify-content: center; }
.phone .frame { width: 300px; max-width: 100%; background: var(--dark); border-radius: 44px; padding: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.28); }
.phone .screen { background: var(--bg); color: var(--ink); border-radius: 34px; padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 580px; }
.phone .head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head); font-weight: 700; font-size: 21px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 13px; }
.cal.days { font-size: 11px; font-weight: 700; color: var(--muted); }
.cal span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; }
.cal span i { width: 6px; height: 6px; border-radius: 999px; }
.cal .today { background: var(--green); color: #fff; font-weight: 800; }
.cal .g { background: #4F8A5E; } .cal .a { background: #D9A93A; } .cal .r { background: #B4553A; } .cal .w { background: #fff; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.entry .top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; }
.entry .top em { font-style: normal; padding: 2px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; }
.entry div span:first-child { display: inline-block; width: 62px; color: var(--muted); }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tabbar .on { color: var(--green); }

/* Feature cards */
.features { display: flex; flex-direction: column; gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.feature .tile { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 24px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.feature .body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feature .num { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.feature h3 { font-size: 24px; }
.feature p { color: var(--muted); }
.grows { background: var(--green-mark); border-radius: 22px; padding: 26px 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.grows .plus { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 999px; background: var(--card); color: var(--green); display: flex; align-items: center; justify-content: center; }
.grows h3 { font-size: 24px; margin-bottom: 4px; }

/* Price */
.price-box { background: var(--dark); color: #fff; border-radius: 28px; padding: 52px 28px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.price-box h2 { font-size: clamp(28px, 3.4vw, 42px); max-width: 720px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: clamp(72px, 10vw, 112px); line-height: 1; color: var(--sand); }
.price-box .per { font-size: 22px; font-weight: 700; }
.price-box .old { font-size: 17px; color: var(--on-dark-muted); }
.price-box .old s { color: #fff; font-weight: 700; }
.cd { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cd div { width: 92px; padding: 14px 0 12px; border-radius: 16px; background: rgba(255,255,255,0.08); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cd b { font-family: var(--font-head); font-size: 42px; line-height: 1; }
.cd small { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.on-dark-muted { color: var(--on-dark-muted); }
.lock { max-width: 640px; background: rgba(232,214,168,0.12); border: 1px solid rgba(232,214,168,0.5); border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.lock .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.lock strong { color: var(--sand); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #F0E2BE; color: var(--ink); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Final CTA */
.final { background: var(--green); color: #fff; border-radius: 28px; padding: 60px 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.final h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 760px; }
.final p { font-size: 18px; max-width: 560px; opacity: 0.94; }

/* Footer */
.footer { background: var(--green-soft); padding: 40px 0 44px; font-size: 14px; }
.footer .inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; }
.logo span { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--ink); }
.footer .fine { flex: 1 1 100%; font-size: 12px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }

/* Cookie bar */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(46,33,23,0.18);
  padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; font-size: 14px; color: var(--ink); }
.cookie .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.cookie .btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.cookie .btn-outline:hover { background: var(--green-soft); color: var(--green-dark); }

/* Legal page */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.legal h2 { font-size: 24px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 10px; }
.legal .todo { background: #FFF3C9; padding: 0 4px; border-radius: 4px; }

@media (max-width: 480px) {
  .pdf { height: 420px; }
  .pdf .front { padding: 22px; right: 48px; }
  .pdf .title { font-size: 27px; }
  .pdf .back { left: 40px; }
  .hero .lead { font-size: 18px; }
}
