/* Shared look for every page: full-bleed colour blocks with hard ink edges, like a stack of stickers.
   Colours come from assets/theme.js; the :root values below are the no-JS fallback (violet and lime). */
@font-face { font-family: "Display Fallback"; src: local("Arial Bold"), local("Arial"); font-weight: 700 800; size-adjust: 89%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
:root {
  color-scheme: light;
  --hero: #5800FF; --on-hero: #FFFFFF; --mark: #C6FF3D; --on-mark: #16130E; --num: #C6FF3D; --tag: #C6FF3D; --sh1: #5800FF; --sh2: #C6FF3D; --b1: #C6FF3D; --on-b1: #16130E; --b2: #5800FF; --on-b2: #FFFFFF; --b3: #FFF8EA; --on-b3: #16130E; --close: #C6FF3D; --on-close: #16130E; --btn: #5800FF; --on-btn: #FFFFFF;
  --ink: #16130E; --cream: #FFF8EA; --muted: #574F42; --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Display Fallback", sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --edge: 3px solid var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.1rem/1.55 var(--body); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--cream); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap {
  max-width: 1080px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dark { background: var(--ink); color: var(--cream); }
.kicker { font-weight: 700; font-size: .96rem; letter-spacing: .02em; }
.section-title { font-size: clamp(2.5rem, 10vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: .95; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 13px 26px; text-align: center;
  border: var(--edge); border-radius: 16px; background: var(--btn); color: var(--on-btn); text-decoration: none;
  font: 800 1.16rem/1.1 var(--display); box-shadow: 6px 6px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: var(--cream); color: var(--ink); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 1rem; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.btn.small:hover { box-shadow: 6px 6px 0 var(--ink); }
.go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; justify-self: start; }

/* Phone stage: the two app screens */
.stage { position: relative; width: min(100%, 480px); margin-inline: auto; padding-right: 26%; }
.screen { border: 4px solid var(--cream); border-radius: 30px; overflow: hidden; background: var(--ink); }
.screen img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; }
.screen.star { position: relative; z-index: 2; transform: rotate(-4deg); box-shadow: 10px 10px 0 var(--sh1); }
.screen.second { position: absolute; z-index: 1; right: 0; top: 14%; width: 40%; transform: rotate(6deg); box-shadow: 7px 7px 0 var(--sh2); }
.tag { position: absolute; z-index: 3; left: -4px; bottom: 7%; padding: 8px 13px; background: var(--tag); color: var(--on-mark); border: var(--edge); border-radius: 12px; font: 800 1rem/1.1 var(--display); transform: rotate(3deg); }
.cards { display: grid; gap: 28px; align-content: center; }
.card { display: grid; gap: 7px; }
.card .by { font-weight: 700; font-size: .96rem; color: var(--num); }
.card h3 { font-size: clamp(2.1rem, 7.6vw, 3.1rem); font-weight: 800; line-height: 1; letter-spacing: -.025em; }
.card p { font-size: 1.08rem; max-width: 30em; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: var(--edge); }
.step { border-bottom: var(--edge); padding-block: 22px; }
.step .wrap { display: flex; align-items: center; gap: 18px; }
.step b { flex: none; font: 800 clamp(3.6rem, 15vw, 6.6rem)/.85 var(--display); }
.step h3 { font-size: clamp(2.15rem, 9.6vw, 4.6rem); font-weight: 800; line-height: .96; letter-spacing: -.035em; }
.step:nth-child(1) { background: var(--b1); color: var(--on-b1); }
.step:nth-child(2) { background: var(--b2); color: var(--on-b2); }
.step:nth-child(3) { background: var(--b3); color: var(--on-b3); }

/* Logo row */
.logo-row { list-style: none; margin: 24px 0 0; padding: 24px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; background: var(--white); color: var(--ink); border: var(--edge); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); }
.logo-row li { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; min-width: 0; }
.logo-row img { display: block; height: 38px; width: auto; max-width: 100%; object-fit: contain; }
.logo-row img.tall { height: 58px; margin-block: -10px; }
.logo-row span { font-size: .82rem; line-height: 1.25; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 36px 44px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.site-footer p { max-width: 44em; opacity: .85; }

@media (max-width: 480px) {
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .logo-row img { height: 32px; }
  .logo-row img.tall { height: 52px; }
  .step .wrap { gap: 14px; }
  .screen { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
