/* Fairfax AppWorks. Tokens come from design-tokens.json in the handoff. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched local fallbacks, so text doesn't jump when the fonts land. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --ground: #FFF8EC;
  --surface: #FFFFFF;
  --ink: #1C1B33;
  --text: #4A4868;
  --muted: #5E5B7A;
  --border: #E8E1D0;
  --navy-line: #3A3960;
  --navy-text: #CFCDE3;
  --navy-label: #A9A6C6;

  --coral: #EF5B34;
  --coral-text: #B83A14;
  --sun: #FFC53D;
  --sun-blob: #FFE08A;
  --teal: #0E8A7E;
  --cobalt: #3257D6;
  --cobalt-text: #2744AE;
  --purple: #7C4DDB;

  --accent: var(--cobalt);
  --app-color: #C8401A;
  --app-tint: #FFE7DE;

  --display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --body: "Public Sans", "Public Sans Fallback", system-ui, sans-serif;

  --pad-x: clamp(20px, 5.6vw, 80px);
  --max: 1280px;
  --brutal: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--ground);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cobalt-text); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 24px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--ground); }

/* Gears ------------------------------------------------------------------ */
@keyframes fw-spin { to { transform: rotate(360deg); } }
.fw-spin, .fw-spin-r, .fw-spin-f { transform-box: fill-box; transform-origin: center; }
.fw-spin { animation: fw-spin 40s linear infinite; }
.fw-spin-r { animation: fw-spin 26s linear infinite reverse; }
.fw-spin-f { animation: fw-spin 16s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .fw-spin, .fw-spin-r, .fw-spin-f { animation: none; }
  html { scroll-behavior: auto; }
}
.has-gears { position: relative; overflow: hidden; }
.has-gears > .wrap { position: relative; }
.shadow-gear { position: absolute; pointer-events: none; }

/* Type ------------------------------------------------------------------- */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-text); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-outline { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ground); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.pill-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--ground); text-decoration: none; font-weight: 600; }
.pill-link:hover { color: #fff; background: #2c2b4d; }

/* Site header ------------------------------------------------------------ */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { flex: none; }
.brand-name { font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name span { color: var(--coral-text); }
.nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 600; }
.nav a:not(.pill-link) { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:not(.pill-link):hover { color: var(--coral-text); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--surface); font-weight: 700;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  display: flex; flex-direction: column; padding: 8px; border-radius: 18px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--ground); }
@media (max-width: 767px) {
  .nav { display: none; }
  .menu { display: block; }
  .brand-name { font-size: 22px; }
}

/* Home hero -------------------------------------------------------------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px;
  align-items: center; padding-top: 64px; padding-bottom: 96px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--surface);
  border: 2px solid var(--ink); font-size: 14px; font-weight: 700;
}
.badge-dot { width: 22px; height: 22px; border-radius: 999px; background: var(--sun); display: grid; place-items: center; }
.hero h1 { font-size: clamp(46px, 6.1vw, 88px); line-height: 0.98; letter-spacing: -0.035em; }
.highlight {
  box-shadow: inset 0 -0.3em 0 var(--sun);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero .lead { max-width: 600px; }
.hero .btn-row { margin-top: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--text); }
.stats li { display: flex; align-items: center; gap: 8px; }
.stats i { width: 10px; height: 10px; border-radius: 3px; }
.hero-art .scene { width: 100%; height: auto; }
@media (max-width: 1023px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 64px; gap: 40px; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* How it works ----------------------------------------------------------- */
.how { background: var(--sun); border-block: 2px solid var(--ink); }
.how .wrap { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.section-head > p { max-width: 420px; font-size: 17px; line-height: 1.5; }
.how .section-head > p { font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 22px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--brutal);
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--coral-text); }
.step-top svg { width: 64px; height: 64px; }
.step h3 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.step p { font-size: 17px; line-height: 1.55; color: var(--text); }
@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .how .wrap { padding-top: 64px; padding-bottom: 72px; }
}

/* App grid --------------------------------------------------------------- */
.apps { background: var(--surface); }
.apps .wrap { padding-top: 104px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; }
.apps .section-head > div { display: flex; flex-direction: column; gap: 12px; }
.apps .section-head > p { color: var(--text); }
.apps .shadow-gear.tr { width: 420px; top: -130px; right: -120px; }
.apps .shadow-gear.bl { width: 300px; bottom: -110px; left: -90px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.app-card {
  position: relative; overflow: hidden; height: 100%; min-height: 280px;
  display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px;
  background: var(--tint); color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.app-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--brutal); }
