/* PactPace marketing site: index, faq, contact, privacy, terms.
 *
 * Served under the "marketing" CSP in nginx/pactpace.com.conf, which allows
 * Google Fonts and same-origin stylesheets and scripts. The tight pages
 * (delete-account, done, download, auth, invite) use assets/style.css instead
 * and cannot load web fonts at all, so nothing in here may be assumed there.
 *
 * Colours are the app's own (lib/common/app_theme.dart). Teal means "checked
 * in", ember means "streak", and neither is used as decoration.
 *
 * Shape: panels and buttons are rounder on top than at the base, the same
 * silhouette as the mascot's body. */

:root {
  --bg: #0F0D17;
  --bg-2: #161221;
  --panel: #1B1726;
  --panel-2: #252030;
  --panel-3: #302B3C;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #EDE9F6;
  --text-2: #B8AECB;
  --text-3: #958AAB;
  --violet: #7C3AED;
  --violet-2: #6D28D9;
  --violet-text: #C4B5FD;
  --lilac: #C4B5FD;
  --teal: #2DD4BF;
  --teal-text: #2DD4BF;
  --ember: #F97316;
  --ember-text: #FB923C;
  --ink: #241B3A;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);

  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-panel: 32px 32px 24px 24px;
  --r-btn: 18px 18px 14px 14px;
  --wrap: 1160px;
  --gutter: 24px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F8F5FF;
  --bg-2: #F1ECFF;
  --panel: #FFFFFF;
  --panel-2: #EDE8FF;
  --panel-3: #E2DAF9;
  --line: rgba(36, 27, 58, 0.10);
  --line-2: rgba(36, 27, 58, 0.20);
  --text: #1A1523;
  --text-2: #4A3D68;
  --text-3: #6B5E86;
  --violet-text: #6D28D9;
  --teal-text: #0E7F71;
  --ember-text: #C2410C;
  --shadow: 0 30px 60px -34px rgba(60, 30, 120, 0.35);
  color-scheme: light;
}

/* No script: follow the system. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #F8F5FF;
    --bg-2: #F1ECFF;
    --panel: #FFFFFF;
    --panel-2: #EDE8FF;
    --panel-3: #E2DAF9;
    --line: rgba(36, 27, 58, 0.10);
    --line-2: rgba(36, 27, 58, 0.20);
    --text: #1A1523;
    --text-2: #4A3D68;
    --text-3: #6B5E86;
    --violet-text: #6D28D9;
    --teal-text: #0E7F71;
    --ember-text: #C2410C;
    --shadow: 0 30px 60px -34px rgba(60, 30, 120, 0.35);
    color-scheme: light;
  }
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-text); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h-xl { font-size: clamp(44px, 7.4vw, 92px); }
.h-lg { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; }
.h-md { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
.h-sm { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 34em; }
.body-2 { color: var(--text-2); max-width: 36em; }
.small { font-size: 14px; color: var(--text-3); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-2); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--panel); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: inline-flex; border-radius: 10px; }
.badges img { height: 52px; width: auto; }
.badges a:hover img { opacity: .88; }

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; background: #fff; }
.nav-links { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 12px;
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a[aria-current="page"] { color: var(--text); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  color: var(--text-2);
}
.icon-btn:hover { color: var(--text); background: var(--panel); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
.menu-btn { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.sheet { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.sheet.open { display: block; }
.sheet ul { list-style: none; padding: 0; margin: 0 0 12px; }
.sheet a:not(.btn) {
  display: block; padding: 12px 4px; font-size: 18px; font-weight: 500;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line);
}
.sheet .btn { width: 100%; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px); align-items: end;
}
.hero-copy { display: grid; gap: 28px; padding-bottom: 12px; }
.hero-copy .h-xl { max-width: 9.5em; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-3); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--teal-text); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ── The pact demo ────────────────────────────────────── */
.demo { position: relative; padding-top: 118px; max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 940px) { .demo { justify-self: start; } }

