/* Accompany website. Colours come from the logo: navy ink, teal, gold, orange and mint.
   Type: Unbounded (wide, rounded, like the logo's ribbon) for headings, Figtree for reading.
   Both are self-hosted (public/fonts), so no third-party font requests. */

@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded.woff') format('woff');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff') format('woff');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy: #142b4f;
  --navy-deep: #0e2140;
  --teal: #3fa09c;
  --teal-ink: #23706d;
  --gold: #f4b33f;
  --orange: #ee6b2c;
  --mint: #8fd3c9;
  --on-navy: #fff4e2;
  --on-navy-soft: #c9e6e1;

  --page: #ffffff;
  --wash: #eaf6f3;
  --ink: #142b4f;
  --ink-soft: #4a5d78;
  --line: #d6e3e6;
  --card: #ffffff;
  --link: var(--teal-ink);

  --display: 'Unbounded', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e2140;
    --wash: #12294b;
    --ink: #eef4f3;
    --ink-soft: #b4c4d3;
    --line: #26406a;
    --card: #15305a;
    --link: var(--mint);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; }

/* ---------- Header ---------- */
.top { background: var(--navy); color: var(--on-navy); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 22px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--on-navy-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-navy); text-decoration: underline; }
@media (max-width: 640px) { .nav .wide { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 5vw, 64px); align-items: center;
  padding-block: clamp(28px, 6vw, 72px) 0;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.03em;
}
.hero .lede { margin-top: 22px; max-width: 34ch; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--on-navy-soft); }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; border: 0;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f7c35f; }
.hero .note { font-size: 15px; color: var(--on-navy-soft); }
.hero .note b { color: var(--on-navy); font-weight: 600; }

/* The logo in a thin ring of the colour sweep, as on the app's welcome screen. */
.disc { position: relative; width: min(100%, 360px); aspect-ratio: 1; justify-self: end; }
.disc::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 200deg, #3fa09c, #3b6fd6, #7a55d9, #db4a79, #ee6b2c, #f4b33f, #3fa09c);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  opacity: 0.9;
}
.disc img { width: 100%; height: 100%; border-radius: 50%; }

/* The ribbon from the logo, with the buddies on it. */
.parade { position: relative; height: clamp(150px, 18vw, 210px); margin-top: clamp(20px, 4vw, 48px); }
.parade svg.ribbon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.parade canvas { position: absolute; width: var(--s); height: var(--s); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .disc { width: min(46vw, 190px); justify-self: start; order: -1; }
  .parade { margin-top: 56px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section.wash { background: var(--wash); }
.section .intro { max-width: 40ch; margin-top: 16px; color: var(--ink-soft); }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why .copy p + p { margin-top: 14px; }
.why .copy .intro { margin-top: 18px; }
.reasons { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.reasons li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.reasons li span[aria-hidden] { font-size: 22px; line-height: 1.3; }
.examples { display: grid; gap: 12px; margin: 0; }
.examples figcaption { font-size: 14px; color: var(--ink-soft); margin-bottom: 2px; }
.act {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
}
.act .em { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--wash); }
.act b { display: block; font-size: 17px; line-height: 1.3; }
.act .meta { font-size: 15px; color: var(--ink-soft); }
.act .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.tag.open { border-color: transparent; background: #dff2ee; color: #1d5f5c; }
@media (prefers-color-scheme: dark) { .tag.open { background: #1b4a52; color: #bfe9e2; } }
.act:nth-child(3) { margin-left: clamp(0px, 3vw, 28px); }
.act:nth-child(4) { margin-left: clamp(0px, 6vw, 56px); }
.kinds { margin-top: clamp(40px, 6vw, 64px); }
.kinds h3 { font-size: 16px; font-family: var(--body); font-weight: 700; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--wash); font-size: 16px; font-weight: 600; }
.section.wash .chips li { background: var(--card); }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } .act:nth-child(n) { margin-left: 0; } }

/* How it works: a real sequence, so it is numbered. */
.how { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(step); font: 700 40px/1 var(--display); color: var(--teal-ink);
}
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--mint); } }
.steps p { color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } .steps li { grid-template-columns: 48px minmax(0, 1fr); } .steps li::before { font-size: 30px; } }

/* Safety */
.safety { background: var(--navy); color: var(--on-navy); }
.safety h2 { max-width: 16ch; }
.safety .intro { color: var(--on-navy-soft); max-width: 46ch; }
.points { list-style: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 5vw, 64px); }
.points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.points svg { width: 44px; height: 44px; }
.points h3 { color: var(--on-navy); }
.points p { color: var(--on-navy-soft); margin-top: 4px; font-size: 17px; }
.safety .more { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.safety .more a { color: var(--gold); font-weight: 700; }
.safety .more span { color: var(--on-navy-soft); font-size: 16px; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 19px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 26px; width: 12px; height: 12px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Footer ---------- */
.foot { background: var(--navy-deep); color: var(--on-navy-soft); font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; padding-block: 44px; }
.foot .brand { color: var(--on-navy); }
.foot .tagline { margin-top: 10px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav a { color: var(--on-navy); text-decoration: none; font-weight: 600; }
.foot nav a:hover { text-decoration: underline; }
.foot small { display: block; margin-top: 14px; font-size: 14px; }

/* ---------- Text pages (Safety guidelines) ---------- */
.page-head { background: var(--navy); color: var(--on-navy); padding-block: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; max-width: 14ch; }
.page-head p { margin-top: 16px; max-width: 52ch; color: var(--on-navy-soft); }
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 48px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--wash); border-left: 5px solid var(--orange); }
.callout b { display: block; }
.not-found { min-height: 60vh; }
.not-found a { color: var(--gold); font-weight: 700; }
