:root {
  --primary: #D52B1E;
  --primary-dark: #A51F16;
  --text: #1a1a1a;
  --muted: #6e6e6e;
  --border: #e5e5e5;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --soft-2: #fafafa;
  --max-w: 720px;
  --max-w-wide: 1100px;
}

* { box-sizing: border-box; }

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

.nav {
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.nav-brand a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-toggle button {
  background: transparent;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.lang-toggle button.active {
  background: #fff;
  color: var(--primary);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

h1 {
  font-size: 32px;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  color: var(--primary);
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 8px;
  color: var(--text);
}

h3 {
  font-size: 16px;
  margin: 20px 0 6px;
  color: var(--text);
}

p, li {
  font-size: 15px;
  color: #333;
}

a { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(213,43,30,0.3); }
a:hover { border-bottom-color: var(--primary); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  font-weight: 700;
}

ul { padding-left: 22px; }
li { margin-bottom: 4px; }

.lang-section { display: none; }
.lang-section.active { display: block; }

.meta {
  background: var(--soft);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 4px;
  margin: 16px 0 32px;
  font-size: 14px;
}

.footer {
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  padding: 30px 24px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.footer a { color: var(--muted); border-bottom-color: transparent; }
.footer a:hover { color: var(--primary); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .container { padding: 30px 18px 60px; }
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
  display: block;
}

.card:hover { border-color: var(--primary); }
.card h3 { margin: 0 0 6px; color: var(--primary); border-bottom: none; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card a { border-bottom: none; }

/* ─── Landing page ──────────────────────────────────────────────────────── */
.container-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  color: var(--text);
  padding: 64px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-logo {
  display: block;
  width: 220px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 16px;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(213,43,30,0.10);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--text);
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -1px;
  font-weight: 800;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 600px;
  line-height: 1.55;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Store badges */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: none !important;
  transition: transform 0.15s, opacity 0.15s;
  font-weight: 600;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge.disabled { opacity: 0.55; cursor: not-allowed; }
.store-badge.disabled:hover { transform: none; }
.store-badge-icon { font-size: 26px; line-height: 1; }
.store-badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-badge-small { font-size: 10px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.store-badge-big { font-size: 16px; font-weight: 700; }

/* Section blocks */
.section {
  padding: 72px 24px;
}
.section-soft { background: var(--soft-2); }
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(213,43,30,0.08);
  border-color: rgba(213,43,30,0.4);
}
.feature-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* "How it works" steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px 24px 70px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Mobile-only notice */
.notice {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px auto;
  max-width: 760px;
  text-align: center;
  color: #6D4C00;
  font-size: 15px;
}
.notice strong { color: #5D3F00; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, #D52B1E 0%, #A51F16 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 800;
}
.cta-section p {
  color: rgba(255,255,255,0.9);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* Legal page wrapper (kept narrow for readability) */
.legal-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

@media (max-width: 800px) {
  .features, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 17px; }
  .section-title { font-size: 24px; }
  .hero { padding: 60px 20px 70px; }
  .section { padding: 56px 20px; }
}
