/* ============================================================
   Cartbeat — pre-launch landing page
   Mobile-first, žádné externí závislosti, systémový font stack
   ============================================================ */

:root {
  --accent: #e5484d;          /* pulzní červená */
  --accent-dark: #cf3a3f;
  --accent-soft: #fdecec;     /* jemné pozadí pro odznaky */
  --ink: #16181d;             /* hlavní text */
  --ink-soft: #4b5260;        /* sekundární text */
  --bg: #ffffff;
  --bg-alt: #f8f9fb;          /* střídání sekcí */
  --line: #e6e8ee;
  --radius: 10px;
  --max-width: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: 720px;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

a {
  color: var(--accent);
}

.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;
}

/* ===== Hlavička ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-alt);
}

.header-cta {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.header-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Hero ===== */

.hero {
  text-align: center;
  padding: 4.5rem 0 0;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.hero-brand-mark {
  width: clamp(52px, 9vw, 76px);
  height: clamp(52px, 9vw, 76px);
  flex-shrink: 0;
}

.hero-brand-name {
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(1.5rem, 4.2vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-top: 1.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.45); opacity: 0.55; }
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-sub strong {
  color: #fff;
}

/* Formulář a poznámka v tmavém hero — stejný styl jako spodní CTA */
.hero .waitlist-form input[type="email"] {
  border-color: transparent;
}

.hero .form-note {
  color: rgba(255, 255, 255, 0.55);
}

.hero .form-feedback.error {
  color: #ffb3b5;
}

.hero .form-success {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===== Formulář ===== */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 460px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.waitlist-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.waitlist-form button {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: var(--accent-dark);
}

.waitlist-form button:active {
  transform: scale(0.98);
}

.waitlist-form button:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-note {
  max-width: 460px;
  margin: 0.7rem auto 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.form-feedback {
  font-size: 0.9rem;
  text-align: left;
}

.form-feedback.error {
  color: var(--accent-dark);
}

.form-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  width: 100%;
}

.form-success svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== EKG linka ===== */

.ekg-wrap {
  margin-top: 3.5rem;
}

.ekg {
  display: block;
  width: 100%;
  height: 90px;
}

.ekg-line {
  stroke-dasharray: 6 3;
  animation: ekg-flow 2.4s linear infinite;
}

@keyframes ekg-flow {
  to { stroke-dashoffset: -90; }
}

@media (prefers-reduced-motion: reduce) {
  .ekg-line, .pulse-dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Problém ===== */

.problem {
  padding: 4.5rem 0;
}

.problem h2 {
  margin-bottom: 1.25rem;
}

.problem > .container > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 620px;
}

.problem-points {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.problem-point {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  background: var(--bg);
}

.problem-point p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===== Jak to funguje ===== */

.how {
  padding: 4.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.steps {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===== Pro koho ===== */

.who {
  padding: 4.5rem 0;
}

.who-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.who-lead strong {
  color: var(--ink);
}

.who-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.who-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.who-list .check {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.who-list span {
  color: var(--ink-soft);
}

.who-list strong {
  color: var(--ink);
}

/* ===== Bezpečnost (důvěra zákazníka) ===== */

.safety {
  padding: 4.5rem 0;
}

/* ===== Srovnání bez/s ===== */

.compare {
  padding: 4.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.compare-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.compare-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.compare-col h3 {
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
}

.compare-col ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.compare-col li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.compare-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.compare-without {
  border-top: 3px solid #9aa1ad;
}

.compare-without li::before {
  content: "✕";
  color: #9aa1ad;
}

.compare-with {
  border-top: 3px solid var(--accent);
}

.compare-with li::before {
  content: "✓";
  color: var(--accent);
}

/* ===== Druhé CTA ===== */

.cta {
  padding: 4.5rem 0;
  text-align: center;
  background: var(--ink);
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.cta-sub {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.cta .waitlist-form input[type="email"] {
  border-color: transparent;
}

.cta .form-note {
  color: rgba(255, 255, 255, 0.55);
}

.cta .form-feedback.error {
  color: #ffb3b5;
}

.cta .form-success {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===== Patička ===== */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-disclaimer {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #9aa1ad;
}

/* ===== Větší obrazovky ===== */

@media (min-width: 640px) {
  .waitlist-form {
    flex-direction: row;
  }

  .waitlist-form input[type="email"] {
    flex: 1;
  }

  .form-success {
    width: auto;
    min-width: 320px;
  }
}

@media (min-width: 820px) {
  .problem-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 6rem;
  }
}

/* ============================================================
   Rodina produktů Cartbeat — Monitor (červená) / Profit (modrá)
   / Repeat (zelená). Produktové stránky přepínají --accent přes
   třídu na <body>, takže všechny komponenty se přebarví samy.
   ============================================================ */

:root {
  --monitor: #e5484d;  --monitor-dark: #cf3a3f;  --monitor-soft: #fdecec;
  --profit:  #3e63dd;  --profit-dark:  #3354c4;  --profit-soft:  #edf1fd;
  --repeat:  #30a46c;  --repeat-dark:  #28865a;  --repeat-soft:  #e9f7ef;
}

body.theme-profit {
  --accent: var(--profit);
  --accent-dark: var(--profit-dark);
  --accent-soft: var(--profit-soft);
}

body.theme-repeat {
  --accent: var(--repeat);
  --accent-dark: var(--repeat-dark);
  --accent-soft: var(--repeat-soft);
}

/* Název produktu vedle brandu (hlavička + hero) */
.brand-product {
  color: var(--accent);
}

/* Menší hero brand na produktových stránkách (dvě slova) */
.hero-brand--product .hero-brand-name {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
}

.hero-brand--product .hero-brand-mark {
  width: clamp(42px, 7vw, 60px);
  height: clamp(42px, 7vw, 60px);
}

/* ===== Sekce produktů (suite homepage) ===== */

.products {
  padding: 4.5rem 0;
}

.products h2 {
  text-align: center;
}

.products-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1020px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
}

.product-card .p-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}

.p-tagline {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.p-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.p-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1.1rem;
}

.p-link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

.p-link:hover {
  text-decoration: underline;
}

/* barevné odlišení karet */
.product-card.monitor { border-top: 3px solid var(--monitor); }
.product-card.profit  { border-top: 3px solid var(--profit); }
.product-card.repeat  { border-top: 3px solid var(--repeat); }

.product-card.monitor .p-tagline, .product-card.monitor .p-link { color: var(--monitor-dark); }
.product-card.profit  .p-tagline, .product-card.profit  .p-link { color: var(--profit-dark); }
.product-card.repeat  .p-tagline, .product-card.repeat  .p-link { color: var(--repeat-dark); }

.p-status.monitor { background: var(--monitor-soft); color: var(--monitor-dark); }
.p-status.profit  { background: var(--profit-soft);  color: var(--profit-dark); }
.p-status.repeat  { background: var(--repeat-soft);  color: var(--repeat-dark); }

/* ===== „Jedna rodina" sekce ===== */

.family {
  padding: 4.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.family h2 {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ===== Cross-sell box (stránky Připravujeme → Monitor) ===== */

.crosslink {
  padding: 4.5rem 0;
}

.crosslink-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--monitor);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.crosslink-card h2 {
  font-size: 1.35rem;
}

.crosslink-card p {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.crosslink-card .p-link {
  color: var(--monitor-dark);
  font-weight: 700;
}

/* ===== Odkazy na produkty v patičce ===== */

.footer-products {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-products a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 600;
}

.footer-products a:hover {
  color: var(--ink);
}

@media (min-width: 820px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
