/* Jigsaw Rally: the pages beyond the homepage (Help, Privacy, Terms, Copyright).
   Same palette and type as the homepage, without the scroll-jigsaw stage:
   these pages scroll normally and read like documents. */

:root {
  color-scheme: light;

  --haze: #E9EBFF;
  --table: #C3CAF8;
  --surface: #FFFFFF;
  --raised: #DCE0FF;
  --ink: #15133A;
  --ink-2: #4A4780;
  --ink-3: #5F5C99;
  --midnight: #100F2E;
  --dusk: #25245A;
  --on-dark: #F7F5FF;
  --on-dark-2: #B9B6E3;
  --coral: #FF5E57;
  --coral-ink: #B8312B;
  --peri: #7C8CFF;
  --peri-ink: #4A55C8;
  --jade: #2FD39B;
  --jade-ink: #08744F;
  --orchid: #C2477F;
  --violet: #6D4BC9;
  --indigo: #3A3480;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shadow-ink: 21, 19, 58;
  --gutter: clamp(16px, 4vw, 40px);

  /* A faint die-cut pattern for the table behind the cards. */
  --cut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%2315133A' stroke-opacity='.06' stroke-width='1.5' d='M0 80h60c4 0 6-4 3-8-6-8 0-18 17-18s23 10 17 18c-3 4-1 8 3 8h60M80 0v60c0 4 4 6 8 3 8-6 18 0 18 17s-10 23-18 17c-4-3-8-1-8 3v60'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body {
  font-family: var(--font-ui); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--haze) var(--cut) 0 0 / 160px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--peri-ink); outline-offset: 3px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Floating nav (matches the homepage) ---------- */
.site-nav {
  position: fixed; z-index: 30;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(var(--shadow-ink), .08);
  box-shadow: 0 10px 30px rgba(var(--shadow-ink), .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.logo { width: 34px; height: 30px; }
.logo-a { fill: var(--coral); stroke: #fff; stroke-width: 1.2; }
.logo-b { fill: var(--peri); stroke: #fff; stroke-width: 1.2; }
.logo-jig {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 10px rgba(var(--shadow-ink), .18);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.4);
}
.brand:hover .logo-jig { transform: rotate(-6deg) scale(1.06); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px;
}
.nav-links a:hover { background: var(--haze); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--haze); }
@media (max-width: 640px) { .nav-links a:not([aria-current="page"]):not(.keep) { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--font-ui); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--coral); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 94, 87, .35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(255, 94, 87, .45); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(var(--shadow-ink), .25); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
@media (max-width: 420px) { .site-nav .btn { padding: 0 14px; font-size: 15px; } }
@media (max-width: 480px) {
  .site-nav { gap: 8px; }
  .wordmark { font-size: clamp(15px, 4.9vw, 21px); }
  .nav-links a[aria-current="page"]:not(.keep) { display: none; }
}

.eyebrow {
  margin: 0; display: flex; align-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink);
}
/* Jig, the mascot, stands beside every eyebrow in a different pose. */
.eyebrow::before {
  content: ""; width: 26px; height: 27px; margin: -6px 10px -6px 0; flex: none;
  background: var(--jig, url(brand/jig.svg)) center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(21, 19, 58, .18));
}
.eyebrow.on-dark { color: var(--coral); }
.eyebrow.bare::before { display: none; }