.card-gear { position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; }
.app-card-top { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-tile { width: 68px; height: 68px; border-radius: 18px; background: var(--fill); display: grid; place-items: center; flex: none; overflow: hidden; }
.app-tile img { width: 100%; height: 100%; object-fit: cover; }
.chip { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--text-color); }
.app-card h3 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.app-card p { font-size: 16px; line-height: 1.5; color: var(--text); }
.app-card .more { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.next-card {
  height: 100%; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 24px 28px 28px; border-radius: 24px; background: var(--surface);
  border: 2px dashed #A9A4C4;
}
.next-card .scene { width: 100%; max-width: 300px; height: auto; margin: auto auto 4px; }
.next-card h3 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 1023px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps .wrap { padding-top: 72px; padding-bottom: 88px; }
}
@media (max-width: 639px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .apps .shadow-gear { display: none; }
  .app-card, .next-card { padding: 26px; min-height: 0; }
}

/* About (navy) ----------------------------------------------------------- */
.about { background: var(--ink); color: var(--ground); }
.about .wrap {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 1fr) minmax(0, 5fr); align-items: center;
  padding-top: 112px; padding-bottom: 112px; column-gap: 24px;
}
.about .shadow-gear { width: 520px; bottom: -220px; left: -160px; }
.about-copy { grid-column: 1; display: flex; flex-direction: column; gap: 24px; }
.about .eyebrow { color: var(--sun); }
.about h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.about p { font-size: 19px; line-height: 1.6; color: var(--navy-text); }
.about-art { grid-column: 3; }
.contact-list { margin: 12px 0 0; border-top: 1px solid var(--navy-line); }
.contact-list div { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--navy-line); font-size: 17px; }
.contact-list dt { color: var(--navy-label); }
.contact-list dd { margin: 0; }
.contact-list a { color: var(--sun); display: inline-flex; min-height: 28px; align-items: center; }
.contact-list a:hover { color: #fff; }
@media (max-width: 1023px) {
  .about .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding-top: 80px; padding-bottom: 80px; }
  .about-art { grid-column: 1; max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 639px) { .about .shadow-gear { display: none; } }

/* Footers ---------------------------------------------------------------- */
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; font-size: 15px; color: var(--text); }
.site-footer .copy { display: flex; align-items: center; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer nav a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav a:hover { color: var(--ink); }
.app-footer { border-top: 1px solid var(--border); }
.app-footer .wrap { color: var(--muted); padding-top: 40px; padding-bottom: 40px; }
.app-footer .made-by { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }

/* App page --------------------------------------------------------------- */
.topbar { background: var(--ink); font-size: 14px; }
.topbar .wrap { min-height: 44px; display: flex; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #D9DDD9; text-decoration: none; }
.topbar a:hover { color: #fff; }
.app-header { border-bottom: 1px solid var(--border); }
.app-header .wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-id { display: flex; align-items: center; gap: 12px; }
.app-id img, .app-id .swatch { width: 40px; height: 40px; border-radius: 11px; background: var(--app-color); }
.app-id span { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.app-nav { gap: 34px; font-weight: 500; }
.app-nav .pill-link { background: var(--app-color); color: #fff; }
.app-nav .pill-link:hover { background: var(--app-color); color: #fff; filter: brightness(.92); }
@media (max-width: 767px) {
  .app-nav { display: flex; }
  .app-nav a:not(.pill-link) { display: none; }
}

.app-hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 24px; align-items: center;
  padding-top: 96px; padding-bottom: 104px;
}
.app-hero .shadow-gear { width: 460px; bottom: -230px; left: -170px; }
.app-hero-copy { display: flex; flex-direction: column; gap: 26px; }
.tag { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.app-hero h1 { font-size: clamp(56px, 6.4vw, 92px); letter-spacing: -0.03em; }
.promise { max-width: 600px; font-family: var(--display); font-size: clamp(24px, 2.3vw, 32px); line-height: 1.25; color: #2C312E; font-weight: 500; }
.detail { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--text); }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 26px;
  border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none;
}
.store-btn:hover { color: #fff; background: #2c2b4d; }
.store-btn .two-line { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 12px; color: #C9CEC9; }
.store-btn strong { font-size: 18px; font-weight: 600; }
.store-btn.soon { background: transparent; color: var(--ink); border: 2px dashed #A9A4C4; cursor: default; }
.store-btn.soon small { color: var(--muted); }
.social-proof { font-size: 15px; color: var(--muted); }
.app-hero .btn-row { margin-top: 10px; }

.phone-stage { position: relative; display: flex; justify-content: center; }
.hero-gear { position: absolute; pointer-events: none; }
.hero-gear-big { width: 300px; top: -30px; right: -70px; }
.hero-gear-small { width: 160px; top: 205px; right: -95px; }
.app-builder { position: absolute; width: 170px; bottom: -8px; left: -150px; }
.phone {
  position: relative; width: min(320px, 72vw); aspect-ratio: 320 / 660; padding: 14px;
  border-radius: 52px; background: var(--ink); box-shadow: 10px 10px 0 rgba(28, 27, 51, .12);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: var(--app-color);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff;
}
.phone-screen > img.shot { width: 100%; height: 100%; object-fit: cover; }
.phone-screen .splash-icon { width: 38%; border-radius: 22%; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.phone-screen .splash-name { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
@media (max-width: 1023px) {
  .app-hero .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 64px; padding-top: 48px; padding-bottom: 80px; }
  .phone-stage { max-width: 420px; width: 100%; margin-inline: auto; }
  .app-builder { left: 0; width: 120px; }
  .hero-gear-big { right: -40px; }
  .hero-gear-small { right: -30px; }
}
@media (max-width: 639px) {
  .app-hero .shadow-gear, .app-builder { display: none; }
  .hero-gear-big { width: 220px; top: -20px; right: -60px; }
  .hero-gear-small { width: 120px; top: 170px; right: -50px; }
}

.features { background: var(--surface); border-block: 1px solid var(--border); }
.features .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 56px; }
.features-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.features .eyebrow, .app-page .eyebrow { color: var(--app-color); }
.features h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin: 0; padding: 0; list-style: none; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature svg { color: var(--app-color); }
.feature h3 { font-size: 22px; font-weight: 600; }
.feature p { font-size: 17px; line-height: 1.6; color: var(--text); }
@media (max-width: 1023px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .features .wrap { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
}

.screens .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
.shot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.shot-grid figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.shot-frame { aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 40px; background: var(--ink); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: #EEE9F8; }
.shot-grid figcaption { font-size: 16px; color: var(--text); text-align: center; }
@media (max-width: 1023px) { .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.download { padding-inline: var(--pad-x); }
.download-band {
  position: relative; overflow: hidden; max-width: var(--max); margin-inline: auto;
  padding: 72px 80px; border-radius: 32px; background: var(--app-color); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px 40px; flex-wrap: wrap;
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.download-band .shadow-gear { width: 340px; top: -150px; left: 42%; }
.download-band > div { position: relative; display: flex; flex-direction: column; gap: 12px; }
.download-band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4vw, 56px); letter-spacing: -0.02em; line-height: 1.05; }
.download-band p { font-size: 19px; color: #FFF3EE; }
.btn-white { min-height: 60px; padding: 0 28px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.btn-white:hover { color: var(--ink); background: var(--ground); }
.btn-white.soon { background: transparent; color: #fff; border: 1.5px dashed #fff; cursor: default; }
@media (max-width: 767px) { .download-band { padding: 48px 28px; } }
.app-page .screens + .download, .app-page .features + .download { padding-top: 104px; }

.help .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 1fr) minmax(0, 4fr);
  padding-top: 112px; padding-bottom: 112px; column-gap: 24px; row-gap: 48px;
}
.faq { grid-column: 1; display: flex; flex-direction: column; }
.faq h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.2vw, 44px); letter-spacing: -0.02em; margin-bottom: 24px; }
.faq-item { padding: 24px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 19px; font-weight: 600; }
.faq-item p { font-size: 17px; line-height: 1.6; color: var(--text); }
.help-card {
  grid-column: 3; align-self: start; display: flex; flex-direction: column; gap: 18px; padding: 36px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
}
.help-card h2 { font-family: var(--display); font-weight: 800; font-size: 30px; }
.help-card p { font-size: 17px; line-height: 1.6; color: var(--text); }
.help-card .email { font-size: 17px; font-weight: 600; word-break: break-word; }
.help-card hr { width: 100%; height: 1px; border: 0; background: var(--border); margin: 0; }
.help-card a { min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 1023px) {
  .help .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 80px; padding-bottom: 80px; }
  .faq, .help-card { grid-column: 1; }
}

/* Plain pages (privacy, terms, support, 404) ----------------------------- */
.doc .wrap { max-width: calc(760px + 2 * var(--pad-x)); padding-top: 48px; padding-bottom: 104px; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); margin: 12px 0 12px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--text); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc .summary-box { margin-top: 8px; padding: 24px 28px; border-radius: 22px; background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--brutal); }
.doc .summary-box p { color: var(--ink); }
.support-apps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.support-apps a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 600; }
.support-apps a:hover { border-color: var(--ink); }
.support-apps img { width: 44px; height: 44px; border-radius: 11px; }
.not-found { text-align: left; }
.not-found .scene { width: min(360px, 100%); margin: 8px 0 32px; }

/* Runners: two builders crossing the about band, tossing 1s and 0s ------- */
.about .wrap { padding-bottom: 32px; }
.runners { position: relative; height: 150px; overflow: hidden; }
.runners::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 3px;
  background: var(--navy-line); border-radius: 2px;
}
.troupe { position: absolute; left: 0; bottom: 10px; width: 420px; height: 140px; animation: troupe-run 16s linear infinite; }
.troupe-inner { position: relative; width: 420px; height: 140px; transform-origin: 0 100%; }
.troupe svg { position: absolute; inset: 0; overflow: visible; }
@keyframes troupe-run {
  from { transform: translateX(-440px); }
  to { transform: translateX(calc(100vw + 20px)); }
}
.runners .leg, .runners .arm { transform-box: fill-box; transform-origin: 50% 0; }
.runners .leg { animation: stride .5s ease-in-out infinite alternate; }
.runners .leg.b { animation-direction: alternate-reverse; }
.runners .arm { animation: swing .5s ease-in-out infinite alternate-reverse; }
.runners .arm.b { animation-direction: alternate; }
.runners .bob { animation: bob .25s ease-in-out infinite alternate; }
@keyframes stride { from { transform: rotate(30deg); } to { transform: rotate(-30deg); } }
@keyframes swing { from { transform: rotate(40deg); } to { transform: rotate(-40deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }

/* Each digit: outer span slides between the hands, middle span lifts it
   (ease-out up, ease-in down makes the arc), inner span spins. */
.toss { position: absolute; top: 66px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.toss span { display: block; animation-duration: 1.6s; animation-iteration-count: infinite; animation-delay: inherit; }
.toss.one { left: 76px; color: var(--sun); animation: toss-right 1.6s linear infinite; }
.toss.zero { left: 326px; color: #FF8A66; animation: toss-left 1.6s linear infinite; animation-delay: -.8s; }
.toss > span { animation-name: toss-arc; }
.toss > span > span { animation-name: toss-spin; animation-timing-function: linear; }
@keyframes toss-right {
  0% { transform: translateX(0); opacity: 0; }
  6%, 94% { opacity: 1; }
  100% { transform: translateX(250px); opacity: 0; }
}
@keyframes toss-left {
  0% { transform: translateX(0); opacity: 0; }
  6%, 94% { opacity: 1; }
  100% { transform: translateX(-250px); opacity: 0; }
}
@keyframes toss-arc {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(.33, .66, .66, 1); }
  50% { transform: translateY(-64px); animation-timing-function: cubic-bezier(.33, 0, .66, .33); }
  100% { transform: translateY(0); }
}
@keyframes toss-spin { to { transform: rotate(360deg); } }
@media (max-width: 1023px) { .about .wrap { padding-bottom: 24px; } }
@media (max-width: 639px) {
  .runners { height: 124px; }
  .troupe { animation-duration: 10s; }
  .troupe-inner { transform: scale(.78); }
}
@media (prefers-reduced-motion: reduce) {
  .troupe { animation: none; left: 50%; transform: translateX(-50%); }
  .runners .leg, .runners .arm, .runners .bob, .toss, .toss span { animation: none; }
  .toss.one { transform: translateX(90px); }
  .toss.zero { transform: translateX(-90px); }
  .toss > span { transform: translateY(-56px); }
}
