/* giftgood — site styles */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --ink: #1F1235;
  --lemon: #FFF27A;
  --lilac: #CDB8FF;
  --orange: #FF5A36;
  --cream: #FFFDF5;
  --lav: #F4EEFF;
  --muted: #4D4366;
  --line: #E4DCF3;
  --plumsoft: #3A2766;
  --white: #FFFFFF;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(10px, 1.4vw, 16px);
  --r: clamp(24px, 3vw, 40px);
  --r-in: clamp(16px, 1.8vw, 22px);
  --pad: clamp(24px, 5vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.hand { font-family: var(--hand); font-weight: 700; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--lemon); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px; }
.chip:hover { background: var(--lilac); }
a.btn { text-decoration: none; }

/* ===== Page: white, with rounded colour blocks ===== */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); max-width: 1440px; margin: 0 auto; padding: 0 var(--gap) var(--gap); }
.block { border-radius: var(--r); padding: var(--pad); min-width: 0; }
.sec-title { font-size: clamp(40px, 5.4vw, 72px); max-width: 16ch; }
.sec-lede { margin-top: 14px; font-size: clamp(17px, 1.5vw, 19px); max-width: 52ch; color: var(--muted); font-weight: 500; }

/* buttons: plum pill with a solid offset shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--ink); color: var(--lemon); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; box-shadow: 6px 6px 0 var(--orange); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--orange); }
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--orange); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 16px; box-shadow: 4px 4px 0 var(--orange); }
.btn-sm:hover { box-shadow: 6px 6px 0 var(--orange); }
.on-orange .btn { box-shadow: 6px 6px 0 var(--lemon); }
.on-orange .btn:hover { box-shadow: 8px 8px 0 var(--lemon); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--white); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav .wrap { max-width: 1440px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; padding-left: max(calc(var(--gap) + 12px), env(safe-area-inset-left, 0px)); padding-right: max(calc(var(--gap) + 12px), env(safe-area-inset-right, 0px)); }
.logo { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.06em; text-decoration: none; line-height: 1; }
.navlinks { display: flex; align-items: center; gap: 30px; font-weight: 600; }
.navlinks .tl { text-decoration: none; }
.navlinks .tl:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 860px) { .navlinks .tl { display: none; } .logo { font-size: 28px; } }

/* hero */
.hero { background: var(--lemon); display: grid; gap: 28px; }
.hero h1 { font-size: clamp(56px, 8.6vw, 120px); line-height: 0.9; letter-spacing: -0.055em; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; max-width: 34ch; margin: 26px 0 32px; }
.vid { background: var(--cream); border-radius: var(--r-in); min-height: clamp(340px, 42vw, 580px); display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 17px; overflow: hidden; }
.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { width: 76px; height: 76px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; margin: 0 auto 14px; }
.play i { width: 0; height: 0; border-left: 23px solid var(--ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; } }
@media (max-width: 899px) { .hero .copy { display: contents; } .hero h1 { order: 1; } .hero .vid { order: 2; } .hero .rest { order: 3; } .hero .lede { margin-top: 0; } }

/* charity carousel */
.strip { background: var(--cream); padding-inline: 0; padding-block: 8px; overflow: hidden; }
.ch-viewport { overflow: hidden; padding-block: 22px; }
.ch-track { display: flex; width: max-content; }
.ch-tile { flex: 0 0 auto; margin-right: 44px; display: flex; align-items: center; gap: 12px; padding: 6px; background: none; border: none; border-radius: 16px; color: var(--ink); transition: transform .15s ease; }
.ch-tile:hover, .ch-tile:focus-visible { transform: translateY(-2px); }
.ch-tile:hover .nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ch-tile .mono { width: 58px; height: 58px; border-radius: 50%; }
.ch-tile .nm { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ch-track { animation: slide 50s linear infinite; }
  .ch-viewport:hover .ch-track, .ch-viewport:focus-within .ch-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .ch-viewport { overflow-x: auto; } }
.mono { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: -0.02em; flex-shrink: 0; }
.m-lemon { background: var(--lemon); color: var(--ink); }
.m-lilac { background: var(--lilac); color: var(--ink); }
.m-orange { background: var(--orange); color: var(--ink); }

