/* Wiggled marketing site. No frameworks, no third-party requests: one self-hosted rounded face
   (Fredoka, SIL OFL, assets/fonts/OFL.txt) for display type, the system's own face for reading. */

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf6ec;
  --bg-2: #f3eadb;
  --paper: #fffdf8;
  --line: rgba(74, 52, 30, 0.13);
  --line-2: rgba(74, 52, 30, 0.22);
  --ink: #1a1410;
  --ink-2: #3d342b;
  --muted: #6b5f51;
  --orange: #ff8a2a;
  --orange-ink: #b8470c;
  --pink: #f2477e;
  --pink-ink: #c0305f;
  --green: #2e6b56;
  --green-ink: #24543f;
  --yellow: #ffc94a;
  --navy: #0e1326;
  --navy-2: #161c38;
  --navy-3: #222a52;
  --on-navy: #f4f1ea;
  --on-navy-2: #b9c0da;
  --grad: linear-gradient(100deg, #ffa53a 0%, #ff6a3d 48%, #f2477e 100%);
  --grad-deep: #a8365a;
  --radius: 26px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 30px rgba(74, 52, 30, 0.08);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 90% -8%, rgba(255, 138, 42, 0.12), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(46, 107, 86, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange-ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--pink-ink); }
h1, h2, h3 { color: var(--ink); margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
strong, b { color: var(--ink); font-weight: 800; }

:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  font-weight: 800; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}
@media (min-width: 1600px) { .wrap { width: min(100% - 2 * var(--gutter), 1320px); } }

section[id] { scroll-margin-top: 76px; }

/* ---------- wordmark ---------- */
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.wordmark .dot, .mega .dot { color: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  font: 700 17px/1 var(--display);
  letter-spacing: 0.01em; text-decoration: none;
  padding: 14px 22px; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-hot {
  background: var(--grad); color: var(--ink);
  box-shadow: 0 5px 0 var(--grad-deep), 0 14px 30px rgba(242, 71, 126, 0.28);
}
.btn-hot:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--grad-deep), 0 18px 36px rgba(242, 71, 126, 0.34); }
.btn-hot:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--grad-deep), 0 6px 16px rgba(242, 71, 126, 0.25); }
.btn-ghost {
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-2), 0 4px 0 rgba(74, 52, 30, 0.16);
}
.btn-ghost:hover { color: var(--ink); background: #fff; transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--line-2), 0 1px 0 rgba(74, 52, 30, 0.16); }
.btn-big { font-size: 19px; padding: 18px 28px; }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { border-radius: 9px; }
.logo .wordmark { font-size: 26px; }
@media (max-width: 400px) {
  .topbar-inner { gap: 10px; min-height: 58px; }
  .logo { gap: 8px; }
  .logo img { width: 30px; height: 30px; }
  .logo .wordmark { font-size: 22px; }
  .topbar .btn-sm { padding: 9px 12px; font-size: 13px; }
}
.topnav { display: none; }
.topnav ul { display: flex; gap: 2px; list-style: none; }
.topnav a {
  display: block; padding: 8px 11px; border-radius: 999px;
  color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none;
}
.topnav a:hover { color: var(--ink); background: rgba(74, 52, 30, 0.07); }
@media (min-width: 1000px) { .topnav { display: block; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
  /* the Evergreen painting shows through behind the phones; the copy keeps a near-solid cream wash */
  background:
    linear-gradient(180deg, rgba(251, 246, 236, 0.97) 0%, rgba(251, 246, 236, 0.9) 55%, rgba(251, 246, 236, 0.4) 100%),
    url("assets/paint/evergreen-day.webp") center bottom / cover no-repeat,
    var(--bg);
}
@media (min-width: 900px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(251, 246, 236, 0.97) 0%, rgba(251, 246, 236, 0.92) 46%, rgba(251, 246, 236, 0.4) 72%, rgba(251, 246, 236, 0.25) 100%),
      url("assets/paint/evergreen-day.webp") center bottom / cover no-repeat,
      var(--bg);
  }
}
.hero-grid { position: relative; display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap; max-width: 100%;
  padding: 8px 14px; margin-bottom: 18px;
  border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink); font-weight: 700; font-size: 14px;
}
.pill-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 42, 0.2); }
@media (max-width: 520px) {
  .pill { font-size: 13px; padding: 6px 12px; gap: 8px; margin-bottom: 14px; }
  .pill-devices { display: none; }
}

