/* Solo Shuffle — shared styles for every page.
   Colours, type and card styles mirror the app (mobile/src/lib/theme.ts). */

:root {
  --ink: #1E1033;
  --paper: #F3EDFF;
  --muted: #65577F;
  --body: #3A2C52;
  --white: #FFFFFF;
  --hairline: rgba(30, 16, 51, 0.14);
  --blue: #1F6FEB;
  --hot: #5B3DF5;
  --accept: #3FCB7A;
  --pass: #E8453A;
  --danger: #D13A2F;
  --spark: #F5B800;
  --hot-glow: radial-gradient(ellipse 120% 70% at 50% 0%, rgba(190, 170, 255, 0.6), rgba(190, 170, 255, 0) 70%);
  --wild: linear-gradient(135deg, #FFC8F0 0%, #BDE9FF 34%, #FFF4B0 66%, #D8C8FF 100%);
  --accept-fill: linear-gradient(180deg, rgba(96, 226, 152, 0.96), rgba(56, 192, 113, 0.96));

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1312px;
  --shadow-card: 0 30px 50px -20px rgba(30, 16, 51, 0.55);
  --shadow-soft: 0 8px 24px -12px rgba(30, 16, 51, 0.25);
  --shadow-glass: inset 0 1px 1px #fff, 0 12px 26px -12px rgba(30, 16, 51, 0.35);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--spark); color: var(--ink); }

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

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.spark { flex-shrink: 0; }

/* ---------- type ---------- */
.display, .h2, .h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h1 { font-size: clamp(76px, 10vw, 136px); line-height: .9; letter-spacing: -0.045em; }
.h2 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; }
.h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--muted); }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Words split by site.js for the rise-in. */
.w { display: inline-block; }
.split .w { overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > i { display: inline-block; font-style: normal; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(243, 237, 255, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; transition: height .3s; }
.nav.scrolled .wrap { height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo img { width: 40px; height: 40px; border-radius: 11px; transition: transform .5s var(--ease-back); }
.logo:hover img { transform: rotate(-10deg) scale(1.06); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 20px;
  background: var(--ink); color: #fff;
  transition: transform .25s var(--ease-back), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(30, 16, 51, .6); }
.btn:active { transform: translateY(0) scale(.97); }

/* ---------- store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px 13px 18px; border-radius: 16px; text-decoration: none;
  background: var(--ink); color: #fff;
  transition: transform .25s var(--ease-back), box-shadow .25s;
}
.store:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 14px 24px -12px rgba(30, 16, 51, .55); }
.store.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.store.light:hover { box-shadow: inset 0 0 0 1px var(--hairline), 0 14px 24px -12px rgba(30, 16, 51, .35); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 500; opacity: .75; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- cards (shared by hero deck and "the deck" section) ---------- */
.card {
  --bg: var(--blue); --fg: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  width: 100%; aspect-ratio: 3 / 4;
  padding: clamp(22px, 2.3vw, 32px);
  border-radius: clamp(28px, 2.6vw, 36px);
  background: var(--bg); color: var(--fg);
  box-shadow: var(--shadow-card);
}
.card-tag { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; position: relative; z-index: 1; }
.card-tag svg { width: 22px; height: 22px; }
.card-text { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.25vw, 32px); line-height: 1.12; letter-spacing: -0.02em; position: relative; z-index: 1; text-wrap: pretty; }
.card-why { position: relative; z-index: 1; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); font-size: 15px; line-height: 1.4; opacity: .92; }
.card-why b { font-weight: 600; }
.card-mark { position: absolute; right: -14%; bottom: -10%; width: 62%; height: auto; opacity: .12; pointer-events: none; }
.card.hot { --bg: var(--hot); background-image: var(--hot-glow); }
.card.wild { --bg: #D8C8FF; --fg: var(--ink); background-image: var(--wild); }
.answer { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 20px; background: #fff; color: var(--ink); }
.answer small { font-size: 13px; color: var(--muted); }
.answer span { font-size: 17px; line-height: 1.4; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 72px; min-height: min(780px, calc(100svh - 96px)); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft); font-weight: 500; font-size: 15px; }
.pill .spark { width: 18px; height: 18px; animation: twinkle 3.2s ease-in-out infinite; }
.hero .lede { max-width: 24em; }

.deck { position: relative; width: 100%; max-width: 600px; aspect-ratio: 600 / 640; justify-self: end; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.deck-stack { position: absolute; left: 20%; top: 8.75%; width: 60%; aspect-ratio: 3 / 4; }
.deck-stack { container-type: inline-size; }
.deck .card-text { font-size: clamp(18px, 8.4cqi, 31px); }
.deck .card-why { font-size: clamp(12px, 4.1cqi, 15px); padding-top: 3.6cqi; }
.deck .card-tag { font-size: clamp(14px, 4.7cqi, 17px); }
.deck .card { padding: 8.4cqi; border-radius: 10cqi; gap: 4cqi; }
.deck .card { position: absolute; inset: 0; height: 100%; transform-origin: 50% 85%; transition: transform .55s var(--ease-out), opacity .4s, box-shadow .4s; will-change: transform; }
.deck .card[data-pos="0"] { z-index: 3; transform: rotate(-2deg); cursor: grab; }
.deck .card[data-pos="1"] { z-index: 2; transform: translate(-6%, 3%) rotate(-8deg); box-shadow: 0 18px 32px -14px rgba(30, 16, 51, .5); }
.deck .card[data-pos="2"] { z-index: 1; transform: translate(9%, -1%) rotate(8deg); box-shadow: 0 18px 32px -14px rgba(30, 16, 51, .5); }
.deck .card > .card-tag, .deck .card > .card-text, .deck .card > .card-why { transition: opacity .3s .15s; }
.deck .card:is([data-pos="1"], [data-pos="2"]) > :is(.card-tag, .card-text, .card-why, .card-mark) { opacity: 0; transition: opacity .3s; }
.deck .card.dragging { transition: none; cursor: grabbing; }
.deck .card.entering { opacity: 0; transform: translate(9%, 4%) rotate(14deg) scale(.92); }
.stamp {
  position: absolute; top: 26px; z-index: 4; padding: 6px 14px; border-radius: 12px;
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; text-transform: uppercase;
  border: 3px solid currentColor; background: rgba(255, 255, 255, .92);
  opacity: 0; pointer-events: none;
}
.stamp.yes { left: 22px; color: #1E9E57; transform: rotate(-12deg); }
.stamp.no { right: 22px; color: var(--pass); transform: rotate(12deg); }

.deck-actions { position: absolute; left: 18.3%; right: 18.3%; bottom: 0; display: flex; gap: 14px; z-index: 5; }
.swipe-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 17px; color: var(--ink);
  background: rgba(255, 255, 255, .88); box-shadow: var(--shadow-glass);
  transition: transform .2s var(--ease-back);
}
.swipe-btn.yes { background: var(--accept-fill); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 12px 26px -12px rgba(30, 16, 51, .35); }
.swipe-btn:hover { transform: translateY(-2px) scale(1.02); }
.swipe-btn:active { transform: scale(.95); }
.swipe-btn svg { width: 20px; height: 20px; }

.sticker {
  position: absolute; right: 2%; top: 3%; z-index: 6;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; transform: rotate(6deg);
  font-family: var(--display); font-weight: 700; font-size: 18px;
  box-shadow: 0 12px 24px -12px rgba(30, 16, 51, .6);
  animation: nudge 2.8s var(--ease-out) infinite;
  transition: opacity .4s, transform .4s;
}
.sticker svg { width: 18px; height: 18px; }
.sticker.gone { opacity: 0; transform: rotate(14deg) scale(.8); animation: none; }
@keyframes nudge { 0%, 70%, 100% { transform: rotate(6deg) translateX(0); } 80% { transform: rotate(8deg) translateX(6px); } 90% { transform: rotate(5deg) translateX(-2px); } }
.deck > .spark { position: absolute; left: 12%; top: 66%; width: 9%; z-index: 4; animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.78) rotate(18deg); } }
.toast {
  position: absolute; left: 50%; bottom: 76px; z-index: 7;
  max-width: 92%; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; line-height: 1.35; text-align: center;
  box-shadow: 0 12px 24px -12px rgba(30, 16, 51, .6);
  opacity: 0; transform: translate(-50%, 10px) scale(.96); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-back);
}
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast:empty { display: none; }
.bit { position: absolute; z-index: 8; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; }
.gsap-busy { transition: none !important; }

