/* piranga.app (the `--holding` build): the home page from the 2026-12-03 design, plus /privacy, /support, /credits,
   the 404 and the launch list's own pages. One stylesheet, no script, no inline style: it runs under the site's CSP
   (style-src 'self'; font-src 'self'). Theme follows the device (prefers-color-scheme) only. The screens' parallax is
   a scroll-driven CSS animation; a browser without one, or a reader who asks for less motion, gets still screens. */
/* Charter for devices without Iowan Old Style: a local copy first, the hosted Latin subset (fonts/LICENSE-charter.txt)
   only when neither is installed. */
@font-face { font-family: "Piranga Serif"; src: local("Charter"), local("Charter Roman"), url("/fonts/charter-roman-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026; }
:root {
  color-scheme: light dark;
  --serif: "Iowan Old Style", "Piranga Serif", Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #F6F8EF; --surface: #F8FAF3; --raised: #FFFFFF; --hero: #E6EEDA; --sunken: #ECF1E3;
  --ink: #19352B; --muted: #526A5E; --line: #E0E8D9; --lineStrong: #C6D8BB;
  --accent: #296347; --action: #19352B; --actionInk: #FFFFFF;
  --flame: #CE5B2E; --sound: #3A5A7A; --soundSoft: #E6EDF3; --soundInk: #24425F;
  --band: #19352B; --bandInk: #F2EFE7; --bandMuted: #BFCDBF; --bandLine: rgba(255, 255, 255, .14); --bandAction: #307E58;
  --bezel: #101A15; --focus: #4D729A; --sh: 25, 53, 43; --shA: .10;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --surface: #181715; --raised: #23221F; --hero: #20231C; --sunken: #1B1A18;
    --ink: #F2EFE7; --muted: #C1BCB1; --line: #34312B; --lineStrong: #504B42;
    --accent: #93CFA6; --action: #307E58; --actionInk: #FFFFFF;
    --flame: #FF9B63; --sound: #4D729A; --soundSoft: #1A2430; --soundInk: #C4D8EA;
    --band: #1A1F1A; --bandInk: #F2EFE7; --bandMuted: #C1BCB1; --bandLine: #34312B; --bandAction: #307E58;
    --bezel: #2E2C28; --focus: #8FB4DB; --sh: 0, 0, 0; --shA: .5;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--raised); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 5; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1128px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font: 600 17px/1.3 var(--sans); }
.eyebrow { font: 700 12.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.mark { font: 700 24px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a.plain { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; display: none; min-height: 44px; align-items: center; }
.top nav a.plain:hover { text-decoration: underline; }
.top nav a.plain.show { display: inline-flex; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons: green acts */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 26px; border: 0; background: var(--action); color: var(--actionInk); font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(var(--sh), calc(var(--shA) * 1.6)); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.sm { min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15px; box-shadow: none; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--lineStrong); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Phones: a real screenshot in a drawn frame. The screen is the capture's own shape (1206 × 2622, a 402 × 874 pt
   iPhone with 62 pt corners), so the capture fits it to the pixel; the bezel is 3% of the phone's width all round, and
   its corners are the screen's plus the bezel. Nothing is cropped. The screen clips (`overflow: clip`) rather than
   hides, so it is not a scroll container and the parallax below is timed by the page's scroll, not the screen's. */
.phone { position: relative; width: 100%; padding: 3%; border-radius: 17.5% / 8.3%; background: var(--bezel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 60px -20px rgba(var(--sh), calc(var(--shA) * 3.2)), 0 10px 20px -8px rgba(var(--sh), calc(var(--shA) * 1.8)); }
.screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: 15.4% / 7.1%; overflow: hidden; overflow: clip; background: var(--bezel); container-type: size; }
.screen picture { display: block; }
.screen img { display: block; width: 100%; height: auto; }
.screen::after { content: ""; position: absolute; left: 34.5%; top: 1.7%; width: 31%; height: 4%; border-radius: 99px; background: #000; }
figure figcaption { margin-top: 14px; }

.screen::after { z-index: 3; }
.screen svg { display: block; width: 100%; height: 100%; }

/* The status bar: fixed at the top of the screen while the picture scrolls under it, on a veil of the screen's own
   color so the time stays readable over a photo. Sizes are in the screen's own units (cqw), so it scales with the phone. */
.sbar { position: absolute; left: 0; top: 0; width: 100%; height: 7.4cqh; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 8.5cqw 1cqh 12.5cqw; color: var(--ink); font: 600 4.1cqw/1 var(--sans); letter-spacing: -.01em; background: linear-gradient(color-mix(in srgb, var(--bg) 97%, transparent), color-mix(in srgb, var(--bg) 92%, transparent) 72%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.sbar svg { width: 17cqw; height: 3.5cqw; fill: currentColor; }

/* The tab bar: the app's floating Liquid Glass capsule. What is behind it shows through, blurred and saturated; a
   bright rim on top and a faint one below give the glass its edge; the lit tab sits in a tinted lozenge. Without
   backdrop-filter the capsule is simply more opaque. */
.tabbar { --glass: 255, 255, 255; --rim: .85; position: absolute; left: 5cqw; right: 5cqw; bottom: 2.6cqh; height: 15.6cqw; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; padding: 1cqw; border-radius: 99cqw; color: var(--ink);
  background: linear-gradient(rgba(var(--glass), .92), rgba(var(--glass), .86));
  box-shadow: inset 0 .35cqw .2cqw -.1cqw rgba(255, 255, 255, var(--rim)), inset 0 -.3cqw .3cqw -.15cqw rgba(255, 255, 255, calc(var(--rim) * .35)), inset 0 0 0 .2cqw rgba(255, 255, 255, calc(var(--rim) * .4)), 0 2.4cqw 6cqw -1.6cqw rgba(var(--sh), calc(var(--shA) * 3.4)), 0 .6cqw 1.6cqw rgba(var(--sh), calc(var(--shA) * 1.2)); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .tabbar { background: linear-gradient(rgba(var(--glass), .66), rgba(var(--glass), .5)); -webkit-backdrop-filter: blur(6cqw) saturate(180%) brightness(1.04); backdrop-filter: blur(6cqw) saturate(180%) brightness(1.04); }
}
.tabbar span { display: grid; justify-items: center; align-content: center; gap: .9cqw; border-radius: 99cqw; }
.tabbar span.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); box-shadow: inset 0 0 0 .2cqw color-mix(in srgb, var(--accent) 14%, transparent); }
.tabbar svg { width: 6cqw; height: 6cqw; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar span.on svg { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.tabbar b { font: 600 2.55cqw/1 var(--sans); }
@media (prefers-color-scheme: dark) { .tabbar { --glass: 44, 43, 40; --rim: .22; } }
/* The lesson screens are dark in both themes. */
.steps .sbar { --bg: #111110; --ink: #F2EFE7; }

/* Parallax: as the page scrolls down, the picture moves UP inside the screen, as if the phone were being scrolled.
   It starts with its top at the screen's top and never moves further than its own extra height, so no empty strip
   shows. A capture taller than the screen (TALL_SCREENS in holding.mjs) travels that extra height at its true size.
   A capture the screen's own size has no extra height, so it is drawn 1.04 times larger from the top centre (2% of its
   width, all margin, is past each edge) and travels the 4% that gains: a lesson screen does not scroll in the app.
   Timing: a phone is timed by its own passage up the window: a one-screen render from entering to leaving, a tall
   one from the moment the whole phone is in view (so its top is what you see first) to leaving. The hero's phones are on screen
   when the page opens, so they are timed by the page's first screen and a bit of scroll instead, and start at rest.
   On a narrow window the lesson screens sit in a sideways scroller, which would capture their timeline, so there they
   follow the scroller's passage. Transform only, on the compositor; no script. With reduced motion, or in a browser
   without scroll-driven animations, every capture is still and fits its screen exactly. */
@keyframes screen-up { from { transform: translateY(0) scale(1.04); } to { transform: translateY(-4cqh) scale(1.04); } }
@keyframes screen-scroll { from { transform: translateY(0); } to { transform: translateY(min(0px, 100cqh - 100%)); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (width: 1cqh) {
    .screen { view-timeline: --screen block; }
    .steps { view-timeline: --steps block; }
    .screen > picture img { transform-origin: 50% 0; animation: screen-up linear both; animation-timeline: --screen; animation-range: cover; will-change: transform; }
    .screen.tall > picture img { animation-name: screen-scroll; animation-range: contain 0% cover 100%; }
    .stage .screen > picture img { animation-timeline: scroll(root); animation-range: 0px 110vh; }
    @media (max-width: 719px) { .steps .screen > picture img { animation-timeline: --steps; } }
  }
}

/* Hero */
.hero { padding-top: 22px; padding-bottom: 72px; display: grid; gap: 40px; align-items: center; }
.hero .copy { display: grid; gap: 20px; justify-items: start; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--muted); }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts li::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
/* Two phones of one size, a set gap between them, the second a step lower (a margin, not a transform: the parallax
   is timed by where the screen is laid out). No box behind them. */
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; max-width: 520px; margin: 0 auto; }
.stage > :nth-child(2) { margin-top: 40px; }
.shown { margin-top: 16px; text-align: center; }

/* Why Piranga: three reasons, the claim, and what the course adds up to */
.why { display: grid; gap: 28px; margin-top: 40px; }
.why li { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 2px solid var(--accent); }
.why p { color: var(--muted); }
.claim { font: 400 clamp(22px, 2.4vw, 28px)/1.3 var(--serif); letter-spacing: -.01em; max-width: 30em; margin-top: 48px; text-wrap: pretty; }
.scope { display: grid; gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-top: 36px; }
.scope li { background: var(--raised); padding: 22px 22px 24px; display: grid; gap: 4px; align-content: start; }
.scope b { font: 400 clamp(26px, 2.6vw, 32px)/1.15 var(--serif); letter-spacing: -.015em; }
.scope span { color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* Where it works: the map of course areas, and their names for anyone who cannot see it */
.map { margin-top: 56px; display: grid; gap: 14px; }
.map img { width: 100%; height: auto; max-width: 880px; margin: 0 auto; }
.map figcaption { margin: 0; display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--muted); }
.map details { font-size: 15px; width: 100%; }
.map summary { cursor: pointer; display: inline-flex; min-height: 44px; align-items: center; color: var(--accent); font-weight: 600; }
.places { columns: 2; column-gap: 24px; text-align: left; max-width: 760px; margin: 8px auto 0; font-size: 14.5px; line-height: 1.9; }

/* Sections */
.sec { padding-top: 84px; padding-bottom: 84px; }
.sec .head { display: grid; gap: 16px; max-width: 720px; }
.split { display: grid; gap: 44px; align-items: center; }
.solo { max-width: 280px; margin: 0 auto; width: 64vw; }
.points { display: grid; gap: 18px; margin-top: 26px; }
.points li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: baseline; }
.points li::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--accent); transform: translateY(-1px); }
.points li.sound::before { background: var(--sound); }
.points b { display: block; font-weight: 600; }
.points span { color: var(--muted); }

/* The lesson band: dark in both themes, like a lesson at night */
.band { background: var(--band); color: var(--bandInk); }
.band .eyebrow, .band .lede, .band .small { color: var(--bandMuted); }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: min(232px, 62vw); gap: 22px; margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 26px; margin-left: -24px; margin-right: -24px; scrollbar-width: thin; }
.steps { scroll-padding-left: 24px; }
.steps li { scroll-snap-align: start; }
.steps .phone { --bezel: #2E3A33; }
.steps figcaption { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; margin-top: 18px; }
.steps .n { width: 30px; height: 30px; border-radius: 15px; box-shadow: inset 0 0 0 1.5px var(--bandLine); display: flex; align-items: center; justify-content: center; font: 600 14px/1 var(--sans); }
.steps b { display: block; font-weight: 600; }
.steps span span { display: block; color: var(--bandMuted); font-size: 15px; line-height: 1.4; margin-top: 2px; }
.rules { display: grid; gap: 14px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--bandLine); }
.rules li { color: var(--bandMuted); font-size: 16px; }
.rules b { color: var(--bandInk); font-weight: 600; display: block; }

/* The app's own sentence, with its ten dots */
.say { background: var(--raised); border-radius: 22px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line), 0 10px 26px -14px rgba(var(--sh), calc(var(--shA) * 2.4)); display: grid; gap: 12px; margin-top: 28px; max-width: 30em; }
.dots { display: flex; gap: 6px; }
.dots i { width: 16px; height: 16px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--lineStrong); }
.dots i.on { background: var(--accent); box-shadow: none; }
.say p { font-size: 17px; line-height: 1.45; }

/* Coming later, and the Pirangle card's start day */
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; font: 700 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--lineStrong); }
.next { display: grid; gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-top: 36px; }
.next li { background: var(--surface); padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start; }
.next p { color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* Pirangle */
.game { background: var(--sunken); border-radius: 28px; padding: 30px 26px; display: grid; gap: 18px; align-items: center; justify-items: start; }
.game h2 { font-size: clamp(26px, 3vw, 34px); }
.game p { color: var(--muted); max-width: 34em; }
.game p.tag { color: var(--ink); }

/* Questions */
.faq { display: grid; gap: 0 56px; margin-top: 30px; }
.faq div { padding: 20px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.faq dt { font-weight: 600; }
.faq dd { color: var(--muted); margin-top: 6px; }

/* The launch list */
.join { background: var(--raised); border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(var(--sh), calc(var(--shA) * 3)); padding: 30px 24px; display: grid; gap: 26px; align-items: start; }
.join .piri { width: 120px; }
.list { display: grid; gap: 12px; }
.list label { font-weight: 600; font-size: 15px; }
.list input[type=email] { font: inherit; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--lineStrong); background: var(--bg); color: var(--ink); width: 100%; }
.list .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 16px; min-height: 44px; padding-top: 10px; }
.list .check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.list .btn { justify-self: start; margin-top: 4px; }
.cf-turnstile { width: 300px; min-height: 65px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 84px; padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); }
footer .wrap { display: grid; gap: 18px; }
footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
footer a { color: var(--ink); }
footer ul a, footer .mark { display: inline-flex; min-height: 44px; align-items: center; }
footer p { font-size: 13.5px; color: var(--muted); max-width: 60em; }

