:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-raised: #222222;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --primary: #609ac4;
  --primary-hover: #7aadcf;
  --primary-text: #111111;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1140px;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-hover);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--primary);
  color: var(--primary-text);
  padding: 0.5rem 1rem;
  z-index: 200;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* ── Header ── */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 2rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(17, 17, 17, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: 0.25rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.header-cta {
  display: none;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-cta .btn {
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}

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

.btn-ghost {
  border-color: #333;
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

/* ── Hero ── */

.hero {
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin: 0;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  max-width: 44ch;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ── Phone mockup ── */

.phone-mockup {
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.phone-frame {
  width: min(280px, 85vw);
  background: #0a0a0a;
  border-radius: 2rem;
  padding: 0.65rem;
  border: 2px solid #333;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(96, 154, 196, 0.15);
  transform: rotateY(-4deg) rotateX(2deg);
}

.phone-notch {
  width: 40%;
  height: 6px;
  background: #222;
  border-radius: 0 0 6px 6px;
  margin: 0 auto 0.5rem;
}

.phone-screen {
  background: linear-gradient(180deg, #252525 0%, #1a1a1a 100%);
  border-radius: 1.5rem;
  padding: 1rem 1.1rem 1.25rem;
  min-height: 340px;
}

.mock-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.mock-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.mock-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mock-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

.mock-list span {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  min-width: 2.75rem;
}

.mock-footer-stat {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  text-align: center;
}

.phone-mockup-sm .phone-frame {
  width: min(240px, 70vw);
  transform: rotateY(4deg) rotateX(2deg);
}

.mock-chips {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.mock-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #444;
  color: var(--muted);
}

.mock-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(96, 154, 196, 0.12);
}

.mock-cta {
  margin-top: 1rem;
  text-align: center;
  padding: 0.65rem;
  border-radius: 0.65rem;
  background: var(--primary);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 0.9rem;
}

.solution-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mock-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.mock-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Sections ── */

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section.muted {
  background: #151515;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 0.5rem;
}

.section-lead strong {
  color: var(--text);
}

.split-section {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.solution-visual,
.loyalty-visual {
  display: flex;
  justify-content: center;
}

.solution-card,
.loyalty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 280px;
  width: 100%;
}

.solution-stat,
.loyalty-points {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.solution-desc,
.loyalty-label {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* ── Cards ── */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.cards.two {
  grid-template-columns: 1fr;
}

.cards.three {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Flow steps ── */

.flow-steps {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.flow-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.flow-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-text);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.flow-steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.flow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── WhatsApp banner ── */

.whatsapp-banner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.75rem;
}

.whatsapp-icon {
  font-size: 2rem;
  line-height: 1;
}

.whatsapp-banner h3 {
  margin: 0 0 0.35rem;
}

.whatsapp-banner p {
  margin: 0;
  color: var(--muted);
}

/* ── Plans ── */

.plans-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  background: #1a1a1a;
}

.plans-notice-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plans-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.plan-name {
  margin-top: 0;
}

.plan-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.25rem 0;
}

.plan-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.plan-limit {
  margin: 0.15rem 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.plan-recommended {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.comparison-heading {
  margin-top: 2.5rem;
  font-size: 1.25rem;
}

.plans-comparison {
  margin-top: 1rem;
}

.comparison-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comparison-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--surface-raised);
  font-weight: 600;
}

.comparison-feature-col {
  text-align: left !important;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  min-width: 10rem;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-check {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.loading {
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ── Steps ── */

.steps {
  padding-left: 1.25rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.steps li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
}

.steps strong {
  color: var(--text);
}

/* ── FAQ ── */

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

.faq-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1rem;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-answer a {
  color: var(--primary);
}

/* ── CTA ── */

.cta {
  background: linear-gradient(180deg, #151515 0%, var(--bg) 100%);
}

.cta-inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-inner h2 {
  margin-top: 0;
}

.cta-inner > p {
  color: var(--muted);
}

.cta-actions {
  justify-content: center;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.store-btn {
  min-width: 140px;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand img {
  height: 1.75rem;
  width: auto;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

/* ── Legal pages (shared) ── */

.legal-page {
  max-width: 720px;
}

.legal-content {
  white-space: pre-wrap;
  font-family: inherit;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
}

.legal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.legal-form input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #333;
  background: var(--surface);
  color: var(--text);
}

/* ── Responsive: tablet ── */

@media (min-width: 640px) {
  .cards.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ── Responsive: desktop ── */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.15rem 0.75rem;
    flex: 1;
    justify-content: center;
  }

  .site-nav a {
    padding: 0.35rem 0;
    font-size: 0.85rem;
    background: transparent;
  }

  .header-cta {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

  .split-section {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .footer-nav {
    order: 2;
    flex: 1;
    justify-content: center;
  }

  .footer-copy {
    width: 100%;
    text-align: center;
    order: 3;
  }
}

@media (min-width: 1440px) {
  :root {
    --max: 1200px;
  }

  .hero {
    padding: 4.5rem 0;
  }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .phone-frame {
    transform: none;
  }

  .nav-toggle-bar {
    transition: none;
  }
}