.demo-mascot {
  position: absolute; top: 0; right: 44px; width: 132px; height: 132px; z-index: 2;
  cursor: pointer; background: none; border: 0; padding: 0;
  border-radius: 40px;
}
.demo-mascot svg { width: 100%; height: 100%; overflow: visible; }

.pact {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}
.pact-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pact-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.pact-rule { font-size: 14px; color: var(--text-3); margin-top: 4px; }
.streak {
  display: flex; align-items: center; gap: 6px; flex: none;
  color: var(--ember-text);
}
.streak svg { width: 30px; height: 34px; }
.streak-num {
  font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  display: inline-block; min-width: 1.3em; text-align: right;
}
.streak-num.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: translateY(8px); opacity: .2; } 100% { transform: none; opacity: 1; } }
.streak-label { font-size: 13px; color: var(--text-3); text-align: right; margin-top: 2px; }

.chain { margin: 24px 0 18px; display: grid; gap: 12px; }
.chain-days, .chain-row { display: grid; grid-template-columns: 76px repeat(7, 1fr); align-items: center; gap: 6px; }
.chain-days span { font-size: 12px; color: var(--text-3); text-align: center; }
.chain-days span:first-child { text-align: left; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.who i {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff;
}
.who-you i { background: var(--violet); }
.who-them i { background: #0E7F71; }
.bead {
  justify-self: center; width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%;
  background: var(--teal); position: relative;
}
.bead::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 42%; height: 24%;
  border-left: 2.5px solid #0F2D2A; border-bottom: 2.5px solid #0F2D2A;
  transform: translateY(-15%) rotate(-45deg);
}
.bead.open { background: transparent; border: 2px dashed var(--line-2); }
.bead.open::after { display: none; }
.bead.today.open { border-color: var(--violet-text); }
.bead.joker { background: var(--lilac); }
.bead.joker::after {
  border: 0; width: 46%; height: 46%; transform: none;
  background: var(--ink);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}
.bead.pop { animation: pop .45s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .bead.today.open { animation: wait 2.4s ease-in-out infinite; }
}
@keyframes wait { 50% { border-color: var(--line-2); } }

.pact-status {
  min-height: 3.2em; font-size: 15px; color: var(--text-2);
  padding-top: 14px; border-top: 1px solid var(--line);
}
.pact-status strong { color: var(--text); font-weight: 600; }
.pact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pact-actions .btn { flex: 1 1 auto; }
.pact-actions [hidden] { display: none; }
#btn-joker { order: -1; }

/* ── Joint streak: the squad ──────────────────────────── */
.together {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rules li:first-child { padding-top: 0; }
.rules li:last-child { border-bottom: 0; }
.rules svg { width: 24px; height: 24px; color: var(--ember-text); margin-top: 2px; }
.rules b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.rules p { color: var(--text-2); font-size: 15px; }

.squad { max-width: 560px; justify-self: end; width: 100%; }
.members { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; gap: 4px; }
.member {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 64px 84px; gap: 12px; align-items: center;
  padding: 10px 0;
}
.who-c i { background: #C2410C; }
.who-d i { background: #4F46E5; }
.m-bar { height: 10px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: var(--violet-text); transition: width .9s cubic-bezier(.3, 1, .4, 1); }
.member.done .m-bar i { background: var(--teal); }
.m-count { font-size: 13px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.m-state { justify-self: end; font-size: 14px; font-weight: 600; }
.member.done .m-state { color: var(--teal-text); }
.nudge {
  min-height: 34px; padding: 6px 14px; cursor: pointer;
  border-radius: 14px 14px 11px 11px; border: 1px solid var(--line-2); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.nudge:hover { border-color: var(--violet-text); color: var(--violet-text); }
.nudge[disabled] { cursor: default; color: var(--text-3); border-style: dashed; }

/* 2×2. Scoped as .places.places-2 so it outranks the three-column .places
   rules further down, which would otherwise win on source order. */
.places.places-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.places.places-2 .place:nth-child(odd) { padding-left: 0; border-left: 0; }
.places.places-2 .place:nth-child(n+3) { border-top: 1px solid var(--line); }

@media (max-width: 940px) {
  .together { grid-template-columns: 1fr; }
  .squad { justify-self: start; }
}
@media (max-width: 520px) {
  .member { grid-template-columns: 1fr auto; grid-template-areas: "who state" "bar bar" "count count"; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .member:last-child { border-bottom: 0; }
  .member .who { grid-area: who; } .member .m-state { grid-area: state; }
  .member .m-bar { grid-area: bar; } .member .m-count { grid-area: count; text-align: left; }
}
@media (max-width: 860px) {
  .places.places-2 { grid-template-columns: 1fr; }
  .places.places-2 .place { padding: 28px 0; border-left: 0; }
  .places.places-2 .place + .place { border-top: 1px solid var(--line); }
}

/* ── Steps (a pact, start to finish) ──────────────────── */
.band { background: var(--lilac); color: var(--ink); }
.band .body-2, .band .small { color: #43356A; }
.band a { color: var(--ink); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  counter-reset: step;
}
.step { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 18px 18px 14px 14px;
  background: var(--ink); color: var(--lilac);
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  position: relative; z-index: 1;
}
.step::after {
  content: ''; position: absolute; top: 25px; left: 52px; right: 0; height: 2px;
  background-image: radial-gradient(circle, var(--ink) 1.5px, transparent 2px);
  background-size: 12px 2px; background-repeat: repeat-x; opacity: .45;
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: #43356A; font-size: 15px; max-width: 22em; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 0 0 76px; min-height: 52px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step::after { top: 60px; bottom: -24px; left: 25px; right: auto; width: 2px; height: auto;
    background-image: radial-gradient(circle, var(--ink) 1.5px, transparent 2px);
    background-size: 2px 12px; background-repeat: repeat-y; }
  .step h3 { padding-top: 12px; }
}

/* ── Proof types ──────────────────────────────────────── */
.proof {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.proof-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.proof-tab {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: center;
  padding: 14px 16px; border-radius: 20px 20px 16px 16px;
  background: transparent; border: 1px solid transparent;
}
.proof-tab:hover { background: var(--panel); }
.proof-tab[aria-selected="true"] { background: var(--panel); border-color: var(--line-2); }
.proof-tab .ico {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; background: var(--panel-2); color: var(--text-2);
}
.proof-tab[aria-selected="true"] .ico { background: var(--violet); color: #fff; }
.proof-tab .ico svg { width: 22px; height: 22px; }
.proof-tab b { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.proof-tab span:last-child { font-size: 14px; color: var(--text-3); line-height: 1.45; }

.proof-stage {
  position: sticky; top: 96px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px);
  min-height: 420px; display: grid; align-content: center; gap: 24px;
}
.proof-panel[hidden] { display: none; }
.proof-panel { display: grid; gap: 22px; justify-items: center; text-align: center; }
.proof-panel p { color: var(--text-2); max-width: 26em; }
.proof-panel .fine { font-size: 13px; color: var(--text-3); }

/* the six little scenes */
.scene { width: 100%; max-width: 300px; display: grid; justify-items: center; gap: 14px; }
.tap-target {
  width: 132px; height: 132px; border-radius: 46px 46px 38px 38px;
  display: grid; place-items: center; background: var(--panel-2); border: 2px dashed var(--line-2);
  color: var(--text-3); font-weight: 600; cursor: pointer;
}
.tap-target.done { background: var(--teal); border: 0; color: #0F2D2A; }
.tap-target svg { width: 52px; height: 52px; }
.viewfinder {
  width: 220px; aspect-ratio: 3 / 4; border-radius: 28px 28px 22px 22px; position: relative;
  background: linear-gradient(180deg, #2B2140 0%, #3B2D5C 60%, #4C3A76 100%);
  overflow: hidden;
}
.viewfinder::before, .viewfinder::after {
  content: ''; position: absolute; width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.85);
}
.viewfinder::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.viewfinder::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.viewfinder .sun-disc { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: #FDBA74; top: 34%; left: 50%; transform: translateX(-50%); }
.viewfinder .hill { position: absolute; bottom: -30px; left: -20%; width: 140%; height: 46%; border-radius: 50% 50% 0 0; background: #1B1430; }
.viewfinder .lock {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: rgba(15, 13, 23, .72); color: #EDE9F6; border-radius: 12px; padding: 8px 10px; font-size: 13px;
}
.viewfinder .lock svg { width: 16px; height: 16px; }
.map {
  width: 260px; height: 220px; border-radius: 28px 28px 22px 22px; position: relative; overflow: hidden;
  background-color: var(--panel-2);
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map .road { position: absolute; background: var(--panel-3); }
.map .r1 { left: 0; right: 0; top: 58%; height: 14px; transform: rotate(-12deg); }
.map .r2 { top: 0; bottom: 0; left: 30%; width: 12px; }
.map .zone {
  position: absolute; left: 50%; top: 46%; width: 112px; height: 112px; transform: translate(-50%, -50%);
  border-radius: 50%; background: color-mix(in srgb, var(--violet) 22%, transparent); border: 2px solid var(--violet);
}
.map .pin { position: absolute; left: 50%; top: 46%; width: 34px; height: 44px; transform: translate(-50%, -88%); color: var(--violet); }
.map .me {
  position: absolute; left: 58%; top: 52%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 30%, transparent);
}
.ring { width: 190px; height: 190px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--panel-3); }
.ring .fill { stroke: var(--violet); transition: stroke-dashoffset 1s linear; }
.ring .time {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ring .time small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--text-3); letter-spacing: 0; }
.amount { width: 100%; display: grid; gap: 12px; }
.amount-top { display: flex; justify-content: space-between; align-items: baseline; }
.amount-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.amount-num small { font-size: 18px; color: var(--text-3); font-weight: 500; }
.bar { height: 14px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: var(--teal); border-radius: 99px; transition: width .35s cubic-bezier(.3, 1.3, .5, 1); }
.amount-btns { display: flex; gap: 8px; justify-content: center; }
.workout {
  width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; text-align: left;
  background: var(--panel-2); border-radius: 20px 20px 16px 16px; padding: 14px 16px;
}
.workout .wico { width: 48px; height: 48px; border-radius: 14px; background: var(--ember); display: grid; place-items: center; color: #fff; }
.workout .wico svg { width: 24px; height: 24px; }
.workout b { display: block; font-size: 15px; }
.workout span { font-size: 13px; color: var(--text-3); }
.workout .ok { color: var(--teal-text); font-weight: 600; font-size: 14px; }

@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr; }
  .proof-stage { position: static; min-height: 0; }
}

/* ── Joker ────────────────────────────────────────────── */
.joker-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.joker-chain { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; max-width: 520px; }
.joker-chain .bead { max-width: 44px; }
.joker-chain .bead.missed { background: transparent; border: 2px solid var(--ember); }
.joker-chain .bead.missed::after { display: none; }
.joker-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 14px; color: var(--text-3); }
.joker-legend span { display: inline-flex; align-items: center; gap: 8px; }
.joker-legend .bead { width: 16px; max-width: 16px; }
.joker-legend .bead::after { border-width: 1.5px; }
@media (max-width: 860px) { .joker-grid { grid-template-columns: 1fr; } }

/* ── Off the phone ────────────────────────────────────── */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.place { padding: 32px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.place + .place { padding-left: 32px; border-left: 1px solid var(--line); }
.place svg { width: 40px; height: 40px; color: var(--violet-text); }
.place p { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) {
  .places { grid-template-columns: 1fr; }
  .place, .place + .place { padding: 28px 0; border-left: 0; }
  .place + .place { border-top: 1px solid var(--line); }
}

/* ── Privacy ──────────────────────────────────────────── */
.privacy .h-lg { font-size: clamp(30px, 3.6vw, 46px); }
.privacy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }
.facts svg { width: 24px; height: 24px; color: var(--teal-text); margin-top: 2px; }
.facts b { display: block; font-weight: 600; margin-bottom: 4px; }
.facts p { color: var(--text-2); font-size: 15px; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

/* ── Closing CTA ──────────────────────────────────────── */
.closer {
  background: var(--lilac); color: var(--ink);
  border-radius: 48px 48px 36px 36px;
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  position: relative;
}
.closer .lede { color: #43356A; }
.closer-mascot { width: 180px; height: 180px; align-self: end; margin-bottom: -8px; }
.closer-mascot svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 720px) {
  .closer { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 36px 36px 28px 28px; }
  .closer-mascot { width: 128px; height: 128px; order: -1; }
}

/* ── Inner page header ────────────────────────────────── */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.page-head .lede { margin-top: 18px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head-mascot { width: 112px; height: 112px; flex: none; }
.page-head-mascot svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 640px) { .page-head-mascot { display: none; } }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 104px); }
.faq-filter { position: sticky; top: 96px; display: grid; gap: 4px; }
.faq-filter button {
  text-align: left; padding: 10px 14px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); cursor: pointer; font-size: 15px; font-weight: 500;
}
.faq-filter button:hover { color: var(--text); background: var(--panel); }
.faq-filter button[aria-pressed="true"] { color: var(--text); background: var(--panel); border-color: var(--line-2); }
.faq-group { margin-bottom: 48px; }
.faq-group[hidden] { display: none; }
.faq-group h2 { margin-bottom: 8px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 17px; font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--violet-text); }
.qa summary .plus { width: 28px; height: 28px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .2s; }
.qa summary .plus svg { width: 14px; height: 14px; }
.qa[open] summary .plus { transform: rotate(45deg); background: var(--violet); border-color: var(--violet); color: #fff; }
.qa .a { padding: 0 48px 22px 0; color: var(--text-2); max-width: 40em; }
.qa .a p + p { margin-top: 10px; }
.qa .a strong { color: var(--text); font-weight: 600; }
.faq-more {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px 32px;
}
@media (max-width: 760px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-filter { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-filter button { border-color: var(--line-2); padding: 8px 14px; }
  .qa .a { padding-right: 0; }
}

/* ── Contact ──────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 104px); }
.contact-side { display: grid; gap: 28px; position: sticky; top: 96px; }
.mail {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px 26px;
}
.mail:hover { border-color: var(--line-2); }
.mail span { display: block; font-size: 14px; color: var(--text-3); margin-bottom: 6px; }
.mail b { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 22px); letter-spacing: -0.02em; word-break: break-all; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tips li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); font-size: 15px; }
.tips svg { width: 20px; height: 20px; color: var(--violet-text); margin-top: 2px; }
.form-frame {
  background: #fff; border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line);
}
.form-frame iframe { display: block; width: 100%; height: 980px; border: 0; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}

/* ── Legal ────────────────────────────────────────────── */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 104px); }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.toc p { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.4;
  color: var(--text-3); text-decoration: none; border-left: 2px solid transparent;
}
.toc a:hover { color: var(--text); background: var(--panel); }
.toc a.on { color: var(--text); border-left-color: var(--violet); border-radius: 0 10px 10px 0; background: var(--panel); }
.legal-body { max-width: 760px; min-width: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.legal-meta strong { color: var(--text); font-weight: 600; }
.scope-notice {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  padding: 18px 20px; margin-bottom: 44px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px 22px 18px 18px;
}
.scope-notice svg { width: 22px; height: 22px; color: var(--violet-text); margin-top: 1px; }
.scope-notice p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin: 0; }
.scope-notice strong { color: var(--text); }
.legal-section { margin-bottom: 48px; }
.legal-h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.legal-h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.legal-p { font-size: 16px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.legal-ul, .legal-ol { padding-left: 22px; margin: 0 0 14px; }
.legal-ul li, .legal-ol li { font-size: 16px; color: var(--text-2); line-height: 1.75; margin-bottom: 6px; }
.legal-p strong, .legal-ul strong, .legal-ol strong { color: var(--text); }
.legal-p code, .legal-ul code { background: var(--panel-2); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
.legal-table-wrap { overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--panel); color: var(--text); font-weight: 600; white-space: nowrap; }
.legal-table td { color: var(--text-2); line-height: 1.6; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table strong { color: var(--text); }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { display: none; }
}

/* ── Footer ───────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--text-3); font-size: 15px; max-width: 22em; margin-top: 14px; }
.foot h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; font-family: var(--font-body); letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a:not(.brand) { color: var(--text-3); text-decoration: none; font-size: 15px; }
.foot a:not(.brand):hover { color: var(--text); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ── Mascot ───────────────────────────────────────────── */
.mascot .m-body, .mascot .m-arm { transform-box: fill-box; }
.mascot .m-all { transform-origin: 50px 94px; transition: transform .25s; }
.mascot .m-eyes { transition: transform .18s ease-out; }
.mascot .m-arm { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.mascot .m-arm-l { transform-origin: 50% 15%; transform: rotate(20deg); }
.mascot .m-arm-r { transform-origin: 50% 15%; transform: rotate(-20deg); }
.mascot .m-happy, .mascot .m-shut, .mascot .m-sad-mouth, .mascot .m-open-mouth { display: none; }
.mascot.blink .m-open { display: none; }
.mascot.blink .m-shut { display: inline; }
.mascot.happy .m-open, .mascot.happy .m-shut { display: none; }
.mascot.happy .m-happy { display: inline; }
.mascot.happy .m-smile { display: none; }
.mascot.happy .m-open-mouth { display: inline; }
.mascot.happy .m-arm-l { transform: rotate(140deg); }
.mascot.happy .m-arm-r { transform: rotate(-140deg); }
.mascot.sad .m-smile { display: none; }
.mascot.sad .m-sad-mouth { display: inline; }
.mascot.sad .m-brows { transform: translateY(2px); }
.mascot.sad .m-brow-l { transform: rotate(-14deg); }
.mascot.sad .m-brow-r { transform: rotate(14deg); }
.mascot .m-brow-l, .mascot .m-brow-r { transform-box: fill-box; transform-origin: center; transition: transform .25s; }
.mascot .m-brows { transition: transform .25s; }
.mascot.wave .m-arm-r { transform: rotate(-150deg); }
@media (prefers-reduced-motion: no-preference) {
  .mascot .m-breathe { animation: breathe 3.6s ease-in-out infinite; transform-origin: 50px 94px; }
  .mascot.happy .m-all { animation: hop .5s ease-out 2; }
  .mascot.wave .m-arm-r { animation: wave .5s ease-in-out infinite alternate; }
  .mascot .m-antenna { animation: sway 4.2s ease-in-out infinite; transform-origin: 50px 32px; }
}
@keyframes breathe { 50% { transform: scale(1.025, .975); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
@keyframes wave { from { transform: rotate(-125deg); } to { transform: rotate(-170deg); } }
@keyframes sway { 50% { transform: rotate(6deg); } }

/* Hot and cold (the closing mascot). Every part is driven frame by frame from
   site.js, so CSS transitions and keyframes would only fight it. Blinking is
   left alone; it still toggles .m-open / .m-shut. */
.mascot.driven .m-open { transform-box: fill-box; transform-origin: center; }
.mascot.driven .m-all, .mascot.driven .m-arm, .mascot.driven .m-brows,
.mascot.driven .m-brow-l, .mascot.driven .m-brow-r, .mascot.driven .m-cheek {
  transition: none; animation: none;
}

/* ── Buddy: the mascot that comes along ───────────────── */
.buddy {
  position: absolute; left: 0; top: 0; z-index: 45;
  width: 72px; height: 72px;
  transition: opacity .3s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.buddy.gone { opacity: 0; transform: translateY(18px) scale(.5); pointer-events: none; }
.buddy.corner { position: fixed; left: auto !important; top: auto !important; right: 12px; bottom: 10px; width: 60px; height: 60px; }
.buddy-fly { position: relative; width: 100%; height: 100%; }
.buddy-btn {
  display: block; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer; border-radius: 22px;
}
.buddy-host, .buddy-host svg { display: block; width: 100%; height: 100%; overflow: visible; }
.buddy-close {
  position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; padding: 5px;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2);
  cursor: pointer; opacity: 0; transition: opacity .2s;
}
.buddy-close svg { width: 100%; height: 100%; }
.buddy:hover .buddy-close, .buddy:focus-within .buddy-close { opacity: 1; }
@media (hover: none) { .buddy-close { opacity: .85; } }
.buddy-say {
  position: absolute; bottom: calc(100% + 6px); right: 30px;
  width: max-content; max-width: 230px; margin: 0;
  padding: 10px 14px; border-radius: 18px 18px 6px 18px;
  background: var(--text); color: var(--bg);
  font-size: 14px; line-height: 1.4; font-weight: 500;
  box-shadow: var(--shadow);
  animation: say-in .25s cubic-bezier(.3, 1.4, .5, 1);
}
.buddy.say-right .buddy-say { right: auto; left: 30px; border-radius: 18px 18px 18px 6px; }
.buddy.corner .buddy-say { right: 20px; }
@keyframes say-in { from { opacity: 0; transform: translateY(6px) scale(.92); } }
.zzz { position: absolute; top: -8px; right: -4px; display: none; pointer-events: none; }
.buddy.asleep .zzz { display: block; }
.zzz i {
  position: absolute; font-style: normal; font-weight: 700; color: var(--violet-text);
  font-family: var(--font-display); font-size: 13px; opacity: 0;
  animation: zfloat 3s ease-in infinite;
}
.zzz i:nth-child(2) { animation-delay: 1s; font-size: 11px; }
.zzz i:nth-child(3) { animation-delay: 2s; font-size: 9px; }
@keyframes zfloat {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(14px, -26px); }
}
.buddy-restore {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--text-3); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.buddy-restore:hover { color: var(--text); }
@media print { .buddy { display: none !important; } }

/* Extra faces, for the buddy. */
.mascot .m-open { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.mascot .m-hands { display: none; }
.mascot.peekaboo .m-hands { display: inline; animation: hands-up .4s cubic-bezier(.3, 1.4, .5, 1); }
.mascot.peekaboo .m-arm { opacity: 0; }
@keyframes hands-up { from { transform: translateY(16px); opacity: 0; } }
.mascot.think .m-eyes { transform: translate(-2px, -2.5px); }
.mascot.think .m-brow-r { transform: translateY(-2.5px) rotate(-6deg); }
.mascot.sleep .m-open, .mascot.sleep .m-shut { display: none; }
.mascot.sleep .m-happy { display: inline; }
.mascot.sleep .m-arm-l { transform: rotate(8deg); }
.mascot.sleep .m-arm-r { transform: rotate(-8deg); }
.mascot.startle .m-open { transform: scale(1.18); }
.mascot.startle .m-brows { transform: translateY(-3px); }
.mascot.startle .m-smile { display: none; }
.mascot.startle .m-open-mouth { display: inline; }
.mascot.startle .m-arm-l { transform: rotate(70deg); }
.mascot.startle .m-arm-r { transform: rotate(-70deg); }
.mascot.airborne .m-arm-l { transform: rotate(140deg); }
.mascot.airborne .m-arm-r { transform: rotate(-140deg); }
.mascot.airborne .m-smile { display: none; }
.mascot.airborne .m-open-mouth { display: inline; }
.mascot.nudging .m-arm-r { transform: rotate(-95deg); }
@media (prefers-reduced-motion: no-preference) {
  .mascot.sleep .m-breathe { animation-duration: 6s; }
  .mascot.startle .m-all { animation: hop .45s ease-out 1; }
  .mascot.nudging .m-all { animation: shove .32s ease-in-out 2; }
  .mascot.wait .m-all { animation: tap .7s ease-in-out infinite; }
}
@keyframes shove { 50% { transform: translateX(5px) rotate(4deg); } }
@keyframes tap { 50% { transform: translateY(-3px); } }

/* ── Print ────────────────────────────────────────────── */
@media print {
  .nav, .foot, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
