:root {
  --bg: #f3f0fb;
  --ink: #101228;
  --muted: #5f678f;
  --line: #d8d4e8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --primary: #6a5ae0;
  --accent: #2cc1ff;
  --ok: #1f8e65;
  --err: #c7324f;
  --shadow: 0 18px 40px rgba(69, 57, 132, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Onest", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
body.about-page {
  cursor: default;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(56px);
  opacity: .28;
  animation: drift 12s ease-in-out infinite alternate;
}
.g1 {
  width: 460px;
  height: 460px;
  background: #a093f1;
  top: -120px;
  left: -90px;
}
.g2 {
  width: 360px;
  height: 360px;
  background: #80deff;
  right: -80px;
  top: 150px;
  animation-delay: 1.5s;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 212, 232, 0.9);
  backdrop-filter: blur(8px);
  background: rgba(243, 240, 251, 0.8);
}
.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
}
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: #242a4f;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  transition: .2s ease;
}
.nav a:hover {
  border-color: #cbc6e5;
  background: rgba(255, 255, 255, 0.65);
}
.nav a.active {
  background: linear-gradient(92deg, var(--primary), #7d70ea);
  color: #fff;
}

main {
  padding: 26px 0 56px;
  display: grid;
  gap: 16px;
}

.hero,
.panel,
.feature,
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 54px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  margin: 0;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #4f65c8;
}
h1, h2, h3 {
  font-family: "Unbounded", "Onest", system-ui, sans-serif;
  margin: 0;
}
h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.06;
}
.lead {
  margin: 14px auto 0;
  color: var(--muted);
  max-width: 760px;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(92deg, var(--primary), #7d70ea);
  box-shadow: 0 10px 20px rgba(106, 90, 224, .24);
}
.btn.secondary {
  color: #1a2752;
  background: rgba(44, 193, 255, 0.14);
  border: 1px solid rgba(44, 193, 255, 0.34);
}
.btn:hover { transform: translateY(-2px); }

.badge-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.store-badge {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f1222;
  border: 1px solid #ccc6de;
  border-radius: 12px;
  padding: 10px 14px;
  background: #f1ecf8;
  box-shadow: 0 6px 14px rgba(41, 31, 84, 0.08);
}
.icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.icon.play {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #2ecf73;
  position: relative;
  margin-left: 8px;
}
.icon.play::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -12px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid rgba(44, 193, 255, 0.65);
  transform: translateX(-3px);
}
.store-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.store-copy small { font-size: .78rem; }
.store-copy strong { font-size: 1.8rem; }

.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pulse-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(106, 90, 224, 0.28);
  animation: pulse 6s ease-in-out infinite;
}
.pulse-ring.r1 {
  width: 180px;
  height: 180px;
  left: 8%;
  top: 18%;
}
.pulse-ring.r2 {
  width: 220px;
  height: 220px;
  right: 10%;
  top: 24%;
  animation-delay: 1.2s;
}
.pulse-ring.r3 {
  width: 140px;
  height: 140px;
  right: 20%;
  bottom: 8%;
  animation-delay: 2.1s;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature,
.panel {
  padding: 20px;
}
.feature p,
.panel p.sub {
  margin: 8px 0 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-card {
  text-align: center;
}
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.stat-value {
  margin-top: 5px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #23295a;
}

.about-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bento.big {
  grid-column: span 2;
}

.journey .timeline {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.journey .timeline article {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #dad5eb;
  border-radius: 14px;
  padding: 14px;
}
.journey .timeline span {
  color: #4f65c8;
  font-weight: 800;
  font-size: .86rem;
}
.journey .timeline h3 {
  margin-top: 8px;
}
.journey .timeline p {
  margin: 7px 0 0;
  color: var(--muted);
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-weight: 600;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #cfd7f0;
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(255,255,255,.95);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #7d8ced;
  box-shadow: 0 0 0 4px rgba(106, 90, 224, 0.14);
}
.form-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.form-row p { margin: 0; color: var(--muted); font-size: .9rem; }
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(92deg, var(--primary), #7d70ea);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rule-list,
.legal-list {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}
.result {
  min-height: 1.2rem;
  margin: 10px 0 0;
  font-weight: 700;
}
.result.ok { color: var(--ok); }
.result.err { color: var(--err); }

.callout {
  padding: 16px;
  text-align: center;
  color: #384275;
  font-weight: 600;
}

footer {
  padding: 12px 0 32px;
  text-align: center;
}
footer p { margin: 0; font-weight: 700; }
footer small { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }

@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(14px,-18px,0) scale(1.07); }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: .3;
  }
  50% {
    transform: scale(1.08);
    opacity: .12;
  }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .feature-grid,
  .stats-grid,
  .about-bento,
  .journey .timeline,
  .legal-grid { grid-template-columns: 1fr; }
  .bento.big { grid-column: auto; }
}
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; align-items: flex-start; }
  .store-copy strong { font-size: 1.6rem; }
}

/* Legal pages (generated by tools/build_legal_pages.js) */
.legal-section + .legal-section { margin-top: 22px; }
.legal-section h2 { font-size: 1.15rem; margin: 0 0 6px; }
.legal-section .legal-list { margin-top: 6px; }
.legal a, .support-contact a, #delete-account a, .callout a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Support form fallback: shown when the ticket could not be sent for the
   person, so they can still get the message to us by hand. */
.send-options {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.send-options[hidden] { display: none; }

.send-intro {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--ink);
}

.send-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.send-link {
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.send-link:hover,
.send-link:focus-visible {
  background: var(--primary);
  color: #fff;
}

.send-preview {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
}

.send-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
