/* =========================================================
   Karo Help — design system v2
   Flat brights, ink outlines, editorial type.
   Motion rules: transform & opacity only, reduced-motion safe.
   ========================================================= */
:root {
  --ink: #111118;
  --ink-2: #34333d;
  --muted: #5d5b68;
  --paper: #fffaf0;
  --white: #ffffff;
  --hair: #e8e0cf;
  --blue: #e5173f;
  --orange: #ff5a1f;
  --lemon: #ffe03a;
  --pink: #ff9ecb;
  --mint: #17d6a0;
  --lilac: #b9a7ff;
  /* legacy aliases used by inline styles */
  --cream: var(--paper); --coral: var(--orange); --sun: var(--lemon); --violet: var(--blue);
  --line: var(--hair); --grad: var(--orange); --sky: #ffe1e6;
  --bw: 2px;
  --radius: 20px;
  --radius-lg: 32px;
  --hs: 6px 6px 0 var(--ink);
  --hs-lg: 10px 10px 0 var(--ink);
  --shadow-sm: 0 1px 0 var(--ink);
  --shadow: var(--hs);
  --shadow-lg: var(--hs-lg);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1; letter-spacing: -.035em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
::selection { background: var(--lemon); color: var(--ink); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic-svg { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }

/* accent word: serif italic with a hand-drawn underline */
.grad-text {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  color: var(--accent, var(--orange)); position: relative; white-space: nowrap; padding-right: .06em;
}
.grad-text::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.04em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c30-6 62-7 96-4 30 2 62 5 100-1' fill='none' stroke='%23111118' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .5s;
}
.in .grad-text::after, .split .grad-text::after, .grad-text.in::after { transform: none; }
.on-dark .grad-text::after, .band .grad-text::after, .hero .grad-text::after { filter: invert(1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; background: var(--white); border: var(--bw) solid var(--ink); color: var(--ink);
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 1.5px solid var(--ink); animation: blinkdot 1.6s steps(2) infinite; }
@keyframes blinkdot { 50% { opacity: .25; } }
.section { padding: clamp(64px, 10vw, 130px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.12rem; max-width: 560px; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }
.cv { content-visibility: auto; contain-intrinsic-size: 1px 900px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--bg); color: var(--fg);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--sh, var(--ink)); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn:not(.btn-grad):not(.btn-ghost):hover { --sh: var(--orange); }
.btn-grad { --bg: var(--orange); --fg: var(--ink); }
.btn-ghost { --bg: var(--white); --fg: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--paper); }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.site-header.scrolled::after { transform: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; text-decoration: none; letter-spacing: -.04em; }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--orange); border: var(--bw) solid var(--ink); display: grid; place-items: center; color: var(--ink); transition: transform .6s var(--ease-spring), background-color .3s; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo:hover .logo-mark { transform: scale(1.08) rotate(-6deg); background: var(--lemon); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: none; transform-origin: left; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--lemon); }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .3s var(--ease), opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0; background: var(--lemon); padding: 24px 16px; display: flex; flex-direction: column; gap: 2px; transform: translateY(-16px); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s; z-index: 49; }
.mobile-nav a { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; padding: 8px 0; border-bottom: 2px solid var(--ink); }
.menu-open .mobile-nav { transform: none; opacity: 1; pointer-events: auto; }
@media (max-width: 900px) { .nav, .header-actions .hide-m { display: none; } .menu-btn { display: block; } }

