/* CardWisp shared styles for the feature pages, delete-account and 404.
   The homepage keeps its own inline <style>; these tokens match it. */
:root {
  --void: #060b15;
  --deep: #0b1424;
  --mid: #15243f;
  --navy: #202E3F;
  --wisp: #87C6F2;
  --wisp-glow: rgba(135,198,242,0.55);
  --gold: #f5c842;
  --gold-glow: rgba(245,200,66,0.55);
  --text: #e8eef5;
  --text-soft: #9eaec3;
  --text-muted: #8494aa;
  --border: rgba(135,198,242,0.14);
  --card: rgba(21,36,63,0.55);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--void);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--wisp); text-decoration-color: rgba(135,198,242,0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--wisp); }
:focus { outline: none; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--wisp); outline-offset: 3px; border-radius: 4px;
}

/* Sky */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(135,198,242,0.08), transparent 45%),
    radial-gradient(ellipse at 80% 60%, rgba(245,200,66,0.05), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(135,198,242,0.06), transparent 55%),
    linear-gradient(180deg, var(--void) 0%, var(--deep) 50%, var(--mid) 100%);
}
.stars { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.star {
  position: absolute; background: #fff; border-radius: 50%; opacity: 0.15;
  animation: twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
}
.star.bright { box-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 12px var(--wisp-glow); }
.star.gold { background: var(--gold); box-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px var(--gold-glow); }
@keyframes twinkle { 0%,100% { opacity: 0.15; } 50% { opacity: 1; } }
body > header, body > main, body > footer, body > nav { position: relative; z-index: 2; }

/* Nav */
header.top {
  max-width: 1120px; margin: 0 auto; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 2px 12px rgba(135,198,242,0.25)); }
.nav-right { font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-right a { color: var(--text-soft); text-decoration: none; margin-left: 22px; transition: color .15s; }
.nav-right a:hover, .nav-right a[aria-current="page"] { color: var(--wisp); }
.nav-right a.nav-discord {
  background: var(--wisp); color: var(--navy); padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: 13px;
}
.nav-right a.nav-discord:hover { background: #a3d4f5; color: var(--navy); }
@media (max-width: 760px) { .nav-right a:not(:last-child) { display: none; } }

/* Breadcrumb */
.crumbs { max-width: 1120px; margin: 0 auto; padding: 0 28px; font-size: 13px; color: var(--text-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--wisp); }

/* Feature hero */
.f-hero {
  max-width: 1120px; margin: 0 auto; padding: 48px 28px 72px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
h1, h2, h3 { font-family: 'forager', 'Fraunces', serif; color: #fff; }
h1 {
  font-weight: 700; font-size: clamp(36px, 5vw, 58px); line-height: 1.06;
  letter-spacing: -0.01em; margin: 0 0 20px;
}
h1 em { color: var(--wisp); }
.f-hero .lead { font-size: 19px; color: var(--text-soft); margin: 0 0 32px; max-width: 560px; }

/* Store badges */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  padding: 10px 18px; text-decoration: none; color: #fff; min-width: 168px;
  transition: transform .2s ease, border-color .2s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.4); }
.store-badge.is-soon { opacity: 0.55; cursor: default; }
.store-badge.is-soon:hover { transform: none; border-color: rgba(255,255,255,0.18); }
.store-badge .badge-icon { flex-shrink: 0; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge .badge-tiny { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.store-badge .badge-big { font-size: 17px; font-weight: 600; }
.store-note { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }

/* Real-screenshot phone */
.shot {
  width: 100%; max-width: 300px; margin: 0 auto; border-radius: 40px; padding: 10px;
  background: #0b0f17;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 0 0 8px rgba(0,0,0,0.6),
              0 30px 80px rgba(0,0,0,0.5), 0 0 70px rgba(135,198,242,0.16);
}
.shot img { border-radius: 30px; width: 100%; height: auto; }
.shot.small { max-width: 250px; }
figure { margin: 0; }
figcaption { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }

/* Content */
.section { max-width: 1120px; margin: 0 auto; padding: 56px 28px; }
.section.narrow { max-width: 760px; }
.section h2 {
  font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 18px;
}
.section > p, .prose p { color: var(--text-soft); margin: 0 0 16px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose ul { color: var(--text-soft); padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px;
}
.card h3 { font-size: 21px; margin: 0 0 8px; line-height: 1.25; }
.card p { margin: 0; color: var(--text-soft); font-size: 16px; }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(135,198,242,0.12); color: var(--wisp); font-size: 18px; margin-bottom: 14px;
}
.pro-tag {
  display: inline-block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--navy); background: var(--gold); border-radius: 6px;
  padding: 2px 7px; vertical-align: middle; margin-left: 6px;
}

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 20px 18px 66px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; color: var(--text-soft);
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wisp); color: var(--navy); font-weight: 700; font-size: 14px;
}
.steps strong { color: #fff; }

/* Free vs Pro table */
.tiers { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 16px; }
.tiers th, .tiers td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tiers th { color: #fff; font-weight: 600; }
.tiers td { color: var(--text-soft); }
.tiers td:first-child { color: var(--text); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font-family: 'forager', 'Fraunces', serif; font-size: 20px; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--wisp); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--text-soft); font-size: 16px; }

/* Related links */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.related a {
  display: block; text-decoration: none; padding: 20px 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s, transform .2s;
}
.related a:hover { border-color: rgba(135,198,242,0.45); transform: translateY(-2px); }
.related strong { display: block; font-family: 'forager', 'Fraunces', serif; font-size: 20px; color: #fff; margin-bottom: 4px; font-weight: 700; }
.related span { color: var(--text-soft); font-size: 15px; }

/* CTA band */
.cta-band {
  max-width: 1000px; margin: 40px auto 0; padding: 48px 28px; text-align: center;
  border: 1px solid var(--border); border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(135,198,242,0.12), transparent 70%), var(--card);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; font-weight: 700; }
.cta-band p { color: var(--text-soft); margin: 0 0 26px; }
.cta-band .store-row { justify-content: center; }

/* Footer */
footer {
  max-width: 1120px; margin: 72px auto 0; padding: 40px 28px 48px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-grid .fbrand img { height: 28px; width: auto; opacity: 0.85; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-cols h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--wisp); }
.legal { margin: 28px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-muted); max-width: 820px; }

/* Plain doc pages (delete-account, 404) */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 28px 24px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 50px); }
.doc h2 { font-size: 26px; margin: 40px 0 12px; font-weight: 700; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.callout {
  border-left: 4px solid var(--wisp); background: var(--card); border-radius: 10px;
  padding: 18px 22px; margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .f-hero, .split { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .f-hero { padding-top: 24px; }
  .grid3 { grid-template-columns: 1fr; }
  .section { padding: 40px 20px; }
  .f-hero, header.top, .crumbs, .doc { padding-left: 20px; padding-right: 20px; }
  footer { padding-left: 20px; padding-right: 20px; }
  .cta-band { margin: 24px 16px 0; padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .star { opacity: 0.5; }
}

/* Landscape screenshot (Playtest) */
.shot.landscape { max-width: 520px; border-radius: 30px; padding: 9px; }
.shot.landscape img { border-radius: 22px; }