.mega {
  display: flex; align-items: flex-end;
  font-size: clamp(60px, 21vw, 168px); /* "Wiggled." is ~3.85em wide: fits 320 px phones with the gutters */
  line-height: 0.9; letter-spacing: -0.025em;
  margin: 0 0 0.3em; /* the "gg" descenders hang below the 0.9 line box */
}
.mega .worm-w {
  flex: none; width: 1.08em; height: 1.02em;
  margin: 0 0 -0.05em -0.04em;
  overflow: visible;
  filter: drop-shadow(0 0.04em 0.05em rgba(192, 48, 95, 0.25));
}
@media (prefers-reduced-motion: no-preference) {
  .mega .worm-w { animation: wiggle 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
  .mega .worm-w .eyes { animation: blink 5s infinite; transform-origin: 112px 26px; }
}
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-4deg); } 84% { transform: rotate(3deg); } 92% { transform: rotate(-1.5deg); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.1); } }
@media (min-width: 900px) { .mega { font-size: clamp(96px, 10.5vw, 168px); } }

.tagline {
  font-family: var(--display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 16px;
}
.tagline span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .tagline span { color: var(--pink-ink); } }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 26px 0 28px; }
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

.stat-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-bottom: 18px; }
.stat-row li {
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 15px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.stat-row b { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--orange-ink); letter-spacing: -0.01em; }
.stat-row span { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.fine { font-size: 14px; color: var(--muted); }

.hero-art {
  position: relative; display: flex; justify-content: flex-start; align-items: flex-start;
  width: min(100%, 500px); margin-inline: auto;
  padding: 8px 0 64px 2%;
}
.hero-art > .hero-main { width: min(66%, 310px); z-index: 2; transform: rotate(-3deg); }
.hero-art > .hero-back {
  position: absolute; z-index: 1; width: min(48%, 230px); right: 2%; top: 10%;
  transform: rotate(6deg);
}
.hero-caption {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 100%; text-align: center;
  font-size: 14px; color: var(--ink-2); margin: 0; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; background: rgba(251, 246, 236, 0.92);
}
.sticker {
  position: absolute; z-index: 3;
  font-family: var(--display); font-weight: 700; color: var(--ink); white-space: nowrap;
  padding: 7px 14px; border-radius: 16px; font-size: clamp(15px, 2vw, 21px);
  box-shadow: 0 5px 0 rgba(26, 20, 16, 0.85);
  border: 2.5px solid var(--ink);
}
.sticker-a { background: #8fdc8f; left: 2%; top: 16%; transform: rotate(-10deg); }
.sticker-b { background: var(--yellow); left: 0; bottom: 30%; transform: rotate(6deg); }
.sticker-c { background: #ff9fbd; right: 0; bottom: 12%; transform: rotate(-6deg); }
@media (max-width: 520px) {
  /* on phones the stickers would sit on the screenshot's own text and the caption */
  .sticker { font-size: 13px; padding: 5px 10px; border-width: 2px; box-shadow: 0 3px 0 rgba(26, 20, 16, 0.85); }
  .sticker-a { left: 1%; top: 1%; }
  .sticker-b { display: none; }
  .sticker-c { right: -1%; bottom: 24%; }
}
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: bob 3.2s ease-in-out infinite; }
  .sticker-b { animation-delay: -1.1s; }
  .sticker-c { animation-delay: -2.2s; }
  .hero-main { animation: float 6s ease-in-out infinite; }
}
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- device frames ---------- */
.phone {
  position: relative; margin: 0;
  padding: 8px; border-radius: 40px;
  background: linear-gradient(160deg, #2a3157, var(--navy) 55%, #1d2446);
  box-shadow: 0 0 0 1.5px rgba(14, 19, 38, 0.6), 0 26px 50px rgba(48, 30, 14, 0.28), 0 6px 14px rgba(48, 30, 14, 0.16);
}
.phone img { width: 100%; border-radius: 32px; background: var(--bg-2); }
.phone figcaption {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.04em;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--grad);
  padding: 12px 0;
  border-block: 3px solid var(--ink);
}
.marquee-track {
  display: flex; width: max-content; gap: 28px; align-items: center;
  font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.5vw, 48px); letter-spacing: -0.01em; color: var(--ink);
  white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 28s linear infinite; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 5.5vw, 76px) 0; position: relative; }
