/* Today marketing + legal pages — matches app theme (ThemeContext, splash #F5F2EE) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #f5f2ee;
  --bg-elevated: #faf8f5;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --accent: #5e4ce0;
  --accent-soft: rgba(94, 76, 224, 0.12);
  --accent-glow: rgba(94, 76, 224, 0.35);
  --separator: rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Nunito', system-ui, -apple-system, sans-serif;
  --max: 68rem;
  --nav-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-elevated: #161618;
    --surface: #1c1c1e;
    --text: #f2f2f7;
    --muted: #8e8e93;
    --accent: #7c6af7;
    --accent-soft: rgba(124, 106, 247, 0.18);
    --accent-glow: rgba(124, 106, 247, 0.4);
    --separator: rgba(255, 255, 255, 0.08);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

/* ── Shared chrome ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--separator);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--separator);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.site-footer nav a {
  text-decoration: none;
}

/* ── Landing: hero ── */

.hero-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
    padding: 4.5rem 2rem 5rem;
    gap: 2rem;
  }
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--separator);
}

.coming-soon {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* Phone mockup */
.phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  position: relative;
  width: min(280px, 78vw);
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2a2a2e, #0a0a0c);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 60px var(--accent-glow);
  transform: rotateY(-6deg) rotateX(2deg);
}

@media (prefers-color-scheme: dark) {
  .phone {
    box-shadow:
      0 40px 80px -20px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 0 80px var(--accent-glow);
  }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0a0a0c;
  border-radius: 18px;
  z-index: 2;
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 393 / 852;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ── Features ── */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 3rem;
}

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .feature:nth-child(even) .feature-shot {
    order: 2;
  }

  .feature:nth-child(even) .feature-copy {
    order: 1;
  }
}

.feature-copy h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.feature-copy p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.feature-shot {
  display: flex;
  justify-content: center;
}

.feature-shot .phone {
  width: min(240px, 70vw);
  transform: none;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.25);
}

/* ── Privacy pillars ── */

.pillars {
  background: var(--bg-elevated);
  border-block: 1px solid var(--separator);
}

.pillar-grid {
  display: grid;
  gap: 1rem;
}

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

.pillar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--separator);
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.pillar p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Legal pages ── */

.page-legal .wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-legal h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-legal .intro,
.page-legal .lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.page-legal h2 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
}

.page-legal h2.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  margin: 0 0 0.5rem;
}

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

.row {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--separator);
}

.row:last-child {
  border-bottom: none;
}

.label {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.detail {
  font-size: 0.875rem;
  color: var(--muted);
}

.page-legal section {
  margin-bottom: 1.75rem;
}

.page-legal section p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-legal ul {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-legal li {
  margin-bottom: 0.5rem;
}

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
}

.page-legal footer.legal-meta {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border: none;
  padding: 0;
}

code {
  font-size: 0.85em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