/* how it works */
.how { background: var(--lilac); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: var(--white); border-radius: var(--r-in); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.num { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--lemon); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; margin-bottom: 10px; }
.steps h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.04em; line-height: 1.02; }
.steps p { color: var(--muted); }

/* meet the charities */
.catalogue { background: var(--lav); display: flex; flex-direction: column; gap: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip { background: var(--white); border: 0; box-shadow: none; }
.filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--lemon); box-shadow: none; }
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1000px) { .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 700px) {
  .cgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(-1 * var(--pad)); padding: 2px var(--pad) 8px; scrollbar-width: none; }
  .cgrid::-webkit-scrollbar { display: none; }
  .ccard { flex: 0 0 82%; scroll-snap-align: center; }
}
.ccard { background: var(--white); border-radius: var(--r-in); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ccard .ctop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.logo-ph { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.cpill { font-size: 12px; font-weight: 700; background: var(--lav); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.ccard h3 { font-size: 25px; letter-spacing: -0.04em; line-height: 1.02; }
.ccard p { font-size: 16px; color: var(--muted); }
.ccard .web { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--lilac); }
.ccard .web:hover { text-decoration-color: var(--ink); }
.ccard .demo-note { font-size: 13px; font-weight: 600; color: var(--muted); }
.ccard .btn { min-height: 48px; padding: 0 20px; font-size: 15px; white-space: nowrap; box-shadow: 4px 4px 0 var(--orange); align-self: flex-start; }

/* faq */
.faq { background: var(--lemon); display: grid; gap: 28px; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: start; gap: 56px; } }
.qs { display: grid; gap: 8px; }
.qs details { background: var(--white); border-radius: var(--r-in); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 17px; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .2s ease; }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs details p { padding: 0 22px 20px; max-width: 62ch; color: var(--muted); }

/* closing block + footer */
.end { background: var(--ink); color: var(--cream); display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); padding-top: clamp(64px, 9vw, 120px); }
.end-cta { display: grid; gap: 28px; align-items: end; }
.end h2 { font-size: clamp(52px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.055em; color: var(--lemon); max-width: 12ch; }
.end-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.end-side p { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; max-width: 32ch; color: var(--lav); }
@media (min-width: 900px) { .end-cta { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; } }
.btn-lemon { background: var(--lemon); color: var(--ink); }
.end-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-top: 28px; border-top: 1px solid rgba(255, 253, 245, 0.18); font-size: 15px; color: #CFC5E3; }
.end-logo { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.06em; line-height: 1; color: var(--cream); }
.end-foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; color: var(--cream); }
.end-foot nav a { text-decoration: none; }
.end-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.end-mail { color: var(--cream); font-weight: 600; text-decoration: none; }
.end-mail:hover { text-decoration: underline; text-underline-offset: 4px; }


/* ===== gift flow ===== */

/* ===== Simple pages (privacy, 404) ===== */
.page-simple { background: var(--lav); }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(48px, 8vw, 88px); line-height: 0.92; letter-spacing: -0.055em; }
.prose h2 { font-family: var(--body); font-weight: 800; font-size: 20px; letter-spacing: 0; line-height: 1.3; margin-top: 32px; }
.prose p { margin-top: 10px; max-width: 64ch; }
.prose a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.updated { margin-top: 14px; color: var(--muted); }
.lost { background: var(--lemon); min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.lost h1 { font-size: clamp(48px, 9vw, 104px); line-height: 0.92; letter-spacing: -0.055em; max-width: 12ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Note shown when a "Gift a donation" button is tapped (gift flow not built yet) */
.gift-note { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); background: var(--ink); color: var(--lemon); font-weight: 700; padding: 14px 22px; border-radius: 999px; box-shadow: 0 10px 30px rgba(31, 18, 53, 0.25); z-index: 30; transition: transform .25s ease; max-width: calc(100% - 32px); text-align: center; }
.gift-note:empty { display: none; }
.gift-note.show { transform: translate(-50%, 0); }
.ch-tile { text-decoration: none; }