/* ---------- Reveal on scroll ---------- */
html .reveal:not(.done) { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html .reveal.in:not(.done) { opacity: 1; transform: none; }
html .reveal-scale:not(.done) { opacity: 0; transform: scale(.9) rotate(-1.5deg); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html .reveal-scale.in:not(.done) { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .12em; margin: -.08em -.04em -.12em; }
.split .w > span { display: inline-block; transform: translateY(115%) rotate(6deg); transform-origin: left bottom; animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 120ms); }
@keyframes wordUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; margin: 0; border-radius: 0; background: var(--blue); color: #fff; padding: clamp(40px, 6vw, 80px) 0 0; overflow: clip; --accent: var(--lemon); }
.hero-copy { text-align: center; max-width: 1040px; margin: 0 auto; position: relative; }
.hero h1 { font-size: clamp(3.1rem, 10.5vw, 9.2rem); line-height: .88; margin: 26px 0 0; }
.hero .eyebrow { background: transparent; border-color: #fff; color: #fff; }
.hero-copy .lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: #ffe6ea; max-width: 560px; margin: 28px auto 30px; opacity: 0; animation: fadeUp 1s var(--ease) .75s forwards; }
.hero-copy .lead b { color: #fff; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards; }
.hero-cta .btn:hover { --sh: var(--ink); }
.hero-cta .btn-grad { --bg: var(--lemon); }
.hero-note { margin-top: 18px; font-size: .88rem; color: #ffd0d7; opacity: 0; animation: fadeUp 1s var(--ease) 1.05s forwards; }
.sticker { position: absolute; width: clamp(92px, 12vw, 150px); aspect-ratio: 1; right: clamp(-6px, 2vw, 40px); top: clamp(-10px, 1vw, 10px); display: grid; place-items: center; transform: rotate(12deg); pointer-events: none; }
.sticker svg.spin { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.sticker .core { position: relative; z-index: 1; width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--white); border: var(--bw) solid var(--ink); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: clamp(.8rem, 1.5vw, 1.2rem); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 901px) { .sticker { top: 47%; right: 1%; } }
@media (max-width: 900px) { .sticker { display: none; } }

/* ---------- Hero story switcher ---------- */
.hero { background: var(--hbg, var(--blue)); color: var(--hfg, #fff); transition: background-color .7s var(--ease), color .35s; }
.hero .eyebrow { border-color: currentColor; color: inherit; }
.hero .grad-text::after { filter: invert(var(--inv, 1)); }
.hero h1 { transition: color .35s; }
.swap .clip { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .14em .12em .2em; margin: -.14em -.12em -.2em; }
.swap #heroWord { display: inline-block; will-change: transform; }
.scene-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; opacity: 0; animation: fadeUp 1s var(--ease) .6s forwards; }
.scene-chip { position: relative; overflow: hidden; isolation: isolate; border: var(--bw) solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; transition: transform .25s var(--ease-spring), background-color .3s, color .3s; }
.scene-chip:hover { transform: translateY(-2px) rotate(-2deg); }
.scene-chip[aria-selected="true"] { background: var(--hfg, #fff); color: var(--hbg, var(--blue)); border-color: var(--hfg, #fff); }
.scene-chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); opacity: .5; transform: scaleX(0); transform-origin: left; }
.scene-chips.auto .scene-chip[aria-selected="true"]::before { animation: chipfill 4.6s linear forwards; }
@keyframes chipfill { to { transform: scaleX(1); } }
.hero-copy .lead { color: inherit; max-width: 600px; min-height: 3.3em; margin: 22px auto 14px; }
.hero-stat { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 600; margin: 0 0 26px; opacity: 0; animation: fadeUp 1s var(--ease) .85s forwards; }
.hero-stat b { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -.03em; }
.hbar { width: min(200px, 36vw); height: 12px; border: var(--bw) solid currentColor; border-radius: 99px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease), background-color .4s; }
.hero-cta .btn-grad { --bg: var(--hbtn, var(--lemon)); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .5s; }
.hero-cta .btn:hover { --sh: var(--hsh, var(--ink)); }
.gift-pop { position: absolute; left: 50%; top: 0; z-index: 30; margin-left: -40px; background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 5px 14px; font-family: var(--font-head); font-weight: 800; box-shadow: 3px 3px 0 var(--ink); pointer-events: none; white-space: nowrap; }
.deck-card { cursor: pointer; }
@media (max-width: 700px) { .scene-chips { gap: 6px; } .scene-chip { padding: 7px 12px; font-size: .82rem; } .hero-copy .lead { min-height: 5em; } }

/* Hero base colour + real photo behind the cards */
.hero { --hbg: var(--ink); --hw: 100vw; --ph: max(calc(var(--hw) * .5625), 440px); }
.hero-copy { position: relative; z-index: 2; }
.hero .deck-stage, .hero .ticker { position: relative; z-index: 1; }
.hero .deck-stage { margin-top: calc(var(--ph) * .3 + 10px); }
/* the photo is placed so the people (60-90% of its height) stand in the band just above the cards */
.hero-photo { position: absolute; left: 0; width: 100%; height: var(--ph); top: calc(24px - var(--ph) * .9); z-index: 0; pointer-events: none; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: 0; transition: opacity 1.1s ease; transform: translateY(var(--py, 0%)); }
.hero-photo img.on { opacity: 1; }
.hero-photo::after { content: ""; position: absolute; inset: -3px 0;
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 22%, rgba(17,17,24,.9) 30%, rgba(17,17,24,.55) 48%, rgba(17,17,24,.12) 66%, rgba(17,17,24,.05) 88%, var(--ink) 100%); }
.hero .deck { z-index: 2; }

/* Fan deck */
.deck-stage { position: relative; height: clamp(360px, 50vw, 560px); margin-top: 44px; }
.deck { position: absolute; left: 50%; top: 0; width: 0; height: 100%; }
.deck-card {
  --x: 0px; --y: 0px; --r: 0deg; --s: 1;
  position: absolute; left: 0; top: 20px; width: clamp(180px, 22vw, 290px); aspect-ratio: 3/4;
  margin-left: calc(clamp(180px, 22vw, 290px) / -2);
  border-radius: 28px; overflow: hidden; background: var(--ink); border: var(--bw) solid var(--ink);
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(var(--s));
  will-change: transform; text-decoration: none; color: #fff;
}
.deck-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.deck-card:hover img { transform: scale(1.08); }
.deck-card .overlay { position: absolute; inset: auto 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(8, 8, 14, .88)); }
.deck-card .overlay strong { display: block; font-family: var(--font-head); font-size: 1.08rem; line-height: 1.15; letter-spacing: -.02em; }
.deck-card .overlay small { opacity: .85; }
.deck-card .mini-bar { height: 6px; border-radius: 9px; background: rgba(255,255,255,.28); margin-top: 10px; overflow: hidden; }
.deck-card .mini-bar i { display: block; height: 100%; background: var(--lemon); border-radius: inherit; }
.deck-card .chip { position: absolute; top: 12px; left: 12px; background: var(--lemon); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--ink); }
.float-badge { position: absolute; z-index: 15; background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: 4px 4px 0 var(--ink); display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; line-height: 1.25; animation: floaty 6s ease-in-out infinite; }
.float-badge small { color: var(--muted); font-weight: 500; }
.float-badge .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); }
.float-badge.fb1 { left: 5%; top: 34%; --rot: -5deg; }
.float-badge.fb2 { right: 5%; top: 14%; --rot: 4deg; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: rotate(var(--rot)) translateY(0); } 50% { transform: rotate(var(--rot)) translateY(-14px); } }
@media (max-width: 800px) { .float-badge { display: none; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--lemon); color: var(--ink); overflow: hidden; padding: 14px 0; border-block: var(--bw) solid var(--ink); transform: rotate(-1.4deg); margin: 30px -16px -8px; position: relative; z-index: 20; }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 12px; font-weight: 700; white-space: nowrap; }
.ticker-item b { background: var(--ink); color: var(--lemon); padding: 1px 9px; border-radius: 99px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--bw) solid var(--ink); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.stat { padding: clamp(20px, 3vw, 36px); border-right: var(--bw) solid var(--ink); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-bottom: 8px; }
.stat p { color: var(--muted); margin: 0; font-size: .95rem; }
.stat:nth-child(1) { background: var(--lemon); } .stat:nth-child(3) { background: var(--pink); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: var(--bw) solid var(--ink); } }