/* Scripted states: only applied once home.js has run, so the static page shows the finished state. */
.js-bar .bar i { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .35s; }
.js-bar .bar i.fill { transform: none; }
.js-todo .unlock { opacity: 0; transform: rotate(-3deg) scale(.6); transition: opacity .3s, transform .5s var(--ease-back); }
.js-todo .unlock.on { opacity: 1; transform: rotate(-3deg) scale(1); }

/* ---------- marquee ---------- */
.marquee { position: relative; height: 120px; margin-top: -8px; overflow: hidden; }
.marquee-band { position: absolute; left: -4%; right: -4%; top: 26px; height: 68px; background: var(--ink); transform: rotate(-1.5deg); display: flex; align-items: center; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 28px; padding-left: 28px; white-space: nowrap; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; color: #fff; }
.marquee-track svg { width: 18px; height: 18px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- how it works ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.how-head .h2 { max-width: 880px; }
.how-head p { max-width: 340px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 28px; }
.step-visual { position: relative; height: 300px; border-radius: 32px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.step-copy { display: flex; flex-direction: column; gap: 10px; padding-inline: 8px; }
.step-copy .num { font-weight: 600; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.step-copy p { color: var(--muted); line-height: 1.55; }

.chips { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 18px; transition: transform .35s var(--ease-back), background-color .25s, color .25s; cursor: default; }
.chip .spark { width: 16px; height: 16px; }
.chip.on { background: var(--ink); color: #fff; }
.chip:nth-child(1) { transform: rotate(-4deg); }
.chip:nth-child(2) { transform: rotate(3deg); }
.chip:nth-child(3) { transform: rotate(-2deg); }
.chip:nth-child(4) { transform: rotate(4deg); }
.step:hover .chip:nth-child(odd) { transform: rotate(-7deg) scale(1.04); }
.step:hover .chip:nth-child(even) { transform: rotate(6deg) scale(1.04); }

.mini { position: absolute; width: 170px; height: 220px; border-radius: 22px; }
.mini.a { background: var(--wild); transform: translate(-28px, 4px) rotate(-6deg); }
.mini.b { background: #00897B; color: #fff; padding: 20px; display: flex; align-items: flex-end; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; transform: translate(26px, -4px) rotate(12deg); box-shadow: 0 18px 32px -14px rgba(30, 16, 51, .5); transition: transform .6s var(--ease-back); }
.step:hover .mini.b { transform: translate(64px, -14px) rotate(20deg); }
.tag-yes { position: absolute; left: 50%; top: 30px; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--accept); font-family: var(--display); font-weight: 700; font-size: 17px; transform: translateX(30px) rotate(14deg); box-shadow: 0 10px 20px -10px rgba(30, 16, 51, .5); transition: transform .6s var(--ease-back); }
.step:hover .tag-yes { transform: translateX(62px) translateY(-6px) rotate(18deg); }
.tag-yes svg { width: 16px; height: 16px; }

.todo { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-inline: 36px; }
.todo-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--paper); font-weight: 500; font-size: 16px; }
.tick { width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(30, 16, 51, .25); display: grid; place-items: center; transition: background-color .3s, box-shadow .3s; }
.tick svg { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .4s var(--ease-back); }
.todo-row.done .tick { background: var(--accept); box-shadow: none; }
.todo-row.done .tick svg { opacity: 1; transform: scale(1); }
.todo-row .txt { position: relative; }
.todo-row .txt::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: rgba(30, 16, 51, .45); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out) .1s; }
.todo-row.done .txt::after { transform: scaleX(1); }
.unlock { align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; transform: rotate(-3deg); }
.unlock .spark { width: 20px; height: 20px; }
.unlock span { display: flex; flex-direction: column; line-height: 1.2; }
.unlock small { font-size: 12px; opacity: .75; }
.unlock b { font-family: var(--display); font-weight: 700; font-size: 18px; }

/* ---------- the deck (dark) ---------- */
.dark { background: var(--ink) radial-gradient(ellipse 70% 50% at 50% 0%, rgba(140, 110, 255, .45), rgba(140, 110, 255, 0) 70%); color: #fff; }
.types-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 72px; }
.types-head .eyebrow { color: var(--spark); }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.type { display: flex; flex-direction: column; gap: 32px; }
.type:nth-child(2) { padding-top: 48px; }
.type .card { aspect-ratio: auto; height: 440px; transition: transform .6s var(--ease-back); }
.type:nth-child(1) .card { transform: rotate(-3deg); }
.type:nth-child(2) .card { transform: rotate(2deg); }
.type:nth-child(3) .card { transform: rotate(-2deg); }
.type:hover .card { transform: rotate(0) translateY(-10px) scale(1.02); }
.type-copy { display: flex; flex-direction: column; gap: 8px; padding-inline: 8px; }
.type-copy p { color: rgba(255, 255, 255, .78); line-height: 1.55; }

/* ---------- titles ---------- */
.titles .wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 560px); justify-content: space-between; align-items: center; gap: 80px; }
.titles-copy { display: flex; flex-direction: column; gap: 24px; }
.titles-copy p { max-width: 460px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.ladder { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rank { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-radius: 20px; }
.rank .n { width: 56px; flex-shrink: 0; font-weight: 600; font-size: 15px; color: var(--muted); }
.rank .name { flex: 1; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.rank .end { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; }
.rank.done { background: #fff; }
.rank.done .end { border-radius: 999px; background: var(--accept); }
.rank.done .end svg { width: 16px; height: 16px; }
.rank.locked { box-shadow: inset 0 0 0 1.5px var(--hairline); }
.rank.locked .name { color: var(--muted); }
.rank.locked .end svg { width: 18px; height: 18px; }
.rank.current { flex-wrap: wrap; row-gap: 16px; padding: 24px; border-radius: 24px; background: var(--ink); color: #fff; transform: rotate(-1.5deg); box-shadow: 0 24px 40px -20px rgba(30, 16, 51, .6); }
.rank.current .n { color: rgba(255, 255, 255, .72); }
.rank.current .name { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.rank.current .end svg { width: 30px; height: 30px; animation: twinkle 3s ease-in-out infinite; }
.bar-row { flex-basis: 100%; display: flex; align-items: center; gap: 20px; padding-left: 76px; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar i { display: block; height: 100%; width: 66%; border-radius: inherit; background: var(--spark); transform-origin: left; }
.bar-row small { width: 30px; text-align: right; font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ---------- privacy panel ---------- */
.panel { display: flex; flex-direction: column; gap: 56px; padding: clamp(32px, 5vw, 72px); border-radius: clamp(32px, 3vw, 44px); background: #fff; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.panel-head .h2 { font-size: clamp(40px, 5vw, 72px); max-width: 760px; }
.link { color: var(--blue); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.link:hover { text-decoration-thickness: 3px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 40px; border-top: 1px solid var(--hairline); list-style: none; margin: 0; padding-left: 0; }
.points li { display: flex; flex-direction: column; gap: 12px; }
.points svg { width: 28px; height: 28px; }
.points h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.points p { color: var(--muted); line-height: 1.55; }

/* ---------- final cta ---------- */
.cta { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; padding-top: 40px; padding-bottom: clamp(96px, 11vw, 160px); }
.fan { position: relative; width: 300px; height: 190px; }
.fan i { position: absolute; top: 20px; width: 120px; height: 160px; border-radius: 18px; box-shadow: 0 14px 24px -12px rgba(30, 16, 51, .5); transform-origin: 50% 100%; transition: transform .7s var(--ease-back); }
.fan i:nth-child(1) { left: 90px; background: #FFA629; transform: rotate(-16deg); }
.fan i:nth-child(2) { left: 90px; background: var(--accept); transform: rotate(16deg); }
.fan i:nth-child(3) { left: 90px; top: 6px; background: var(--blue); transform: rotate(-2deg); display: grid; place-items: center; }
.fan i:nth-child(3) svg { width: 44px; height: 44px; }
.cta:hover .fan i:nth-child(1) { transform: rotate(-28deg) translateX(-12px); }
.cta:hover .fan i:nth-child(2) { transform: rotate(28deg) translateX(12px); }
.cta:hover .fan i:nth-child(3) { transform: rotate(0) translateY(-14px); }
.cta .h1 { font-size: clamp(64px, 9.5vw, 136px); }
.cta .lede { max-width: 680px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hairline); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 32px 40px; }
.foot small { font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot a { text-decoration: none; font-weight: 500; font-size: 15px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- inner pages ---------- */
.page { display: grid; gap: 96px; padding-top: 72px; padding-bottom: 120px; }
.page.split-2 { grid-template-columns: 440px minmax(0, 1fr); align-items: start; }
.page-intro { display: flex; flex-direction: column; gap: 24px; }
.page-intro.sticky { position: sticky; top: 112px; }
.page-intro .h1 { font-size: clamp(64px, 7vw, 96px); line-height: .94; }
.page-intro p { font-size: 19px; line-height: 1.5; color: var(--muted); }

.mail-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--ink); color: #fff; }
.mail-card small { font-size: 14px; opacity: .72; }
.mail-card a { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
.mail-card a:hover { text-decoration: underline; text-underline-offset: 5px; }
.copy { align-self: flex-start; margin-top: 4px; border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .2s; }
.copy:hover { background: rgba(255, 255, 255, .24); }

.faqs { display: flex; flex-direction: column; }
.faq { border-bottom: 1px solid var(--hairline); transition: background-color .3s, border-color .3s; }
.faq[open] { background: #fff; border-color: transparent; border-radius: 24px; margin-bottom: 8px; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 20px; padding: 28px 32px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { flex: 1; }
.pm { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(30, 16, 51, .2); display: grid; place-items: center; transition: background-color .3s, box-shadow .3s; }
.pm svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.pm .v { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease-out); }
.faq[open] .pm { background: var(--ink); box-shadow: none; color: #fff; }
.faq[open] .pm .v { transform: scaleY(0); }
.faq-body { padding: 0 32px 28px; max-width: 680px; color: var(--muted); line-height: 1.6; }
.faq-body p + p { margin-top: 12px; }
.faq-body b { color: var(--ink); font-weight: 600; }

.steps-list { display: flex; flex-direction: column; gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.opt { display: flex; gap: 32px; padding: 36px; border-radius: 28px; background: #fff; }
.opt .n { width: 48px; flex-shrink: 0; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.opt > div { display: flex; flex-direction: column; gap: 14px; }
.opt h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.opt p { color: var(--muted); line-height: 1.6; }
.opt b { color: var(--ink); font-weight: 600; }
.path { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.path .av { width: 40px; height: 40px; border-radius: 999px; background: var(--paper); display: grid; place-items: center; font-weight: 600; }
.path svg { width: 18px; height: 18px; color: var(--muted); }
.path .row { padding: 10px 16px; border-radius: 12px; background: var(--paper); color: var(--danger); font-weight: 500; }
.opt.note { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hairline); padding-block: 28px; }
.opt.note .n svg { width: 28px; height: 28px; color: var(--ink); }
.opt.note p { margin: 0; }

/* legal */
.legal { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 96px; padding-top: 72px; padding-bottom: 120px; }
.toc { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc .eyebrow { font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 14px; text-decoration: none; color: var(--muted); font-size: 16px; line-height: 1.5; box-shadow: inset 2px 0 0 var(--hairline); transition: color .2s, box-shadow .3s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue); }
.toc-m { display: none; }
.prose { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.prose header { display: flex; flex-direction: column; gap: 16px; }
.prose header .h1 { font-size: clamp(56px, 6.4vw, 88px); line-height: .95; }
.prose .dates { color: var(--muted); font-size: 16px; }
.short { display: flex; flex-direction: column; gap: 14px; padding: 32px 36px; border-radius: 28px; background: #fff; }
.short h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.short ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.short li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.6; }
.short li svg { width: 18px; height: 18px; margin-top: 5px; flex-shrink: 0; }
.prose section { display: flex; flex-direction: column; gap: 14px; }
.prose section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
.prose section p, .prose section li { font-size: 18px; line-height: 1.7; color: var(--body); }
.prose section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose section a { color: var(--blue); text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.table { overflow-x: auto; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--hairline); line-height: 1.5; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table td:first-child { font-weight: 600; white-space: nowrap; color: var(--ink); }
.table td { color: var(--body); }

.e404 { min-height: 70svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }

/* ---------- reveals (classes added by site.js, so no-JS shows everything) ---------- */
.rv { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; translate: none; }
.split.rv { opacity: 1; translate: none; }
.split.rv .w > i { transform: translateY(105%) rotate(4deg); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.split.rv.in .w > i { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .type .card { height: 400px; }
  .titles .wrap { grid-template-columns: 1fr; gap: 48px; }
  .page.split-2 { grid-template-columns: 1fr; gap: 48px; }
  .page-intro.sticky { position: static; }
  .legal { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 860px) {
  .nav .wrap { height: 72px; }
  .nav-links a:not(.btn) { display: none; }
  .logo { font-size: 19px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 16px; padding-bottom: 40px; }
  .hero-copy { gap: 22px; }
  .deck { justify-self: center; max-width: 420px; aspect-ratio: 0.8; }
  .deck-stack { left: 15%; width: 70%; top: 5%; }
  .deck-actions { left: 6%; right: 6%; }
  .toast { bottom: 70px; }
  .how-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .step { gap: 20px; }
  .step-visual { height: 260px; border-radius: 28px; }
  .mini { width: 150px; height: 196px; }
  .types-head { margin-bottom: 40px; }
  .types {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 24px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .types::-webkit-scrollbar { display: none; }
  .type { flex: 0 0 min(82vw, 320px); scroll-snap-align: start; gap: 24px; }
  .type:nth-child(2) { padding-top: 0; }
  .type .card { height: 400px; }
  .swipe-hint { display: flex; }
  .rank { padding: 15px 18px; gap: 14px; }
  .rank .n { width: 36px; }
  .rank .name { font-size: 20px; }
  .rank.current { padding: 20px 18px; }
  .rank.current .name { font-size: 26px; }
  .bar-row { padding-left: 50px; gap: 14px; }
  .panel { gap: 32px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .points { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .points h3 { font-size: 22px; }
  .cta { gap: 28px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .legal { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .toc { display: none; }
  .toc-m { display: block; position: sticky; top: 72px; z-index: 10; }
  .toc-m summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); font-weight: 600; cursor: pointer; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m nav { display: flex; flex-direction: column; margin-top: 8px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
  .toc-m nav a { padding: 10px 12px; text-decoration: none; border-radius: 10px; }
  .toc-m nav a:hover { background: var(--paper); }
  .page { padding-top: 40px; padding-bottom: 80px; }
  .opt { flex-direction: column; gap: 12px; padding: 28px 24px; }
  .opt h2 { font-size: 26px; }
  .faq summary { padding: 22px 20px; }
  .faq-body { padding: 0 20px 22px; }
  .short { padding: 26px 24px; }
  .prose section p, .prose section li { font-size: 17px; }
}

@media (max-width: 420px) {
  .store { padding: 11px 14px 11px 12px; gap: 9px; }
  .store b { font-size: 16px; }
  .store svg { width: 22px; height: 22px; }
  .deck-actions { left: 2%; right: 2%; }
  .swipe-btn { height: 54px; }
  .sticker { font-size: 15px; padding: 8px 12px; }
}

.swipe-hint { display: none; justify-content: center; gap: 8px; margin-top: 12px; }
.swipe-hint i { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: background-color .3s, width .3s; }
.swipe-hint i.on { width: 22px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; translate: none; }
  .split.rv .w > i { transform: none; }
  .marquee-track { animation: none; }
}
