/* Exp Reminder website. Colours match the app's theme tokens (src/theme/tokens.ts). */
:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-raised: #F1F3F7;
  --border: #E5E7EB;
  --primary: #6E63F2;
  --primary-text: #4F45C9;
  --on-primary: #FFFFFF;
  --text: #0F172A;
  --text-muted: #5B6472;
  --hero-from: #1A1446;
  --hero-to: #0B0E14;
  --radius: 16px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0E14;
    --surface: #14171F;
    --surface-raised: #1A1E28;
    --border: #232834;
    --primary-text: #B3ABFF;
    --text: #F4F6FB;
    --text-muted: #9CA3AF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--primary-text); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; font-size: 16px; }
.nav a { color: var(--text-muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav { gap: 14px; font-size: 15px; } .nav .hide-sm { display: none; } }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 70% -10%, #3b2fb8 0%, transparent 60%), linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: #F4F6FB; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero h1 span { color: #B3ABFF; }
.hero p.lead { font-size: 21px; color: #C9CDD6; margin: 0 0 28px; max-width: 34em; }
.hero-art { justify-self: center; }
.hero-art img { width: min(320px, 70vw); border-radius: 22%; box-shadow: 0 30px 80px rgba(110, 99, 242, 0.35); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; } .hero p.lead { margin-left: auto; margin-right: auto; } .stores { justify-content: center; } .hero-art { order: -1; } .hero-art img { width: 160px; } }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 17px; background: #FFFFFF; color: #0B0E14; border: 1px solid rgba(255,255,255,0.15); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.7; line-height: 1.1; }
.store-btn span { line-height: 1.15; text-align: left; }
.store-btn.soon { background: transparent; color: #F4F6FB; border-color: rgba(255,255,255,0.35); cursor: default; }

/* Sections */
section.block { padding: 72px 0; }
section.block h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; line-height: 1.15; }
section.block p.sub { color: var(--text-muted); margin: 0 0 36px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 21px; line-height: 1.2; }
.card p { margin: 0; color: var(--text-muted); font-size: 17px; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary-text); }
.icon-tile svg { width: 24px; height: 24px; }
.alt { background: var(--surface-raised); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.cta { text-align: center; }
.cta .stores { justify-content: center; }
.cta .store-btn { border-color: var(--border); }
.cta .store-btn.soon { color: var(--text); border-color: var(--border); }

/* Documents (privacy, terms, support, delete account) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.doc .meta { color: var(--text-muted); margin: 0 0 32px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; line-height: 1.2; }
.doc h3 { font-size: 20px; margin: 24px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.doc th { background: var(--surface-raised); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 0; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }
.button { display: inline-block; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-muted); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