/* ---------- "How it works": a normal swipe slider (page scroll is never hijacked) ---------- */
.hscroll { padding: clamp(64px, 9vw, 110px) 0; }
.hscroll-sticky { display: flex; flex-direction: column; gap: clamp(18px, 3vw, 34px); }
.hscroll-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.hscroll-head h2 { margin: 12px 0 0; }
.hscroll-ctrl { display: flex; align-items: center; gap: 14px; }
.hscroll-count { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; white-space: nowrap; margin-right: 6px; }
.hscroll-count b { font-size: 2.4rem; letter-spacing: -.04em; }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; background: var(--white); }
.hscroll-track { display: flex; gap: 24px; padding: 6px max(16px, calc((100vw - 1200px) / 2)) 10px; scroll-padding-inline: max(16px, calc((100vw - 1200px) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab; }
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.h-panel { flex: none; scroll-snap-align: start; width: min(82vw, 900px); min-height: 440px; border-radius: 36px; border: var(--bw) solid var(--ink); background: var(--c, var(--white)); color: var(--fg, var(--ink)); padding: clamp(24px, 3.4vw, 48px); display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: stretch; overflow: hidden; }
.h-panel .txt { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.h-panel .big-n { font-family: var(--font-head); font-size: clamp(4rem, 9vw, 8rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; }
.h-panel h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0 0 12px; }
.h-panel p { font-size: 1.05rem; margin: 0; max-width: 38ch; }
.h-vis { border-radius: 24px; background: var(--white); border: var(--bw) solid var(--ink); color: var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; min-height: 200px; }
.hscroll-bar { height: 8px; border: var(--bw) solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--white); }
.hscroll-bar i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(.25); transition: transform .25s linear; }
@media (max-width: 800px) {
  .h-panel { width: 86vw; grid-template-columns: 1fr; min-height: 0; }
  .hscroll-count { display: none; }
}

/* back arrow link */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 8px 16px 8px 12px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--white); margin: 0 0 18px; transition: transform .25s var(--ease), box-shadow .25s, background-color .2s; }
.back-link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); background: var(--lemon); }
.back-link span { display: inline-block; transition: transform .3s var(--ease); }
.back-link:hover span { transform: translateX(-4px); }

