/* mynextarrow.com: the landing, support and legal pages. The app's amber, light and dark like the phone */
@font-face {
  font-family: Outfit;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/outfit-800.woff2') format('woff2');
}
:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #b45309;
  --brand: #f59e0b;
  --border: #e5e7eb;
  --yes: #15803d;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --surface: #1f2937;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --accent: #fbbf24;
    --border: #374151;
    --yes: #4ade80;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* Top bar */
.top {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand .name { font-family: Outfit, system-ui, sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent); letter-spacing: -0.01em; }
.brand .tagline { color: var(--muted); font-size: 0.9rem; padding-left: 10px; border-left: 1px solid var(--border); }
@media (max-width: 600px) { .brand .tagline { display: none; } }
.brand img { width: 34px; height: 34px; }
.langs { display: flex; gap: 4px; font-size: 0.9rem; }
.langs a { padding: 4px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.langs a[aria-current='page'] { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* Page width */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Hero: text and buttons, the phone beside on wide screens */
.hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 48px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  min-width: 170px;
}
.store small { font-size: 0.75rem; opacity: 0.8; }
.store strong { font-size: 1.1rem; }
.store[aria-disabled='true'] { opacity: 0.55; cursor: default; }
.trial { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }
.phone {
  width: min(300px, 80vw);
  margin: 0 auto;
  border-radius: 28px;
  border: 8px solid #111827;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.2fr 1fr; padding: 48px 0 72px; }
}

/* Sections */
.block { padding: 48px 0; border-top: 1px solid var(--border); }
.block > h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 8px; }
.block > .lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* Features: a phone and its words, two per row on wide screens */
.features { display: grid; gap: 24px; }
@media (min-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.feature img { border-radius: 12px; border: 1px solid var(--border); }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.extras { margin: 24px 0 0; color: var(--muted); }

/* Plans */
.plans { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.plans th, .plans td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.plans th:not(:first-child), .plans td:not(:first-child) { text-align: center; width: 26%; }
.plans thead th { font-size: 1.05rem; }
.plans tr:last-child td { border-bottom: 0; }
.yes { color: var(--yes); font-weight: 700; }
.no { color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; margin: 16px 0 0; }

/* Questions */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 0.95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.withdrawal { font-weight: 700; }

/* Legal and support pages */
.doc { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
.doc h1 { font-size: 1.6rem; margin: 8px 0; }
.doc h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.effective { color: var(--muted); margin: 0 0 24px; }
.doc section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px 12px;
  margin-bottom: 16px;
}
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.highlight { font-weight: 600; }
.doc header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.doc header img { width: 40px; height: 40px; }
.doc .lang { display: block; text-align: right; font-size: 0.9rem; margin-bottom: 8px; }
@media (max-width: 600px) {
  .plans th, .plans td { padding: 10px 8px; font-size: 0.9rem; }
  .feature { grid-template-columns: 96px 1fr; }
}

/* Free or Premium on each feature, as the app's plans (src/data/features.ts) */
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.badge.free { background: rgba(21, 128, 61, 0.12); color: var(--yes); }
.badge.premium { background: rgba(245, 158, 11, 0.18); color: var(--accent); }
