/* Blurize — landing + legal pages. Mirrors the app's dark + neon design tokens
   (lib/app/design/tokens.dart). Zero dependencies, system font stack. */

:root {
  --bg: #0e0f13;
  --surface: #16181f;
  --surface-high: #1e212b;
  --accent: #2be3a6;
  --accent-dim: #1c8c66;
  --on-accent: #03150f;
  --text-primary: #f2f4f8;
  --text-secondary: #9aa1af;
  --text-faint: #5c6373;
  --divider: #262a35;
  --danger: #ff5a6e;
  --radius-md: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header / nav ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(14, 15, 19, 0.72);
  border-bottom: 1px solid var(--divider);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 7px;
  object-fit: cover;
}
.foot .brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.lang-select {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}
.lang-select:hover { color: var(--text-primary); border-color: var(--text-faint); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }
/* On very narrow screens, drop the secondary links so the Download CTA always fits.
   Privacy & Terms remain reachable from the footer. */
@media (max-width: 460px) {
  .nav-links a.hide-xs { display: none; }
  .nav-links { gap: 14px; }
}
.nav-links a.nav-download {
  color: var(--accent);
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid rgba(43, 227, 166, 0.35);
  border-radius: 999px;
}
.nav-links a.nav-download:hover {
  color: var(--on-accent);
  background: var(--accent);
  text-decoration: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(43, 227, 166, 0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -8px rgba(43, 227, 166, 0.6);
}
.btn-ghost {
  background: var(--surface-high);
  color: var(--text-primary);
  border-color: var(--divider);
}
.btn-ghost:hover { border-color: var(--accent-dim); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      900px 500px at 70% -10%, rgba(43, 227, 166, 0.14), transparent 60%),
    radial-gradient(700px 400px at 10% 120%, rgba(43, 227, 166, 0.06), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; margin: 0 auto; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(43, 227, 166, 0.1);
  border: 1px solid rgba(43, 227, 166, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
h1.hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
}
h1.hero-title .grad {
  background: linear-gradient(120deg, var(--accent), #6fffd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
}
@media (max-width: 860px) { .hero-sub { margin-inline: auto; } }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-cta { justify-content: center; } }
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.hero-art {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}
/* ---- Section ---- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.8px; font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--text-secondary); font-size: 17px; }

/* ---- Feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.card .ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(43, 227, 166, 0.1);
  margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--accent); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 15px; }

/* ---- Screenshot showcase ---- */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; gap: 44px; max-width: 340px; margin: 0 auto; } }
.shot { text-align: center; }
.shot .phone { margin-bottom: 20px; }
.shot .shot-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.shot .shot-step .n {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(43, 227, 166, 0.12);
  border: 1px solid var(--accent-dim);
  font-size: 12px;
}
.shot h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.shot p { color: var(--text-secondary); font-size: 15px; max-width: 300px; margin: 0 auto; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.plan.best { border-color: var(--accent); box-shadow: 0 0 40px -16px rgba(43, 227, 166, 0.5); }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent);
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.plan .pname { font-size: 14px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.plan .price { font-size: 34px; font-weight: 800; margin: 12px 0 4px; letter-spacing: -1px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-faint); }
.plan ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; stroke: var(--accent); margin-top: 3px; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--surface-high), var(--surface));
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 26px; }

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--divider);
  padding: 40px 0;
  margin-top: 40px;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot .brand { font-size: 16px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--text-secondary); font-size: 14px; }
.foot-copy { color: var(--text-faint); font-size: 13px; width: 100%; margin-top: 8px; }

/* ---- Phone mockup (pure CSS, no chrome images) ---- */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1080 / 2090;
  margin: 0 auto;
  background: #05060a;
  border: 2px solid #2a2e3a;
  border-radius: 38px;
  padding: 9px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.phone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #05060a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  display: block;
  background: var(--bg);
}
.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone.tilt { transform: rotate(-3deg); }

/* Hero variant: larger + neon glow behind */
.hero-art .phone { max-width: 290px; }
.hero-art .phone-glow {
  position: absolute;
  inset: -6% -10%;
  background: radial-gradient(circle at 60% 40%, rgba(43, 227, 166, 0.28), transparent 65%);
  filter: blur(28px);
  pointer-events: none;
}

/* ---- Store badges ---- */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 860px) { .hero-cta.store-badges { justify-content: center; } }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-high);
  border: 1px solid var(--divider);
  color: var(--text-primary);
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-store:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--accent-dim);
}
.btn-store.is-target {
  border-color: var(--accent);
  box-shadow: 0 0 30px -10px rgba(43, 227, 166, 0.6);
}
.btn-store svg { width: 26px; height: 26px; flex: 0 0 26px; fill: currentColor; }
.btn-store .bs-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store .bs-text small { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.btn-store .bs-text span { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }

/* ---- Download section + QR ---- */
.download-band {
  background: linear-gradient(135deg, var(--surface-high), var(--surface));
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .download-band { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
}
.download-copy h2 { margin-bottom: 12px; }
.download-copy p { color: var(--text-secondary); max-width: 460px; margin-bottom: 26px; }
@media (max-width: 760px) { .download-copy p { margin-inline: auto; } }
@media (max-width: 760px) { .download-copy .store-badges { justify-content: center; } }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  line-height: 0;
}
.qr-box img, .qr-box canvas { display: block; border-radius: 4px; }
.qr-label { font-size: 13px; color: var(--text-faint); }
@media (max-width: 760px) { .qr-wrap.hide-sm { display: none; } }

/* ---- Smart download redirect page ---- */
.redirect-wrap {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.redirect-mark { border-radius: 16px; }
.redirect-title { font-size: 18px; font-weight: 700; }
.redirect-sub { font-size: 14px; color: var(--text-secondary); }

/* ---- Legal pages ---- */
.legal { padding: 56px 0 40px; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -1px; font-weight: 800; }
.legal .meta {
  margin: 14px 0 8px; color: var(--text-faint); font-size: 14px;
  padding-bottom: 24px; border-bottom: 1px solid var(--divider);
}
.legal .meta strong { color: var(--text-secondary); }
.legal h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px;
  margin: 40px 0 14px; color: var(--text-primary);
}
.legal h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; color: var(--text-primary); }
.legal p, .legal li { color: var(--text-secondary); font-size: 16px; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text-primary); }
.legal hr { border: none; border-top: 1px solid var(--divider); margin: 32px 0; }
.legal .callout {
  background: rgba(43, 227, 166, 0.07);
  border: 1px solid rgba(43, 227, 166, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.legal .callout p { color: var(--text-primary); margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 28px; }