/* small visuals */
.mock { width: min(240px, 80%); background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 22px; padding: 16px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-3deg); }
.mock .ln { height: 10px; border-radius: 6px; background: var(--hair); margin: 8px 0; }
.mock .ln.s { width: 60%; }
.mock .field { border: var(--bw) solid var(--ink); border-radius: 12px; padding: 10px 12px; font-weight: 800; margin: 10px 0; display: flex; gap: 6px; background: #fff; font-size: 1.2rem; }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--orange); margin-left: 2px; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.share-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 16px; }
.share-row span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--lemon)); border: var(--bw) solid var(--ink); animation: bob 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * .15s); }
.share-row svg { width: 24px; height: 24px; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(8deg); } }
.payout-flow { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .85rem; padding: 12px; }
.payout-flow .node { background: var(--paper); padding: 12px 14px; border-radius: 14px; border: var(--bw) solid var(--ink); text-align: center; display: grid; gap: 4px; justify-items: center; }
.payout-flow .node:last-child { background: var(--lemon); }
.payout-flow .pipe { width: 46px; height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); background-size: 28px 4px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 28px 0; } }
@media (max-width: 520px) { .payout-flow { gap: 5px; font-size: .72rem; } .payout-flow .node { padding: 9px 8px; } .payout-flow .pipe { width: 20px; } }
.h-vis .payout-flow { gap: 6px; font-size: .78rem; }
.h-vis .payout-flow .pipe { width: 24px; }
.h-vis .payout-flow .node { padding: 10px; }
.receipt { font-family: var(--font-head); text-align: center; padding: 20px; }
.receipt .raised-big { font-size: clamp(2.6rem, 5vw, 4rem); }
.stamp { display: inline-block; margin-top: 10px; border: 3px solid var(--mint); color: #0a8f6a; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 8px; transform: rotate(-6deg); font-size: .85rem; }

/* legacy static stack cards (trust page) */
.stack-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: 340px; padding: clamp(28px, 4vw, 56px); margin-bottom: 24px; border-radius: var(--radius-lg); background: var(--white); border: var(--bw) solid var(--ink); }
.stack-card:nth-child(1) { background: var(--lemon); } .stack-card:nth-child(2) { background: var(--pink); } .stack-card:nth-child(3) { background: var(--lilac); }
.stack-num { font-family: var(--font-head); font-size: 5rem; font-weight: 800; line-height: .9; letter-spacing: -.05em; margin-bottom: 14px; }
.stack-card p { color: var(--ink-2); font-size: 1.08rem; }
.stack-visual { border-radius: var(--radius); background: var(--white); border: var(--bw) solid var(--ink); min-height: 220px; position: relative; overflow: hidden; display: grid; place-items: center; }
@media (max-width: 800px) { .stack-card { grid-template-columns: 1fr; min-height: auto; } }

/* ---------- Fundraiser cards & rail ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { border: var(--bw) solid var(--ink); background: var(--white); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: background-color .2s, transform .25s var(--ease-spring); }
.filter:hover { transform: translateY(-2px) rotate(-2deg); background: var(--lemon); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rail-nav { display: flex; gap: 8px; }
.round-btn { width: 54px; height: 54px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--white); display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s; }
.round-btn:hover { background: var(--lemon); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 10px 30px 4px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging .f-card { pointer-events: none; }
.f-card { scroll-snap-align: start; background: var(--white); border-radius: 24px; overflow: hidden; border: var(--bw) solid var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.f-card:hover { transform: translate(-5px, -5px); box-shadow: 8px 8px 0 var(--ink); }
.f-card .img { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--hair); border-bottom: var(--bw) solid var(--ink); }
.f-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.f-card:hover .img img { transform: scale(1.07); }
.f-card .tag { position: absolute; top: 12px; left: 12px; background: var(--lemon); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); }
.f-card .verified { position: absolute; top: 12px; right: 12px; background: var(--mint); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); }
.f-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.f-card h3 { font-size: 1.2rem; margin: 0; }
.f-card .meta { font-size: .82rem; color: var(--muted); font-weight: 500; }
.progress { height: 12px; border-radius: 99px; background: var(--white); overflow: hidden; border: var(--bw) solid var(--ink); margin-top: auto; }
.progress i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.in .progress i, .progress.in i { transform: scaleX(var(--p)); }
.f-card .money { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.f-card .money b { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: -.02em; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }

/* cursor tag that follows the pointer over cards */
.cursor-tag { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 84px; height: 84px; margin: -42px 0 0 -42px; will-change: transform; }
.cursor-tag i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--lemon); border: var(--bw) solid var(--ink); font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: .95rem; transform: scale(0) rotate(-20deg); transition: transform .35s var(--ease-spring); }
.cursor-tag.on i { transform: scale(1) rotate(-8deg); }

/* ---------- Big outlined marquee ---------- */
.big-marquee { overflow: hidden; padding: 20px 0; border-block: var(--bw) solid var(--ink); background: var(--white); }
.big-track { display: flex; align-items: center; gap: .35em; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-head); font-weight: 800; font-size: clamp(3.4rem, 10vw, 8.5rem); letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.big-track .o { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.big-track .s { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: -.02em; }
.big-track svg { width: .5em; height: .5em; flex: none; color: var(--blue); animation: spin 8s linear infinite; }

/* pill marquee */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 55s linear infinite; padding: 10px 0; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 65s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.pill-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 8px 22px 8px 8px; text-decoration: none; min-width: 300px; transition: transform .3s var(--ease-spring), background-color .2s; }
.pill-card:hover { transform: scale(1.04) rotate(-1deg); background: var(--lemon); }
.pill-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--ink); }
.pill-card small { color: var(--muted); display: block; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; padding: 22px; min-height: 170px; border-radius: 24px; background: var(--c); border: var(--bw) solid var(--ink); text-decoration: none; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cat:hover { transform: translate(-4px, -4px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--ink); }
.cat .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: var(--bw) solid var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease-spring); }
.cat .ic svg { width: 24px; height: 24px; }
.cat:hover .ic { transform: scale(1.15) rotate(12deg); }
.cat strong { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -.03em; display: flex; justify-content: space-between; align-items: center; }
.cat strong::after { content: "→"; transition: transform .3s var(--ease); }
.cat:hover strong::after { transform: translateX(6px); }
@media (max-width: 800px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat { min-height: 140px; } }

