/* Prezentační web DojezTo. Hodnoty jen z tokens.css, pravidla ve web/DESIGN.md. */

/* ── Písma (hostovaná u nás) ── */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-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: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-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: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-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: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-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;
}

/* ── Základ ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 20; padding: var(--s-3) var(--s-4); background: var(--surface); border-radius: var(--r-control); }
.skip:focus { top: var(--s-4); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  margin-bottom: var(--s-3);
  color: var(--primary);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Tlačítka ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-h);
  padding: 0 var(--s-5);
  border: 1.5px solid transparent;
  border-radius: var(--r-control);
  font: 600 var(--fs-body) / 1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { border-color: var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--surface-2); color: var(--primary); }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-small); }
.btn .ic { width: 18px; height: 18px; }

/* ── Horní lišta: jediné sklo ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: var(--bg); }
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); text-decoration: none; }
/* Název stejně jako v aplikaci (.logo v src/styles.css): Inter 750, „To“ zelené */
.wordmark { font-family: var(--font-body); font-weight: 750; font-size: 1.25rem; letter-spacing: -0.025em; }
.wordmark .to { color: var(--primary); }
.brand img { border-radius: 9px; }
.brand:hover { color: var(--text); }

/* ── Telefon se snímkem ── */
.phone {
  margin: 0;
  width: min(100%, 320px);
  padding: 7px;
  background: var(--phone-frame);
  border-radius: var(--r-phone);
  box-shadow: var(--shadow-2);
}
.phone img { width: 100%; border-radius: calc(var(--r-phone) - 7px); }

/* ── 1. Úvod ── */
.hero { padding-block: var(--s-8) var(--section); }
.hero-in { display: grid; gap: var(--s-8); align-items: center; }
.hero-text { max-width: 36rem; }
.hero .lead { margin-top: var(--s-5); max-width: var(--measure); color: var(--muted); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.badge-soon { color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.note { margin-top: var(--s-4); color: var(--muted); font-size: var(--fs-small); }
.hero-phone { justify-self: center; transform: rotate(2deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: rise 0.7s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px) rotate(2deg); } }
}

@media (min-width: 900px) {
  .hero { padding-top: var(--s-9); }
  .hero-in { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-7); }
  .hero-phone { justify-self: end; margin-right: var(--s-6); }
}

/* ── 2. Jak to funguje ── */
.how { padding-block: var(--section); background: var(--surface-2); }
.how h2 { max-width: 20ch; }
.step { display: grid; gap: var(--s-7); align-items: center; margin-top: var(--s-9); }
.step:first-of-type { margin-top: var(--s-8); }
.step-text { max-width: 32rem; }
.step-text p { margin-top: var(--s-4); max-width: var(--measure); color: var(--muted); }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font: var(--display-weight) 1.125rem / 1 var(--font-display);
}
.step .phone { justify-self: center; width: min(100%, 250px); }
.hero-phone { width: min(100%, 280px); }
@media (min-width: 900px) {
  .step .phone { width: 290px; }
  .hero-phone { width: 320px; }
}

@media (min-width: 900px) {
  .step { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .step .phone { justify-self: start; }
  .step-flip .step-text { order: 2; }
  .step-flip .phone { justify-self: end; }
}

.ticks { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.ticks li { display: flex; gap: var(--s-3); align-items: flex-start; }
.ticks .ic { margin-top: 3px; color: var(--primary); }

/* ── 3. Pás s trvanlivostí ── */
.band { padding-block: var(--section); background: var(--band); color: var(--on-band); }
.band-lead { margin-top: var(--s-4); font-size: var(--fs-lead); opacity: 0.8; }
.states { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.state {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 6px);
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--on-band) 6%, transparent);
  box-shadow: inset 6px 0 0 var(--c);
}
.state strong { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: var(--fs-h3); color: var(--c); }
.state span { opacity: 0.85; }
@media (min-width: 720px) { .states { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .states { grid-template-columns: repeat(4, 1fr); } }

/* ── 4. Zdarma a Plus ── */
.plans { padding-block: var(--section); }
.plans-grid { display: grid; gap: var(--s-5); margin-top: var(--s-7); align-items: start; }
@media (min-width: 900px) { .plans-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-6); } }
.card {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.card .btn { margin-top: var(--s-6); }
.card.plus { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.plus-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.tag {
  padding: var(--s-1) var(--s-3);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plus-lead { margin-top: var(--s-2); color: var(--muted); }
.fine { margin-top: var(--s-5); color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }

.period { display: inline-grid; grid-template-columns: auto auto; gap: var(--s-1); margin: var(--s-6) 0 0; padding: var(--s-1); border: 0; border-radius: var(--r-control); background: var(--surface-2); }
.period label { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border-radius: calc(var(--r-control) - 4px); font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.period input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.period label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow-1); }
.period label:has(input:focus-visible) { box-shadow: var(--focus); }
.save { color: var(--primary); font-weight: 600; }

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-5) 0 0; }
.price { padding: var(--s-4); border-radius: var(--r-control); background: var(--surface-2); }
.price dt { color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.price dd { margin: var(--s-1) 0 0; }
.price strong { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: var(--fs-h3); letter-spacing: -0.01em; }
.price dd > span { display: block; color: var(--muted); font-size: var(--fs-small); }
.price small { display: block; margin-top: var(--s-1); color: var(--muted); font-size: var(--fs-caption); }
.price .y { display: none; }
.plus:has(input[value='yearly']:checked) .price .m { display: none; }
.plus:has(input[value='yearly']:checked) .price .y { display: block; }

/* ── 5. Otázky ── */
.faq { padding-block: var(--section); background: var(--surface-2); }
.faq-in { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .faq-in { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-9); } }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 56px;
  padding-block: var(--s-4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { color: var(--muted); transition: transform 0.2s; }
.faq-list details[open] summary .ic { transform: rotate(180deg); }
.faq-list details p { padding-bottom: var(--s-5); max-width: var(--measure); color: var(--muted); }

/* ── 6. Závěrečná výzva ── */
.final { padding-block: var(--section); text-align: center; }
.final-in { display: grid; justify-items: center; gap: var(--s-4); }
.final p { color: var(--muted); font-size: var(--fs-lead); }
.final .btn { margin-top: var(--s-3); }

/* ── Patička ── */
.footer { padding-block: var(--s-8); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-small); }
.footer-in { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .footer-in { grid-template-columns: 2fr 1fr 1fr; gap: var(--s-7); } }
.footer-brand p { margin-top: var(--s-3); max-width: 46ch; line-height: 1.5; }
.footer-h { margin-bottom: var(--s-3); color: var(--text); font: 600 var(--fs-small) / 1.4 var(--font-body); letter-spacing: 0; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.footer-links a, .footer-brand p a { display: inline-block; padding-block: var(--s-1); }
.footer a { color: inherit; }
.footer a:hover { color: var(--primary); }
.footer .brand { color: var(--text); }
