/* Donkeydoku website — one small stylesheet, no framework.
   Palette is lifted from the game's own DonkeydokoTheme (ink, cream, oat, meadow, sky, sunset, gold, boardFrame, dirtTrail). */
:root {
  --ink: #2a1f17;
  --ink-soft: #5a4636;
  --cream: #fff8e0;
  --cream-2: #fdf0cb;
  --oat: #f2d69c;
  --meadow: #38944f;
  --meadow-dark: #1a5733;
  --meadow-deep: #12402a;
  --sky: #7ac7e0;
  --sky-soft: #d9f0f6;
  --sunset: #f59647;
  --berry: #9e4052;
  --gold: #f0b031;
  --gold-deep: #c98a0b;
  --board: #4d3321;
  --dirt: #ba8c57;
  --paper: #fffdf4;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(42, 31, 23, 0.16);
  --shadow-soft: 0 4px 14px rgba(42, 31, 23, 0.12);
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 5vw, 40px);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink);
  background: var(--cream); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--board); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--meadow-dark); text-underline-offset: 3px; }
a:hover { color: var(--meadow-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--gold); border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow { font-family: var(--font); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--meadow-dark); margin-bottom: .6rem; display: inline-flex; gap: .5em; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--gold); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); }

@media (min-width: 1700px) { :root { --maxw: 1320px; } html { font-size: 112.5%; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--meadow-dark); --fg: var(--cream); --edge: var(--meadow-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: .7em 1.5em;
  font-family: var(--font); font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--fg); background: var(--bg);
  border: 0; border-radius: 999px; box-shadow: 0 5px 0 var(--edge), 0 12px 22px rgba(18, 64, 42, .25); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge), 0 16px 26px rgba(18, 64, 42, .28); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge), 0 6px 12px rgba(18, 64, 42, .2); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); --edge: var(--gold-deep); }
.btn--ghost { --bg: transparent; --fg: var(--meadow-dark); --edge: transparent; box-shadow: inset 0 0 0 3px var(--meadow-dark); }
.btn--ghost:hover { background: var(--meadow-dark); color: var(--cream); box-shadow: inset 0 0 0 3px var(--meadow-dark); transform: none; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* App Store call-to-action: one element, one place to set the URL (assets/js/site-config.js). */
.store-cta { display: inline-flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.store-cta .btn { min-height: 60px; padding-inline: 1.6em; }
.store-cta .store-note { font-size: .92rem; color: var(--ink-soft); }
.store-cta .apple-mark { width: 1.2em; height: 1.2em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 3px solid var(--oat); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--board); font-family: var(--font); font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow-soft); }
.nav { display: none; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--font); font-weight: 700; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: var(--oat); }
.nav a[aria-current="page"] { background: var(--oat); }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--oat); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 16px; font: 800 .95rem var(--font); min-height: 44px; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 3px solid var(--oat); background: var(--cream); padding: 10px var(--gutter) 18px; }
.mobile-nav[data-open="true"] { display: grid; gap: 4px; }
.mobile-nav a { padding: 14px 12px; font: 800 1.1rem var(--font); color: var(--ink); text-decoration: none; border-radius: 14px; }
.mobile-nav a:hover { background: var(--oat); }
@media (min-width: 860px) {
  .nav { display: flex; } .header-cta { display: inline-flex; } .menu-toggle, .mobile-nav { display: none !important; }
  .header-cta.btn { min-height: 44px; padding: .45em 1.1em; font-size: .95rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 55%, var(--cream) 100%); overflow: clip; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }
.hero .wrap { position: relative; display: grid; gap: clamp(20px, 4vw, 48px); padding-block: clamp(22px, 5vw, 64px) clamp(56px, 8vw, 96px); align-items: center; z-index: 1; }
.hero-copy h1 { font-size: clamp(2.15rem, 7vw, 3.9rem); color: var(--board); margin-bottom: .35em; }
.hero-copy h1 .accent { color: var(--meadow-dark); }
.hero-copy .lead { max-width: 40ch; margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero-art { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 6px var(--paper), 0 0 0 9px var(--board); overflow: hidden; aspect-ratio: 1086 / 1448; background: var(--meadow); transform: rotate(-1.2deg); }
.hero-art picture, .hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; right: -6px; bottom: 20px; width: clamp(88px, 18vw, 140px); filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.02fr 1fr; }
  .hero-art { aspect-ratio: 1448 / 1086; }
}

