/* Auroral — landing + legal pages.
   Aesthetic: deep-void celestial, aurora-lit. Fraunces display over Schibsted Grotesk.
   Background colour #05010f matches the app's aurora scene exactly. */

:root {
  --void: #05010f;
  --void-2: #0a0618;
  --ink: #f2f0fb;
  --ink-dim: #b8b2d6;
  --ink-faint: #6f6a93;
  --hairline: rgba(150, 140, 200, 0.16);
  --glass: rgba(20, 14, 40, 0.42);
  --glass-edge: rgba(180, 170, 230, 0.14);
  --green: #6ff2c0;
  --teal: #8fe0ff;
  --violet: #b79bff;
  --maxw: 1080px;
  --measure: 60ch;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Aurora canvas (landing) ---------- */
#aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #160a3a 0%, #0a0420 38%, var(--void) 72%);
}
#aurora canvas { display: block; width: 100%; height: 100%; }
/* Vignette + bottom fade so text always sits on legible ground */
#aurora::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(140% 100% at 50% 8%, transparent 40%, rgba(5,1,15,0.35) 78%, rgba(5,1,15,0.85) 100%),
    linear-gradient(180deg, transparent 55%, rgba(5,1,15,0.55) 88%, var(--void) 100%);
  pointer-events: none;
}

.content { position: relative; z-index: 1; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green); }

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 11px;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d6fff0, var(--green));
  box-shadow: 0 0 14px 2px rgba(111,242,192,0.7);
}
.topbar nav a { color: var(--ink-dim); font-size: 14.5px; margin-left: 26px; letter-spacing: 0.01em; }
.topbar nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 84px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0 80px;
}
.eyebrow {
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green); margin: 0 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, var(--green), transparent); }

h1.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: clamp(46px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
h1.display em {
  font-style: italic;
  font-weight: 380;
  background: linear-gradient(100deg, var(--green) 0%, var(--teal) 48%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  font-size: clamp(18px, 2.3vw, 22px);
  color: var(--ink-dim);
  max-width: 52ch; margin: 0 0 40px; line-height: 1.55;
}

.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.badge .apple { width: 19px; height: 19px; fill: var(--ink); opacity: .92; }
.badge small { display: block; font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.meta-line { color: var(--ink-faint); font-size: 14.5px; letter-spacing: 0.01em; }
.meta-line strong { color: var(--ink-dim); font-weight: 600; }

/* staggered entrance */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .31s; }
.d4 { animation-delay: .44s; } .d5 { animation-delay: .57s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Features ---------- */
.features { padding: 30px 0 110px; }
.section-head {
  font-family: var(--font-display); font-weight: 350; font-style: italic;
  font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em;
  margin: 0 0 8px; color: var(--ink);
}
.section-head + p { color: var(--ink-faint); max-width: 56ch; margin: 0 0 44px; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-radius: 18px;
  padding: 26px 24px 28px;
}
.card .ic {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(111,242,192,0.22), rgba(143,224,255,0.06));
  border: 1px solid var(--glass-edge);
}
.card .ic svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.6; }
.card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 0 0 7px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.55; }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 34px 0; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center;
}
.trust .label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.trust .src { color: var(--ink-dim); font-size: 15px; }
.trust .src strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site {
  padding: 48px 0 60px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--ink-faint); font-size: 14.5px;
}
footer.site nav a { color: var(--ink-dim); margin-left: 22px; }
footer.site nav a:first-child { margin-left: 0; }

/* ---------- Legal / support article pages ---------- */
body.doc {
  background:
    radial-gradient(110% 60% at 50% -5%, #18093e 0%, #0a0420 45%, var(--void) 80%) fixed;
}
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 0 28px 100px; position: relative; z-index: 1; }
.doc article h1 {
  font-family: var(--font-display); font-weight: 360; font-optical-sizing: auto;
  font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.025em; line-height: 1.02;
  margin: 18px 0 6px; text-wrap: balance;
}
.doc .effective { color: var(--ink-faint); font-size: 14.5px; margin: 0 0 14px; letter-spacing: 0.02em; }
.doc article h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 360;
  font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.02em;
  margin: 46px 0 14px; color: var(--ink);
}
.doc article p, .doc article li { color: var(--ink-dim); }
.doc article strong { color: var(--ink); font-weight: 600; }
.doc article ul { padding-left: 1.15em; }
.doc article li { margin: 9px 0; }
.lead {
  font-size: 19px; color: var(--ink) !important; line-height: 1.6;
  border-left: none; padding: 22px 24px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.contact-box {
  margin-top: 14px; padding: 22px 24px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-edge);
}
.contact-box a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .topbar nav a { margin-left: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar { padding: 20px; }
  .topbar nav { display: none; }
  .hero { min-height: calc(100vh - 70px); }
  footer.site { flex-direction: column; align-items: flex-start; }
  footer.site nav a:first-child { margin-left: 0; }
  footer.site nav a { margin-left: 0; margin-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
