@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

/* ============================================================
   nonsense — brand stylesheet
   Midnight palette + lavender accent (#cdbfff).
   Covers the landing page AND the legal/support pages
   (terms.html, privacy.html, account-deletion.html) which
   reuse the same class names, so they restyle automatically.
   ============================================================ */

:root {
  --bg:        #0a0a0f;
  --surface:   #121119;
  --surface-2: #15141c;
  --ink:       #ececf1;
  --muted:     #a6a2b8;
  --faint:     #76728a;
  --accent:    #cdbfff;
  --accent-2:  #a99ff0;
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.10);
  --radius:    20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #16121f; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
strong { font-weight: 600; }

/* ---------- containers ---------- */
.wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
main  { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }   /* legal pages */
main.wrap { max-width: 1120px; padding: 0 28px; }                       /* landing     */

/* ---------- ambient night sky ---------- */
.glows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glows .g1 { position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 760px;
  background: radial-gradient(closest-side, rgba(150,128,255,.22), rgba(150,128,255,0)); }
.glows .g2 { position: absolute; top: 120px; right: -200px; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(120,100,210,.14), transparent); }
.star { position: absolute; border-radius: 50%; background: var(--accent);
  animation: np-twinkle 5s ease-in-out infinite; }
@keyframes np-twinkle { 0%,100% { opacity:.15; } 50% { opacity:.7; } }
@keyframes np-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes np-glow    { 0%,100% { opacity:.45; } 50% { opacity:.8; } }
@keyframes np-bar     { 0%,100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }

/* ---------- typography ---------- */
h1 { font-size: 60px; line-height: 1.04; font-weight: 700; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h2 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 2rem 0 .6rem; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .4rem; }
p  { color: var(--muted); }