/* ---------- Membership: swipeable perk stack ---------- */
.perks { background: var(--pink); border-block: var(--bw) solid var(--ink); }
.perks-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.perk-stack { position: relative; height: 440px; width: min(380px, 100%); margin: 0 auto 30px; touch-action: pan-y; user-select: none; }
.perk {
  --o: 0;
  position: absolute; inset: 0; border-radius: 32px; border: var(--bw) solid var(--ink); background: var(--c); color: var(--fg, var(--ink));
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between; cursor: grab;
  transform: translate3d(calc(var(--o) * 10px), calc(var(--o) * 14px), 0) rotate(calc(var(--o) * 2.5deg)) scale(calc(1 - var(--o) * .04));
  transition: transform .6s var(--ease); will-change: transform;
}
.perk.drag { transition: none; cursor: grabbing; }
.perk.fly { transition: transform .4s cubic-bezier(.5, 0, .8, .4); }
.perk .tagline { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.perk .tagline span { border: 1.5px solid currentColor; border-radius: 99px; padding: 4px 10px; }
.perk .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); display: grid; place-items: center; }
.perk .ic svg { width: 30px; height: 30px; }
.perk h3 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: .98; margin: 0 0 10px; }
.perk p { margin: 0; font-size: 1rem; }
.perk-hint { text-align: center; font-weight: 700; font-size: .85rem; display: flex; gap: 10px; justify-content: center; align-items: center; }
.perk-dots { display: flex; gap: 6px; }
.perk-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background-color .3s, transform .3s; }
.perk-dots i.on { background: var(--ink); transform: scale(1.3); }
.price-tags { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.price-tag { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 12px 18px; font-weight: 600; transform: rotate(var(--r, -2deg)); }
.price-tag b { font-family: var(--font-head); font-size: 1.8rem; letter-spacing: -.04em; display: block; line-height: 1; }
@media (max-width: 900px) { .perks-grid { grid-template-columns: 1fr; } .perk-stack { height: 400px; } }

/* ---------- Moments: family photos ---------- */
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 30px); align-items: start; }
.moment { margin: 0; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 24px; padding: 10px 10px 0; rotate: var(--r, 0deg); transition: transform .4s var(--ease), box-shadow .4s var(--ease), rotate .4s var(--ease); }
.moment:nth-child(2) { margin-top: 36px; }
.moment:hover { rotate: 0deg; transform: translate(-4px, -6px); box-shadow: 9px 9px 0 var(--ink); }
.moment img { width: 100%; height: auto; aspect-ratio: 9/7; object-fit: cover; border-radius: 16px; border: var(--bw) solid var(--ink); }
.moment figcaption { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; padding: 10px 6px 14px; text-align: center; }
@media (max-width: 800px) { .moment-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } .moment:nth-child(2) { margin-top: 0; } }

