/* HushVault site. Plain CSS, dark-first with a light variant via prefers-color-scheme.
   Radius system: controls and cards 16px, buttons full pill. One accent (#7C9CFF). */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0d10;
  --surface: #15181d;
  --surface-2: #1e222a;
  --border: #2a2f38;
  --text: #f2f4f7;
  --muted: #8a93a3;
  --accent: #7c9cff;
  --accent-ink: #0b0d10;
  --dim-dot: #3a404b;
  --radius: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eef0f4;
    --border: #dde1e8;
    --text: #12151a;
    --muted: #5b6474;
    --accent: #4a6ff0;
    --accent-ink: #ffffff;
    --dim-dot: #c9ced8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); }
@media (max-width: 767px) { .nav-links .hide-sm { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s cubic-bezier(.16,1,.3,1), background-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn i { font-size: 20px; }

/* ---- Hero (asymmetric split) ---- */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 700; }
.hero p { color: var(--muted); font-size: 19px; max-width: 34ch; margin: 0 0 32px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
@media (max-width: 767px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { width: 72%; order: -1; }
}

/* Pattern mark: the app's 3x3 grid, tracing its pattern like the app's opening animation */
.mark .dot { fill: var(--dim-dot); }
.mark .lit { fill: var(--accent); }
.mark .route { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .mark .route { stroke-dasharray: 97; stroke-dashoffset: 97; animation: trace 1.4s .3s cubic-bezier(.65,0,.35,1) forwards; }
  .mark .lit { opacity: 0; animation: light .2s forwards; }
  .mark .lit:nth-of-type(1) { animation-delay: .3s; }
  .mark .lit:nth-of-type(2) { animation-delay: .7s; }
  .mark .lit:nth-of-type(3) { animation-delay: 1.1s; }
  .mark .lit:nth-of-type(4) { animation-delay: 1.4s; }
  .mark .lit:nth-of-type(5) { animation-delay: 1.65s; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes light { to { opacity: 1; } }

/* ---- Sections ---- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; }
.lede { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 14px; }

/* How privacy works: statement left, points right */
.how { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.points { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.points i { font-size: 26px; color: var(--accent); padding-top: 2px; }
.points h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.01em; }
.points p { margin: 0; color: var(--muted); }
@media (max-width: 767px) { .how { grid-template-columns: 1fr; gap: 36px; } }

/* Features bento: 5 items, 5 cells */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.cell {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; overflow: hidden;
}
.cell h3 { margin: 0; font-size: 20px; letter-spacing: -0.015em; }
.cell p { margin: 0; color: var(--muted); font-size: 16px; }
.cell i.big { font-size: 34px; color: var(--accent); }
.c-decoy { grid-column: span 4; grid-row: span 2; justify-content: space-between;
  background: radial-gradient(120% 90% at 85% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--surface); }
.c-disguise { grid-column: span 2; }
.c-video { grid-column: span 2; }
.c-bio { grid-column: span 3; }
.c-backup { grid-column: span 3; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.decoy-art { display: flex; gap: 20px; align-items: flex-end; }
.decoy-art { gap: 8px; margin: 0 -12px -12px; }
.decoy-art svg { width: 190px; height: 190px; }
.decoy-art svg + svg { width: 130px; height: 130px; opacity: .55; }
@media (max-width: 599px) { .decoy-art svg { width: 130px; height: 130px; } .decoy-art svg + svg { width: 92px; height: 92px; } }
.icons-row { display: flex; gap: 10px; margin-top: auto; }
.icons-row img { width: 46px; height: 46px; border-radius: 12px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .c-decoy { grid-column: span 2; grid-row: auto; }
  .c-disguise, .c-video, .c-bio, .c-backup { grid-column: span 1; }
}
@media (max-width: 599px) {
  .bento { grid-template-columns: 1fr; }
  .c-decoy, .c-disguise, .c-video, .c-bio, .c-backup { grid-column: auto; }
}

/* Free vs Pro: two plans side by side */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.plan.pro { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .sub { color: var(--muted); margin: 0 0 20px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li i { color: var(--accent); font-size: 20px; margin-top: 3px; }
@media (max-width: 767px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 65ch; }

/* Support band */
.support { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.support h2 { margin: 0 0 6px; font-size: 28px; }
.support p { margin: 0; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Scroll reveal (IntersectionObserver adds .in); static when motion is reduced */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- Legal pages ---- */
.legal { padding: 56px 0 96px; }
.legal article { max-width: 720px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.legal .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.legal a { color: var(--accent); }

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