/* legal/support pages use a plain <main> (not main.wrap) — keep headings modest */
main:not(.wrap) h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .25rem; }
main:not(.wrap) h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
main:not(.wrap) h3 { font-size: 1.05rem; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { display: inline-flex; width: 38px; height: 38px; border-radius: 11px;
  background: radial-gradient(130% 120% at 30% 20%, #23222e, #0c0b10);
  align-items: center; justify-content: center; }
.brand .name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a.btn { color: #16121f; }
.btn { display: inline-block; background: var(--accent); color: #16121f;
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { color: #16121f; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(205,191,255,.6); }

/* ---------- hero ---------- */
.hero { display: flex; gap: 56px; align-items: center; padding: 64px 0 88px; flex-wrap: wrap; }
.hero .col { flex: 1 1 460px; min-width: 0; }  /* allow shrink below basis so hero reflows (not clips) on narrow phones */
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px;
  background: rgba(205,191,255,.08); border: 1px solid rgba(205,191,255,.18);
  color: #bcb0ec; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; }
.hero h1 { margin-top: 22px; }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 22px 0 0; max-width: 480px; }
.fine { font-size: 13px; color: var(--faint); margin-top: 18px; }

/* ---------- store badges ---------- */
.store-badges { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.store-badge { display: flex; align-items: center; gap: 11px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 18px; }
.store-badge .glyph { font-size: 22px; line-height: 0; color: var(--accent); }
.store-badge .stack { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.store-status { font-size: 11px; color: #8a86a3; text-transform: uppercase; letter-spacing: .06em; }
.store-name { font-size: 15px; font-weight: 600; }

/* ---------- phone mock ---------- */
.phone-wrap { flex: 0 0 auto; margin: 0 auto; animation: np-float 7s ease-in-out infinite; }
.phone { position: relative; width: 280px; height: 570px; border-radius: 42px;
  background: linear-gradient(180deg,#181722,#0e0d14); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(120,100,210,.5), inset 0 1px 0 rgba(255,255,255,.06); padding: 14px; }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); }
.phone-screen { height: 100%; border-radius: 30px;
  background: radial-gradient(120% 80% at 50% 0%, #1a1925 0%, #0c0b11 70%);
  display: flex; flex-direction: column; align-items: center; padding: 54px 22px 30px; }
.screen-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8a86a3; font-weight: 600; }
.screen-art { position: relative; margin-top: 34px; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.screen-art .halo { position: absolute; width: 130px; height: 130px; border-radius: 50%;
  background: #c7b8ff; filter: blur(34px); opacity: .5; animation: np-glow 6s ease-in-out infinite; }
.screen-title { margin-top: 30px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.chips { display: flex; gap: 8px; margin-top: 14px; }
.chip { font-size: 12px; color: #bcb0ec; background: rgba(205,191,255,.1);
  border: 1px solid rgba(205,191,255,.2); padding: 5px 11px; border-radius: 999px; }
.wave { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 26px; }
.wave span { width: 4px; height: 38px; border-radius: 99px; background: var(--accent);
  transform-origin: bottom; animation: np-bar 1.5s ease-in-out infinite; }
.wave span:nth-child(3n) { background: var(--accent-2); }
.wave span:nth-child(1){animation-delay:0s}   .wave span:nth-child(2){animation-delay:.15s}
.wave span:nth-child(3){animation-delay:.3s}   .wave span:nth-child(4){animation-delay:.45s}
.wave span:nth-child(5){animation-delay:.6s}   .wave span:nth-child(6){animation-delay:.75s}
.wave span:nth-child(7){animation-delay:.9s}   .wave span:nth-child(8){animation-delay:1.05s}
.wave span:nth-child(9){animation-delay:1.2s}
.transport { margin-top: auto; display: flex; align-items: center; gap: 24px; }
.transport .sec { font-size: 22px; color: #6e6a82; }
.transport .play { display: inline-flex; width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); align-items: center; justify-content: center;
  box-shadow: 0 8px 26px -6px rgba(205,191,255,.7); }
.transport .play span { font-size: 24px; color: #16121f; margin-left: 3px; }

/* ---------- sections ---------- */
.section { padding: 64px 0 20px; }
.section.tight { padding: 40px 0 20px; }
.section-head { text-align: center; margin-bottom: 46px; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #8a86a3; font-weight: 600; }
.section-head h2 { font-size: 34px; margin: 12px 0 0; }

.row { display: flex; gap: 20px; flex-wrap: wrap; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.span-2 { grid-column: span 2; }

/* ---------- cards (also used by legal pages) ---------- */
.card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin: 0; }
.step { flex: 1 1 280px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; }
.num { display: inline-flex; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(205,191,255,.1); color: var(--accent); align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; }
.feat-ico { display: inline-flex; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(205,191,255,.1); color: var(--accent); align-items: center; justify-content: center; font-size: 20px; }
.feat-ico.mark { background: radial-gradient(130% 120% at 30% 20%, #23222e, #0c0b10); }
.card h3, .step h3, .feature h3 { margin-top: 18px; }
.card p, .step p, .feature p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* legal-page list styling inside cards */
.card ul, .card ol, ol, ul { padding-left: 1.25rem; }
.card li, li { margin: .35rem 0; color: var(--muted); }
.card li strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta-section { padding: 80px 0; }
.cta { position: relative; overflow: hidden; border-radius: 28px;
  border: 1px solid rgba(205,191,255,.16);
  background: radial-gradient(120% 160% at 50% 0%, #1a1830 0%, #0e0d15 70%);
  padding: 64px 32px; text-align: center; }
.cta .cta-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 360px; background: radial-gradient(closest-side, rgba(150,128,255,.28), transparent);
  pointer-events: none; }
.cta .inner { position: relative; }
.cta h2 { font-size: 38px; letter-spacing: -.025em; margin: 0; }
.cta p { font-size: 17px; color: var(--muted); margin: 14px auto 0; max-width: 440px; }
.mark-tile { display: inline-flex; border-radius: 16px;
  background: radial-gradient(130% 120% at 30% 20%, #23222e, #0c0b10);
  align-items: center; justify-content: center; }

/* ---------- beta signup form ---------- */
.beta-line { margin-top: 18px; font-size: 14px; font-weight: 500; }
.beta-form { margin: 30px auto 0; max-width: 420px; text-align: left; }
.beta-form .botcheck { display: none; }
.beta-form .field { margin-bottom: 16px; }
.beta-form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 6px; letter-spacing: .02em; }
.beta-form input[type="text"], .beta-form input[type="email"] {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; color: var(--ink);
  font: inherit; font-size: 15px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; }
.beta-form input[type="text"]::placeholder, .beta-form input[type="email"]::placeholder { color: var(--faint); }
.beta-form input[type="text"]:focus, .beta-form input[type="email"]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205,191,255,.18); }
.beta-form .field-hint { font-size: 12.5px; color: var(--faint); margin: 6px 0 0; line-height: 1.5; }
.beta-form button.btn { width: 100%; border: 0; cursor: pointer; font: inherit;
  font-size: 15px; font-weight: 600; padding: 12px 18px; margin-top: 4px; }
.beta-form .fine { text-align: center; margin-top: 14px; }

/* ---------- footer ---------- */
footer { color: var(--faint); font-size: 13px; border-top: 1px solid var(--line);
  margin-top: 2.5rem; padding: 40px 0 56px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.links-row { display: flex; gap: 14px 28px; flex-wrap: wrap; margin: 1rem 0; }
.links-row a { color: var(--muted); font-size: 14px; }
.footer-fine { margin-top: 26px; line-height: 1.7; }
.footer-fine p { margin: 0 0 6px; color: var(--faint); }
.footer-fine strong { color: var(--muted); }

/* ---------- shared bits for legal pages ---------- */
.pill { display: inline-block; background: rgba(205,191,255,.08);
  border: 1px solid rgba(205,191,255,.18); border-radius: 999px;
  padding: .15rem .7rem; font-size: .8rem; color: #bcb0ec; }
.hero-tagline { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; }
.home-link { display: inline-block; margin-bottom: 1rem; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .5rem; }
.sub { color: var(--muted); margin: 0 0 1.5rem; }
code { background: #000; padding: .1rem .4rem; border-radius: 6px; color: var(--accent); }
.deleted li::marker { color: #ff8a8a; }
.kept li::marker { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  h1, .hero h1 { font-size: 42px; }
  h2, .section-head h2, .cta h2 { font-size: 28px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 32px 0 56px; }
  .feature-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-wrap, .star, .screen-art .halo, .wave span { animation: none !important; }
}