/* ---------- Ink band / trust ---------- */
.band { background: var(--ink); color: #fff; position: relative; --accent: var(--lemon); }
.band.round { border-radius: var(--radius-lg); }
.band p { color: #c9c8d6; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid #3a3a48; border-radius: 28px; overflow: hidden; }
.trust { padding: 30px; border-right: 1.5px solid #3a3a48; border-bottom: 1.5px solid #3a3a48; transition: background-color .3s, color .3s; }
.trust:nth-child(3n) { border-right: 0; } .trust:nth-last-child(-n+3) { border-bottom: 0; }
.trust:hover { background: var(--lemon); color: var(--ink); }
.trust:hover p, .trust:hover a { color: var(--ink) !important; }
.trust .ic { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; margin-bottom: 40px; }
.trust .ic svg { width: 22px; height: 22px; }
.trust h3 { font-size: 1.35rem; }
.trust p { margin: 0; font-size: .96rem; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; } .trust { border-right: 0 !important; border-bottom: 1.5px solid #3a3a48 !important; } .trust:last-child { border-bottom: 0 !important; } .trust .ic { margin-bottom: 18px; } }

/* ---------- Pricing ---------- */
.toggle { display: inline-flex; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 5px; position: relative; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 22px; border-radius: 999px; font-weight: 700; color: var(--ink); transition: color .3s; }
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }
.save { background: var(--mint); color: var(--ink); font-size: .72rem; padding: 2px 8px; border-radius: 99px; margin-left: 6px; border: 1.5px solid var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--white); border: var(--bw) solid var(--ink); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translate(-5px, -5px); box-shadow: 9px 9px 0 var(--ink); }
.plan.featured { background: var(--lemon); }
.plan .badge { position: absolute; top: -15px; right: 26px; background: var(--orange); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: var(--bw) solid var(--ink); transform: rotate(4deg); }
.plan h3 { font-size: 1.5rem; }
.plan .price { font-family: var(--font-head); font-size: 4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 500; font-family: var(--font-body); letter-spacing: 0; }
.plan.featured .price small, .plan.featured .desc { color: var(--ink-2); }
.plan .desc { color: var(--muted); margin: 0; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 11px; flex: 1; border-top: var(--bw) dashed var(--ink); align-content: start; }
.plan li { position: relative; padding-left: 30px; font-size: .95rem; line-height: 1.4; }
.plan li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.500 10.500l3 3 6-7' fill='none' stroke='%23111118' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.price-num { display: inline-block; transition: transform .35s var(--ease), opacity .25s; }
.price-num.flip { transform: translateY(-40%) rotate(-6deg); opacity: 0; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: var(--bw) solid var(--ink); }
.faq details { border-bottom: var(--bw) solid var(--ink); padding: 0 4px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: var(--bw) solid var(--ink); display: grid; place-items: center; font-family: var(--font-body); font-weight: 500; transition: transform .35s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lemon); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; max-width: 62ch; }

/* ---------- CTA ---------- */
.cta-box { background: var(--orange); border: var(--bw) solid var(--ink); border-radius: 40px; padding: clamp(44px, 8vw, 110px) clamp(20px, 5vw, 60px); color: var(--ink); text-align: center; position: relative; overflow: hidden; --accent: var(--white); }
.cta-box h2 { font-size: clamp(2.6rem, 8vw, 7rem); line-height: .9; margin-bottom: 24px; }
.cta-box .btn:hover { --sh: var(--lemon); }
.cta-box .ring { position: absolute; border: var(--bw) dashed var(--ink); border-radius: 50%; animation: spin 40s linear infinite; opacity: .35; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c8d6; padding: 70px 0 30px; }
.footer-word { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 19vw, 17rem); letter-spacing: -.07em; line-height: .8; color: var(--lemon); margin: 50px 0 0; user-select: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { text-decoration: none; display: block; padding: 4px 0; color: #c9c8d6; transition: color .2s, transform .25s var(--ease); }
.site-footer a:hover { color: var(--lemon); transform: translateX(4px); }
.site-footer .logo { color: #fff; }
.site-footer .logo:hover { transform: none; }
.footer-bottom { border-top: 1.5px solid #3a3a48; margin-top: 30px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a, .linklike { display: inline; padding: 0; background: none; border: 0; color: #c9c8d6; text-decoration: underline; font-size: inherit; }
.disclaimer { font-size: .78rem; color: #8d8c9c; margin-top: 18px; max-width: 900px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Cookie consent ---------- */
.cookie { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 500px; background: var(--white); border-radius: 24px; box-shadow: var(--hs); padding: 22px; border: var(--bw) solid var(--ink); transform: translateY(150%) rotate(-3deg); transition: transform .6s var(--ease); }
.cookie.show { transform: none; }
.cookie h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cookie p { font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .row .btn { flex: 1; padding: 11px 14px; font-size: .9rem; }
.cookie-prefs { display: none; margin: 4px 0 14px; gap: 10px; }
.cookie.prefs .cookie-prefs { display: grid; }
.pref { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: var(--bw) solid var(--ink); border-radius: 14px; font-size: .88rem; }
.pref small { display: block; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 99px; transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; top: 4px; left: 4px; background: var(--ink); border-radius: 50%; transition: transform .3s var(--ease-spring); }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 16px; bottom: 16px; z-index: 150; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 8px 20px 8px 8px; box-shadow: 4px 4px 0 var(--ink); display: flex; gap: 12px; align-items: center; max-width: 340px; transform: translateX(calc(-100% - 60px)) rotate(-4deg); transition: transform .6s var(--ease-spring); font-size: .88rem; line-height: 1.3; }
.toast.show { transform: none; }
.toast .av { width: 40px; height: 40px; border-radius: 50%; background: var(--pink); border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.toast small { color: var(--muted); display: block; }

/* ---------- Fundraiser page ---------- */
.f-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; padding: 32px 0 80px; }
.f-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--hair); border: var(--bw) solid var(--ink); }
.f-hero-img img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1%, -1%); } }
.f-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-top: 0; }
.org-row { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: var(--bw) solid var(--ink); margin-bottom: 20px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lilac); border: var(--bw) solid var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.payout-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--mint); border: var(--bw) solid var(--ink); font-size: .94rem; margin: 18px 0; }
.payout-note .ic-svg { width: 24px; height: 24px; margin-top: 1px; }
.donate-box { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--hs); border: var(--bw) solid var(--ink); }
.ring-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.ring-svg { width: 96px; height: 96px; transform: rotate(-90deg); flex: none; }
.ring-svg circle { fill: none; stroke-width: 11; }
.ring-svg .bg { stroke: var(--hair); }
.ring-svg .fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 2s var(--ease); }
.ring-pct { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.raised-big { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.donor-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.donor-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1.5px dashed var(--ink); font-size: .92rem; line-height: 1.3; animation: slideIn .6s var(--ease-spring); }
.donor-list .av { width: 36px; height: 36px; border-radius: 50%; background: var(--lemon); border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none; font-weight: 800; font-size: .85rem; }
.donor-list li:nth-child(2n) .av { background: var(--pink); } .donor-list li:nth-child(3n) .av { background: var(--lilac); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } }
.story { font-size: 1.1rem; color: var(--ink-2); }
.updates { display: grid; gap: 12px; margin-top: 20px; }
.update { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 18px; }
.update small { color: var(--muted); }
.mobile-donate { display: none; }
@media (max-width: 900px) {
  .f-layout { grid-template-columns: 1fr; }
  .donate-box { position: static; }
  .mobile-donate { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; gap: 10px; }
  .mobile-donate .btn { flex: 1; box-shadow: 4px 4px 0 var(--ink); }
}

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(17, 17, 24, .55); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .4s; }
.sheet { position: fixed; z-index: 301; left: 50%; bottom: 0; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: var(--paper); border: var(--bw) solid var(--ink); border-bottom: 0; border-radius: 32px 32px 0 0; padding: 14px 26px 30px; transform: translate(-50%, 105%); transition: transform .55s var(--ease); overscroll-behavior: contain; }
.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: translate(-50%, 0); }
.sheet .grab { width: 48px; height: 6px; border-radius: 9px; background: var(--ink); margin: 0 auto 18px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.amt { border: var(--bw) solid var(--ink); border-radius: 16px; padding: 14px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; background: var(--white); transition: transform .25s var(--ease-spring), background-color .2s, box-shadow .2s; }
.amt:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.amt[aria-pressed="true"] { background: var(--lemon); box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.input-money { display: flex; align-items: center; border: var(--bw) solid var(--ink); border-radius: 16px; padding: 4px 16px; font-family: var(--font-head); font-size: 2rem; font-weight: 800; background: var(--white); transition: box-shadow .2s; }
.input-money:focus-within { box-shadow: 4px 4px 0 var(--blue); }
.input-money input { border: 0; outline: 0; font: inherit; width: 100%; padding: 8px 6px; background: transparent; }
.tip-row { margin: 18px 0; }
.tip-row input[type=range] { width: 100%; accent-color: var(--orange); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 10px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.summary { background: var(--white); border: var(--bw) dashed var(--ink); border-radius: 16px; padding: 14px 16px; font-size: .92rem; display: grid; gap: 6px; margin: 16px 0; }
.summary div { display: flex; justify-content: space-between; }
.summary .total { font-weight: 800; font-size: 1.05rem; border-top: 1.5px dashed var(--ink); padding-top: 8px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pay-methods button { border: var(--bw) solid var(--ink); background: var(--white); border-radius: 12px; padding: 10px; font-weight: 700; font-size: .85rem; }
.pay-methods button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.legal-mini { font-size: .76rem; color: var(--muted); margin-top: 12px; }
.success { text-align: center; padding: 20px 0; }
.success .big-check { width: 96px; height: 96px; border-radius: 50%; background: var(--mint); border: var(--bw) solid var(--ink); color: var(--ink); font-size: 2.6rem; display: grid; place-items: center; margin: 10px auto 18px; animation: pop .7s var(--ease-spring); }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
.upsell { text-align: left; background: var(--lemon); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 16px; margin-top: 18px; transform: rotate(-1deg); }
.upsell b { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -.02em; }
.upsell p { margin: 4px 0 10px; font-size: .9rem; color: var(--ink-2); }

/* ---------- Create wizard ---------- */
.wizard { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 30px 0 80px; align-items: start; }
.wiz-progress { height: 12px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 99px; overflow: hidden; margin-bottom: 30px; }
.wiz-progress i { display: block; height: 100%; background: var(--orange); width: 100%; transform-origin: left; transform: scaleX(.2); transition: transform .6s var(--ease); }
.wiz-steps { position: relative; min-height: 440px; }
.wizard > section { overflow-x: clip; overflow-clip-margin: 10px; min-width: 0; }
.wiz-step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateX(80px) rotate(1.5deg); pointer-events: none; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.wiz-step.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.wiz-step.left { transform: translateX(-80px) rotate(-1.5deg); }
.wiz-step h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.choice { text-align: left; border: var(--bw) solid var(--ink); background: var(--white); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s; }
.choice:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.choice[aria-pressed="true"] { background: var(--lemon); box-shadow: 5px 5px 0 var(--ink); transform: translate(-3px, -3px); }
.choice b { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.choice small { color: var(--ink-2); }
.field { display: grid; gap: 6px; margin: 16px 0; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select { border: var(--bw) solid var(--ink); border-radius: 14px; padding: 13px 16px; font: inherit; background: var(--white); color: var(--ink); transition: box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 4px 4px 0 var(--blue); outline: 0; }
.field textarea { min-height: 160px; resize: vertical; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.preview-card { position: sticky; top: calc(var(--header-h) + 20px); }
.preview-card .f-card { transform: rotate(2deg); box-shadow: 8px 8px 0 var(--ink); }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .preview-card { position: static; } .choice-grid { grid-template-columns: 1fr; } }

/* ---------- Wizard: verification step ---------- */
.private-note { display: flex; gap: 12px; align-items: flex-start; background: var(--lilac); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 16px 18px; font-size: .93rem; margin: 6px 0 8px; }
.private-note .ic-svg { width: 24px; height: 24px; margin-top: 2px; }
.v-head { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 28px 0 10px; }
.v-num { width: 30px; height: 30px; border-radius: 50%; background: var(--lemon); border: var(--bw) solid var(--ink); display: grid; place-items: center; font-size: .95rem; flex: none; }
.hint { color: var(--muted); font-size: .85rem; display: block; }
.phone-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.phone-row select { flex: none; }
.phone-row input { flex: 1; min-width: 150px; }
.v-chip { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid var(--ink); border-radius: 99px; padding: 3px 9px; background: var(--white); white-space: nowrap; }
.v-chip.ok { background: var(--mint); }
.v-chip.req { background: var(--lemon); }
.proof-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; transition: background-color .3s; }
.proof-row.done { background: #e4fbf2; }
.proof-row > div:first-child { flex: 1; min-width: 200px; }
.proof-row b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proof-row small { color: var(--muted); display: block; margin-top: 2px; }
.proof-row .fname { color: var(--ink); font-weight: 600; }
.proof-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.proof-act select { border: var(--bw) solid var(--ink); border-radius: 12px; padding: 8px 10px; font: inherit; background: var(--white); }
.upload { cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Payout setup ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 14px; }
.grid-2 .field, .grid-3 .field { min-width: 0; }
.grid-2 input, .grid-3 input, .grid-2 select, .grid-3 select { width: 100%; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.need-card { background: var(--lemon); border: var(--bw) solid var(--ink); border-radius: 24px; padding: 22px; box-shadow: var(--hs); rotate: 1.5deg; }
.need-card .eyebrow { display: inline-flex; }
.need-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.need-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.35; transition: opacity .3s; }
.need-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--white); margin-top: 1px; transition: background-color .3s; }
.need-list li.ok { opacity: .6; text-decoration: line-through; }
.need-list li.ok .tick { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23111118' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 50px; padding: 40px 0 90px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; font-size: .9rem; }
.legal-nav a { text-decoration: none; padding: 7px 12px; border-radius: 10px; color: var(--muted); border-left: 2px solid transparent; }
.legal-nav a:hover, .legal-nav a.active { color: var(--ink); border-left-color: var(--orange); font-weight: 600; }
.legal-body { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); border: var(--bw) solid var(--ink); }
.legal-body h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.legal-body h2 { font-size: 1.6rem; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 20px); letter-spacing: -.02em; }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1em 0; }
.legal-body th, .legal-body td { border: 1.5px solid var(--ink); padding: 10px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--lemon); }
.notice { background: var(--lemon); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 14px 18px; font-size: .9rem; margin-bottom: 24px; }
.updated { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-nav { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html .reveal:not(.done), html .reveal-scale:not(.done), .split .w > span { opacity: 1; transform: none; }
  .grad-text::after { transform: none; }
}

/* ---------- Zeffy embedded donation form ---------- */
.pay-frame { margin-top: 16px; height: min(72vh, 860px); border: var(--bw) solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff; }
.pay-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
#payEmbed .legal-mini { margin-top: 12px; }
.pay-hint { margin-top: 14px; background: var(--lemon); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 10px 12px; font-size: .9rem; line-height: 1.45; }
.pay-hint #payName { font-weight: 800; }
.pay-hint .btn { margin-left: 4px; padding: 4px 10px; }

/* Zeffy mode: the payment form fills the whole donate panel */
.sheet.sheet-pay { width: min(760px, 100%); height: 94vh; height: 94dvh; max-height: none; padding: 8px 12px 10px; display: flex; flex-direction: column; overflow: hidden; }
.sheet-pay .grab { margin-bottom: 10px; flex: none; }
.sheet-pay #sheetForm:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet-pay #sheetTitle { font-size: 1.25rem !important; padding: 0 4px; }
.sheet-pay #sheetSub { padding: 0 4px; font-size: .85rem !important; }
.sheet-pay #payEmbed:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sheet-pay .pay-hint { margin-top: 8px; padding: 7px 10px; font-size: .82rem; flex: none; }
.sheet-pay .pay-frame { flex: 1; min-height: 0; height: auto; margin-top: 8px; border: 0; border-radius: 16px; }
.sheet-pay #payEmbed .legal-mini { margin: 5px 4px 0; font-size: .6rem; line-height: 1.3; flex: none; opacity: .8; }

/* Back button at the top of the donate panel */
.sheet-back { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 14px; border: var(--bw) solid var(--ink); border-radius: 99px; background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.sheet-back:hover { background: var(--lemon); }
