/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Variables ───────────────────────────────────── */
:root {
  --magenta: #E91E8C;
  --magenta-dark: #B0156D;
  --dark: #1A1A1A;
  --surface: #2A2A2A;
  --light: #FFFFFF;
  --light-surface: #F5F5F5;
  --text-secondary: #9E9E9E;
  --border: #444444;
  --max-width: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

/* ── Typography ──────────────────────────────────── */
.font-display { font-family: 'Permanent Marker', cursive; }
.text-magenta { color: var(--magenta); }

h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

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

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--light);
  border-bottom: 1px solid #E0E0E0;
  padding: 16px 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  color: var(--dark);
}
.nav-logo .logo-icon { height: 32px; width: auto; }
.nav-logo .logo-career { font-family: 'Inter', sans-serif; font-weight: 600; }
.nav-logo .logo-badger { font-family: 'Permanent Marker', cursive; color: var(--magenta); }
.nav .nav-logo .logo-career { color: #000000; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--magenta); }
.nav-cta {
  background: var(--magenta);
  color: var(--light) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--magenta-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light);
    padding: 24px;
    border-bottom: 1px solid #E0E0E0;
    gap: 16px;
  }
  .nav-toggle { display: block; }
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2a1a2e 50%, var(--dark) 100%);
  color: var(--light);
  text-align: center;
  padding: 80px 24px 60px;
}
.hero h1 {
  font-family: 'Permanent Marker', cursive;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.store-badge {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}
.store-badge-link,
.store-badge-btn {
  display: inline-block;
  line-height: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.store-badge-link:hover .store-badge,
.store-badge-btn:hover .store-badge {
  opacity: 0.85;
  transform: translateY(-1px);
}
/* Legacy aliases kept for any cached references */
.app-store-badge { height: 48px; transition: opacity 0.2s; }
.app-store-badge:hover { opacity: 0.85; }
.hero-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.hero-social a {
  color: var(--text-secondary);
  font-size: 1.4rem;
  transition: color 0.2s;
}
.hero-social a:hover { color: var(--magenta); }

@media (max-width: 768px) {
  .hero { padding: 60px 24px 48px; }
}

/* ── Section Shared ──────────────────────────────── */
.section {
  padding: 80px 24px;
}
.section-title {
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .section { padding: 48px 24px; }
  .section-title { margin-bottom: 32px; }
}

/* ── How It Works ────────────────────────────────── */
.how-it-works { background: var(--light); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--magenta);
  color: var(--light);
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: #666; font-size: 0.95rem; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Features ────────────────────────────────────── */
.features { background: var(--light-surface); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid #E0E0E0;
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #FDF0F8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-weight: 600; }
.feature-card p { color: #666; font-size: 0.9rem; line-height: 1.5; }

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ── CTA Banner ──────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark) 100%);
  color: var(--light);
  text-align: center;
  padding: 64px 24px;
}
.cta-banner h2 {
  font-family: 'Permanent Marker', cursive;
  margin-bottom: 16px;
}
.cta-banner p {
  max-width: 520px;
  margin: 0 auto 32px;
  opacity: 0.9;
}
.cta-btn {
  display: inline-block;
  background: var(--light);
  color: var(--magenta);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-btn-outline {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--light);
  padding: 12px 34px;
}
.cta-btn-outline:hover {
  background: var(--light);
  color: var(--magenta);
}

/* ── Android Waitlist Modal ──────────────────────── */
.android-modal {
  border: none;
  border-radius: var(--radius);
  padding: 36px 24px 24px;
  max-width: 460px;
  width: calc(100% - 32px);
  background: var(--light);
  color: #333;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  /* Explicit centering — robust across browsers and privacy modes */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  box-sizing: border-box;
}
.android-modal::backdrop {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.android-modal[open] { animation: cb-modal-pop 0.18s ease-out; }
@keyframes cb-modal-pop {
  from { transform: translate(-50%, -50%) scale(0.96); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.android-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.android-modal-close:hover {
  background: var(--light-surface);
  color: #333;
}
.android-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1.2;
}
.android-modal > p {
  margin-bottom: 20px;
  color: #555;
  font-size: 0.95rem;
}
.modal-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.modal-badges .store-badge { cursor: default; }
.modal-android-cta {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 12px;
  text-align: center;
}

/* ── Waitlist form (used inside modal) ───────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.waitlist {
  background: var(--light-surface);
  text-align: center;
}
.waitlist-intro {
  max-width: 540px;
  margin: 0 auto 32px;
  color: #555;
}
.waitlist-form {
  max-width: 520px;
  margin: 0 auto;
  border: none;
}
.waitlist-checkboxes {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  border: none;
  padding: 0;
}
.waitlist-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}
.waitlist-checkbox input {
  accent-color: var(--magenta);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.waitlist-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-input-row input[type="email"] {
  flex: 1 1 240px;
  min-width: 240px;
  padding: 14px 16px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--light);
}
.waitlist-input-row input[type="email"]:focus {
  outline: none;
  border-color: var(--magenta);
}
.waitlist-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.waitlist-submit {
  background: var(--magenta);
  color: var(--light);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
}
.waitlist-submit:hover {
  background: var(--magenta-dark);
  transform: translateY(-1px);
}
.waitlist-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.waitlist-message {
  margin-top: 16px;
  min-height: 1.5em;
  font-weight: 500;
}
.waitlist-message.success { color: #2D7A2D; }
.waitlist-message.error { color: #C0392B; }

/* ── FAQ ─────────────────────────────────────────── */
.faq { background: var(--light); }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #E0E0E0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--magenta);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '-';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px;
}
.faq-answer p {
  padding: 0 0 20px;
  color: #666;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: 64px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand .nav-logo {
  color: var(--light);
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--text-secondary);
  font-size: 1.4rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--magenta); }
.footer-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.footer-badges .store-badge { height: 40px; }
.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--magenta); }
.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 8px; }
  .android-modal { padding: 28px 18px 20px; }
  .android-modal h3 { font-size: 1.25rem; }
  .waitlist-input-row input[type="email"] {
    min-width: 0;
    flex: 1 1 100%;
  }
  .waitlist-submit { width: 100%; }
}

/* ── Page Content (privacy, support) ─────────────── */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.page-content .updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.page-content h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.page-content p { margin-bottom: 16px; font-size: 0.95rem; }
.page-content ul { margin: 0 0 16px 20px; }
.page-content li { margin-bottom: 8px; font-size: 0.95rem; }
.page-content a { color: var(--magenta); }
.page-content a:hover { text-decoration: underline; }

/* ── Contact Card ────────────────────────────────── */
.contact-card {
  background: var(--light-surface);
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0;
}
.contact-card a { color: var(--magenta); font-weight: 600; }