.band { background: var(--bg-2); }
.section-head { max-width: 780px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--muted);
  margin-bottom: 14px;
}
.kicker span {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--ink); color: var(--bg); letter-spacing: 0.02em;
}
.section h2 { font-size: clamp(38px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: 18px; }
.section-lead { font-size: clamp(17px, 1.7vw, 20px); max-width: 40em; }
.aside { margin-top: 22px; margin-bottom: 0; font-size: 15px; color: var(--muted); max-width: 52em; }

/* ---------- dark band (demo) ---------- */
.on-dark { background: var(--navy); color: var(--on-navy-2); }
.on-dark h2, .on-dark h3, .on-dark strong, .on-dark b { color: var(--on-navy); }
.on-dark .kicker { color: var(--on-navy-2); }
.on-dark .kicker span { background: var(--orange); color: var(--ink); }
.on-dark .fine { color: var(--on-navy-2); }
.on-dark a { color: #ffb36b; }
.on-dark :focus-visible { outline-color: var(--yellow); }
.on-dark .btn-ghost {
  background: rgba(255, 255, 255, 0.07); color: var(--on-navy);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 4px 0 rgba(0, 0, 0, 0.5);
}
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.on-dark .btn-ghost[aria-pressed="false"] { color: var(--on-navy-2); text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- demo ---------- */
.demo-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr minmax(340px, 480px); } }
@media (min-width: 1280px) { .demo-grid { grid-template-columns: 1fr 520px; } }
.ticks { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.36em; width: 16px; height: 16px; border-radius: 6px;
  background: #8fdc8f;
}
.ticks li:nth-child(2)::before { background: #ff9fbd; }
.ticks li:nth-child(3)::before { background: var(--yellow); }
.keys { font-size: 15px; }
.kbd {
  display: inline-block; min-width: 1.9em; text-align: center; margin: 0 2px;
  padding: 2px 7px; border-radius: 8px; font-weight: 800; font-size: 13px; color: var(--on-navy);
  background: var(--navy-3); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.demo-device {
  width: 100%; max-width: 520px; margin-inline: auto;
  padding: 14px; border-radius: 34px;
  background: linear-gradient(180deg, #1e2547, #0b0f20);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 138, 42, 0.12);
  transition: box-shadow 0.3s ease;
}
.demo-device.is-overdrive { box-shadow: 0 0 0 3px var(--pink), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(242, 71, 126, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .demo-device.is-overdrive { animation: overdrive 0.5s ease-in-out infinite alternate; }
}
@keyframes overdrive {
  to { box-shadow: 0 0 0 3px var(--yellow), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(255, 201, 74, 0.55); }
}
.demo-hud { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 6px 10px; }
.demo-title { display: grid; gap: 4px; min-width: 0; }
.demo-title span { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--on-navy); }
.demo-title small, .demo-score small {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-2);
}
.demo-score { display: grid; justify-items: end; }
.demo-score b { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--yellow); line-height: 1; }
.demo-meters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 2px 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  font-weight: 800; font-size: 13px; color: var(--on-navy-2); white-space: nowrap;
}
.chip b { color: var(--on-navy); font-size: 15px; }
.heat {
  position: relative; flex: 1 1 120px; height: 16px; border-radius: 999px; overflow: hidden;
  background: #1a2042; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.heat-fill {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--yellow), var(--orange) 50%, var(--pink));
  border-radius: inherit;
}
.is-overdrive .heat-fill { background: linear-gradient(90deg, var(--yellow), #fff 50%, var(--yellow)); }
.heat-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; letter-spacing: 0.2em; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.demo-stage {
  position: relative; width: 100%;
  aspect-ratio: 3 / 4; min-height: 300px; max-height: min(78vh, 720px);
  border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #1b2350, #0a0d1f 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.demo-stage canvas {
  width: 100%; height: 100%;
  cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.demo-stage canvas:focus { outline: none; }
.demo-stage canvas:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: 22px; }
.demo-status {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 24px; margin: 0; font-weight: 700; color: var(--on-navy-2);
}
.demo-overlay {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  pointer-events: none; /* taps fall through to the board, which also advances */
  text-align: center; padding: 24px;
  background: rgba(10, 13, 31, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.demo-overlay-title { margin: 0; font-family: var(--display); font-size: clamp(38px, 9vw, 56px); font-weight: 700; color: #8fdc8f; }
.demo-overlay-text { margin: 0 0 6px; font-weight: 700; color: var(--on-navy); }
.demo-overlay .btn { pointer-events: auto; }
@media (min-width: 900px) { .demo-stage { max-height: min(66vh, 580px); } }
@media (hover: none) and (pointer: coarse) { .keys { display: none; } }
.demo-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; }

/* ---------- how ---------- */
.steps { list-style: none; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.step-art { width: 100%; max-width: 200px; height: auto; margin-bottom: 16px; }
@media (max-width: 759px) {
  .step { padding: 20px 22px; }
  .step-art { max-width: 140px; margin-bottom: 10px; }
}
.step h3 { display: flex; align-items: center; gap: 12px; font-size: 30px; margin-bottom: 12px; }
.step-n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: #8fdc8f; color: var(--ink); font-size: 20px;
  box-shadow: 0 3px 0 var(--ink); border: 2px solid var(--ink);
}
.step-tap .step-n { background: var(--yellow); }
.step-chain .step-n { background: #ff9fbd; }
.step p { margin: 0; }
.ladder { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 14px; }
.ladder li {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; color: var(--ink);
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 138, 42, 0.14); box-shadow: inset 0 0 0 1px rgba(184, 71, 12, 0.25);
}
.ladder li:nth-child(n+3) { background: rgba(242, 71, 126, 0.13); box-shadow: inset 0 0 0 1px rgba(192, 48, 95, 0.28); }

/* ---------- twists ---------- */
.mech-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1040px) { .mech-layout { grid-template-columns: 1.3fr 1fr; } }
.mech-grid { list-style: none; display: grid; gap: 14px; }
@media (min-width: 600px) { .mech-grid { grid-template-columns: 1fr 1fr; } }
.mech {
  padding: 20px 22px; border-radius: 22px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.mech svg { width: 44px; height: 44px; margin-bottom: 12px; }
.mech h3 { font-size: 24px; margin-bottom: 8px; }
.mech p { margin: 0; font-size: 16px; }
.sub-head { margin: clamp(32px, 4vw, 48px) 0 16px; }
.sub-head h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.sub-head p { margin: 0; max-width: 40em; }
.rule-grid { list-style: none; display: grid; gap: 14px; }
@media (min-width: 600px) { .rule-grid { grid-template-columns: 1fr 1fr; } }
.rule {
  --r: var(--orange);
  position: relative; padding: 20px 22px 20px 26px; border-radius: 22px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), inset 7px 0 0 var(--r), var(--shadow);
}
.rule .rule-world { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.rule h4 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.rule p:last-child { margin: 0; font-size: 16px; }
.rule-worm { --r: #ff8fb1; }
.rule-lava { --r: #ff9a3c; }
.rule-glitch { --r: #b9d900; }
.rule-noodle { --r: #e9b43c; }
.twist-shots { display: flex; justify-content: center; gap: clamp(14px, 3vw, 24px); padding: 4px 4% 24px; }
.twist-shots .phone { width: min(46%, 250px); }
.twist-shots .phone:first-child { transform: rotate(-3deg); }
.twist-shots .phone:last-child { transform: rotate(3deg) translateY(22px); }
.shape-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.shape-tags li {
  padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2);
}

/* ---------- worlds ---------- */
.tod {
  position: relative; border: 0; padding: 0; margin: 0 0 22px; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.tod legend { float: left; padding: 0; margin-right: 4px; font-weight: 800; color: var(--ink); font-size: 15px; }
.tod-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.tod input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tod label {
  display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-2);
}
.tod label small { font-weight: 700; font-size: 12px; color: var(--muted); }
.tod input:checked + label { background: var(--ink); color: var(--bg); }
.tod input:checked + label small { color: #d9cfbf; }
.tod input:focus-visible + label { outline: 3px solid var(--orange-ink); outline-offset: 2px; }
@media (max-width: 599px) {
  .tod-options { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .tod label { justify-content: center; }
}

.world-grid {
  list-style: none; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
@media (min-width: 1180px) { .world-grid { grid-template-columns: repeat(4, 1fr); } }
.world {
  --w: var(--orange);
  /* the game multiplies a tint over the painting for each time of day; dark paintings take ~60% of it */
  --tint-golden: rgb(255 214 158); --tint-dusk: rgb(214 163 204); --tint-night: rgb(92 110 179);
  --tint: #fff;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.world.is-dark { --tint-golden: rgb(255 230 197); --tint-dusk: rgb(230 200 224); --tint-night: rgb(157 168 209); }
.world-art {
  position: relative; border-bottom: 5px solid var(--w); overflow: hidden; background: var(--bg-2);
  /* keep the multiply tint blending with this painting only, and clipped to the card's corners in WebKit */
  isolation: isolate; transform: translateZ(0);
  border-top-left-radius: inherit; border-top-right-radius: inherit;
}
.world-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.world-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-color: var(--tint); mix-blend-mode: multiply;
  transition: background-color 0.6s ease;
}
.world-art::before { /* little lights at golden hour and night, as in the game */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 220, 140, 0.95) 0 2px, transparent 3.5px),
    radial-gradient(circle at 31% 62%, rgba(255, 220, 140, 0.9) 0 1.5px, transparent 3px),
    radial-gradient(circle at 52% 18%, rgba(255, 230, 170, 0.9) 0 2px, transparent 3.5px),
    radial-gradient(circle at 70% 48%, rgba(255, 220, 140, 0.95) 0 1.5px, transparent 3px),
    radial-gradient(circle at 86% 30%, rgba(255, 230, 170, 0.9) 0 2.5px, transparent 4px),
    radial-gradient(circle at 78% 78%, rgba(255, 220, 140, 0.85) 0 1.5px, transparent 3px);
  transition: opacity 0.6s ease;
}
.worlds:has(#tod-golden:checked) .world { --tint: var(--tint-golden); }
.worlds:has(#tod-dusk:checked) .world { --tint: var(--tint-dusk); }
.worlds:has(#tod-night:checked) .world { --tint: var(--tint-night); }
.worlds:has(#tod-golden:checked) .world-art::before { opacity: 0.55; }
.worlds:has(#tod-night:checked) .world-art::before { opacity: 1; }
.world-tags { position: absolute; z-index: 2; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; margin: 0;
  box-shadow: 0 2px 0 rgba(26, 20, 16, 0.35);
}
.tag-free { background: var(--green); color: #fff; }
.tag-member { background: var(--navy); color: #fff; }
.tag-rule { background: var(--yellow); color: var(--ink); }
.world:hover { box-shadow: inset 0 0 0 2px var(--w), 0 18px 40px rgba(74, 52, 30, 0.16); }
@media (prefers-reduced-motion: no-preference) {
  .world:hover, .js .world[data-reveal].is-in:hover { transform: translateY(-4px) rotate(-0.6deg); }
}
.world-body { padding: 15px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.world h3 { font-size: 23px; margin-bottom: 6px; line-height: 1.05; }
.world-body p { margin: 0; font-size: 16px; }
@media (max-width: 599px) {
  .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .world { border-radius: 18px; }
  .world-body { padding: 10px 12px 13px; }
  .world h3 { font-size: 18px; }
  .world-body p { font-size: 14px; line-height: 1.4; }
  .world-tags { left: 6px; top: 6px; right: 6px; gap: 4px; }
  .tag { font-size: 10px; padding: 3px 7px; letter-spacing: 0.05em; }
}

.journey { display: grid; gap: 32px; align-items: center; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .journey { grid-template-columns: 1fr 1fr; } }
.journey h3 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.facts { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.facts li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 12px 16px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.facts b { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--orange-ink); min-width: 3.4em; }
.journey-shots { display: flex; justify-content: center; gap: clamp(14px, 3vw, 24px); padding: 0 4% 24px; }
.journey-shots .phone { width: min(46%, 250px); }
.journey-shots .phone:first-child { transform: rotate(-3deg); }
.journey-shots .phone:last-child { transform: rotate(3deg) translateY(22px); }

/* ---------- dailies ---------- */
.daily-layout { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .daily-layout { grid-template-columns: 1.2fr 0.8fr; } }
.daily-list { list-style: none; display: grid; gap: 14px; }
.daily {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.daily-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--grad); color: var(--ink); font-size: 26px; box-shadow: 0 3px 0 var(--grad-deep);
}
.daily-icon svg { width: 28px; height: 28px; }
.daily h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 24px; margin: 4px 0 6px; }
.daily p { margin: 0; font-size: 16px; }
.daily .tag { box-shadow: none; }
.daily-shot { display: flex; justify-content: center; padding-bottom: 20px; }
.daily-shot .phone { width: min(70%, 290px); transform: rotate(2deg); }

/* ---------- modes ---------- */
.modes-layout { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1040px) { .modes-layout { grid-template-columns: 1.3fr 0.7fr; } }
.mode-list { list-style: none; display: grid; gap: 14px; }
@media (min-width: 620px) { .mode-list { grid-template-columns: 1fr 1fr; } }
.mode {
  --m: var(--orange);
  padding: 22px 24px; border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), inset 7px 0 0 var(--m), var(--shadow);
}
.mode-rush { --m: var(--pink); }
.mode-zen { --m: #7fc6a4; }
.mode-duel { --m: #8f86ff; }
.mode-endless { --m: var(--yellow); }
.mode h3 { font-size: 15px; font-family: var(--font); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.mode-big { font-family: var(--display); font-size: clamp(25px, 2.6vw, 32px); font-weight: 700; color: var(--ink); line-height: 1.05; margin: 0 0 8px; }
.mode p:last-child { margin: 0; font-size: 16px; }
.modes-shot { display: flex; justify-content: center; padding-bottom: 20px; }
.modes-shot .phone { width: min(70%, 280px); transform: rotate(-2deg); }

/* ---------- iPhone Duo ---------- */
.pose-grid { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pose-grid { grid-template-columns: repeat(4, 1fr); } }
.pose {
  padding: 16px 18px 20px; border-radius: 22px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.pose svg { width: 100%; height: auto; margin-bottom: 12px; }
.pose h3 { font-size: 22px; margin-bottom: 6px; }
.pose p { margin: 0; font-size: 15px; line-height: 1.45; }
@media (max-width: 599px) {
  .pose { padding: 12px 13px 15px; border-radius: 18px; }
  .pose h3 { font-size: 19px; }
  .pose p { font-size: 14px; }
}
.flip { display: grid; gap: 32px; align-items: center; margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 900px) { .flip { grid-template-columns: 0.8fr 1.2fr; } }
.flip-shot { display: flex; justify-content: center; padding-bottom: 8px; }
.flip-shot .phone { width: min(70%, 280px); transform: rotate(-2deg); }
.flip h3 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.flip .tag { display: inline-block; margin-bottom: 14px; box-shadow: none; }
.flip p { max-width: 34em; }

/* ---------- the deal ---------- */
.deal-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .deal-grid { grid-template-columns: 1.1fr 0.9fr; } }
.free-list { list-style: none; display: grid; gap: 10px; margin: 22px 0 0; }
.free-list li { position: relative; padding-left: 34px; }
.free-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05em; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; font-weight: 900;
}
.nopes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.nopes li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; font-weight: 800; color: var(--ink);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2);
}
.nopes li::before {
  content: "✕"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 12px;
}
.member-card {
  position: relative; padding: clamp(26px, 4vw, 38px); border-radius: 34px;
  background:
    linear-gradient(var(--navy), var(--navy)) padding-box,
    var(--grad) border-box;
  border: 4px solid transparent;
  color: var(--on-navy-2);
  box-shadow: 0 24px 60px rgba(48, 30, 14, 0.25);
}
.member-card h3, .member-card b { color: var(--on-navy); }
.member-kicker { font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: #ffb36b; margin-bottom: 8px; }
.member-title { font-size: clamp(40px, 5vw, 54px); margin-bottom: 12px; }
.member-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; }
.member-price b { font-family: var(--display); font-size: clamp(42px, 5vw, 56px); font-weight: 700; color: var(--yellow); line-height: 1; }
.member-price span { font-weight: 700; color: var(--on-navy-2); }
.member-trial { font-weight: 800; color: var(--on-navy); margin-bottom: 18px; }
.member-perks { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.member-perks li { padding-left: 28px; position: relative; }
.member-perks li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--yellow); }
.member-note { margin: 0; font-size: 15px; }

/* ---------- closing band ---------- */
.launch {
  position: relative; text-align: center; color: var(--on-navy);
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    linear-gradient(180deg, rgba(14, 19, 38, 0.62), rgba(14, 19, 38, 0.5) 45%, rgba(14, 19, 38, 0.85)),
    url("assets/paint/evergreen-finale.webp") center / cover no-repeat,
    var(--navy);
}
.launch-inner { display: grid; justify-items: center; gap: 8px; }
.launch-icon {
  width: clamp(112px, 15vw, 150px); border-radius: 22.4%; margin-bottom: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 70px rgba(255, 138, 42, 0.35);
}
.launch h2 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.025em; margin-bottom: 10px; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.launch p { font-size: 19px; margin-bottom: 24px; color: var(--on-navy); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; background: var(--bg-2); }
.footer-inner { display: grid; gap: 12px; justify-items: start; }
.footer .logo .wordmark { font-size: 34px; }
.footer-tag { margin: 0; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0; }
.footer-links a { font-weight: 800; color: var(--ink); }
.footer-links a:hover { color: var(--orange-ink); }
.footer-fine { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- sub pages (privacy / support) ---------- */
.page { padding: clamp(44px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(48px, 8vw, 84px); letter-spacing: -0.03em; margin-bottom: 18px; }
.page h2 { font-size: clamp(25px, 3vw, 32px); margin: 40px 0 12px; }
.page p, .page li { font-size: 17px; }
.page ul.list { padding-left: 1.2em; display: grid; gap: 8px; margin-bottom: 1em; }
.updated { color: var(--muted); font-size: 14px; }
.callout-box {
  padding: 22px 24px; border-radius: 22px; margin: 24px 0;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), inset 7px 0 0 var(--green), var(--shadow);
}
.callout-box p:last-child { margin: 0; }
.faq { display: grid; gap: 12px; margin-top: 12px; }
.faq details {
  border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; color: var(--orange-ink); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }
.faq details > div p:last-child { margin-bottom: 0; }
.mail { font-family: var(--display); font-weight: 700; font-size: 22px; }

/* ---------- reveal on scroll (only with JS, only with motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js [data-reveal] { transform: translateY(18px); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .js [data-reveal].is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media print {
  .js [data-reveal] { transform: none !important; }
  .topbar, .marquee, .demo { display: none; }
}
