/* Obsazenka - prodejní web. Barvy z logobalíčku: petrolejová #19383D, tyrkysová #38B49B, krémová #FAF8F3. */

@font-face {
  font-family: 'Figtree';
  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';
  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;
}

:root {
  --petrol: #19383d;
  --petrol-2: #24505a;
  --petrol-deep: #10272b;
  --teal: #38b49b;
  --teal-ink: #17614f;
  --teal-soft: #e3f4ef;
  --on-teal: #0e2a2e;
  --cream: #faf8f3;
  --sand: #f1eee6;
  --white: #ffffff;
  --text: #19383d;
  --muted: #5d6b6b;
  --line: #e7e2d8;
  --danger: #b3261e;
  --radius: 20px;
  --shadow-phone: 0 30px 60px -20px rgba(16, 39, 43, 0.45), 0 10px 24px -12px rgba(16, 39, 43, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--teal); color: var(--on-teal); }
.btn-accent:hover { background: #4cc3aa; }
.btn-primary { background: var(--petrol); color: var(--white); }
.btn-primary:hover { background: var(--petrol-2); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 15px; background: var(--petrol); color: var(--white); border-radius: 12px; }
.btn-small:hover { background: var(--petrol-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 243, 0.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 150px; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.header-nav a:not(.btn):hover { color: var(--teal-ink); }
@media (max-width: 820px) {
  .header-nav a:not(.btn):not(.login) { display: none; }
  .header-nav { gap: 14px; }
}
@media (max-width: 420px) {
  .brand img { width: 124px; }
  .btn-small { padding: 0 12px; font-size: 14px; }
}

/* ---------- hero ---------- */
.hero { background: var(--petrol); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; }
.lead { font-size: clamp(18px, 2vw, 21px); color: rgba(255, 255, 255, 0.82); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-points { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; color: rgba(255, 255, 255, 0.86); font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A2E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero-visual { display: flex; justify-content: center; }
.phone-hero { transform: rotate(-2deg); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-ink); }
.eyebrow.on-dark { color: var(--teal); }

/* telefon */
.phone {
  margin: 0; width: min(330px, 78vw); aspect-ratio: 390 / 844;
  border-radius: 46px; padding: 10px; background: #0d1f22;
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 0; gap: 36px; }
  .hero-visual { height: 470px; overflow: hidden; align-items: flex-start; padding-top: 8px; }
  .phone-hero { transform: none; }
}

/* ---------- portály ---------- */
.portals { background: var(--white); border-bottom: 1px solid var(--line); padding: 30px 0 32px; }
.portals-title { text-align: center; font-weight: 700; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.portal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.portal-list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: var(--cream); border: 1px solid var(--line); font-weight: 700; font-size: 15px;
}
.portal-list i { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- sekce ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--petrol); color: var(--white); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 14px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-lead { font-size: 19px; color: var(--muted); }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.problem { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.problem h3 { font-size: 21px; font-weight: 800; }
.problem p { color: var(--muted); }
@media (max-width: 820px) { .problems { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-no {
  width: 44px; height: 44px; border-radius: 14px; background: var(--petrol); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 6px;
}
.steps h3 { font-size: 21px; font-weight: 800; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* funkce */
.feature { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; max-width: 960px; margin: 0 auto; padding: 36px 0; }
.feature.reverse { grid-template-columns: 1fr auto; }
.feature.reverse .phone { order: 2; }
.feature .phone { width: 290px; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.feature-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.feature-copy p { font-size: 18px; color: var(--muted); }
@media (max-width: 760px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 28px; justify-items: center; text-align: center; padding: 28px 0; }
  .feature.reverse .phone { order: 0; }
  .feature .phone { width: min(280px, 76vw); }
}

/* srovnání */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 700; }
.compare tbody th { font-weight: 600; }
.compare .us { background: var(--teal-soft); color: var(--teal-ink); font-weight: 800; }
.compare thead .us { color: var(--petrol); font-size: 16px; }

/* cena */
.price-grid { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px -30px rgba(16, 39, 43, 0.35);
}
.badge-beta { align-self: flex-start; background: var(--teal-soft); color: var(--teal-ink); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 99px; }
.price { font-size: 20px; color: var(--muted); }
.price b { font-size: 56px; color: var(--text); letter-spacing: -0.03em; margin-right: 6px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before {
  content: ''; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317614F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; gap: 32px; } }

/* beta formulář */
.beta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.beta-copy { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.beta-copy h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.beta-copy > p { color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.beta-form {
  background: var(--cream); color: var(--text); border-radius: 26px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; border: none; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--white);
  border: 1.5px solid #d9d3c7; border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(56, 180, 155, 0.25); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.opt-pill { position: relative; cursor: pointer; }
.opt-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt-pill span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 99px;
  background: var(--white); border: 1.5px solid #d9d3c7; font-weight: 700; font-size: 15px;
}
.opt-pill input:checked + span { background: var(--petrol); border-color: var(--petrol); color: var(--white); }
.opt-pill input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--petrol); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 700; min-height: 1px; }
.form-msg.err { color: var(--danger); }
.form-done { text-align: center; padding: 24px 8px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.form-done h3 { font-size: 26px; font-weight: 800; }
.form-done p { color: var(--muted); }
.form-done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
@media (max-width: 860px) {
  .beta-grid { grid-template-columns: 1fr; gap: 32px; }
  .beta-copy { position: static; }
  .beta-form { padding: 22px 18px; }
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 18px 32px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* patička */
.site-footer { background: var(--petrol-deep); color: rgba(255, 255, 255, 0.78); padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid img { width: 150px; margin-bottom: 6px; }
.footer-grid b { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* stránka se zásadami */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(32px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 32px 0 10px; }
.doc p, .doc li { color: #2c4a4f; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
