:root {
  --bg: #faf9f7;
  --card: #f5f4f0;
  --surface: #ffffff;
  --ink: #12141c;
  --ink-2: #4a4d57;
  --muted: #7b7e87;
  --line: #e6e4df;
  --mint: #dcf3e8;
  --mint-2: #e3f3ea;
  --mint-ink: #0f3d2c;
  --green: #4fcf98;
  --green-ink: #1f8a5c;
  --dark: #1b1e28;
  --display: "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--mint); color: var(--mint-ink); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 40px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--dark); color: #fff;
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-2);
}
h1, h2 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(250, 249, 247, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; height: var(--header-h); }
.logo { font: 600 30px/1 var(--display); letter-spacing: -.02em; }
.logo.small { font-size: 17px; }
.nav .logo { display: block; }
.nav .logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center; gap: 32px; padding-top: 12px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.03em;
  margin: 22px 0;
}
.hero .lead { max-width: 31em; font-size: 17px; }
/* Lift the copy so it sits level with the mascot rather than the image box (which has extra top room for the note) */
.hero-copy { margin-bottom: 16px; }
.hero-art { position: relative; padding: 70px 0 50px; }
/* Keep the hero at or below its native resolution (1444px ≈ 720 CSS px @2x) so it stays sharp */
/* Keep the hero at or below its native resolution so it stays sharp */
.hero-art picture { display: block; position: relative; z-index: 1; max-width: 640px; margin-left: auto; }
/* The artwork is baked onto the page background (--bg) and carries its own
   shadow, so it needs no cut-out edge or CSS shadow of its own. */
.hero-art img { position: relative; z-index: 1; width: 100%; }
.hero-note {
  position: absolute; z-index: 2; top: 20px; right: 6%;
  font: 500 28px/1 var(--hand); color: #6b6f78; transform: rotate(-8deg);
}
.hero-note svg { display: block; width: 26px; height: 40px; margin: 8px 0 0 30px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Features ---------- */
.features { padding-top: 24px; }
.features-card { background: var(--card); border-radius: 28px; padding: 56px 32px 48px; }
.features-card h2 { margin-top: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-top: 36px; }
/* Each feature shares its row tracks (art / title / text) with its neighbours so titles and copy line up */
.feature {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0;
  text-align: center; padding: 8px 8px 16px; border-radius: 20px; transition: background .3s;
}
.feature:hover { background: rgba(255, 255, 255, .55); }
.feature img {
  width: 100%; max-width: 250px; height: 190px; object-fit: contain; object-position: bottom; margin: 0 auto 22px;
  transition: transform .4s var(--ease);
}
.feature:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.feature h3 { font: 600 17px/1.3 var(--body); letter-spacing: -.01em; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px;
  padding-top: 100px; padding-bottom: 100px;
}
.faq-head { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.faq h2 { margin: 14px 0 16px; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.03em; }
.faq-intro { max-width: 22em; font-size: 16px; color: var(--muted); }
.faq details a { color: var(--ink); border-bottom: 1px solid var(--green); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 400; font-size: 18px; color: var(--ink-2); background: var(--card);
  transition: transform .3s var(--ease), background .3s;
}
.faq summary:hover::after { background: var(--mint); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--mint); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); }
.faq details[open] p { animation: rise .35s var(--ease); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 28px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: baseline; gap: 14px; }
.tagline { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.copyright { margin-top: 20px; font-size: 12px; color: #a0a2a8; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .container { padding-inline: 24px; }
  .hero { gap: 24px; }
  .faq { gap: 40px; padding-top: 88px; padding-bottom: 88px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; }
  .feature:nth-child(-n+2) { margin-bottom: 24px; }
  .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-brand { flex-basis: 100%; justify-content: center; }
  .copyright { text-align: center; }
}
/* Stacked layout: centre the hero so copy, mascot and the features below share one axis */
@media (max-width: 760px) {
  .hero, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 0; padding-top: 24px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-copy { margin-bottom: 0; }
  .hero-art { margin: 0 auto; max-width: 560px; width: 100%; padding: 64px 0 36px; }
  .hero-art picture { margin-inline: auto; }
  .faq { gap: 36px; }
  .faq-head { position: static; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 16px; }
  .logo { font-size: 24px; }
  .nav .logo img { height: 26px; }
  .nav-links { gap: 18px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .hero-art { padding: 56px 0 24px; }
  .hero-note { font-size: 22px; top: 6px; right: 2%; }
  .features-card { padding: 36px 14px; border-radius: 22px; }
  .feature-grid { column-gap: 8px; }
  .feature img { height: 130px; }
  .feature p br { display: none; }
  .faq { padding-top: 72px; padding-bottom: 72px; }
  .faq details p { padding-right: 0; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}
