/* TalkOnce — site styles. Mirrors the app's indigo-violet system
   (accent #6D5DFC, gradient #5A66FF→#8B5CF6, indigo-black ground).
   No web fonts, no trackers — a privacy app's site leaks nothing. */

:root {
  --ground: #0a0d16;
  --ground-2: #0c1019;
  --surface: #141826;
  --surface-2: #1a1f31;
  --line: rgba(150, 164, 214, 0.14);
  --line-strong: rgba(150, 164, 214, 0.24);
  --text: #f2f5f9;
  --muted: #9aa3be;
  --muted-2: #6b7391;
  --accent: #6d5dfc;
  --accent-2: #8b5cf6;
  --accent-3: #5a66ff;
  --grad: linear-gradient(135deg, #5a66ff 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(90, 102, 255, 0.16), rgba(139, 92, 246, 0.16));
  --good: #34d39a;
  --danger: #e5484d;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo,
    Consolas, monospace;

  --fs-hero: clamp(2.55rem, 6vw, 4.7rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 2.85rem);
  --fs-h3: 1.32rem;
  --fs-body: 1.06rem;
  --fs-small: 0.92rem;
  --fs-eyebrow: 0.76rem;

  --wrap: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(109, 93, 252, 0.34); color: #fff; }

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

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

.eyebrow {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.78em 1.4em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(109, 93, 252, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(109, 93, 252, 0.85); }
.btn-ghost {
  background: rgba(150, 164, 214, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(109, 93, 252, 0.1); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 13, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6em; font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(109, 93, 252, 0.8);
  display: grid; place-items: center;
  position: relative;
}
.brand .mark::after {
  content: "";
  width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.link { font-size: 0.95rem; color: var(--muted); transition: color 0.15s ease; }
.nav a.link:hover { color: var(--text); }
@media (max-width: 860px) { .nav .link { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vw, 148px) 0 clamp(60px, 9vw, 116px); overflow: hidden; }
.aurora {
  position: absolute; inset: -30% -10% auto -10%; height: 780px; z-index: 0;
  filter: blur(60px); opacity: 0.55; pointer-events: none;
}
.aurora span {
  position: absolute; border-radius: 50%; mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite;
}
.aurora .a { width: 520px; height: 520px; left: 8%; top: 4%; background: radial-gradient(circle, #5a66ff, transparent 62%); }
.aurora .b { width: 460px; height: 460px; right: 10%; top: 0; background: radial-gradient(circle, #8b5cf6, transparent 62%); animation-delay: -6s; }
.aurora .c { width: 380px; height: 380px; left: 42%; top: 22%; background: radial-gradient(circle, #6d5dfc, transparent 60%); animation-delay: -11s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 34px, 0) scale(1.08); }
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 820px; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; margin: 0.5rem 0 0; }
.hero .sub { font-size: clamp(1.06rem, 2vw, 1.28rem); color: var(--muted); max-width: 60ch; margin-top: 1.4rem; line-height: 1.55; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.3rem; }
.hero .assure { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted-2); display: flex; align-items: center; gap: 0.5em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); flex: none; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 800; margin-top: 0.7rem; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }
.divider { border-top: 1px solid var(--line); }

/* pillar grid */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pillar {
  background: linear-gradient(180deg, var(--surface), var(--ground-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar .ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--accent);
}
.pillar h3 { font-size: 1.16rem; font-weight: 700; }
.pillar p { color: var(--muted); font-size: 0.98rem; margin-top: 0.55rem; }

/* ---------- transparency panel (the differentiator) ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .ledger { grid-template-columns: 1fr; } }
.ledger-card { border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); background: var(--ground-2); }
.ledger-card.cannot { background: linear-gradient(180deg, rgba(52, 211, 154, 0.06), var(--ground-2)); border-color: rgba(52, 211, 154, 0.24); }
.ledger-card.must { background: linear-gradient(180deg, rgba(150, 164, 214, 0.05), var(--ground-2)); }
.ledger-card h3 { font-size: 1.06rem; display: flex; align-items: center; gap: 0.55em; letter-spacing: -0.01em; }
.ledger-card .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; padding: 0.3em 0.7em; border-radius: 999px; }
.tag.no { color: var(--good); background: rgba(52, 211, 154, 0.14); }
.tag.yes { color: var(--muted); background: rgba(150, 164, 214, 0.12); }
.ledger-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 13px; }
.ledger-list li { display: flex; gap: 0.7em; font-size: 0.98rem; color: var(--muted); line-height: 1.45; }
.ledger-list li b { color: var(--text); font-weight: 600; }
.ledger-list .glyph { flex: none; margin-top: 2px; color: var(--good); font-weight: 700; }
.must .ledger-list .glyph { color: var(--muted-2); }

/* ---------- feature list ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ground-2); }
.feature .fi { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--accent); display: grid; place-items: center; }
.feature h3 { font-size: 1.04rem; font-weight: 650; }
.feature p { color: var(--muted); font-size: 0.94rem; margin-top: 0.3rem; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--surface); position: relative; }
.tier.mid { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(109, 93, 252, 0.4), 0 24px 60px -30px rgba(109, 93, 252, 0.6); }
.tier .tname { font-weight: 700; font-size: 1.2rem; }
.tier .tdesc { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.tier ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tier li { font-size: 0.92rem; color: var(--muted); display: flex; gap: 0.6em; }
.tier li::before { content: "→"; color: var(--accent); }

/* ---------- crypto spec ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.spec-row:first-child { border-top: none; }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-family: var(--mono); font-size: 0.9rem; color: var(--text); }
@media (max-width: 620px) { .spec-row { grid-template-columns: 1fr; gap: 3px; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(109, 93, 252, 0.18), transparent 70%); pointer-events: none; }
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: var(--fs-h2); font-weight: 800; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 1.1rem auto 0; font-size: 1.1rem; }
.cta-band .cta-row { justify-content: center; margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; background: var(--ground-2); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 300px; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--muted); font-size: 0.94rem; padding: 5px 0; transition: color 0.15s ease; }
.foot-col a:hover { color: var(--text); }
.foot-base { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 0.86rem; }

/* ---------- legal / doc pages ---------- */
.doc { padding: clamp(56px, 8vw, 96px) 0 96px; }
.doc .wrap { max-width: 780px; }
.doc .eyebrow { margin-bottom: 0.8rem; display: block; }
.doc h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; }
.doc .updated { color: var(--muted-2); font-size: 0.9rem; margin-top: 0.8rem; }
.doc .lede { color: var(--muted); font-size: 1.14rem; line-height: 1.6; margin-top: 1.8rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.doc h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2.6rem; letter-spacing: -0.01em; }
.doc h2 .num { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 0.5em; }
.doc h3 { font-size: 1.1rem; font-weight: 650; margin-top: 1.6rem; }
.doc p { color: #cdd3e2; margin-top: 0.9rem; }
.doc ul { margin: 0.9rem 0 0; padding-left: 1.3rem; color: #cdd3e2; }
.doc li { margin-top: 0.5rem; }
.doc strong { color: var(--text); }
.doc a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc .fill { background: rgba(229, 72, 77, 0.12); color: #ffb4b6; padding: 0.05em 0.4em; border-radius: 5px; font-family: var(--mono); font-size: 0.85em; }
.callout { margin-top: 1.6rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--ground-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; }
.callout p { margin-top: 0.4rem; color: var(--muted); font-size: 0.96rem; }
.callout p:first-child { margin-top: 0; }

/* FAQ */
.faq { display: grid; gap: 14px; }
details.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground-2); overflow: hidden; }
details.qa[open] { border-color: var(--line-strong); }
.qa summary { cursor: pointer; padding: 20px 24px; font-weight: 650; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 1em; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease; flex: none; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 24px 22px; color: var(--muted); }
.qa .a p { margin-top: 0; }
.qa .a p + p { margin-top: 0.8rem; }

/* small helpers */
.center { text-align: center; }
.mt-lg { margin-top: 2.4rem; }