/* A raised card with the same bevel language as the homepage pieces. */
.card {
  position: relative; background: var(--surface); border-radius: 28px;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .9),
    inset 0 -2px 0 rgba(var(--shadow-ink), .06),
    0 1px 2px rgba(var(--shadow-ink), .08),
    0 12px 28px rgba(var(--shadow-ink), .08),
    0 40px 80px -30px rgba(var(--shadow-ink), .25);
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(130px + env(safe-area-inset-top, 0px)) var(--gutter) 72px;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(124, 140, 255, .35), transparent 70%),
    radial-gradient(40% 50% at 8% 35%, rgba(255, 94, 87, .16), transparent 70%),
    linear-gradient(180deg, #F3F4FF, var(--haze));
}
.page-hero::after {
  /* the hero is a top-edge piece: a row of tabs along its bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--haze) var(--cut) 0 0 / 160px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V16h104c3 0 5-2 3-5-3-5-3-11 13-11s16 6 13 11c-2 3 0 5 3 5h104v10z'/%3E%3C/svg%3E") 0 100% / 240px 26px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V16h104c3 0 5-2 3-5-3-5-3-11 13-11s16 6 13 11c-2 3 0 5 3 5h104v10z'/%3E%3C/svg%3E") 0 100% / 240px 26px repeat-x;
}
.page-hero-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.page-title {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.035em; text-wrap: balance;
}
.page-lede { margin: 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); }
.meta { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* ---------- Legal documents ---------- */
.doc {
  max-width: 1180px; margin: 0 auto; padding: 40px var(--gutter) 96px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start;
}
.doc > * { min-width: 0; }
.toc { position: sticky; top: 104px; display: grid; gap: 2px; font-size: 14px; }
.toc p { margin: 0 0 8px 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.toc a {
  display: block; padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.toc a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.toc a.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(var(--shadow-ink), .08); }
.doc-body { padding: clamp(24px, 4vw, 56px); }
.summary {
  margin: 0 0 40px; padding: 24px 26px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 140, 255, .14), rgba(255, 94, 87, .08));
  border: 1px solid rgba(124, 140, 255, .25);
}
.summary h2 { margin: 0 0 10px; font: 750 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.summary li::marker { color: var(--coral); }
.doc-body section { padding-top: 8px; }
.doc-body section + section { margin-top: 36px; border-top: 1px solid rgba(var(--shadow-ink), .08); padding-top: 32px; }
.doc-body h2 {
  margin: 0 0 12px; display: flex; gap: 12px; align-items: baseline;
  font: 750 clamp(22px, 2.2vw, 28px)/1.15 var(--font-display); letter-spacing: -.02em;
}
.doc-body h2 .n { font: 800 13px/1 var(--font-ui); color: var(--coral-ink); letter-spacing: .08em; min-width: 22px; }
.doc-body h3 { margin: 22px 0 6px; font: 700 18px/1.3 var(--font-ui); }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body p { margin: 0 0 12px; max-width: 72ch; }
.doc-body ul { margin: 0 0 12px; padding-left: 22px; max-width: 72ch; }
.doc-body li { margin-bottom: 6px; }
.doc-body strong { color: var(--ink); }
.doc-body a { color: var(--peri-ink); text-underline-offset: 3px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(var(--shadow-ink), .08); }
.doc-body th { font-weight: 700; color: var(--ink); background: var(--haze); }
.doc-body th:first-child { border-radius: 10px 0 0 10px; }
.doc-body th:last-child { border-radius: 0 10px 10px 0; }
.table-wrap { overflow-x: auto; }
.address {
  display: inline-grid; gap: 2px; margin: 4px 0 16px; padding: 18px 22px; border-radius: 16px;
  background: var(--haze); font-style: normal; color: var(--ink);
}
.address b { font-family: var(--font-display); font-size: 19px; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc p { width: 100%; margin-left: 0; }
  .toc a { background: rgba(255, 255, 255, .6); }
}
@media (max-width: 560px) {
  .toc { display: none; }
  .doc { padding-inline: 12px; }
  .doc-body { border-radius: 22px; padding: 22px 18px; }
  .summary { padding: 18px; }
  .doc-body table { font-size: 14px; }
  .doc-body th, .doc-body td { padding: 8px; }
}

/* ---------- Footer: the bottom-edge piece ---------- */
.site-footer {
  position: relative; margin-top: 26px;
  padding: 72px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(50% 80% at 90% 40%, rgba(124, 140, 255, .2), transparent 70%),
    var(--midnight);
  color: var(--on-dark-2);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: var(--midnight);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V16h104c3 0 5-2 3-5-3-5-3-11 13-11s16 6 13 11c-2 3 0 5 3 5h104v10z'/%3E%3C/svg%3E") 120px 100% / 240px 26px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V16h104c3 0 5-2 3-5-3-5-3-11 13-11s16 6 13 11c-2 3 0 5 3 5h104v10z'/%3E%3C/svg%3E") 120px 100% / 240px 26px repeat-x;
}
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 36px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top .wordmark { color: var(--on-dark); }
.footer-top .logo-a, .footer-top .logo-b { stroke: var(--midnight); }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer-links p { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.footer-links a { display: block; padding: 4px 0; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* =================================================================
   Help center
   ================================================================= */
.help-hero { padding-bottom: 96px; }
.help-hero .page-hero-inner { justify-items: center; text-align: center; }
.help-hero .page-lede { margin-inline: auto; }
.help-hero .eyebrow, .solo-hero .eyebrow { justify-content: center; }

.search {
  position: relative; width: min(680px, 100%); margin-top: 10px;
}
.search input {
  width: 100%; height: 66px; padding: 0 120px 0 58px; border-radius: 999px;
  border: 1.5px solid rgba(var(--shadow-ink), .1); background: var(--surface);
  font: 600 18px/1 var(--font-ui); color: var(--ink);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .9) inset, 0 14px 40px rgba(var(--shadow-ink), .12);
  transition: box-shadow .2s ease, border-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink-3); font-weight: 500; }
.search input:focus { outline: none; border-color: var(--peri); box-shadow: 0 0 0 5px rgba(124, 140, 255, .25), 0 14px 40px rgba(var(--shadow-ink), .14); }
.search svg { position: absolute; left: 22px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--ink-3); }
.search kbd {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 700 12px/1 var(--font-ui); color: var(--ink-3); padding: 7px 9px; border-radius: 8px;
  background: var(--haze); border: 1px solid rgba(var(--shadow-ink), .08);
}
.search-status { min-height: 24px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
@media (max-width: 560px) {
  .search input { height: 58px; padding-right: 20px; font-size: 16px; }
  .search kbd { display: none; }
}

.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.quick button {
  border: 1px solid rgba(var(--shadow-ink), .1); background: rgba(255, 255, 255, .7); color: var(--ink-2);
  font: 600 14px/1 var(--font-ui); padding: 10px 14px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.quick button:hover { background: var(--surface); color: var(--ink); transform: translateY(-1px); }

.help-main { max-width: 1180px; margin: 0 auto; padding: 8px var(--gutter) 40px; display: grid; gap: 72px; }

/* Topic tiles: jigsaw pieces that lift and snap. */
.topics {
  --d: 20px; /* tab depth, set by help.js from the tile size */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: -56px; position: relative; z-index: 2;
  filter: drop-shadow(0 18px 30px rgba(var(--shadow-ink), .12));
}
.topic {
  --tone: var(--peri); --tone-ink: var(--peri-ink);
  position: relative; display: grid; gap: 8px; align-content: start;
  padding: calc(var(--d) + 8px) calc(var(--d) + 10px) calc(var(--d) + 6px);
  min-height: 200px; text-decoration: none; text-align: left;
  border: 0; cursor: pointer; font: inherit; color: var(--ink); background: none;
  transform: translateZ(0);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3);
}
.topic > * { position: relative; }
/* The die-cut piece itself, drawn by help.js. It overhangs the tile by the tab depth. */
.topic .shape { position: absolute; inset: calc(var(--d) * -1); width: calc(100% + var(--d) * 2); height: calc(100% + var(--d) * 2); overflow: visible; pointer-events: none; }
.topic .shape .side { fill: #CDD2F4; }
.topic .shape .face { fill: var(--surface); }
.topic .shape .sheen { fill: url(#topic-sheen); }
.topic .shape .edge { fill: none; stroke: rgba(var(--shadow-ink), .1); stroke-width: 1.2; transition: stroke .2s ease, stroke-width .2s ease; }
.topic .shape .glow { fill: none; stroke: var(--coral); stroke-width: 7; opacity: 0; filter: blur(5px); transition: opacity .25s ease; }
.topic:hover, .topic:focus-visible { z-index: 3; transform: translateY(-6px) rotate(-.8deg); outline: none; }
.topic:nth-child(even):hover, .topic:nth-child(even):focus-visible { transform: translateY(-6px) rotate(.8deg); }
.topic:hover .shape, .topic:focus-visible .shape { filter: drop-shadow(0 16px 18px rgba(var(--shadow-ink), .22)); }
.topic:hover .edge, .topic:focus-visible .edge, .topic.active .edge { stroke: var(--coral); stroke-width: 2.6; }
.topic:hover .glow, .topic:focus-visible .glow { opacity: .3; }
.topic.active .edge { stroke: var(--tone); }
.topic:active { transform: translateY(-2px) scale(.99); }
.topic .ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 18%, white); color: var(--tone-ink);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.5);
}
.topic:hover .ico { transform: rotate(-8deg) scale(1.08); }
.topic .ico svg { width: 24px; height: 24px; }
.topic b { font: 750 19px/1.15 var(--font-display); letter-spacing: -.02em; }
.topic span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.topic .count {
  position: absolute; right: calc(var(--d) + 12px); top: calc(var(--d) + 12px); min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; font-style: normal; color: var(--tone-ink); background: var(--haze);
}
.t-duel { --tone: var(--coral); --tone-ink: var(--coral-ink); }
.t-score { --tone: var(--peri); --tone-ink: var(--peri-ink); }
.t-race { --tone: var(--orchid); --tone-ink: #8E2A5A; }
.t-tour { --tone: var(--violet); --tone-ink: #4E33A0; }
.t-leisure { --tone: #49B7E8; --tone-ink: #1F6C8F; }
.t-pro { --tone: var(--jade); --tone-ink: var(--jade-ink); }
.t-account { --tone: var(--indigo); --tone-ink: var(--indigo); }
.t-safety { --tone: #F2A33A; --tone-ink: #8A4E00; }
@media (max-width: 980px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .topic { min-height: 150px; padding-inline: calc(var(--d) + 8px); } .topic span { display: none; } .topic .ico { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .topic:hover, .topic:focus-visible { transform: none; } }

/* Section headings in the help center */
.section-head { display: grid; gap: 10px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font: 800 clamp(30px, 3.6vw, 48px)/1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.section-head p { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 18px; }

/* Live widgets row */
.widgets { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
@media (max-width: 900px) { .widgets { grid-template-columns: 1fr; } }
.widget { padding: clamp(22px, 3vw, 34px); overflow: hidden; }
.widget h2 { margin: 0 0 6px; font: 750 24px/1.15 var(--font-display); letter-spacing: -.02em; }
.widget > p { margin: 0 0 18px; color: var(--ink-2); }

/* Mini jigsaw demo */
.demo-wrap { position: relative; border-radius: 20px; overflow: hidden; background: var(--table) var(--cut) 0 0 / 120px; touch-action: none; }
.demo { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.demo .pc { cursor: grab; }
.demo .pc.held { cursor: grabbing; }
.demo .pc path.face { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.demo .pc path.side { fill: rgba(var(--shadow-ink), .35); }
.demo .outline { fill: rgba(255, 255, 255, .35); stroke: rgba(var(--shadow-ink), .2); stroke-dasharray: 6 6; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.demo-msg { margin: 0; font-weight: 700; color: var(--ink-2); min-height: 1.6em; }
.demo-msg.win { color: var(--jade-ink); }
.demo-stats { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--haze); font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.pill b { color: var(--ink); }
.burst { position: absolute; pointer-events: none; width: 10px; height: 10px; border-radius: 3px; }

/* Countdown and reset clock */
.clock { display: grid; gap: 16px; }
.clock-digits { display: flex; gap: 8px; }
.clock-digits div {
  flex: 1; display: grid; justify-items: center; padding: 16px 6px 12px; border-radius: 18px;
  background: var(--midnight); color: var(--on-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 20px rgba(var(--shadow-ink), .2);
}
.clock-digits b { font: 800 clamp(34px, 4vw, 48px)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock-digits small { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.clock-local { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--haze); color: var(--ink-2); font-size: 15px; }
.clock-local b { color: var(--ink); }
.themes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.themes li {
  display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px 2px 9px; border-radius: 14px;
  background: var(--haze); font-size: 11px; line-height: 1.2; color: var(--ink-3);
}
.themes li b { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.themes li i { font-style: normal; }
.themes li.today { background: var(--coral); color: var(--ink); box-shadow: 0 8px 18px rgba(255, 94, 87, .35); transform: translateY(-2px); }
.themes li.today b { color: var(--ink); }
.themes-note { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 480px) { .themes li i { display: none; } .themes li { padding: 9px 0; } }

/* Assist penalty calculator */
.calc { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.assists { display: grid; gap: 10px; }
.assist {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; background: var(--haze); border: 1.5px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}
.assist.on { background: #fff; border-color: var(--peri); box-shadow: 0 6px 16px rgba(var(--shadow-ink), .08); }
.assist b { display: block; font-weight: 700; }
.assist small { color: var(--ink-3); font-size: 13px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid rgba(var(--shadow-ink), .1); }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: transparent;
  font: 800 18px/1 var(--font-ui); color: var(--ink);
}
.stepper button:hover { background: var(--haze); }
.stepper button:disabled { opacity: .3; cursor: default; background: transparent; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.toggle { position: relative; width: 52px; height: 32px; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: rgba(var(--shadow-ink), .15); transition: background .2s ease; pointer-events: none; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.2, .9, .3, 1.3); }
.toggle input:checked + span { background: var(--peri); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 3px solid var(--peri-ink); outline-offset: 2px; }
.result {
  display: grid; gap: 4px; justify-items: center; text-align: center; padding: 26px 18px; border-radius: 24px;
  background: linear-gradient(160deg, var(--dusk), var(--midnight)); color: var(--on-dark);
}
.result small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.result .t { font: 800 44px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.result .plus { font-weight: 700; color: var(--coral); font-variant-numeric: tabular-nums; }
.result input {
  width: 120px; margin-top: 6px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08); color: var(--on-dark); text-align: center; font: 700 16px/1 var(--font-ui);
}
.result label { font-size: 13px; color: var(--on-dark-2); margin-top: 8px; }
.result .flag { margin-top: 8px; font-size: 13px; color: var(--on-dark-2); }

/* FAQ */
.faq-groups { display: grid; gap: 40px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1000px) { .faq-groups { grid-template-columns: 1fr; } }
.faq-groups .empty { grid-column: 1 / -1; }
.faq-group h3 {
  margin: 0 0 14px; display: flex; align-items: center; gap: 12px;
  font: 750 24px/1.1 var(--font-display); letter-spacing: -.02em;
}
.faq-group h3 i { width: 12px; height: 12px; border-radius: 4px; background: var(--tone, var(--peri)); transform: rotate(45deg); }
.faq-list { display: grid; gap: 10px; }
.qa { border-radius: 20px; background: var(--surface); box-shadow: inset 0 1.5px 0 #fff, 0 1px 2px rgba(var(--shadow-ink), .06), 0 8px 20px rgba(var(--shadow-ink), .06); transition: box-shadow .2s ease; }
.qa[open] { box-shadow: inset 0 0 0 1.5px rgba(124, 140, 255, .5), 0 16px 36px rgba(var(--shadow-ink), .1); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; font-weight: 700; font-size: 17px; border-radius: 20px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--haze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315133A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), background-color .2s ease;
}
.qa[open] summary::after { transform: rotate(135deg); background-color: rgba(255, 94, 87, .18); }
.qa summary:hover { background: rgba(233, 235, 255, .5); }
.qa .a { padding: 0 20px 20px; color: var(--ink-2); }
.qa .a p { margin: 0 0 10px; max-width: 70ch; }
.qa .a p:last-child { margin-bottom: 0; }
.qa .a ul, .qa .a ol { margin: 0 0 10px; padding-left: 22px; }
.qa .a a { color: var(--peri-ink); text-underline-offset: 3px; }
.qa .a strong { color: var(--ink); }
.qa .tools { display: flex; gap: 8px; margin-top: 12px; }
.qa .tools button {
  border: 0; cursor: pointer; background: var(--haze); color: var(--ink-2); font: 600 13px/1 var(--font-ui);
  padding: 8px 12px; border-radius: 999px;
}
.qa .tools button:hover { color: var(--ink); background: var(--raised); }
.qa.hide, .faq-group.hide { display: none; }
mark { background: rgba(255, 94, 87, .22); color: inherit; border-radius: 4px; padding: 0 2px; }
.empty { display: none; padding: 28px; text-align: center; }
.empty.show { display: block; }
.empty b { display: block; font: 750 22px/1.2 var(--font-display); margin-bottom: 6px; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-side {
  padding: clamp(26px, 4vw, 44px); color: var(--on-dark-2); display: grid; gap: 16px; align-content: start;
  background: radial-gradient(70% 60% at 0% 0%, rgba(255, 94, 87, .3), transparent 70%), linear-gradient(160deg, var(--dusk), var(--midnight));
}
.contact-side h2 { margin: 0; color: var(--on-dark); font: 800 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -.03em; }
.contact-side p { margin: 0; }
.contact-side a { color: var(--on-dark); font-weight: 700; }
.contact-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.contact-side li { display: flex; gap: 10px; }
.contact-side li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); }
.contact-form { padding: clamp(26px, 4vw, 44px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; }
.field select, .field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid rgba(var(--shadow-ink), .12);
  background: var(--haze); font: 500 16px/1.4 var(--font-ui); color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field select:focus, .field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--peri); box-shadow: 0 0 0 4px rgba(124, 140, 255, .2); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; margin: 0; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--haze); color: var(--ink-2); border: 1.5px solid transparent; transition: all .15s ease;
}
.seg input:checked + span { background: #fff; color: var(--ink); border-color: var(--peri); }
.seg input:focus-visible + span { outline: 3px solid var(--peri-ink); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-foot small { color: var(--ink-3); font-size: 13px; max-width: 40ch; }

/* Scroll-in reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .topic, .btn, .qa summary::after { transition: none; }
}

/* Jig, the mascot */
.hero-jig { width: 104px; height: auto; margin-bottom: -6px; filter: drop-shadow(0 12px 14px rgba(21, 19, 58, .22)); }
.empty img { width: 88px; height: auto; margin-bottom: 8px; }
.contact-jig { width: 92px; height: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); }
.demo-jig {
  position: absolute; right: 3%; bottom: 8px; z-index: 2; width: 17%; height: auto; pointer-events: none;
  transform: translateY(140%) scale(.6); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .9, .3, 1.4), opacity .3s ease;
  filter: drop-shadow(0 12px 14px rgba(21, 19, 58, .3));
}
.demo-jig.show { transform: none; opacity: 1; }
@media (max-width: 560px) { .hero-jig { width: 84px; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 30px rgba(var(--shadow-ink), .3); transition: all .3s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Single-card pages: invite fallback and 404 ---------- */
.solo-hero .page-hero-inner { max-width: 720px; text-align: center; justify-items: center; }
.solo-hero { padding-bottom: 150px; }
.solo-hero .page-lede { text-wrap: balance; }
.solo { max-width: 560px; margin: -40px auto 96px; padding: 0 var(--gutter); position: relative; z-index: 1; }
.solo-card { padding: 34px clamp(22px, 5vw, 40px) 30px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.solo-jig { width: 112px; height: auto; margin-top: -96px; filter: drop-shadow(0 14px 16px rgba(var(--shadow-ink), .25)); }
.invite-code {
  display: grid; gap: 4px; padding: 12px 22px 14px; border-radius: 16px;
  background: var(--haze); box-shadow: inset 0 0 0 1.5px rgba(124, 140, 255, .35);
}
.invite-code[hidden] { display: none; }
.invite-code small { font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.invite-code b { font: 800 26px/1.1 var(--font-display); letter-spacing: .06em; color: var(--ink); word-break: break-all; }
.join-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; text-align: left; width: 100%; }
.join-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; color: var(--ink-2); font-size: 17px; line-height: 1.4; }
.join-steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); color: var(--ink); font: 800 16px/1 var(--font-display);
}
.join-steps b { color: var(--ink); }
.solo-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.solo-note { margin: 0; color: var(--ink-3); font-size: 14px; }

/* ---------- Press kit ---------- */
.press-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; }
.copy-block { padding: 14px 18px; border-radius: 14px; background: var(--haze); color: var(--ink) !important; max-width: none !important; }
.press-gallery, .press-logos { display: grid; gap: 14px; margin: 18px 0 8px; }
.press-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.press-logos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.press-tile {
  display: grid; justify-items: center; gap: 4px; padding: 18px 12px 14px; border-radius: 18px;
  background: var(--haze); text-decoration: none; color: var(--ink) !important;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s;
}
.press-tile:hover, .press-tile:focus-visible { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 0 0 2.5px var(--coral), 0 14px 28px rgba(var(--shadow-ink), .14); }
.press-tile img { width: 96px; height: 100px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 8px 10px rgba(var(--shadow-ink), .2)); }
.press-logos .press-tile img { width: 100%; height: 72px; filter: none; }
.press-logos .press-tile img.icon { width: 72px; border-radius: 17px; }
.press-tile.dark { background: var(--midnight); color: var(--on-dark) !important; }
.press-tile.dark small { color: var(--on-dark-2); }
.press-tile span { font-weight: 700; }
.press-tile small { font-size: 12px; color: var(--ink-3); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-top: 14px; }
.swatch { display: grid; gap: 2px; font-size: 14px; }
.swatch i { height: 64px; border-radius: 14px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(var(--shadow-ink), .1); }
.swatch code { font: 600 13px/1.3 ui-monospace, Menlo, monospace; color: var(--ink-2); }
.swatch small { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .press-tile { transition: none; } }
