/* String website. Brand palette from app/lib/core/theme/app_colors.dart. Dark only, like the app. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Brand */
  --bg: #101014; /* Midnight */
  --surface: #16161c;
  --card: #1b1b22; /* Graphite */
  --card-high: #222230;
  --border: #2d2c38;
  --accent: #8b5cf6; /* Signal Violet */
  --accent-text: #b9a6f6; /* Muted Lavender */
  --text: #f4f2f8; /* Soft White */
  --muted: #9c98ac;
  --success: #34d399;
  --danger: #fb7185;
  --on-accent: #101014;

  /* Material-style state layers and elevation */
  --hover: rgba(244, 242, 248, 0.06);
  --press: rgba(244, 242, 248, 0.1);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 18px 60px -12px rgba(139, 92, 246, 0.45);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.35), 0 24px 48px -16px rgba(0, 0, 0, 0.6);

  /* Shape and space */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-full: 999px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  --section: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(0.2, 0, 0, 1); /* Material emphasized */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-weight: 600;
}
.skip:focus {
  left: 16px;
}

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

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p {
  margin: 0;
}
.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 40ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.gradient-text {
  background: linear-gradient(100deg, var(--text) 10%, var(--accent-text) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons (Material 3: filled and tonal, pill shaped) ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-full);
  font: 600 1rem/1 "Inter", sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: -1;
}
.btn:hover::after {
  opacity: 0.08;
}
.btn:active::after {
  opacity: 0.14;
}
.btn:active {
  transform: scale(0.98);
}
.btn-filled {
  background: linear-gradient(180deg, #9a70f8, var(--accent));
  color: var(--on-accent);
  box-shadow: 0 8px 28px -8px rgba(139, 92, 246, 0.7);
}
.btn-filled:hover {
  color: var(--on-accent);
  box-shadow: 0 12px 36px -8px rgba(139, 92, 246, 0.85);
}
.btn-tonal {
  background: rgba(139, 92, 246, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(185, 166, 246, 0.25);
}
.btn-tonal:hover {
  color: var(--text);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn[aria-disabled="true"] {
  cursor: default;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(16, 16, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.top.scrolled {
  border-bottom-color: var(--border);
  background: rgba(16, 16, 20, 0.88);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 1.05rem;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand:hover {
  color: var(--text);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--r-full);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover {
  background: var(--hover);
  color: var(--text);
}
.nav .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
  margin-left: 8px;
}
.nav a.btn-filled,
.nav a.btn-filled:hover {
  color: var(--on-accent);
  background: linear-gradient(180deg, #9a70f8, var(--accent));
}
@media (max-width: 820px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Hero stage: the brand banner, drawn live ---------- */

.stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, 880px);
  display: grid;
  place-items: center;
  padding: 48px 0 170px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, #1f1636 0%, #15111f 45%, transparent 75%),
    var(--bg);
}
.stage::after {
  /* fade into the page below */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg));
  z-index: 0;
  pointer-events: none;
}
.stage-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.mark-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  margin-bottom: 18px;
}
.mark {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.45));
}
.mark-ring {
  /* a dash a little longer than the ring, so no hairline seam where it closes */
  stroke-dasharray: 1.05 1;
  animation: draw-ring 1.6s var(--ease) both;
}
@keyframes draw-ring {
  from {
    stroke-dashoffset: 1.05;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.mark-thread {
  stroke-dasharray: 1;
  animation: draw 1.3s 0.5s var(--ease) both;
}
.mark-orb,
.mark-dot,
.mark-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.7s var(--ease) both;
}
.mark-dot {
  animation-delay: 0.35s;
}
.mark-orb {
  animation-delay: 1.45s;
}
.mark-halo {
  animation:
    pop 0.7s 1.45s var(--ease) both,
    breathe 3.2s 2.2s ease-in-out infinite;
}

.stage-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 1200px;
  margin: -600px 0 0 -600px;
  pointer-events: none;
  z-index: 0;
}
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.17);
  transform: translate(-50%, -50%);
}
.ring:nth-child(even) {
  border-color: rgba(185, 166, 246, 0.08);
}
/* The hero beam turns around its own centre, which is the logo's centre. */
.beam {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  transform-origin: 50% 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 280deg,
    rgba(139, 92, 246, 0.05) 305deg,
    rgba(139, 92, 246, 0.22) 350deg,
    rgba(196, 176, 255, 0.5) 359.5deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  mask: radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  animation: spin 6s linear infinite;
}
.blip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1));
}
.blip i {
  position: absolute;
  width: var(--s, 10px);
  height: var(--s, 10px);
  margin: calc(var(--s, 10px) / -2);
  border-radius: 50%;
  background: var(--c, #9467fa);
  box-shadow: 0 0 16px 2px var(--c, #8b5cf6);
  opacity: 0.4;
  animation: blip 6s linear infinite;
  animation-delay: var(--d, 0s);
}

.waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 260px;
  z-index: 0;
  pointer-events: none;
}

.wordmark {
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* keep the spaced word optically centred */
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, #d8cdf7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(139, 92, 246, 0.35));
  animation: rise 0.9s 0.3s var(--ease) both;
}
.tagline {
  margin-top: 22px;
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  color: #e6e0f4;
  letter-spacing: -0.005em;
  text-wrap: balance;
  animation: rise 0.9s 0.5s var(--ease) both;
}
.stage .actions {
  justify-content: center;
  margin-top: 36px;
  animation: rise 0.9s 0.7s var(--ease) both;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.55;
    transform: scale(1.25);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blip {
  0% {
    opacity: 1;
    transform: scale(1.6);
  }
  10% {
    opacity: 0.9;
    transform: scale(1);
  }
  55%,
  100% {
    opacity: 0.32;
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  .stage {
    min-height: 0;
    padding: 72px 0 150px;
  }
  .mark-wrap {
    width: 150px;
    height: 150px;
  }
  .stage-art {
    transform: scale(0.66);
  }
  .waves {
    height: 150px;
  }
}

/* ---------- Intro ---------- */

.intro {
  padding: clamp(24px, 4vw, 40px) 0 var(--section);
}
.intro-title {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  max-width: 14ch;
}
.hero-copy {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
.hero-side {
  display: grid;
  gap: 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.note {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}
@media (max-width: 860px) {
  .hero-copy {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Sections ---------- */

section {
  position: relative;
}
.section {
  padding: var(--section) 0;
}
.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 16px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--card), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.card::before {
  /* the light that follows the pointer (set by site.js) */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, -40%),
    rgba(139, 92, 246, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-2);
}
.card:hover::before {
  opacity: 1;
}
.card p {
  color: var(--muted);
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px rgba(185, 166, 246, 0.18);
  margin-bottom: 4px;
}
.icon svg {
  width: 24px;
  height: 24px;
}
.step-no {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

/* ---------- Radar showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
  }
  .showcase .phone-stage {
    order: -1;
  }
}
.points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}
.points li svg {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
  margin-top: 3px;
}
.points b {
  display: block;
  font-weight: 600;
}
.points span {
  color: var(--muted);
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.phone-stage::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  max-width: 560px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.25), transparent 70%);
}
.phone {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2838, #121118 40%, #1d1b27);
  box-shadow: 0 0 0 1px #34323f, var(--shadow-2), 0 40px 80px -30px rgba(139, 92, 246, 0.45);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.status {
  display: flex;
  justify-content: space-between;
  padding: 12px 22px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.status i {
  width: 70px;
  height: 18px;
  border-radius: 10px;
  background: #050507;
  margin-top: -2px;
}
.app-title {
  padding: 6px 18px 10px;
  font-size: 20px;
  font-weight: 700;
}
.session {
  margin: 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.session .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}
.session div {
  flex: 1;
  line-height: 1.25;
}
.session b {
  display: block;
  font-size: 12px;
}
.session small {
  color: var(--muted);
  font-size: 10.5px;
}
.session em {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  color: var(--danger);
  border: 1px solid rgba(251, 113, 133, 0.45);
  padding: 5px 12px;
  border-radius: var(--r-full);
}
.seg {
  display: flex;
  margin: 12px 14px 0;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
}
.seg span {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  border-radius: var(--r-full);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}
.seg span.on {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text);
}
.radar {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 6px 10px;
}
.radar svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.sweep {
  transform-origin: 150px 150px;
  animation: spin 6s linear infinite;
}
.ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: appear 6s var(--ease) infinite;
}
.legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 10.5px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.legend i.n {
  background: rgba(156, 152, 172, 0.6);
}
.tabs {
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.tabs span {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.tabs span.on {
  color: var(--text);
}
.tabs svg {
  width: 20px;
  height: 20px;
}
.tabs span.on svg {
  color: var(--accent-text);
}
.tabs span.on .pill {
  background: rgba(139, 92, 246, 0.22);
}
.tabs .pill {
  padding: 3px 16px;
  border-radius: var(--r-full);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@keyframes appear {
  0%,
  8% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  14% {
    opacity: 1;
    transform: scale(1.18);
  }
  24%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Privacy band ---------- */

.privacy-band {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(139, 92, 246, 0.1), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.promise > div {
  background: var(--card);
  padding: clamp(24px, 3vw, 32px);
  display: grid;
  gap: 10px;
  align-content: start;
  transition: background 0.3s;
}
.promise > div:hover {
  background: var(--card-high);
}
.promise p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .promise {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .promise {
    grid-template-columns: 1fr;
  }
}

/* ---------- Never shown strip ---------- */

.never {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.chip svg {
  width: 16px;
  height: 16px;
  color: var(--danger);
}

/* ---------- Organisers ---------- */

.cta-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(139, 92, 246, 0.35), transparent 70%),
    linear-gradient(135deg, #1e1a2e, var(--card));
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: var(--glow);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.cta-card p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 52ch;
}
.cta-card .actions {
  justify-content: flex-end;
}
.cta-card ol {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
@media (max-width: 800px) {
  .cta-card {
    grid-template-columns: 1fr;
  }
  .cta-card .actions {
    justify-content: flex-start;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.3s, background 0.3s;
}
.faq details[open] {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(180deg, var(--card-high), var(--card));
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  background: var(--hover);
}
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq details > div {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.foot h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
}
.foot .tagline {
  margin-top: 12px;
  max-width: 34ch;
}
.foot .legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  .foot .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .foot .wrap > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Document pages (privacy, terms, deletion) ---------- */

.doc {
  padding: clamp(40px, 7vw, 88px) 0 var(--section);
}
.doc .wrap {
  max-width: 820px;
}
.doc header {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}
.doc header p {
  color: var(--muted);
}
.doc h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}
.doc p,
.doc li {
  color: #d4d0de;
}
.doc p + p {
  margin-top: 12px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.doc th {
  color: var(--text);
  font-weight: 600;
  background: var(--card);
}
.doc td {
  color: #d4d0de;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.table-scroll table {
  margin: 0;
  min-width: 560px;
}
.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.callout p {
  color: var(--text);
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.steps li::before {
  content: counter(s);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.18);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
}
/* Details to fill in before publishing (listed in website/README.md). Loud on purpose. */
.todo {
  background: rgba(251, 113, 133, 0.18);
  color: var(--danger);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}
.updated {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Reveal on scroll (site.js) ---------- */

/* Hidden only when the script runs (html.js), so the page never stays blank without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
