/* assets/css/style.css */
:root {
  --accent: #0f7a5c;
  --accent-dark: #0b5c45;
  --accent-light: #7fd3b4;
  --ink: #16181a;
  --bg: #ffffff;
  --muted: #40474a;
  --muted-2: #5f6a66;
  --border: #dde2e0;
  --error: #c0392b;
  --hero-tint: #f4f6f5;
  --dark: #0f1512;
  --dark-ink: #eef2f0;
  --dark-muted: #96a29e;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; scroll-padding-top: 120px; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

main, .topbar__inner, .footer__inner, .hero__grid { max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar__brand-group { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-right: auto; }
.topbar__brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.topbar__tag { font-size: 0.8rem; color: var(--muted-2); }
.topbar__cta { display: none; align-items: center; gap: 10px; flex-wrap: nowrap; }
@media (min-width: 640px) {
  .topbar__cta { display: flex; }
}
.topbar__price { font-size: 0.82rem; color: var(--muted-2); white-space: nowrap; }
.topbar__link {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.topbar__link:hover { background: #e9f2ee; }

/* Hero */
.hero { background: var(--hero-tint); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 36px;
}
.hero__text { max-width: 42ch; }
.hero__eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { margin: 0 0 16px; font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
.hero__sub { font-size: 1rem; color: var(--muted); margin: 0 0 20px; }
.hero__price-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 16px; }
.price-strip {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-align: center;
  margin: 0 0 16px;
}
.price-strip strong { font-weight: 700; color: var(--accent); }
.hero__micro { font-size: 0.85rem; color: var(--muted-2); margin: 0; }

.btn-anchor {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.btn-anchor:hover { background: var(--accent-dark); }

/* Hero phone mockup */
.hero__phone-wrap { display: flex; justify-content: center; }
.phone-frame {
  width: 100%;
  max-width: 300px;
  background: var(--ink);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 20px 50px -18px rgba(15, 25, 20, 0.4);
}
.phone-frame__screen { background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.phone-frame__statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
}
.phone-frame__statusbar-icons { display: flex; align-items: center; gap: 5px; }
.phone-frame__notch { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.phone-frame__header { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; }
.phone-frame__back { color: var(--muted); }
.phone-frame__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.phone-frame__contact { font-size: 0.88rem; font-weight: 600; margin-right: auto; }
.phone-frame__kebab { color: var(--muted-2); }
.phone-frame__thread {
  background: #f7f8f8;
  padding: 14px 12px 18px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px;
  min-height: 260px;
}
.phone-frame__date { align-self: center; font-size: 0.64rem; font-weight: 600; color: #8a9491; letter-spacing: 0.04em; margin-bottom: 4px; }
.phone-frame__bubble {
  background: #e9f2ee; border: 1px solid #d3e5dd; color: var(--ink);
  font-size: 0.86rem; line-height: 1.5; padding: 11px 13px;
  border-radius: 4px 16px 16px 16px; max-width: 92%;
}
.phone-frame__timestamp { font-size: 0.68rem; color: #8a9491; padding-left: 4px; }
.phone-frame__inputbar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #eceeed; }
.phone-frame__input { flex: 1; background: #f0f2f1; border-radius: 999px; padding: 8px 12px; font-size: 0.78rem; color: #8a9491; }
.phone-frame__send { color: var(--accent); flex-shrink: 0; }

/* Sections */
.section { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--border); }
.section--tinted {
  background: var(--hero-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.section--tinted + .section:not(.section--price) { border-top: none; }
.section--tinted > .section__inner { max-width: 720px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) 20px; }
.section h2, .section--tinted h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.2; margin: 0 0 22px; font-weight: 800; letter-spacing: -0.01em; }
.section h3, .section--tinted h3 { font-size: 1.05rem; margin: 0 0 6px; }
.section p, .section--tinted p { color: var(--muted); margin: 0 0 16px; font-size: 1rem; line-height: 1.6; }

.narrow-copy { max-width: 62ch; margin: 0 auto; }
.narrow-copy h2 { margin-bottom: 28px; }
p.lead-ink { color: var(--ink); font-size: clamp(1.05rem, 1.3vw, 1.22rem); margin-bottom: 20px; }
p.pull-quote { color: var(--accent); font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.4; margin-bottom: 20px; }

/* Reason cards (grid, divided by hairlines) */
.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}
.reason { background: var(--bg); padding: 20px; }
.reason h3 { font-weight: 700; }
.reason p { font-size: 0.96rem; margin: 0; }

p.data-strip {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 24px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.data-strip strong { color: var(--accent-light); font-weight: 700; }

/* Process steps (cards + arrows) */
.process {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.process__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.process__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(90deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.process__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.process__icon { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.process__num { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.process__text { display: block; font-size: 1rem; margin-bottom: 4px; }
.process__desc { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Build steps (divided card list) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 26px 20px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; margin: 0; max-width: 22ch; }
.step__body { max-width: 56ch; }
.step__body p { margin: 0 0 16px; }
.step__body p:last-child { margin-bottom: 0; }

.phone-mockup {
  max-width: 300px;
  margin: 16px 0;
  border: 10px solid var(--ink);
  border-radius: 32px;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.18);
  overflow: hidden;
}

.phone-mockup__notch {
  height: 18px;
  background: var(--ink);
  position: relative;
}
.phone-mockup__notch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  border-radius: 6px;
  background: #000;
}

.phone-mockup__screen {
  background: #f5f5f7;
  min-height: 220px;
  border-radius: 0 0 22px 22px;
}

.phone-mockup__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fbfbfd;
  border-bottom: 1px solid #e4e4e8;
}
.phone-mockup__back { color: var(--accent); font-size: 1.1rem; line-height: 1; }
.phone-mockup__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c8c8cc;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-mockup__contact { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

.phone-mockup__thread { padding: 16px 12px 20px; }

.phone-mockup__bubble {
  background: #e9e9eb;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
  max-width: 92%;
}

.phone-mockup__time {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #9a9aa0;
}

.microtext { font-size: 0.9rem; color: var(--muted-2); margin-top: -8px; line-height: 1.5; }

.section-signoff {
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
  text-align: center;
}

/* Dont cards (grid) */
.dont-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.dont { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 0; }
.dont h3 { font-weight: 700; }
.dont p { font-size: 0.96rem; margin: 0; }

/* Price */
.section--price { border-top: 2px solid var(--accent); }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }

.price-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.price-table td { padding: 14px 0; border-bottom: 1px solid var(--border); }
.price-table td:first-child { padding-right: 12px; color: var(--muted); }
.price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table strong { font-size: 1.1rem; font-weight: 700; }

.price-cta-box { background: var(--hero-tint); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.price-cta-box p { margin: 0 0 14px; }
.price-cta-box .microtext { margin: 0 0 20px; }

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: none;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  font-family: inherit;
}
.btn-cta:hover { background: var(--accent-dark); }

.form-warning {
  background: #fff7ed;
  border: 1px solid #f3d9ae;
  border-radius: 6px;
  padding: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-error {
  background: #fdf2f2;
  border: 1px solid #e8b4b4;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #8a2c2c;
  margin: 0 0 16px;
}

#lead-form-wrapper { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 36px; }
#lead-form-wrapper h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.2; }
#lead-form-wrapper .form-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; margin-top: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8d0cd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  min-height: 46px;
}
.field--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.95rem; }
.field--checkbox input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); }

.field--website { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field.is-invalid input[type="text"],
.field.is-invalid input[type="tel"],
.field.is-invalid select {
  border-color: var(--error);
  background: #fdf2f1;
}
.field.is-invalid.field--checkbox { outline: 2px solid var(--error); outline-offset: 4px; border-radius: 6px; }
.field .field__error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.btn-cta.is-loading .btn-spinner { display: inline-block; }
.btn-cta.is-loading { cursor: wait; opacity: 0.85; }
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

#lead-confirmation {
  background: var(--hero-tint);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 18px;
  margin-top: 16px;
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.faq-item h3 { font-weight: 700; }
.faq-item p { font-size: 0.96rem; margin: 0; }

/* Footer */
.footer { background: var(--dark); color: var(--dark-muted); }
.footer__inner {
  padding-top: 40px; padding-bottom: 48px;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.footer__about { font-size: 1rem; line-height: 1.6; color: var(--dark-ink); margin: 0; }
.footer__about strong { color: #fff; }
.footer__meta { font-size: 0.85rem; line-height: 1.7; margin: 0; }
.footer__meta a { color: var(--accent-light); }
.footer__tagline { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; margin: 8px 0 0; }

/* Legal document (zásady ochrany osobních údajů) */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.legal__back { display: inline-block; margin-bottom: 24px; color: var(--accent); text-decoration: none; font-size: 0.95rem; }
.legal__back:hover { text-decoration: underline; }
.legal h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.legal__meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; line-height: 1.3; margin: 36px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal h2:first-of-type { padding-top: 0; border-top: none; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 8px; }
.legal p { color: var(--ink); margin: 0 0 14px; font-size: 0.98rem; line-height: 1.65; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink); font-size: 0.98rem; line-height: 1.65; }
.legal li { margin-bottom: 6px; }
.legal blockquote { margin: 0 0 16px; padding: 14px 16px; background: #f3f7f5; border-radius: 6px; font-size: 0.95rem; line-height: 1.6; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 0.9rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-weight: 600; }
.legal__table-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal__table-wrap table { margin-bottom: 0; }
.legal .placeholder { color: var(--error); font-weight: 600; }
.legal__disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; font-style: italic; }

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px -12px rgba(15, 25, 20, 0.18);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
}
.cookie-bar p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar button {
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid #c8d0cd;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  min-height: 44px;
}
#cookie-accept { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline:hover { background: var(--hero-tint); }

/* Responsive */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .dont-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  #lead-form-wrapper .form-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  main, .topbar__inner, .footer__inner, .section--tinted > .section__inner, .hero__grid { max-width: 1080px; }
  .hero h1 { font-size: 3.1rem; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-top: 48px; padding-bottom: 64px; }
  .hero__text { max-width: 46ch; }
  .process { flex-direction: row; align-items: stretch; gap: 28px; }
  .process__item:not(:last-child)::after {
    left: auto;
    right: -24px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
  }
  .footer__inner { grid-template-columns: 1.4fr 1fr; }
}
