/* ===== Self-hosted Inter (variable) — no Google CDN (privacy) ===== */
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('assets/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('assets/fonts/Inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193; }

/* ===== CSS Variables ===== */
:root {
  --primary: #0D9488;
  --primary-light: #CCFBF1;
  --primary-dark: #0F766E;
  --primary-bg: #F0FDFA;

  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FEF3C7;

  --text: #1E293B;
  --muted: #64748B;
  --bg: #F8FAFC;
  --border: #E2E8F0;
  --white: #ffffff;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 960px;
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #E2E8F0;
    --muted: #94A3B8;
    --bg: #0F172A;
    --white: #1E293B;
    --border: #334155;
    --primary-bg: #042f2e;
    --primary-light: #134e4a;
    --accent-light: #451a03;
  }
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }

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

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ===== Honeypot ===== */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ===== Sticky Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(15, 23, 42, 0.9);
  }
}

.site-header.visible {
  transform: translateY(0);
}

/* Keyboard focus reveals the fixed header even before it scrolls into view */
.site-header:focus-within {
  transform: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header-logo img { height: 28px; }

/* Header CTA pill „Novinky e-mailem" nesmí zalomit na mobilu; ≤400px zúžíme padding/font. */
.header-inner .btn-sm { white-space: nowrap; }
@media (max-width: 400px) {
  .header-inner .btn-sm { padding: 0.4rem 0.7rem; font-size: 0.8125rem; }
}

/* Footer logo — dark bg vždy → použij tmavou (světlou) variantu loga, žádný filter (nezplošťovat 3-tón). */
.footer-logo {
  opacity: 0.9;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-accent {
  background: var(--accent);
  color: #1E293B;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.125rem; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg) 100%);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo { margin-bottom: 2rem; }

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-sub strong { color: var(--primary); }

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ===== Beta entry links ===== */
.hero-beta {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* Landing dark mode doesn't override --primary-dark; #14B8A6 clears AA on the dark hero gradient */
@media (prefers-color-scheme: dark) {
  .hero-beta { color: #14B8A6; }
}

/* Floating price cards */
.hero-cards {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 1rem;
  position: relative;
  height: 140px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: absolute;
  width: 160px;
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

.card-1 { left: calc(50% - 200px); top: 0; animation-delay: 0s; }
.card-2 { left: calc(50% - 80px); top: 20px; animation-delay: 0.5s; }
.card-3 { left: calc(50% + 40px); top: 5px; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mobile: stack cards vertically */
@media (max-width: 480px) {
  .hero-cards {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .price-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 80%;
    max-width: 240px;
  }
}

.card-store {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card-store.kaufland { color: #e10915; }
.card-store.lidl { color: #0050aa; }
.card-store.albert { color: #d4a100; }

.card-product {
  font-size: 0.875rem;
  color: var(--muted);
}

.card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

/* ===== Social Proof ===== */
.social-proof {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.proof-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.proof-item { text-align: center; }

.proof-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.proof-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.proof-divider {
  width: 1px;
  height: 2rem;
  background: var(--border);
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== Problem ===== */
.problem { background: var(--bg); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.problem-icon { font-size: 1.5rem; flex-shrink: 0; }

.problem-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* ===== Solution ===== */
.solution-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ===== How It Works ===== */
.how-it-works { background: var(--primary-bg); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--muted);
}

/* ===== Features ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.mockup-row:last-child { border-bottom: none; }
.mockup-row.total { font-weight: 700; border-top: 2px solid var(--primary); border-bottom: none; padding-top: 0.75rem; }

.teal { color: var(--primary); font-weight: 700; }
.muted { color: var(--muted); }

.mockup-loyalty {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.mockup-badge {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fde2e2;
  color: #e10915;
}

.mockup-badge.lidl-plus {
  background: #dbeafe;
  color: #0050aa;
}

.mockup-badge.albert-app {
  background: #fef3c7;
  color: #92400e;
}

@media (prefers-color-scheme: dark) {
  .mockup-badge { background: #7f1d1d; color: #fca5a5; }
  .mockup-badge.lidl-plus { background: #1e3a5f; color: #93c5fd; }
  .mockup-badge.albert-app { background: #451a03; color: #fcd34d; }
}

/* ===== Stores ===== */
.stores { text-align: center; }

.stores-label {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.stores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-name {
  padding: 0.5rem 1.25rem;
  border: 2px solid;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.store-kaufland { color: #e10915; border-color: #e10915; }
.store-lidl { color: #0050aa; border-color: #0050aa; }
.store-albert { color: #d4a100; border-color: #d4a100; }

@media (prefers-color-scheme: dark) {
  .store-kaufland { color: #f87171; border-color: #f87171; }
  .store-lidl { color: #60a5fa; border-color: #60a5fa; }
  .store-albert { color: #fbbf24; border-color: #fbbf24; }
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--primary-dark);
  color: #fff;
  padding: 4rem 0;
}

.cta-inner {
  text-align: center;
  max-width: 520px;
}

.cta-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.cta-section > .container > p,
.cta-inner > p {
  color: rgba(255,255,255,0.92);
  margin-bottom: 1rem;
}

.cta-beta {
  display: inline-block;
  margin-bottom: 2rem;
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.form-group {
  width: 100%;
  max-width: 360px;
  position: relative;
}

.form-group input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder { color: rgba(255,255,255,0.5); }

.form-group input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-group input.invalid { border-color: #f87171; }

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #fff;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

.form-radios {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.radio-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.9);
}

.radio-label input[type="radio"] {
  accent-color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.cta-section .btn-accent {
  color: #1E293B;
}

.form-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.92);
}

.signup-success p {
  font-size: 1.125rem;
  color: #fff;
  padding: 2rem 0;
}

.signup-success:focus { outline: none; }

/* ===== Footer ===== */
.site-footer {
  background: #1E293B;
  color: #94A3B8;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-inner a { color: #94A3B8; }
.footer-inner a:hover { color: #fff; }
.footer-copy { font-size: 0.8125rem; }

/* ===== Tablet (640px+) ===== */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.5rem; }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

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

  .problem-card {
    flex-direction: column;
    text-align: center;
  }

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

  .feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row.reverse .feature-text {
    order: 2;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .hero-sub { font-size: 1.25rem; }

  .section { padding: 5rem 0; }

  .price-card { width: 180px; }
  .card-1 { left: calc(50% - 240px); }
  .card-2 { left: calc(50% - 90px); }
  .card-3 { left: calc(50% + 60px); }
}