.platform-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 .5rem; padding: 0; list-style: none; }
.platform-strip li { background: var(--board); color: var(--cream); border-radius: 999px; padding: 7px 16px; font: 800 .95rem var(--font); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.platform-strip li.soon { background: transparent; color: var(--board); box-shadow: none; border: 2px dashed var(--board); }
.platform-strip small { font: 700 .72rem var(--font); letter-spacing: .06em; text-transform: uppercase; margin-left: .35em; opacity: .85; }
.platform-line { font-size: .98rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.fact-strip { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.fact-strip li { background: var(--paper); border: 2px solid var(--oat); border-radius: 999px; padding: 6px 14px; font: 700 .92rem var(--font); color: var(--board); }

/* ---------- launch: availability line, official App Store badge, hero gameplay phone ---------- */
.hero-avail { font: 800 clamp(1.15rem, 2.6vw, 1.5rem) var(--font); color: var(--meadow-dark); margin: 0 0 .6rem; }
.hero-copy h1 { margin-bottom: .3em; }
.hero-actions { gap: 16px 24px; }
/* Apple's badge artwork is shown unmodified; height 56px (Apple's minimum on screen is 40px) with Apple's 1/4-height clear space kept by the gaps around it. */
.badge-link { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .12s ease; }
.badge-link:hover { transform: translateY(-2px); }
.badge-link:active { transform: translateY(1px); }
.badge-link img { height: 56px; width: auto; max-width: none; }
.hero-visual { position: relative; }
.hero-phone { position: absolute; z-index: 2; right: clamp(6px, 3%, 22px); bottom: -22px; width: clamp(104px, 27vw, 150px); transform: rotate(3deg); }
.hero-phone .device { box-shadow: 0 18px 34px rgba(42, 31, 23, .38), inset 0 0 0 2px #6a5240; }
@media (min-width: 900px) { .hero-phone { right: -18px; bottom: -34px; width: clamp(140px, 15vw, 190px); } }
.mobile-nav .mobile-nav-cta { background: var(--gold); color: var(--ink); text-align: center; margin-top: 8px; box-shadow: 0 4px 0 var(--gold-deep); }

/* ---------- launch: download band (+ desktop QR) and final call to action ---------- */
.section--download { padding-block: clamp(28px, 5vw, 64px); }
.download-band { display: grid; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--sky-soft) 0%, var(--cream) 100%); border: 4px solid var(--board); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }
.download-copy h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.download-copy .lead { max-width: 44ch; margin-bottom: 1.4rem; }
.download-qr { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .download-band { grid-template-columns: 1fr auto; gap: 64px; }
  .download-qr { display: grid; justify-items: center; gap: 14px; width: 236px; text-align: center; }
  .qr-card { background: #fff; padding: 12px; border-radius: 22px; box-shadow: var(--shadow-soft), 0 0 0 4px var(--board); }
  .qr-card img { width: 196px; height: 196px; max-width: none; }
  .qr-note { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
}
.final-cta { display: grid; gap: 22px; align-items: center; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 100%); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow); overflow: hidden; }
.final-cta h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); color: var(--board); }
.final-cta .lead { max-width: 40ch; margin-bottom: 1.4rem; }
.final-cta > picture img { width: auto; max-height: clamp(190px, 30vw, 300px); margin-inline: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .22)); }
@media (min-width: 760px) { .final-cta { grid-template-columns: 1fr auto; padding-block: clamp(26px, 4vw, 40px); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: clamp(52px, 8vw, 104px); content-visibility: auto; contain-intrinsic-size: auto 760px; }
.section--sky { background: var(--sky-soft); }
.section--wood { background: var(--board); color: var(--cream); }
.section--wood h2, .section--wood h3 { color: var(--cream); }
.section--wood .lead { color: var(--oat); }
.section--wood .eyebrow { color: var(--gold); }
.section--meadow { background: linear-gradient(180deg, #e7f3c8, #cfe8a6); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

/* ---------- how to play: the production onboarding teaching style (cream coach card, gold edge, FOCUS / WHY / ACTION, real board art) ---------- */
.section--teach { background: linear-gradient(180deg, rgba(231, 243, 200, .92), rgba(207, 232, 166, .92)), var(--meadow); }
.lessons { display: grid; gap: clamp(22px, 3vw, 34px) clamp(16px, 2.4vw, 28px); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .lessons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lessons { grid-template-columns: repeat(6, 1fr); } .lesson { grid-column: span 2; } .lesson:nth-child(n+4) { grid-column: span 3; } }
.lesson { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.coach { background: rgba(255, 248, 224, .97); border: 2px solid rgba(240, 176, 49, .8); border-radius: 28px; padding: 14px 16px 12px; box-shadow: 0 6px 16px rgba(42, 31, 23, .2); flex: 1; }
.coach-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.coach .step { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--meadow); color: var(--cream); font: 900 .95rem var(--font); box-shadow: 0 3px 0 var(--meadow-dark); }
.coach h3 { margin: 0; font: 900 .86rem/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--meadow-dark); }
.coach p { margin: 0 0 .45em; font-size: 1rem; line-height: 1.42; color: var(--ink); }
.coach p:last-child { margin-bottom: 0; }
.coach p b { font: 900 .72rem var(--font); letter-spacing: .08em; color: var(--meadow-dark); margin-right: .45em; }
.board { --gap: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); width: 100%; max-width: 330px; margin-inline: auto; padding: 8px; border-radius: 14px; background: var(--dirt); box-shadow: inset 0 0 0 3px #a37a45, 0 10px 22px rgba(42, 31, 23, .28); }
.board .c { position: relative; aspect-ratio: 1; background-size: 100% 100%; background-repeat: no-repeat; border-radius: 12%; transition: filter .2s ease; }
.board .c.off { filter: brightness(.6) saturate(.65); }
.board .c.on { z-index: 1; box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px rgba(42, 31, 23, .75); }
.board .c.p0 { background-image: url(/assets/img/tile-grass.png); background-image: image-set(url(/assets/img/tile-grass.avif) type("image/avif"), url(/assets/img/tile-grass.png) type("image/png")); }
.board .c.p1 { background-image: url(/assets/img/tile-wheat.png); background-image: image-set(url(/assets/img/tile-wheat.avif) type("image/avif"), url(/assets/img/tile-wheat.png) type("image/png")); }
.board .c.p2 { background-image: url(/assets/img/tile-carrot.png); background-image: image-set(url(/assets/img/tile-carrot.avif) type("image/avif"), url(/assets/img/tile-carrot.png) type("image/png")); }
.board .c.p3 { background-image: url(/assets/img/tile-pumpkin.png); background-image: image-set(url(/assets/img/tile-pumpkin.avif) type("image/avif"), url(/assets/img/tile-pumpkin.png) type("image/png")); }
.board .d, .board .m { position: absolute; display: block; background-repeat: no-repeat; background-position: center bottom; background-size: contain; pointer-events: none; }
/* the donkey peeks over the top of its square, exactly like the in-game board */
.board .d { left: 5%; width: 90%; aspect-ratio: 236 / 314; bottom: -4%; background-image: url(/assets/img/donkey-token.png); background-image: image-set(url(/assets/img/donkey-token.avif) type("image/avif"), url(/assets/img/donkey-token.png) type("image/png")); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.board .m { left: 14%; width: 72%; aspect-ratio: 1297 / 1213; top: 16%; background-position: center; background-image: url(/assets/img/poop-marker.png); background-image: image-set(url(/assets/img/poop-marker.avif) type("image/avif"), url(/assets/img/poop-marker.png) type("image/png")); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); }
.logic-callout { display: grid; gap: 22px; align-items: center; margin-top: clamp(28px, 4vw, 48px); background: var(--meadow-dark); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.logic-callout h3 { color: var(--cream); font-size: clamp(1.4rem, 3vw, 2rem); }
.logic-callout p { color: #e7f3c8; margin: 0; }
.logic-callout img { width: auto; max-height: clamp(190px, 30vw, 270px); margin-inline: auto; filter: drop-shadow(0 10px 12px rgba(0,0,0,.28)); }
@media (min-width: 720px) { .logic-callout { grid-template-columns: auto 1fr; } }

/* ---------- features ---------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; padding: 0; margin: 0; }
.feature { background: var(--paper); border-radius: var(--radius); border: 3px solid var(--oat); padding: 22px 22px 24px; display: grid; grid-template-columns: 76px 1fr; gap: 6px 16px; align-items: start; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { grid-row: span 2; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--tint, var(--oat)); }
.feature .ico img { width: 56px; height: 56px; object-fit: contain; }
.feature h3 { margin: 4px 0 4px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.feature .tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 .7rem var(--font); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* ---------- device frames + media ---------- */
.device { position: relative; width: 100%; border-radius: 13% / 6%; padding: 2.4%; background: linear-gradient(145deg, #3a2a1f, #1c140e); box-shadow: 0 22px 44px rgba(42, 31, 23, .32), inset 0 0 0 2px #6a5240; aspect-ratio: 1320 / 2868; }
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 11% / 5%; overflow: hidden; background: #111; }
/* The phone frame draws its own Dynamic Island so stills and video look identical (the simulator video bakes one in; this sits exactly over it). */
.device:not(.device--ipad):not(.device--duo) .screen::after { content: ""; position: absolute; left: 35.4%; width: 29.2%; top: 1.25%; height: 4.1%; background: #000; border-radius: 999px; pointer-events: none; }
.device .screen picture { display: block; width: 100%; height: 100%; }
.device .screen img, .device .screen video { width: 100%; height: 100%; object-fit: cover; }
.device--ipad { border-radius: 4.5% / 3.4%; padding: 2.4% ; aspect-ratio: 2064 / 2752; }
.device--ipad .screen { border-radius: 2.8% / 2.1%; }
.device--duo { border-radius: 8% / 5.6%; aspect-ratio: 1398 / 2034; }
.device--duo .screen { border-radius: 6.4% / 4.4%; }
.device--duo-in { aspect-ratio: 2007 / 2853; border-radius: 6% / 4.2%; }
.device--duo-in .screen { border-radius: 4.6% / 3.2%; }
.device--duo-in-land { aspect-ratio: 2853 / 2007; }
.device--ipad-land { aspect-ratio: 2752 / 2064; }
.showcase { display: grid; gap: 28px; align-items: center; }
.phone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.6vw, 28px); align-items: end; }
.phone-row .device:nth-child(2) { transform: translateY(-4%); }
@media (max-width: 639px) {
  .phone-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 270px); gap: 16px; overflow-x: auto; padding: 8px var(--gutter) 26px; margin-inline: calc(-1 * var(--gutter)); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .phone-row > * { scroll-snap-align: center; }
  .phone-row .device:nth-child(2) { transform: none; }
}
.caption { font: 700 .95rem var(--font); color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* gallery (scroll-snap, keyboard reachable) */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 290px); gap: 18px; overflow-x: auto; padding: 8px var(--gutter) 28px; margin-inline: calc(-1 * var(--gutter)); scroll-snap-type: x mandatory; scrollbar-color: var(--meadow) var(--oat); overscroll-behavior-x: contain; }
.gallery > figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { font: 800 1rem var(--font); margin-top: 14px; color: var(--board); text-align: center; }
.gallery figcaption small { display: block; font: 500 .9rem var(--font-body); color: var(--ink-soft); margin-top: 2px; }
.gallery:focus-visible { outline-offset: -3px; }
@media (min-width: 1100px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 22px; overflow: visible; padding-inline: 0; margin-inline: 0; } }

.device-trio { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 44px); list-style: none; padding: 0; margin: 0 auto clamp(30px, 5vw, 56px); max-width: 940px; }
.trio-card { min-width: 0; }
.trio-card a { display: block; text-decoration: none; color: inherit; }
.trio-phone { flex: 46 1 0; } .trio-ipad { flex: 75 1 0; } .trio-duo { flex: 69 1 0; }
.trio-card .device { transition: transform .18s ease; }
.trio-card a:hover .device { transform: translateY(-5px); }
.trio-label { display: block; margin-top: 14px; text-align: center; font: 900 clamp(.95rem, 2.4vw, 1.25rem) var(--font); color: var(--board); }
.trio-label small { display: block; font: 500 .88rem var(--font-body); color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 639px) { .trio-label small { display: none; } .device-trio .device { padding: 3%; } }
.duo-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.duo-group { min-width: 0; }
.duo-intro { max-width: 62ch; } .duo-intro h3 { margin-bottom: .3em; } .duo-intro p { color: var(--ink-soft); margin: 0; }
.gallery--duo-in { grid-auto-columns: min(86vw, 440px); }
@media (min-width: 1100px) { .gallery--duo-in { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.duo-group h4 { font: 800 .82rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--meadow-dark); margin: 0 0 6px; }
.duo-inner { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { font: 800 1rem var(--font); padding: 10px 20px; border-radius: 999px; border: 3px solid var(--board); background: transparent; color: var(--board); cursor: pointer; min-height: 46px; }
.tab[aria-selected="true"] { background: var(--board); color: var(--cream); }
[role="tabpanel"][hidden] { display: none; }
.ipad-row { display: grid; gap: 26px 22px; grid-template-columns: 1fr; align-items: start; }
.ipad-row .device { max-width: 420px; margin-inline: auto; }
@media (min-width: 800px) { .ipad-row { grid-template-columns: repeat(3, 1fr); } .ipad-row .wide { grid-column: 1 / -1; } .ipad-row .wide .device { max-width: 880px; } }

.reel { display: grid; gap: 28px; align-items: center; }
.reel-frame { max-width: 330px; margin-inline: auto; width: 100%; }
.reel video { background: #1c140e; }
@media (min-width: 860px) { .reel { grid-template-columns: .9fr 1.1fr; } .reel-frame { margin: 0; } }
.video-note { font-size: .92rem; color: var(--ink-soft); }

/* ---------- worlds ---------- */
.worlds { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .worlds { grid-template-columns: repeat(4, 1fr); } }
.world { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; box-shadow: var(--shadow); border: 4px solid var(--paper); background: var(--meadow); }
.world picture, .world img { width: 100%; height: 100%; object-fit: cover; }
.world .label { position: absolute; inset: auto 0 0 0; padding: 38px 14px 14px; background: linear-gradient(0deg, rgba(42, 31, 23, .82), transparent); color: var(--cream); font: 800 1.05rem var(--font); }
.world .label small { display: block; font: 600 .82rem var(--font-body); opacity: .92; }

/* ---------- apple quality ---------- */
.quality { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.quality li { background: rgba(255, 248, 224, .08); border: 2px solid rgba(255, 248, 224, .22); border-radius: var(--radius); padding: 20px; }
.quality h3 { font-size: 1.12rem; margin-bottom: .35em; color: var(--gold); }
.quality p { margin: 0; color: var(--oat); font-size: .98rem; }
.future-media { margin-top: 28px; }

/* ---------- premium + CTA bands ---------- */
.premium { display: grid; gap: 28px; align-items: center; background: var(--paper); border: 4px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.premium ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.premium li { margin-bottom: .35em; }
.premium img { width: auto; max-height: clamp(200px, 32vw, 300px); margin-inline: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)); }
@media (min-width: 760px) { .premium { grid-template-columns: 1fr auto; } }
.cta-band { background: var(--meadow-dark); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 52px); display: grid; gap: 20px; align-items: center; box-shadow: var(--shadow); }
.cta-band h2 { color: var(--cream); margin: 0 0 .25em; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.cta-band p { margin: 0; color: #e7f3c8; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border: 3px solid var(--oat); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font: 800 1rem var(--font); margin-bottom: 6px; color: var(--board); }
.field .hint { font-weight: 500; color: var(--ink-soft); font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 14px; min-height: 52px; border: 3px solid var(--dirt); border-radius: 14px; background: #fff; color: var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--meadow-dark); outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
.field [aria-invalid="true"] { border-color: var(--berry); background: #fff6f6; }
.field-error { color: #8a1f35; font-weight: 700; margin-top: 6px; font-size: .95rem; display: none; }
.field-error::before { content: "⚠ "; }
.field [aria-invalid="true"] ~ .field-error { display: block; }
.counter { text-align: right; font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 0 18px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-status { margin-top: 18px; border-radius: 16px; padding: 16px 18px; font-weight: 700; display: none; }
.form-status[data-state] { display: block; }
.form-status[data-state="success"] { background: #e3f4d3; color: #1a5733; border: 3px solid var(--meadow); }
.form-status[data-state="error"] { background: #ffe9e9; color: #8a1f35; border: 3px solid var(--berry); }
.form-status[data-state="sending"] { background: var(--cream-2); color: var(--board); border: 3px dashed var(--dirt); }
.privacy-line { font-size: .92rem; color: var(--ink-soft); margin-top: 16px; }
.turnstile-slot { min-height: 70px; margin-bottom: 18px; }
.help-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-bottom: 36px; }
.help-card { background: var(--paper); border: 3px solid var(--oat); border-radius: var(--radius); padding: 18px 20px; }
.help-card h2, .help-card h3 { font-size: 1.1rem; margin: 0 0 .3em; }
.help-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- page head + prose ---------- */
.page-head { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 100%); padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); position: relative; }
.page-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }
.page-head h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-bottom: .25em; }
.page-head .lead { max-width: 56ch; margin: 0; }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 2.2em; padding-top: .4em; border-top: 4px solid var(--oat); }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; } .prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 2px solid var(--oat); }
.prose thead th { background: var(--oat); font-family: var(--font); }
.prose tbody th { background: var(--cream-2); font-weight: 700; }
.callout { background: var(--cream-2); border-left: 8px solid var(--gold); border-radius: 12px; padding: 14px 18px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.toc { background: var(--paper); border: 3px solid var(--oat); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 30px; max-width: 74ch; }
.toc ol { margin: .4em 0 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; } }
.toc a { font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--board); color: var(--oat); padding-block: 46px 34px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -34px; height: 34px; background: var(--board); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h2 { font-size: 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .7em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font: 900 1.4rem var(--font); margin-bottom: 10px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 13px; }
.legal { border-top: 2px solid rgba(255, 248, 224, .2); margin-top: 34px; padding-top: 20px; font-size: .9rem; color: var(--oat); }
.legal p { margin: 0 0 .5em; }

/* ---------- utility classes (the site ships with no inline styles, so the CSP can forbid them) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pad-page { padding-block: 24px 80px; }
.section--flush-top { padding-top: 0; }
.mt-lg { margin-top: clamp(36px, 6vw, 72px); }
.m-0 { margin: 0; }
.no-top { margin-top: 0; }
.fig { margin: 0; }
.tint-1 { --tint: #fde7b0; } .tint-2 { --tint: #d8efc0; } .tint-3 { --tint: #d9f0f6; } .tint-4 { --tint: #fbe0d0; } .tint-5 { --tint: #fff0b8; } .tint-6 { --tint: #e6dcf5; } .tint-7 { --tint: #fdf0cb; }
.h-reel { font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* ---------- gentle motion (all off under reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.bob { animation: bob 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.sway { animation: sway 6s ease-in-out infinite; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .btn { border: 2px solid ButtonText; } .device { border: 2px solid CanvasText; } }
@media print { .site-header, .hero-art, .gallery, .reel, .cta-band, .site-footer::before { display: none; } body { background: #fff; } }
