/* ============================================================
   WebDo24 — design system v1
   Barvy, typografie, layout primitiva. Self-hosted fonty.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-700.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --ink: #12100d;
  --ink-soft: #26231f;
  --paper: #f7f4ee;
  --paper-deep: #efeae0;
  --white: #ffffff;
  --petrol: #0e4a4c;
  --petrol-dark: #0a3b3d;
  --petrol-tint: #e2efec;
  --amber: #d97706;
  --amber-solid: #b75d02;   /* WCAG 4.59:1 with white — buttons/badges */
  --amber-solid-dark: #9d4e00;
  --muted: #5c5750;
  --line: rgba(18, 16, 13, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --section-space: clamp(4.5rem, 9vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 16, 13, 0.05), 0 12px 32px -16px rgba(18, 16, 13, 0.18);
  --shadow-lg: 0 2px 6px rgba(18, 16, 13, 0.06), 0 28px 64px -24px rgba(18, 16, 13, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
}
.on-dark .eyebrow { color: #bfe3da; }

/* ---------- layout ---------- */
.shell { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.section--tint { background: var(--paper-deep); }
.section--dark { background: var(--ink); color: #eceae4; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fbfaf6; }
.section-intro { max-width: 640px; }
.section-intro h2 { margin-top: 0.9rem; }
.section-intro .lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.06rem; }
.section--dark .section-intro .lead { color: #c9c4ba; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.18s var(--ease), background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--petrol);
  color: #f2f7f5;
}
.btn--primary:hover { background: var(--petrol-dark); transform: translateY(-1px); }
.btn--amber {
  background: var(--amber-solid);
  color: #fff;
}
.btn--amber:hover { background: var(--amber-solid-dark); transform: translateY(-1px); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: rgba(18,16,13,0.3); background: rgba(18,16,13,0.04); }
.btn--ghost-light {
  border: 1px solid rgba(255,255,255,0.28);
  color: #f2f0ea;
}
.btn--ghost-light:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.btn--light {
  background: #f7f4ee;
  color: var(--ink);
}
.btn--light:hover { background: #fff; transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--petrol);
  display: grid; place-items: center;
  color: #fff;
}
.brand-mark svg { width: 18px; height: 18px; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 1.8rem; }
.header-nav a { font-size: 0.97rem; font-weight: 500; color: var(--ink-soft); }
.header-nav a:hover { color: var(--petrol); }
.header-cta { margin-left: 0; }
.header-phone { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

/* burger (mobile) */
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* mobile nav panel */
.m-nav { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #f2f0ea;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 12%, rgba(14, 74, 76, 0.55) 0%, rgba(14, 74, 76, 0) 60%),
    radial-gradient(45% 40% at 10% 90%, rgba(217, 119, 6, 0.14) 0%, rgba(217, 119, 6, 0) 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6.5rem);
  max-width: 900px;
}
.hero h1 { color: #fbfaf6; margin-top: 1.3rem; }
.hero h1 .accent { color: #e8b04a; }
.hero-sub {
  margin-top: 1.4rem;
  max-width: 560px;
  font-size: 1.12rem;
  color: #d6d1c6;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: #b6b0a4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-note svg { width: 16px; height: 16px; color: #e8b04a; }

/* 24h countdown chip */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #eae6dc;
}
.countdown .cd-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd4a2; box-shadow: 0 0 0 0 rgba(127,212,162,0.5); }
.countdown b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.countdown .cd-dot.pulse { animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127,212,162,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(127,212,162,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,212,162,0); }
}

/* ---------- guarantee cards ---------- */
.guarantee-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.guarantee-card .gc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.guarantee-card h3 { font-size: 1.05rem; }
.guarantee-card .cc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--amber-solid);
  border: 1px solid var(--amber-solid);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.guarantee-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- steps ---------- */
.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--petrol);
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- value list ---------- */
.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-item .vi-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--petrol-tint);
  color: var(--petrol);
  display: grid; place-items: center;
}
.value-item .vi-icon svg { width: 22px; height: 22px; }
.value-item h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.value-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- industries ---------- */
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.97rem;
  background: var(--white);
}

/* ---------- pricing ---------- */
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border: 2px solid var(--petrol);
  box-shadow: var(--shadow-lg);
}
.price-label {
  position: absolute;
  top: -0.85rem;
  left: 1.4rem;
  background: var(--amber-solid);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.25rem; }
.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
}
.price-amount small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.price-desc { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.price-features { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.price-features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.price-features svg { width: 17px; height: 17px; color: var(--petrol); flex: 0 0 auto; margin-top: 0.18rem; }
.price-card .btn { margin-top: 1.6rem; justify-content: center; }
.price-note { margin-top: 1.1rem; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ---------- coming soon / refs ---------- */
.ref-card {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: rgba(255,255,255,0.5);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.ref-card .rc-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ref-card h3 { font-size: 1.05rem; }
.ref-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.25rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-q .faq-tog {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--petrol);
  transition: transform 0.25s var(--ease);
}
.faq-q .faq-tog svg { width: 16px; height: 16px; }
.faq-item[open] .faq-tog { transform: rotate(45deg); }
.faq-a { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.97rem; max-width: 72ch; }

/* ---------- form ---------- */
.cta-band {
  background: var(--petrol-dark);
  color: #edf4f1;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(55% 60% at 90% 0%, rgba(217,119,6,0.16) 0%, rgba(217,119,6,0) 60%);
}
.cta-band .shell { position: relative; z-index: 1; }
.cta-band h2 { color: #fbfaf6; }
.cta-band .section-intro .lead { color: #c6d3cd; }

.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  max-width: 720px;
  margin-top: 2.4rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  font-size: 1rem;
  background: var(--paper);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(14,74,76,0.12);
}
.form-submit {
  margin-top: 1.4rem;
  width: 100%;
  justify-content: center;
}
.form-legal { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.form-success .fs-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--petrol-tint);
  color: var(--petrol);
  display: grid; place-items: center;
  margin: 0 auto 1rem;
}
.form-success .fs-icon svg { width: 28px; height: 28px; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); }
.form-wrap.is-sent .form-main { display: none; }
.form-wrap.is-sent .form-success { display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b7b2a8;
  padding-block: 3.5rem 2.2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: #f7f4ee; }
.footer-brand p { margin-top: 0.9rem; max-width: 320px; color: #9d988e; }
.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #f0ede5;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.footer ul { display: grid; gap: 0.55rem; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  color: #8b867c;
  font-size: 0.85rem;
}
.footer-bottom a { color: #a9a399; }
.footer-bottom a:hover { color: #fff; }

/* ---------- reveal animation ---------- */
/* Explicitní no-js ochrana: bez JS zůstane veškerý obsah viditelný.
   JS na začátku odebere class 'no-js' a teprve pak se aplikuje skrytí. */
html.reveal-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.reveal-js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-nav, .header-phone, .header-cta { display: none; }
  .burger { display: inline-flex; }
  /* mobile menu */
  .m-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--paper);
    padding: 5.5rem var(--gutter) 2rem;
    flex-direction: column;
  }
  .m-nav.open { display: flex; }
  .m-nav a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ink);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .m-nav .m-cta { margin-top: 1.5rem; }
  .m-close { position: absolute; top: 1.1rem; right: var(--gutter); }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .price-features { grid-template-columns: 1fr !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-sub { font-size: 1.05rem; }
  .section { padding-block: 3.6rem; }
  .form-card { padding: 1.5rem; }
}