@media (min-width: 720px) {
  .top nav a.plain { display: inline-flex; }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 40px; padding: 0; margin-left: 0; margin-right: 0; max-width: 900px; }
  .rules { gap: 40px; max-width: 900px; }
  .next { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .places { columns: 4; }
  .solo { width: 100%; }
  .faq { columns: 2; display: block; }
  .game { grid-template-columns: 1fr auto; padding: 36px 40px; }
  .join { grid-template-columns: 1fr 1.1fr; padding: 44px; gap: 48px; }
  .stage { gap: 28px; }
  .stage > :nth-child(2) { margin-top: 56px; }
  .why, .scope { grid-template-columns: repeat(3, 1fr); }
  .why { gap: 40px; }
}
@media (min-width: 980px) {
  .wrap { padding-left: 36px; padding-right: 36px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 36px; padding-bottom: 48px; }
  .sec { padding-top: 96px; padding-bottom: 96px; }
  .band .sec { display: grid; grid-template-columns: .78fr 1.6fr; gap: 0 64px; align-items: start; }
  .band .steps { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; gap: 28px; }
  .band .rules { grid-column: 1; grid-template-columns: 1fr; gap: 18px; max-width: none; margin-top: 34px; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.flip .text { order: 2; }
  .steps { margin-top: 56px; }
}

/* Narrow phones: Turnstile's widget needs 300 px, so the launch-list card runs edge to edge. */
.join > *, .split > *, .hero > * { min-width: 0; }
@media (max-width: 419px) { .join { margin: 0 -24px; padding: 28px 24px; border-radius: 0; box-shadow: 0 0 0 1px var(--line); } }
@media (max-width: 347px) { .join { padding: 28px 10px; } .join .head { padding: 0 14px; } }

/* /privacy, /support, /credits, the 404 and the launch list's pages (holding-worker/waitlist.js): one column. */
.doc, .hold { width: 100%; max-width: 680px; margin: 0 auto; padding: 8px 24px 48px; display: grid; gap: 14px; align-content: start; }
.doc h1, .hold h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.1; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 22px; }
.doc h3 { margin-top: 10px; }
.doc ul, .doc ol { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.doc li::marker { color: var(--muted); }
.hold { min-height: 70vh; min-height: 70dvh; align-content: center; justify-items: center; text-align: center; padding-top: 40px; }
.line { color: var(--muted); font-size: 19px; max-width: 32ch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 24px; border: 0; background: var(--action); color: var(--actionInk); font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; }
.top.slim { padding-bottom: 8px; }
.doc .credits { list-style: none; padding-left: 0; display: grid; gap: 0; margin-top: 4px; }
.credits li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.credits b { font-weight: 600; }
.credits span { color: var(--muted); font-size: 15.5px; }
