/* RememRx marketing site, design tokens mirror lib/core/theme/app_theme.dart
   exactly (AppColors / AppSemanticColors, dark variants), and the type
   pairing (Figtree for headings/labels, Noto Sans for body) matches
   AppTheme._buildTextTheme, so the site reads as the same product as the
   app, not a reskin.

   Dark only, deliberately. This used to ship light tokens here with a
   `@media (prefers-color-scheme: dark)` override, which meant the page
   followed the visitor's OS setting. The app itself now defaults to dark
   (theme_mode_provider.dart), and every marketing screenshot is a dark
   capture, so on a light-mode machine the old setup put dark phone
   screenshots on a light page and showed something other than what a new
   user actually gets on first launch. Locking the palette keeps the site,
   the screenshots, and the product's own default in agreement.

   Do NOT reintroduce a prefers-color-scheme block: it would reopen exactly
   that mismatch. */

:root {
  color-scheme: dark;

  --primary: #22D3EE;
  --primary-light: #67E8F9;
  --primary-dark: #0891B2;

  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;

  --surface: #164E63;
  --bg: #0A1628;
  --card: #1E3A4A;

  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;

  --accent-soft: #123246;
  --border: #24435A;

  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Figtree', var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 9px; }

.brand .rx { color: var(--primary); margin: 0; padding: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.nav-cta {
  background: var(--primary);
  /* Dark text, not white: --primary is a bright cyan (#22D3EE) in this
     dark-only palette, and white on it measures 1.81:1, well under WCAG's
     4.5:1. Against the page background it's 10:1. */
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  /* See .nav-cta, same reason, and worse here: the gradient runs to
     --primary-light (#67E8F9), where white bottoms out at 1.45:1. Dark text
     holds up across the whole gradient. */
  color: var(--bg);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--primary) 60%, transparent);
}

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

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

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* --primary, not --primary-dark: on the dark --accent-soft chip,
     --primary-dark manages only 3.63:1, and at 12.5px this is well under
     WCAG's large-text threshold so it needs 4.5:1. --primary gives 7.4:1. */
  color: var(--primary);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h1 .accent { color: var(--primary); }

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-shot {
  justify-self: center;
}

.phone-frame {
  width: min(260px, 80vw);
  border-radius: 42px;
  background: #000;
  padding: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.phone-frame img {
  border-radius: 34px;
  width: 100%;
}

/* ── Section scaffolding ─────────────────────────────────────────────── */

section { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0;
}

/* ── Showcase (screenshot + copy side by side) ──────────────────────── */

.showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.showcase.reverse { grid-template-columns: 1.15fr 0.85fr; }
.showcase.reverse .showcase-shot { order: 2; }

.showcase-shot { justify-self: center; }

.showcase-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.showcase-copy p {
  color: var(--text-secondary);
  font-size: 16.5px;
  margin: 0 0 20px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  color: var(--text-secondary);
}

.check-list li strong { color: var(--text-primary); }

.check-list .dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
}

/* ── Premium band ────────────────────────────────────────────────────── */

.premium-band {
  background: linear-gradient(155deg, color-mix(in srgb, var(--primary) 12%, var(--bg)), var(--bg) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Pricing comparison ──────────────────────────────────────────────── */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* The paid column is the one being sold, so it carries the accent border.
   Deliberately not scaled up or lifted: the two lists are meant to be read
   against each other, and offsetting one makes the rows stop lining up. */
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.plan-card .price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  margin: 12px 0 4px;
}

.plan-card .price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-card .price-note {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Pushed to the bottom of the card so both buttons sit on one line even
   though the two feature lists are different lengths. */
.plan-cta {
  margin-top: auto;
  padding-top: 24px;
  align-self: stretch;
  text-align: center;
}

/* ── Watch band ──────────────────────────────────────────────────────── */

.watch-frame {
  width: min(158px, 42vw);
  border-radius: 36px;
  background: #000;
  padding: 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 0;
}

.watch-frame img {
  border-radius: 30px;
  width: 100%;
  /* The captures are 422x514; letting them keep that ratio is what stops
     the frames rendering as tall slabs. */
  display: block;
}

/* Three watch views side by side; stacks on narrow screens. */
.watch-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}

.watch-points {
  max-width: 560px;
  margin: 0 auto;
}

/* One call to action for both plans, instead of a button per card. */
.plans-cta {
  text-align: center;
  margin-top: 36px;
}

.btn-large {
  font-size: 1.15rem;
  padding: 18px 64px;
}

/* ── Trust strip ─────────────────────────────────────────────────────── */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

/* ── Support question form ───────────────────────────────────────────── */

.field-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

#ask-form textarea,
#ask-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  resize: vertical;
}

#ask-form textarea:focus,
#ask-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
}

#ask-form button {
  margin-top: 18px;
}

.field-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ── Support page ────────────────────────────────────────────────────── */

.support-hero {
  padding: 56px 0 24px;
  text-align: center;
}

.support-hero h1 { font-size: clamp(32px, 4.4vw, 44px); }

.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.support-card h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
}

.support-card p {
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  margin-left: 16px;
}

.faq details[open] summary::after { content: "\2212"; }

.faq p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 12px 0 0;
  max-width: 65ch;
}

.disclaimer-box {
  background: color-mix(in srgb, var(--warning) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--border));
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 40px auto 0;
}

.disclaimer-box strong { color: var(--text-primary); }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-shot { order: -1; }
  .hero-ctas { justify-content: center; }
    .showcase, .showcase.reverse { grid-template-columns: 1fr; text-align: center; }
  .showcase.reverse .showcase-shot { order: -1; }
  .check-list { align-items: center; }
  .check-list li { text-align: left; }
  .trust-strip { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
}

@media (max-width: 560px) {
    .nav-links a:not(.nav-cta) { display: none; }
}
