/*
  Verity — marketing + legal site
  Dark-only by design: the app is dark-first and commits to one visual world (the night ground),
  so the site does too. Self-contained, no webfonts (ui-serif maps to New York on Apple devices,
  Georgia elsewhere — matching the app's display face where it can).
*/

:root {
  --bg: #0E1014;
  --bg-high: #151827;
  --surface: #161922;
  --surface-hi: #1E2230;
  --hairline: #232838;
  --accent: #7E86D6;
  --accent-deep: #4C47A6;
  --accent-glow: #A9D0F2;
  --text: #ECEEF3;
  --text-2: #9AA0AE;
  --text-3: #7F8698;

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --measure: 68ch;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -180px, rgba(76, 71, 166, 0.28), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(14, 16, 20, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.2px; }
.brand .glyph { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 92px 0 40px; text-align: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 18px;
}
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 7vw, 68px); line-height: 1.04; letter-spacing: -0.5px;
  margin: 0 auto 20px; max-width: 16ch; text-wrap: balance;
}
.lede {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--text-2);
  max-width: 40ch; margin: 0 auto 30px; line-height: 1.55;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 15px; border: 1px solid transparent;
}
.btn-primary { background: rgba(126, 134, 214, 0.92); color: #0E1014; }
.btn-primary:hover { background: var(--accent); text-decoration: none; }
.btn-ghost { border-color: var(--hairline); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* ── Sections ────────────────────────────────────────── */
section { padding: 46px 0; }
.section-label {
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 10px;
}
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 4vw, 36px); line-height: 1.12; margin: 0 0 16px;
  letter-spacing: -0.3px; text-wrap: balance;
}
.section-body { color: var(--text-2); max-width: var(--measure); }
.section-body p { margin: 0 0 16px; }

/* The privacy hero band */
.promise {
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(76, 71, 166, 0.12), rgba(22, 25, 34, 0.5));
  border-radius: var(--radius); padding: 30px;
}
.promise h2 { margin-top: 0; }
.promise .line {
  font-family: var(--serif); font-size: clamp(20px, 3vw, 26px);
  color: var(--text); line-height: 1.35; margin: 0 0 8px;
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 22px;
}
.card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; margin-bottom: 12px; box-shadow: 0 0 10px rgba(126,134,214,0.7); }
.card h3 { font-size: 17px; margin: 0 0 6px; color: var(--text); font-weight: 600; }
.card p { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.step { }
.step .n {
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--accent);
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface-hi);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin: 0 0 5px; }
.step p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* ── Legal pages ─────────────────────────────────────── */
.legal { padding: 56px 0 40px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); text-align: left; max-width: none; margin-bottom: 10px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin: 0 0 34px; }
.legal h2 { font-size: clamp(20px, 3vw, 25px); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin: 0 0 9px; }
.legal strong { color: var(--text); font-weight: 600; }
.callout {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(76,71,166,0.12), rgba(22,25,34,0.4));
  padding: 22px 24px; margin: 4px 0 30px;
}
.callout p { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.55; }

/* ── Footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--hairline); padding: 34px 0 60px; margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: baseline; justify-content: space-between; }
footer .brand { font-size: 15px; }
footer .foot-links { display: flex; gap: 22px; font-size: 14.5px; }
footer .foot-links a { color: var(--text-2); }
footer .fine { width: 100%; color: var(--text-3); font-size: 13px; margin-top: 6px; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 14px; }
  section, .legal { padding: 34px 0; }
  .promise { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
