/* Life OS on the ELO clay board, shared by every lifeos.eloai.io page (3 Nov 2026): the same plasticine pieces,
   outlines and squish as eloai.io, in the body's colours. The home keeps its own copy inline. Built from
   eloai.io's yc/board.css; page pieces for Life OS follow at the end. */
:root {
  --board: #fbfaf6;
  --paper: #ffffff;
  --ink: #16120f;
  --ink-2: #4b4139;
  --coral: #f2553d;
  --navy: #2442b3;
  --butter: #ffd24d;
  --mint: #7ddbb5;
  --pink: #ff9ec2;
  --sky: #8fc3ff;
  --lilac: #b892ff;
  --orange: #ff9a4d;
  --display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --line: 3px solid var(--ink);
  --spring: cubic-bezier(0.3, 1.6, 0.5, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.15  0 0 0 0 0.08  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--board); color: var(--ink); overscroll-behavior: none; }
body { font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
section[id] { scroll-margin-top: 84px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.clay { --lift: 6px; position: relative; border: var(--line); background-image: var(--grain);
  box-shadow: inset -6px -8px 14px rgba(60, 25, 5, 0.13), inset 6px 7px 12px rgba(255, 255, 255, 0.55), var(--lift) var(--lift) 0 var(--ink); }
.press { cursor: pointer; transition: transform 0.18s var(--spring), box-shadow 0.18s ease; }
.press:hover { --lift: 9px; transform: translate(-3px, -3px); }
.press:active { --lift: 2px; transform: translate(4px, 4px) scale(1.015, 0.965); transition-duration: 0.06s; }

.kicker { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 20px; }
.intro { font-size: clamp(19px, 1.8vw, 22px); max-width: 50ch; margin: 0 0 44px; font-weight: 500; color: var(--ink-2); }
.sticker { display: inline-block; background: var(--paper); border: var(--line); border-radius: 12px; padding: 5px 13px; font-weight: 700; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; border-radius: 999px; padding: 14px 26px; background-color: var(--butter); }
.btn.ghost { background-color: var(--paper); }
.buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.store { display: inline-flex; flex-direction: column; text-decoration: none; background: var(--ink); color: var(--board); border-radius: 16px; padding: 10px 20px;
  font-weight: 700; font-size: 19px; line-height: 1.15; box-shadow: 4px 4px 0 var(--coral); }
.store small { font-weight: 500; font-size: 12px; opacity: 0.8; }
a:focus-visible, button:focus-visible, canvas:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }

/* announcement + header: the nav goes to real pages, never to places on this one (owner, 3 Nov 2026) */
.announce { background: var(--ink); color: var(--butter); text-align: center; font-weight: 700; font-size: 15px; padding: 10px 16px; }
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
header.top { position: sticky; top: 0; z-index: 30; background: var(--board); border-bottom: var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }
.logo { --lift: 4px; display: inline-flex; align-items: center; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 25px;
  letter-spacing: 0.02em; background-color: var(--mint); border-radius: 18px; padding: 3px 15px; }
.logo:hover { animation: wiggle 0.5s ease-in-out; }
nav.main { display: flex; gap: 4px; }
nav.main a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 14px; border-radius: 999px; border: 3px solid transparent; }
nav.main a:hover { border-color: var(--ink); background: var(--paper); }
nav.main a[aria-current="page"] { border-color: var(--ink); background: var(--butter); box-shadow: 3px 3px 0 var(--ink); }
.cta { text-decoration: none; font-weight: 700; font-size: 16px; background: var(--ink); color: var(--board); border-radius: 999px; padding: 11px 20px;
  box-shadow: 4px 4px 0 var(--coral); white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--coral); }
.cta:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--coral); }

/* the page opening */
.page-hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero .sticker { transform: rotate(-2deg); animation: pop 0.5s 0.05s var(--spring) both; }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 104px); line-height: 0.94; letter-spacing: -0.035em; margin: 22px 0 26px; }
.page-hero h1 .ln { display: block; animation: rise 0.8s 0.1s cubic-bezier(0.3, 1.35, 0.5, 1) both; }
.page-hero h1 .ln + .ln { animation-delay: 0.24s; }
.page-hero h1 mark { --lift: 6px; display: inline-block; background-color: var(--coral); color: var(--paper); border-radius: 0.2em; padding: 0 0.13em 0.07em; margin: 0.05em 0 0.09em;
  transform: rotate(-2deg); animation: drop 0.95s 0.45s var(--spring) both; }
.page-hero .lede { font-size: clamp(19px, 1.75vw, 22px); max-width: 40ch; margin: 0 0 30px; font-weight: 500; color: var(--ink-2); animation: rise 0.8s 0.36s cubic-bezier(0.3, 1.2, 0.5, 1) both; }
.page-hero .buttons { animation: rise 0.8s 0.48s cubic-bezier(0.3, 1.2, 0.5, 1) both; }

.marquee { background: var(--ink); color: var(--butter); overflow: hidden; white-space: nowrap; }
.marquee div { display: inline-block; padding: 16px 0; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.8vw, 34px); animation: slide 40s linear infinite; }
.marquee:hover div { animation-play-state: paused; }
.marquee span { margin: 0 22px; }
.marquee .star { color: var(--coral); display: inline-block; animation: spin 6s linear infinite; }

/* The full bottom bar (owner, 3 Nov 2026: "bring back the old bottom bar ... with everything"). */
.site-foot { position: relative; background: var(--ink); color: #d8cdbf; padding-block: 64px calc(34px + env(safe-area-inset-bottom, 0px)); font-size: 15px; margin-top: 0; }
.foot-beads { position: absolute; left: 0; right: 0; top: -13px; display: flex; justify-content: center; gap: 14px; pointer-events: none; }
.foot-beads i { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--ink); background: var(--c); box-shadow: inset -3px -4px 6px rgba(60, 25, 5, 0.18), inset 3px 3px 5px rgba(255, 255, 255, 0.5); }
.site-foot:hover .foot-beads i { animation: bob 0.9s ease-in-out; animation-delay: calc(var(--i) * 60ms); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-bottom: 34px; border-bottom: 2px solid #3a322c; }
.foot-top .brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-top .logo { color: var(--ink); box-shadow: inset -4px -5px 9px rgba(60, 25, 5, 0.13), inset 4px 4px 8px rgba(255, 255, 255, 0.55), 4px 4px 0 #000; border-color: #000; }
.foot-top p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--paper); letter-spacing: -0.01em; }
.foot-top .store { box-shadow: 4px 4px 0 var(--coral); background: var(--paper); color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 22px; padding-block: 34px; }
.foot-cols h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--butter); letter-spacing: 0.01em; }
.foot-cols a { display: block; text-decoration: none; padding: 4px 0; line-height: 1.3; color: #d8cdbf; }
.foot-cols a:hover { color: var(--paper); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; padding-top: 22px; border-top: 2px solid #3a322c; font-size: 13px; color: #a89c90; }
.foot-bottom p { margin: 0; }
.foot-bottom a { text-decoration: none; color: #d8cdbf; }
.foot-bottom a:hover { text-decoration: underline; }

/* thumbprints left on the board, and things plopping into place as you scroll */
#prints { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 40; pointer-events: none; }
.print { position: absolute; width: 38px; height: 48px; margin: -24px 0 0 -19px; border-radius: 50%; mix-blend-mode: multiply; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 50% 60%, rgba(70, 35, 10, 0.16) 0 1.3px, transparent 1.3px 4.2px),
              radial-gradient(ellipse at 38% 30%, rgba(255, 255, 255, 0) 30%, rgba(70, 35, 10, 0.18) 75%, rgba(70, 35, 10, 0) 100%);
  animation: printfade 7s ease-out forwards; }
.split .w { display: inline-block; }
.split.pre { opacity: 1; translate: none; scale: none; }
.split.pre .w { opacity: 0; translate: 0 0.45em; }
.split.in { animation: none; }
.split.in .w { animation: plop 0.65s cubic-bezier(0.3, 1.45, 0.5, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.pre { opacity: 0; translate: 0 28px; scale: 0.97 1.04; }
.in { animation: plop 0.7s cubic-bezier(0.3, 1.45, 0.5, 1) both; animation-delay: calc(var(--d, 0) * 80ms); }

/* the clay finale (clay.js) and its drawing tools */
.finale { background: var(--board); border-top: var(--line); padding-block: clamp(60px, 8vw, 110px); text-align: center; }
.slab-box { position: relative; max-width: 1180px; margin: 0 auto 22px; }
.slab-wrap { position: relative; z-index: 1; border: var(--line); border-radius: 36px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); aspect-ratio: 2.35 / 1; background: #f46a4f; }
#clay { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
#clay-words { position: absolute; left: 50%; top: 50%; width: 92%; transform: translate(-50%, -50%); margin: 0; text-align: center; color: var(--paper);
  font-size: clamp(40px, 8.4vw, 118px); line-height: 0.98; pointer-events: none; text-wrap: initial; }
.has-clay #clay-words { color: transparent; }
.finale .note { margin: 0 0 18px; font-weight: 700; }
.finale .buttons { justify-content: center; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pop { from { scale: 0.6; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes stamp { 0% { scale: 1.6; opacity: 0; } 60% { scale: 0.92; opacity: 1; } 100% { scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 40px; scale: 0.96 1.06; } 60% { opacity: 1; translate: 0 -5px; scale: 1.01 0.98; } to { opacity: 1; translate: 0 0; scale: 1 1; } }
@keyframes drop { from { opacity: 0; translate: 0 -60px; rotate: -14deg; scale: 0.7; } 55% { opacity: 1; translate: 0 6px; rotate: 3deg; scale: 1.06 0.94; }
  80% { translate: 0 -2px; rotate: -1deg; scale: 0.98 1.02; } to { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes wiggle { 25% { rotate: -6deg; } 50% { rotate: 5deg; } 75% { rotate: -3deg; } }
@keyframes plop { from { opacity: 0; translate: 0 28px; scale: 0.97 1.04; } 60% { opacity: 1; translate: 0 -4px; scale: 1.01 0.98; } to { opacity: 1; translate: 0 0; scale: 1 1; } }
@keyframes printfade { 0% { transform: scale(0.7) rotate(var(--r, 0deg)); opacity: 0; } 6% { transform: scale(1) rotate(var(--r, 0deg)); opacity: 1; } 100% { transform: scale(1) rotate(var(--r, 0deg)); opacity: 0; } }
@keyframes eyes { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
@keyframes hop { 35% { translate: 0 -12px; scale: 0.98 1.03; } 70% { translate: 0 2px; scale: 1.02 0.98; } }
@keyframes squash { 30% { scale: 1.03 0.95; } 65% { scale: 0.99 1.02; } }
@keyframes beatg { 0% { box-shadow: 0 0 0 0 rgba(109, 255, 150, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(109, 255, 150, 0); } 100% { box-shadow: 0 0 0 0 rgba(109, 255, 150, 0); } }

@media (max-width: 980px) {
  nav.main { display: none; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  header.top .wrap { height: 64px; }
  .cta { padding: 9px 14px; font-size: 15px; }
  .logo { font-size: 22px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .foot-top p { font-size: 19px; }
  .slab-wrap { aspect-ratio: 1.15 / 1; border-radius: 26px; }
  #clay-words { font-size: clamp(36px, 11.5vw, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .pre, .split.pre .w { opacity: 1; translate: none; scale: none; }
}

/* Drawing in the clay (3 Nov 2026): the hint, the two tools, the camera flash and the photo that drops onto the table. */
.draw-hint { position: absolute; left: 18px; top: 16px; z-index: 2; font-weight: 700; font-size: 14px; background: var(--butter); color: var(--ink); border: var(--line);
  border-radius: 999px; padding: 6px 14px; box-shadow: 4px 4px 0 var(--ink); rotate: -3deg; pointer-events: none; animation: bob 3.2s ease-in-out infinite; transition: opacity 0.3s; }
.slab-box.drawn .draw-hint { opacity: 0; }
.clay-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 14px; }
.tool { --lift: 4px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 10px 18px 10px 14px; font-weight: 700; font-size: 16px; background-color: var(--paper); }
.tool svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#clay-snap { background-color: var(--butter); }
.slab-box.flash .slab-wrap::after { content: ""; position: absolute; inset: 0; z-index: 3; background: #fff; pointer-events: none; animation: flash 0.55s ease-out forwards; }
.shot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(22, 18, 15, 0.55); animation: fadein 0.2s ease-out; }
.shot-card { width: min(92vw, 760px); background: var(--paper); border: var(--line); border-radius: 22px; padding: 16px; box-shadow: 8px 8px 0 var(--ink); rotate: -2deg;
  animation: drop 0.75s var(--spring) both; text-align: center; }
.shot-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.shot-card .buttons { justify-content: center; margin-top: 16px; }
@keyframes flash { from { opacity: 0.95; } to { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }


/* ---- Life OS pages (3 Nov 2026): every page in the clay board, built by v2/lifeos-home/pages.py ---- */
.lo-hero { padding-block: clamp(30px, 5vw, 64px) clamp(50px, 6vw, 90px); overflow: hidden; }
.lo-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.lo-hero.solo .wrap { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.lo-hero h1 mark { background-color: var(--tone, var(--mint)); color: var(--ink); }
.lo-hero .lede { max-width: 42ch; }
.hero-note { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); max-width: 62ch; }
.hero-note a { font-weight: 700; }
.hero-toy { position: relative; justify-self: center; width: 100%; max-width: 560px; animation: pop 0.7s 0.2s var(--spring) both; }
.toy-note { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }

.lo-stats { padding-block: clamp(20px, 3vw, 40px) clamp(30px, 4vw, 50px); }
.lo-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lo-stats li { border-radius: 26px; padding: 24px; transition: rotate 0.3s var(--spring), translate 0.3s var(--spring); }
.lo-stats li:hover { rotate: -1.5deg; translate: 0 -4px; }
.lo-stats li:nth-child(3n+1) { background-color: var(--butter); rotate: -1.2deg; }
.lo-stats li:nth-child(3n+2) { background-color: var(--mint); rotate: 0.8deg; }
.lo-stats li:nth-child(3n+3) { background-color: var(--pink); rotate: -0.6deg; }
.lo-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.4vw, 50px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }
.lo-stats span { font-weight: 600; font-size: 17px; }

.lo-features { padding-block: clamp(50px, 7vw, 100px); }
.lo-features .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feat { border-radius: 28px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.feat:nth-child(6n+1) { background-color: var(--sky); } .feat:nth-child(6n+2) { background-color: var(--butter); } .feat:nth-child(6n+3) { background-color: var(--mint); }
.feat:nth-child(6n+4) { background-color: var(--pink); } .feat:nth-child(6n+5) { background-color: var(--lilac); } .feat:nth-child(6n+6) { background-color: var(--orange); }
.feat .kick { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0; }
.feat h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.feat p { margin: 0; font-weight: 600; font-size: 18px; }
.feat .more { margin-top: auto; padding-top: 6px; font-weight: 800; text-decoration: none; }
.feat .more::after { content: " →"; }
[dir="rtl"] .feat .more::after { content: " ←"; }
.feat .more:hover { text-decoration: underline; text-underline-offset: 3px; }

.lo-band { padding-block: 0 clamp(60px, 8vw, 100px); }
.lo-band .card { border-radius: 30px; background-color: var(--navy); color: var(--paper); padding: clamp(26px, 4vw, 48px); text-align: center; }
.lo-band h2 { color: var(--paper); font-size: clamp(36px, 5vw, 72px); }
.lo-band .lede { color: #dfe4ff; font-weight: 600; font-size: 19px; margin: 0 auto 22px; max-width: 46ch; }
.lo-band .buttons { justify-content: center; }
.lo-band .fine { margin: 20px auto 0; color: #c9d1ff; font-size: 14px; font-weight: 600; max-width: 60ch; }
.lo-band .store { box-shadow: 4px 4px 0 var(--butter); background: var(--paper); color: var(--ink); }

.lo-sec { padding-block: clamp(50px, 7vw, 100px); }
.lo-sec.tint { background: var(--paper); border-block: var(--line); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { border-radius: 30px; padding: clamp(24px, 3vw, 36px); background-color: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.plan.pro { background-color: var(--butter); rotate: 0.8deg; }
.plan:first-child { rotate: -0.8deg; }
.plan h3 { font-family: var(--display); font-weight: 800; font-size: 32px; margin: 0; letter-spacing: -0.02em; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.04em; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.plan .price span { font-size: 0.32em; font-weight: 700; letter-spacing: 0; }
.plan .note { margin: 0; font-weight: 700; color: var(--ink-2); }
.plan ul { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.plan li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: var(--mint); transform: translateY(2px); }
.plan .buttons { margin-top: auto; }
.plan .fine { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.bill { display: inline-flex; gap: 6px; padding: 5px; border: var(--line); border-radius: 999px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); margin: 0 0 26px; }
.bill button { border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 800; background: transparent; cursor: pointer; }
.bill button[aria-pressed="true"] { background: var(--ink); color: var(--butter); }
.plan .per { display: block; margin-top: 6px; font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); min-height: 1.4em; }

.faq { display: grid; gap: 14px; max-width: 920px; }
.faq h2 { margin-bottom: 6px; }
.faq details { border-radius: 22px; background-color: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: var(--line); background: var(--butter);
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; transition: rotate 0.3s var(--spring); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > :not(summary) { margin: 0 22px 18px; font-weight: 500; color: var(--ink-2); }
.faq details[open] > :not(summary) { animation: plop 0.4s cubic-bezier(0.3, 1.45, 0.5, 1) both; }

.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic { border-radius: 24px; padding: 20px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; background-color: var(--paper); }
.topic:nth-child(6n+1) { background-color: var(--sky); } .topic:nth-child(6n+3) { background-color: var(--mint); } .topic:nth-child(6n+5) { background-color: var(--butter); }
.topic b { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; }
.topic span { font-weight: 600; color: var(--ink-2); }
.topic .go { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--ink); }
.topic[hidden], .gcard[hidden], .faq details[hidden] { display: none; }
.search { position: relative; max-width: 620px; margin: 0 0 28px; }
.search input { width: 100%; font: inherit; font-weight: 700; font-size: 19px; border: var(--line); border-radius: 999px; padding: 15px 22px 15px 56px; background: var(--paper);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.06), 5px 5px 0 var(--ink); }
[dir="rtl"] .search input { padding: 15px 56px 15px 22px; }
.search svg { position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; translate: 0 -50%; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
[dir="rtl"] .search svg { left: auto; right: 20px; }
.search-none { font-weight: 700; color: var(--ink-2); }

/* reading pages: guides, legal, accuracy */
.read { padding-block: clamp(20px, 3vw, 40px) clamp(60px, 8vw, 100px); }
.read > .wrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 780px); gap: clamp(24px, 4vw, 64px); justify-content: center; align-items: start; }
.read > .wrap.no-toc { grid-template-columns: minmax(0, 860px); }
.toc { position: sticky; top: 98px; border-radius: 22px; background-color: var(--paper); padding: 16px; display: grid; gap: 2px; font-size: 15px; max-height: calc(100vh - 120px); overflow: auto; }
.toc summary { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin: 2px 8px 6px; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--display); font-size: 18px; transition: rotate 0.3s var(--spring); }
.toc[open] summary::after { rotate: 45deg; }
.toc nav { display: grid; gap: 2px; }
.toc a { text-decoration: none; padding: 6px 10px; border-radius: 12px; font-weight: 600; line-height: 1.25; border: 2.5px solid transparent; }
.toc a:hover { border-color: var(--ink); }
.toc a.on { border-color: var(--ink); background: var(--butter); }
.prose { font-size: 18px; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin: 1.5em 0 0.5em; scroll-margin-top: 100px; }
.prose h3 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 1.3em 0 0.4em; }
.prose h4 { font-weight: 800; margin: 1.2em 0 0.3em; }
.prose p, .prose li { color: var(--ink-2); font-weight: 500; }
.prose a { color: var(--navy); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose strong, .prose b { color: var(--ink); }
.prose code { font-size: 0.9em; background: #f1eadf; border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--ink); color: #f3ead9; border-radius: 18px; padding: 16px; overflow-x: auto; box-shadow: 5px 5px 0 var(--coral); }
.prose blockquote { margin: 1em 0; padding: 14px 18px; border: var(--line); border-radius: 18px; background: var(--butter); box-shadow: 4px 4px 0 var(--ink); }
.table-scroll { overflow-x: auto; margin: 1em 0 1.4em; padding: 0 8px 10px 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); font-size: 15px; }
.prose th { background: var(--butter); text-align: start; padding: 10px 12px; font-weight: 800; color: var(--ink); border-bottom: var(--line); }
.prose td { padding: 9px 12px; border-top: 2px solid #efe7dc; color: var(--ink-2); }
.prose tbody tr:first-child td { border-top: 0; }
.prose tbody tr:nth-child(even) td { background: #fbf7ef; }
.progress { position: fixed; left: 0; top: 0; z-index: 60; height: 6px; width: 100%; pointer-events: none; }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--coral); }
[dir="rtl"] .progress i { margin-inline-start: auto; }
.docs-dir { border-radius: 22px; background-color: var(--paper); margin: 0 0 30px; }
.docs-dir summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.docs-dir summary::-webkit-details-marker { display: none; }
.docs-dir summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 22px; transition: rotate 0.3s var(--spring); }
.docs-dir[open] summary::after { rotate: 45deg; }
.docs-dir nav { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0 20px 18px; }
.docs-dir nav h4 { flex-basis: 100%; margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.docs-dir nav a { text-decoration: none; font-weight: 700; font-size: 15px; border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--board); }
.docs-dir nav a:hover { background: var(--butter); }
.related { padding-block: 0 clamp(60px, 8vw, 100px); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.chip { --lift: 4px; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 16px; background-color: var(--paper); }
.chip[aria-pressed="true"] { background-color: var(--butter); }
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gcard { --c: var(--paper); border-radius: 26px; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; background-color: var(--c); min-height: 230px; }
.gcard .kick { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin: 0; }
.gcard h3 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.05; margin: 0; letter-spacing: -0.015em; }
.gcard p { margin: 0; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.gcard .go { margin-top: auto; padding-top: 8px; font-weight: 800; }
.gcard[data-cat="sleep"] { --c: var(--sky); } .gcard[data-cat="readiness"] { --c: var(--mint); } .gcard[data-cat="nutrition"] { --c: var(--orange); }
.gcard[data-cat="recovery"] { --c: var(--lilac); } .gcard[data-cat="training"] { --c: var(--pink); } .gcard[data-cat="apps"] { --c: var(--butter); }

.formcard { border-radius: 28px; background-color: var(--paper); padding: clamp(22px, 3vw, 34px); max-width: 680px; }
.formcard label, .formcard .a-field { display: grid; gap: 8px; font-weight: 700; margin-bottom: 16px; }
.formcard input:not([type=checkbox]):not([type=radio]), .formcard textarea, .formcard select { font: inherit; font-weight: 500; border: var(--line); border-radius: 16px; padding: 12px 14px; background: var(--board);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.06); width: 100%; }
.formcard button[type=submit], .formcard .a-btn, .formcard .r-button, .formcard .a-join-btn { font: inherit; font-weight: 800; font-size: 18px; border: var(--line); border-radius: 999px; padding: 13px 26px;
  background: var(--butter); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; transition: transform 0.18s var(--spring), box-shadow 0.18s; text-decoration: none; display: inline-block; color: var(--ink); }
.formcard button[type=submit]:hover, .formcard .a-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.formcard .a-linkbtn { font: inherit; font-weight: 700; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.formcard .a-fine-print, .formcard .fine { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fb-board { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.fb-board li { border: var(--line); border-radius: 18px; background: var(--paper); padding: 12px 16px; box-shadow: 4px 4px 0 var(--ink); font-weight: 600; }
.chunk { border-radius: 26px; background-color: var(--paper); padding: clamp(20px, 3vw, 30px); }
.chunk + .chunk { margin-top: 18px; }

/* the toys from the Life OS home: the day dial, the training session and the breathing lung */
.dial-wrap { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1; justify-self: center; margin-bottom: 52px; animation: pop 0.8s 0.2s var(--spring) both; }
/* A finger only moves the hand by grabbing its knob (dial.js), so the page still scrolls past the dial on a phone. */
#dial { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; cursor: grab; overflow: visible; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; }
#dial:active { cursor: grabbing; }
/* No box around the dial when you click or drag it (owner, 3 Nov 2026); the keyboard gets a round ring drawn in the SVG. */
#dial:focus, #dial:focus-visible { outline: none; }
#dial .ring-focus { opacity: 0; transition: opacity 0.15s; }
#dial:focus-visible .ring-focus { opacity: 1; }
/* The plan's pieces: hard shadow, ink outline, coloured clay. Thicknesses match W and EDGE in dial.js. */
#dial .seg, #dial .seg-ink, #dial .seg-sh { transition: stroke-width 0.25s var(--spring); }
#dial .seg { stroke-width: 34px; }
#dial .seg.on { stroke-width: 42px; }
#dial .seg-ink, #dial .seg-sh { stroke-width: 41px; }
#dial .seg-ink.on, #dial .seg-sh.on { stroke-width: 49px; }
#dial .draw { animation: draw 1s cubic-bezier(0.5, 0, 0.3, 1) both; animation-delay: calc(0.5s + var(--i, 0) * 0.09s); }
#dial .bead { transform-box: fill-box; transform-origin: center; animation: pop 0.5s var(--spring) both; animation-delay: calc(0.8s + var(--i, 0) * 0.09s); }
#dial .tick { fill: #c9bdb0; }
#dial .tick.big { fill: var(--ink-2); }
#dial .lbl { font-family: var(--display); font-weight: 800; font-size: 22px; fill: var(--ink); }
/* The hand sits in its own SVG layer above the clay, so moving it never re-lights the pieces underneath. */
.dial-hand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; will-change: transform; }
.dial-face { position: absolute; left: 50%; top: 50%; width: 37%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.dial-face .t { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.2vw, 54px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dial-face .what { display: inline-block; margin: 8px 0 6px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 2px 10px; background: var(--butter); }
.dial-face .say { display: block; font-size: clamp(12px, 1.1vw, 14px); line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.dial-face .what.swap { animation: stamp 0.4s var(--spring); }
.now-btn { position: absolute; left: 50%; top: calc(100% + 16px); translate: -50% 0; z-index: 3; font-weight: 700; font-size: 14px; background: var(--butter); border: var(--line);
  border-radius: 999px; padding: 6px 14px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; white-space: nowrap; animation: pop 0.35s var(--spring) both; }
.now-btn[hidden] { display: none; }
.dial-hint { position: absolute; left: 1%; top: 2%; z-index: 3; font-weight: 700; font-size: 14px; background: var(--paper); border: var(--line); border-radius: 999px;
  padding: 6px 14px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); pointer-events: none; animation: pop 0.5s 1.6s var(--spring) both, bob 3.4s 2.2s ease-in-out infinite; }

/* training that adapts */
.train { padding-block: clamp(80px, 10vw, 140px) clamp(70px, 8vw, 110px); }
.coach { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.inputs { border-radius: 30px; background-color: var(--paper); padding: clamp(22px, 3vw, 32px); display: grid; gap: 26px; transform: rotate(-1deg); }
.field label, .field .lab { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.field output { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; text-transform: none; font-variant-numeric: tabular-nums; }
.field input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; border: var(--line); border-radius: 999px; background: var(--board);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.07), 3px 3px 0 var(--ink); margin: 0; cursor: pointer; }
.field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 50%; border: var(--line);
  background: radial-gradient(circle at 34% 30%, #fff3bd, var(--butter) 58%, #e2a400); box-shadow: 3px 3px 0 var(--ink); }
.field input[type=range]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; border: var(--line); background: radial-gradient(circle at 34% 30%, #fff3bd, var(--butter) 58%, #e2a400); }
.field.sleep input[type=range]::-webkit-slider-thumb { background: radial-gradient(circle at 34% 30%, #e6f2ff, var(--sky) 58%, #5b9de6); }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.tog { --lift: 3px; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 16px; background-color: var(--board); }
.tog[aria-pressed="true"] { background-color: var(--coral); color: var(--paper); }
.mins .tog[aria-pressed="true"] { background-color: var(--ink); color: var(--board); }
.session { border-radius: 30px; background-color: var(--coral); color: var(--paper); padding: clamp(22px, 3vw, 34px); transform: rotate(0.8deg); }
.session.rebuild { animation: squash 0.5s var(--spring); }
.session .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.session h3 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.dose { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); background: var(--butter); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 12px; }
.dose.lighter { background: var(--sky); }
.dose.easy { background: var(--mint); }
.why-list { list-style: none; margin: 18px 0 20px; padding: 0; display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
.why-list li::before { content: "→ "; font-weight: 800; }
.moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.moves li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border: var(--line); border-radius: 16px;
  padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; animation: plop 0.5s cubic-bezier(0.3, 1.45, 0.5, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.moves li span { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.fine { margin: 18px 0 0; font-size: 14px; font-weight: 600; opacity: 0.85; }

/* Flow */
.flow { padding-block: clamp(80px, 10vw, 140px); background: var(--navy); color: var(--paper); border-block: var(--line); }
.flow .kicker { color: var(--mint); }
.flow .intro { color: #dfe4ff; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.breath { position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1; justify-self: center; display: grid; place-items: center; }
.lung { width: 52%; aspect-ratio: 1 / 1; border-radius: 50%; border: var(--line); background: radial-gradient(circle at 34% 28%, #ffffff, #c9f2e1 45%, var(--mint) 70%, #4fb98f);
  box-shadow: 8px 8px 0 var(--ink); display: grid; place-items: center; transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1); }
.lung.in { transform: scale(1.55); }
.lung.out { transform: scale(1); transition-duration: 6s; }
.lung b { font-family: var(--display); font-weight: 800; font-size: clamp(16px, 2vw, 22px); color: var(--ink); text-align: center; line-height: 1.1; }
.lung b small { display: block; margin-top: 4px; font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-2); }
.lung { animation: idle 10s ease-in-out infinite; }      /* breathing on its own at six breaths a minute, until you join in */
.lung.in, .lung.out { animation: none; }
.lung.done { animation: squash 0.6s var(--spring), idle 10s 0.6s ease-in-out infinite; }
button.press[disabled] { cursor: default; transform: none; --lift: 6px; opacity: 0.8; }
.ring { position: absolute; inset: 6%; border: 3px dashed rgba(255, 255, 255, 0.35); border-radius: 50%; animation: spin 40s linear infinite; }
.hr { position: absolute; right: 0; top: 4%; background-color: var(--paper); color: var(--ink); border-radius: 18px; padding: 10px 14px; transform: rotate(4deg); text-align: center; }
.hr b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.hr small { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.hr .beat { display: inline-block; color: var(--coral); animation: thump 0.9s ease-in-out infinite; }
.offers { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.offers li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 19px; }
.offers i { flex: none; width: 40px; height: 40px; border-radius: 50%; border: var(--line); box-shadow: 3px 3px 0 var(--ink); }
.offers .w i { background: radial-gradient(circle at 34% 28%, #ffffff, #bfe0ff 60%, var(--sky)); }
.offers .b i { background: radial-gradient(circle at 34% 28%, #ffffff, #c9f2e1 60%, var(--mint)); }
.offers .m i { background: radial-gradient(circle at 34% 28%, #ffffff, #ffd6e7 60%, var(--pink)); }
.flow .btn { color: var(--ink); }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes thump { 0%, 100% { scale: 1; } 15% { scale: 1.3; } 30% { scale: 1; } 45% { scale: 1.15; } }
@keyframes breathe { 0%, 100% { scale: 0.85; } 40% { scale: 1.1; } }
@keyframes idle { 0%, 100% { scale: 1; } 40% { scale: 1.05; } }
@keyframes blink { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }
@keyframes squash { 30% { scale: 1.03 0.95; } 65% { scale: 0.99 1.02; } }
@keyframes stamp { 0% { scale: 1.5; opacity: 0; } 60% { scale: 0.92; opacity: 1; } 100% { scale: 1; } }

/* phone */
@media (max-width: 980px) {
  .lo-hero .wrap, .plans, .coach, .flow-grid { grid-template-columns: 1fr; }
  .read > .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .topics, .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .lo-stats ul, .lo-features .grid, .topics, .gcards { grid-template-columns: 1fr; }
  .feat, .lo-stats li, .plan { rotate: 0deg !important; }
  .inputs, .session { transform: none; }
  .dial-face { width: 40%; }
  .dial-face .say { display: none; }
  .dial-face .what { font-size: 11px; padding: 1px 8px; margin: 5px 0 4px; }
  .prose { font-size: 17px; }
}
.band-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 18px 0 0; }
.band-links a { color: var(--butter); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq .fine { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form-sec { padding-top: 0; }

/* ---- the toys on the Life OS pages (lo/toys.js) ---- */
/* sleep: the night, and when to go to bed */
.night { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 520 / 300; background: linear-gradient(180deg, #16247a, #2442b3 72%); }
.night-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.night .stars circle { fill: #fff6dc; animation: twinkle 3s ease-in-out infinite; animation-delay: var(--d); }
.night-read { position: absolute; right: 18px; top: 14px; text-align: end; color: var(--paper); }
.night-read .k { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #c9d1ff; }
.night-read b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.night-read span:last-child { display: block; font-weight: 600; font-size: 14px; color: #dfe4ff; max-width: 24ch; margin-inline-start: auto; }
.night.squash { animation: squash 0.5s var(--spring); }
.night-ctl { margin-top: 18px; border-radius: 26px; background-color: var(--paper); padding: 18px 20px; display: grid; gap: 16px; }
.hero-toy .toy-note a { color: var(--navy); font-weight: 700; }
/* training: the kettlebell, and the wall of moves */
.kb-box { display: grid; justify-items: center; gap: 6px; }
.kb { background: none; border: 0; padding: 0; cursor: pointer; width: min(80%, 300px); -webkit-tap-highlight-color: transparent; }
.kb svg { width: 100%; height: auto; overflow: visible; }
.kb .kb-bell { transform-box: fill-box; transform-origin: 50% 100%; }
.kb.lift .kb-bell { animation: lift 0.6s cubic-bezier(0.3, 1.2, 0.5, 1); }
.kb.lift .kb-shadow { animation: shadowlift 0.6s ease; transform-box: fill-box; transform-origin: center; }
.kb:focus { outline: none; } .kb:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; border-radius: 24px; }
.kb-count { margin: 0; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.kb-count span { font-size: 0.5em; color: var(--ink-2); margin-inline-start: 6px; }
.kb-say { margin: 0; font-weight: 700; min-height: 1.5em; }
.wall-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: clamp(48px, 6vw, 80px) 0 18px; }
.wall-head h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); margin: 0; letter-spacing: -0.02em; }
.wall-head .filters { margin: 0; }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.brick { --lift: 4px; border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; transition: rotate 0.3s var(--spring), translate 0.3s var(--spring); }
.brick:hover { rotate: -2deg; translate: 0 -3px; }
.brick b { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; }
.brick span { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.brick.g-upper { background-color: var(--sky); } .brick.g-lower { background-color: var(--butter); } .brick.g-core { background-color: var(--pink); } .brick.g-mobility { background-color: var(--mint); }
.brick[hidden] { display: none; }
.brick.plopin { animation: plop 0.45s cubic-bezier(0.3, 1.45, 0.5, 1) both; animation-delay: calc(var(--i) * 18ms); }
/* nutrition: build a plate */
.plate-box { display: grid; justify-items: center; gap: 14px; }
.plate { position: relative; width: min(100%, 360px); aspect-ratio: 1 / 1; }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate.wobble { animation: squash 0.45s var(--spring); }
.plate-food { position: absolute; inset: 0; }
.blob { position: absolute; translate: -50% -50%; rotate: var(--r); background: var(--c); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px;
  box-shadow: inset -3px -4px 6px rgba(60, 25, 5, 0.18), inset 3px 3px 5px rgba(255, 255, 255, 0.5), 3px 3px 0 var(--ink); white-space: nowrap; animation: dropin 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.foods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.food { --lift: 3px; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 15px; background-color: var(--paper); }
.plate-say { margin: 0; font-weight: 800; font-size: 18px; min-height: 1.5em; text-align: center; }
.plate-box .reset { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* readiness: the gauge */
.gauge-box { border-radius: 30px; background-color: var(--paper); padding: 20px 22px 22px; display: grid; gap: 14px; }
.gauge { width: 100%; height: auto; overflow: visible; }
.gauge-read { margin: -8px 0 4px; text-align: center; }
.gauge-read b { display: block; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-read span { font-weight: 700; color: var(--ink-2); }
/* mind: the jar */
.jar-box { display: grid; justify-items: center; gap: 14px; }
.jar { position: relative; width: min(100%, 330px); aspect-ratio: 300 / 330; }
.jar.shake { animation: wiggle 0.5s ease-in-out; }
.jar-glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.jar-notes { position: absolute; left: 13%; right: 13%; top: 25%; bottom: 6%; overflow: hidden; }
.jnote { position: absolute; left: 0; top: 0; max-width: 130px; border: 3px solid var(--ink); border-radius: 8px; padding: 6px 9px; font-weight: 800; font-size: 13px; line-height: 1.2;
  box-shadow: 3px 3px 0 var(--ink); overflow-wrap: anywhere; will-change: transform; }
.jar-form { display: flex; gap: 10px; width: min(100%, 460px); }
.jar-form input { flex: 1; min-width: 0; font: inherit; font-weight: 600; border: var(--line); border-radius: 999px; padding: 12px 18px; background: var(--paper); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.06); }
/* apple watch, in clay */
.watch { --band: #f2553d; position: relative; width: min(100%, 290px); aspect-ratio: 290 / 440; margin: 0 auto; }
.band { position: absolute; left: 22%; right: 22%; height: 24%; background: var(--band); border: var(--line); box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.15), inset 6px 6px 10px rgba(255, 255, 255, 0.3);
  transition: background-color 0.35s ease; }
.band.b-top { top: 0; border-radius: 22px 22px 6px 6px; } .band.b-bottom { bottom: 0; border-radius: 6px 6px 22px 22px; }
.case { position: absolute; left: 6%; right: 10%; top: 17%; bottom: 17%; border: var(--line); border-radius: 58px; background: #fbfaf6; padding: 14px;
  box-shadow: inset -8px -10px 18px rgba(60, 25, 5, 0.16), inset 8px 8px 14px rgba(255, 255, 255, 0.6), 7px 7px 0 var(--ink); }
.crown { position: absolute; right: -24px; top: 26%; width: 22px; height: 46px; border: var(--line); border-radius: 8px; cursor: grab; touch-action: none;
  background: repeating-linear-gradient(180deg, #e4dbd0 0 4px, #b9b2aa 4px 7px); transform: rotate(var(--spin, 0deg)); transition: transform 0.3s var(--spring); }
.crown:focus { outline: none; } .crown:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.crown.click { animation: stamp 0.3s var(--spring); }
.side { position: absolute; right: -14px; top: 52%; width: 12px; height: 54px; border: var(--line); border-radius: 6px; background: #e4dbd0; }
.screen { position: relative; height: 100%; border-radius: 44px; background: #16120f; color: var(--paper); padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
.w-time { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--band); transition: color 0.35s ease; font-variant-numeric: tabular-nums; }
.comps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comp { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #4b4139; background: #2b2420; padding: 7px; cursor: pointer; }
.comp svg { width: 100%; height: 100%; }
.comp.boop { animation: stamp 0.35s var(--spring); }
.w-say { margin: auto 0 0; text-align: center; font-weight: 700; font-size: 12.5px; line-height: 1.25; color: #e8e0d4; min-height: 3.6em; }
.w-say.swap { animation: plop 0.4s cubic-bezier(0.3, 1.45, 0.5, 1); }
/* pricing: the hanging tag */
.tag-hang { position: relative; width: min(100%, 320px); margin: 0 auto; padding-top: 70px; }
.tag-hang .nail { position: absolute; z-index: 3; left: 50%; top: 0; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; border: var(--line);
  background: radial-gradient(circle at 35% 30%, #fff3bd, var(--butter) 55%, #c99500); box-shadow: 3px 3px 0 var(--ink); }
.ptag { position: relative; transform-origin: 50% -58px; cursor: pointer; }
.pt-string { position: absolute; left: 0; top: -60px; width: 100%; height: 62px; overflow: visible; }
.pt-card { border-radius: 28px; background-color: var(--butter); text-align: center; padding: 40px 20px 26px; display: grid; gap: 2px; }
.pt-hole { position: absolute; left: 50%; top: 14px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: var(--line); background: var(--board); }
.pt-card b { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 8vw, 104px); line-height: 0.9; letter-spacing: -0.04em; }
.pt-card span { font-family: var(--display); font-weight: 800; font-size: 26px; }
.pt-card small { margin-top: 10px; font-weight: 700; font-size: 14px; }
.bill-wrap { display: flex; justify-content: center; padding-bottom: 6px; }
/* here: the gift box */
.gift { position: relative; display: block; width: 240px; height: 230px; margin: 0 auto; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gift:focus { outline: none; } .gift:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; border-radius: 20px; }
.g-box { position: absolute; left: 20px; right: 20px; bottom: 6px; height: 140px; border: var(--line); border-radius: 14px; background: var(--coral); box-shadow: inset -8px -10px 16px rgba(0, 0, 0, 0.16), 6px 6px 0 var(--ink); }
.g-ribbon { position: absolute; left: 50%; bottom: 6px; width: 30px; height: 140px; margin-left: -15px; background: var(--butter); border-inline: 3px solid var(--ink); }
.g-lid { position: absolute; left: 8px; right: 8px; bottom: 140px; height: 48px; border: var(--line); border-radius: 12px; background: #e04a33; box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
.g-lid::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 30px; margin-left: -15px; background: var(--butter); border-inline: 3px solid var(--ink); }
.g-bow { position: absolute; left: 50%; top: -34px; width: 80px; height: 36px; margin-left: -40px; }
.g-bow::before, .g-bow::after { content: ""; position: absolute; top: 0; width: 38px; height: 32px; border: var(--line); border-radius: 50% 50% 10% 50%; background: var(--butter); }
.g-bow::before { left: 0; rotate: -18deg; } .g-bow::after { right: 0; rotate: 18deg; scale: -1 1; }
.gift:hover .g-lid { transform: translateY(-6px) rotate(-3deg); }
.gift.open .g-lid { transform: translateY(-96px) rotate(-24deg); }
.gift-out { display: flex; justify-content: center; margin-top: -10px; }
.gift-out.rise { animation: rise 0.7s cubic-bezier(0.3, 1.35, 0.5, 1) both; }
/* partners: the coin */
.coin { position: relative; display: block; width: 220px; height: 220px; margin: 0 auto; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.coin:focus { outline: none; } .coin:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; border-radius: 50%; }
.coin .half { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle at 34% 28%, #fff3bd, var(--butter) 55%, #d99a00);
  box-shadow: inset -10px -12px 20px rgba(120, 70, 0, 0.25), 6px 6px 0 var(--ink); transition: transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); display: grid; place-items: center; }
.coin .half.l { clip-path: inset(-10px 50% -10px -10px); } .coin .half.r { clip-path: inset(-10px -10px -10px 50%); }
.coin .half b { font-family: var(--display); font-weight: 800; font-size: 54px; letter-spacing: -0.03em; }
.coin.split .half.l { transform: translateX(-46px) rotate(-12deg); } .coin.split .half.r { transform: translateX(46px) rotate(12deg); }
.coin:hover:not(.split) .half { transform: rotate(-6deg) scale(1.03); }
/* feedback: the bulb */
.bulb { --g: 0; width: min(100%, 250px); margin: 0 auto; }
.bulb svg { width: 100%; height: auto; overflow: visible; }
.bulb .glow { fill: #ffd24d; opacity: calc(var(--g) * 0.55); transition: opacity 0.3s ease; }
.bulb .glass { fill: rgb(255, calc(250 - var(--g) * 40), calc(232 - var(--g) * 170)); transition: fill 0.3s ease; }
.bulb.flash { animation: stamp 0.5s var(--spring); }
/* accuracy: before and now */
.bars { border-radius: 28px; background-color: var(--paper); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; max-width: 980px; }
.bars-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bars-head h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 0; }
.bars-head .bill { margin: 0; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 92px; align-items: center; gap: 14px; }
.bar-row .bl { font-weight: 800; } .bar-row .bl small { display: block; font-weight: 600; color: var(--ink-2); }
.bar-row .bt { height: 30px; border: var(--line); border-radius: 999px; background: var(--board); overflow: hidden; }
.bar-row .bt i { display: block; height: 100%; width: var(--w); background: var(--mint); border-inline-end: 3px solid var(--ink); border-radius: 999px; transition: width 0.9s cubic-bezier(0.3, 1.3, 0.5, 1); }
.bar-row b { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.bars .fine { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
/* 404: a lost ELO */
.lost { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.lost-face { position: absolute; inset: 0; border-radius: 50%; border: var(--line); background: radial-gradient(circle at 34% 28%, #ffe9db, #f7b99b 55%, #df8f70); box-shadow: inset -10px -14px 22px rgba(120, 50, 20, 0.18), 7px 7px 0 var(--ink);
  animation: bob 3s ease-in-out infinite; }
.lost-face i { position: absolute; display: block; }
.lost-face .eye { top: 38%; width: 10%; height: 13%; border-radius: 50%; background: var(--ink); animation: lookabout 4s ease-in-out infinite; }
.lost-face .eye.l { left: 31%; } .lost-face .eye.r { right: 31%; }
.lost-face .cheek { top: 55%; width: 17%; height: 10%; border-radius: 50%; background: rgba(255, 105, 135, 0.42); } .lost-face .cheek.l { left: 15%; } .lost-face .cheek.r { right: 15%; }
.lost-face .o { left: 50%; top: 58%; width: 9%; height: 9%; margin-left: -4.5%; border: 4px solid var(--ink); border-radius: 50%; }
.lost .q { position: absolute; right: -10px; top: -26px; font-family: var(--display); font-weight: 800; font-size: 90px; color: var(--coral); -webkit-text-stroke: 3px var(--ink); animation: wiggle 2.4s ease-in-out infinite; }
/* school: the steps as clay cards */
.school-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; counter-reset: s; }
.school-list li { counter-increment: s; position: relative; border: var(--line); border-radius: 18px; background: var(--paper); padding: 14px 16px 14px 62px; box-shadow: 4px 4px 0 var(--ink); }
.school-list li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 34px; height: 34px; border-radius: 50%; border: var(--line); background: var(--lilac); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: var(--ink); }
.school-list li b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); }
[dir="rtl"] .school-list li { padding: 14px 62px 14px 16px; } [dir="rtl"] .school-list li::before { left: auto; right: 14px; }
/* the day dial, as the page's centrepiece */
.dial-host { max-width: 600px; }
/* Hebrew: Rubik has the Hebrew letters the display font lacks */
[lang="he"] body { font-family: "Rubik", var(--body); }
[lang="he"] h1, [lang="he"] h2, [lang="he"] h3, [lang="he"] .logo, [lang="he"] .pt-card b, [lang="he"] .foot-top p, [lang="he"] .marquee div { font-family: "Rubik", var(--display); letter-spacing: -0.01em; }
[dir="rtl"] .lo-hero .sticker { transform: rotate(2deg); }
[dir="rtl"] .foot-cols.he { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }

@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes lift { 0% { translate: 0 0; scale: 1 1; } 35% { translate: 0 -46px; scale: 0.96 1.05; } 70% { translate: 0 0; scale: 1.06 0.92; } 100% { translate: 0 0; scale: 1 1; } }
@keyframes shadowlift { 35% { scale: 0.7 0.7; opacity: 0.08; } }
@keyframes dropin { from { opacity: 0; translate: -50% -180%; scale: 0.8; } 60% { opacity: 1; translate: -50% -42%; scale: 1.05 0.92; } to { opacity: 1; translate: -50% -50%; scale: 1; } }
@keyframes lookabout { 0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 50% { translate: 4px -3px; } 75% { translate: 5px 2px; } }
@media (max-width: 680px) {
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .night-read b { font-size: 38px; }
  [dir="rtl"] .foot-cols.he { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* header extras on the Life OS pages: the language link and the download button */
.head-right { display: flex; align-items: center; gap: 14px; }
.lang { text-decoration: none; font-weight: 700; font-size: 15px; }
.lang:hover { text-decoration: underline; text-underline-offset: 3px; }
.lo-hero h1 { font-size: clamp(42px, 5.6vw, 86px); }
@media (max-width: 680px) { .lang { display: none; } }
/* hidden always wins, whatever display a piece normally has */
[hidden] { display: none !important; }

.formcard h2, .formcard h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.lo-hero.solo { padding-bottom: clamp(20px, 3vw, 40px); }
.read .prose .wrap { padding: 0; max-width: none; }

/* ---- the partner page (3 Nov 2026): earnings toy with stacking clay coins, who it's for, sketches, how it works ---- */
.earn { border-radius: 30px; background-color: var(--paper); padding: 22px 24px 20px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.stack { position: relative; width: 190px; height: 200px; }
/* each coin: a milled edge you see on the pile, and a face with a raised rim, a glint and the dollar sign (3 Nov 2026) */
.coin3 { position: absolute; left: 50%; width: 132px; height: 42px; margin-left: -66px; border-radius: 66px / 17px; border: 3px solid var(--ink);
  background: repeating-linear-gradient(90deg, #d39b12 0 3px, #a87400 3px 5px); animation: coindrop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.coin3 b { position: absolute; left: -3px; top: -3px; width: 132px; height: 34px; border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(ellipse 22px 7px at 30% 32%, rgba(255, 255, 255, 0.85), transparent 70%), radial-gradient(ellipse at 40% 35%, #fff3bd, var(--butter) 50%, #d99a00);
  box-shadow: inset 0 0 0 5px rgba(255, 236, 160, 0.55), inset 0 0 0 7px rgba(150, 95, 0, 0.35), inset 0 -4px 6px rgba(120, 70, 0, 0.25); }
.coin3 b::after { content: "$"; position: absolute; left: 50%; top: 50%; translate: -50% -55%; font-family: var(--display); font-weight: 800; font-size: 17px; color: #a87400;
  text-shadow: 0 1px 0 rgba(255, 246, 200, 0.9); }
.coin3.out { animation: coinout 0.3s ease-in forwards; }
.earn-big { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.earn-big span { font-size: 0.45em; color: var(--ink-2); }
.earn-line { margin: 0; font-weight: 700; color: var(--ink-2); }
.earn-line output { font-family: var(--display); font-weight: 800; font-size: 1.3em; color: var(--ink); }
.earn input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; border: var(--line); border-radius: 999px; background: var(--board); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.07), 3px 3px 0 var(--ink); cursor: pointer; }
.earn input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 50%; border: var(--line); background: radial-gradient(circle at 34% 30%, #fff3bd, var(--butter) 58%, #e2a400); box-shadow: 3px 3px 0 var(--ink); }
.earn input[type=range]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; border: var(--line); background: radial-gradient(circle at 34% 30%, #fff3bd, var(--butter) 58%, #e2a400); }
.earn-fine { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.who { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.who li { --lift: 4px; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: clamp(17px, 1.7vw, 21px); background-color: var(--paper); animation: nudge 5s ease-in-out infinite; animation-delay: calc(var(--i) * 0.35s); }
.who li:nth-child(4n+1) { background-color: var(--butter); } .who li:nth-child(4n+2) { background-color: var(--mint); } .who li:nth-child(4n+3) { background-color: var(--pink); } .who li:nth-child(4n+4) { background-color: var(--sky); }
.who li:nth-child(n+9) { background-color: var(--ink); color: var(--paper); }
.sketches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sketch { border-radius: 24px; background-color: var(--paper); padding: 14px 14px 16px; display: grid; gap: 10px; transition: rotate 0.3s var(--spring), translate 0.3s var(--spring); }
.sketch:hover { rotate: -2deg; translate: 0 -4px; }
.sketch svg { width: 100%; height: auto; display: block; }
.sketch p { margin: 0; font-weight: 800; font-size: 17px; text-align: center; }
.sketch .twinkle circle { animation: twinkle 2.6s ease-in-out infinite; } .sketch .twinkle circle:nth-child(2) { animation-delay: 0.7s; } .sketch .twinkle circle:nth-child(3) { animation-delay: 1.4s; }
.sketch .sweep { transform-box: view-box; transform-origin: 100px 72px; animation: spin 8s linear infinite; }
.sketch .say { animation: bob 2.6s ease-in-out infinite; }
.sketch:hover .ringing { transform-box: fill-box; transform-origin: 50% 60%; animation: wiggle 0.4s ease-in-out infinite; }
.join-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: h; }
.how-steps li { counter-increment: h; position: relative; border-radius: 22px; background-color: var(--paper); padding: 16px 18px 16px 70px; display: grid; gap: 4px; }
.how-steps li::before { content: counter(h); position: absolute; left: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; border: var(--line); background: var(--butter); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 19px; box-shadow: 3px 3px 0 var(--ink); }
[dir="rtl"] .how-steps li { padding: 16px 70px 16px 18px; } [dir="rtl"] .how-steps li::before { left: auto; right: 16px; }
.how-steps b { font-family: var(--display); font-weight: 800; font-size: 22px; }
.how-steps span { font-weight: 600; color: var(--ink-2); }
.join-sec .formcard { max-width: none; }
.join-sec .formcard [data-r-partner-success] ol { padding-inline-start: 1.2em; }
.contact-card { background-color: var(--coral); }
.contact-card .lede { color: var(--paper); }
@keyframes coindrop { from { translate: 0 -160px; opacity: 0; } 60% { translate: 0 6px; opacity: 1; } 80% { translate: 0 -2px; } to { translate: 0 0; opacity: 1; } }
@keyframes coinout { to { translate: 40px -60px; rotate: 30deg; opacity: 0; } }
@keyframes nudge { 0%, 86%, 100% { rotate: 0deg; } 90% { rotate: -3deg; } 95% { rotate: 2deg; } }
@media (max-width: 980px) { .sketches { grid-template-columns: repeat(2, minmax(0, 1fr)); } .join-grid { grid-template-columns: 1fr; } }

/* ---- the detailed clay drawings (art.py, 3 Nov 2026): placement for each ---- */
/* the watch: the drawing behind, the live face on its screen, an invisible handle over the crown */
.watch { position: relative; width: min(100%, 300px); aspect-ratio: 300 / 470; margin: 0 auto; --band: #f2553d; }
.watch .band, .watch .case { display: none; }
.watch-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.watch .screen { position: absolute; left: 19.3%; right: 22%; top: 21.7%; bottom: 26%; height: auto; border-radius: 15% / 10%; background: transparent; padding: 12% 7% 8%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.w-top { display: flex; flex-direction: column; align-items: center; gap: 0; }
.w-date { font-weight: 800; font-size: 11px; letter-spacing: 0.12em; color: #ff9ec2; }
.watch .w-time { font-size: clamp(34px, 4.6vw, 46px); color: var(--face, var(--band)); }
.watch .comps { gap: 8px; }
.watch .comp { width: 46px; height: 46px; padding: 0; border: 0; background: none; }
.watch .w-say { font-size: 11.5px; min-height: 4.2em; }
.crown-hit { position: absolute; left: 84%; top: 29%; width: 12%; height: 13.5%; border-radius: 10px; cursor: grab; touch-action: none; }
.crown-hit:focus { outline: none; } .crown-hit:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.watch.turned .watch-art { animation: crowntick 0.3s ease; }
/* the kettlebell: the mat stays, the bell lifts as its own layer */
.kb { position: relative; aspect-ratio: 260 / 280; width: min(84%, 320px); }
.kb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kb .kb-bell { transform-box: view-box; transform-origin: 50% 100%; }
.kb.lift .kb-bell { animation: none; }
.kb.lift .kb-bellsvg { animation: lift 0.6s cubic-bezier(0.3, 1.2, 0.5, 1); transform-origin: 50% 85%; }
.kb.lift .kb-shadow { animation: shadowlift 0.6s ease; transform-box: fill-box; transform-origin: center; }
/* the plate and the foods that land on it */
.plate .plate-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plate-food { inset: 15%; }
.blob { background: none; border: 0; box-shadow: none; padding: 0; width: 24%; filter: drop-shadow(3px 4px 0 rgba(22, 18, 15, 0.55)); }
.blob svg { display: block; width: 100%; height: auto; overflow: visible; }
/* the jar */
.jar { aspect-ratio: 300 / 340; }
.jar-notes { left: 13%; right: 13%; top: 25%; bottom: 7%; }
/* the gift box, its lid and bow */
.gift { width: 260px; height: 250px; }
.gift .g-box { position: absolute; left: 10px; right: 10px; bottom: 0; height: auto; border: 0; background: none; box-shadow: none; }
.gift .g-lid { position: absolute; left: 0; right: 0; bottom: 140px; height: auto; border: 0; background: none; box-shadow: none; }
.gift .g-lid::after, .gift .g-ribbon, .gift .g-bow { display: none; }
.g-art { display: block; width: 100%; height: auto; overflow: visible; }
.gift.open .g-lid { transform: translateY(-110px) rotate(-26deg); }
/* the price tag hangs from its string */
.tag-hang { padding-top: 18px; }
.ptag { transform-origin: 50% 1%; }
.pt-art { display: block; width: 100%; height: auto; overflow: visible; }
.tag-hang .nail { top: 4px; }
/* the bulb */
.bulb .filament { stroke: rgb(calc(110 + var(--g) * 145), calc(98 + var(--g) * 112), calc(90 - var(--g) * 40)); transition: stroke 0.3s ease; }
.bulb .ray { opacity: var(--g); transition: opacity 0.3s ease; }
/* the sleep sky: lit windows, drifting clouds, a shooting star */
.night .win { animation: winflick 6s ease-in-out infinite; animation-delay: var(--w); }
.night .cl1 { animation: driftx 30s linear infinite; } .night .cl2 { animation: driftx 38s linear infinite reverse; }
.night .shoot { opacity: 0; animation: shoot 7s ease-in 2s infinite; }
/* 404: the lost ELO and its map */
.lost { width: 260px; height: 300px; }
.lost-face { width: 240px; height: 240px; inset: auto; left: 10px; top: 0; }
.lost-map { position: absolute; left: 30px; bottom: 0; width: 200px; overflow: visible; animation: bob 3s 0.4s ease-in-out infinite; }
/* the guide heroes */
.guide-art .g-card { border-radius: 30px; background-color: var(--bg); padding: 6px; max-width: 420px; margin: 0 auto; }
.guide-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.guide-art .shake-lines { animation: wiggle 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.guide-art .zz text { animation: bob 2.4s ease-in-out infinite; } .guide-art .zz text:nth-child(2) { animation-delay: 0.4s; } .guide-art .zz text:nth-child(3) { animation-delay: 0.8s; }
@keyframes crowntick { 40% { rotate: -1deg; } }
@keyframes winflick { 0%, 100% { opacity: 1; } 48% { opacity: 1; } 50% { opacity: 0.25; } 56% { opacity: 1; } }
@keyframes driftx { from { translate: -60px 0; } to { translate: 560px 0; } }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 4% { opacity: 1; } 12% { opacity: 0; translate: 180px 72px; } 100% { opacity: 0; translate: 180px 72px; } }
@keyframes pulseline { 0% { stroke-dashoffset: 420; } 60%, 100% { stroke-dashoffset: 0; } }
@media (max-width: 680px) { .gift { width: 220px; height: 214px; } .gift .g-lid { bottom: 118px; } }

/* ---- the guide heroes come alive a little (heroes.py, 3 Nov 2026): every motion is small and slow ---- */
.guide-art :is(.wave, .tw, .ring-shake, .hammer, .rays, .flame, .breathe, .roll) { transform-box: fill-box; }
.guide-art .print-out { animation: gprint 1.6s 0.5s cubic-bezier(0.3, 1.25, 0.5, 1) both; }
.guide-art .flash { animation: gflash 3.4s ease-in-out infinite; }
.guide-art .wave { transform-origin: 80% 100%; animation: gwave 2.4s ease-in-out infinite; }
.guide-art .tw { transform-origin: center; animation: gtwinkle 2.8s ease-in-out infinite; }
.guide-art .tw:nth-of-type(2) { animation-delay: 0.7s; } .guide-art .tw:nth-of-type(3) { animation-delay: 1.4s; } .guide-art .tw:nth-of-type(4) { animation-delay: 2.1s; }
.guide-art .ring-shake { transform-origin: 50% 85%; animation: gshake 2.6s ease-in-out infinite; }
.guide-art .hammer { transform-origin: 50% 100%; animation: ghammer 0.16s ease-in-out infinite alternate; }
.guide-art .rays { transform-origin: center; animation: spin 30s linear infinite; }
.guide-art .nudge { stroke-dasharray: 16 12; animation: gdash 1.4s linear infinite; }
.guide-art .sand { animation: gdash 0.8s linear infinite; }
.guide-art .feed { animation: gdash 1.4s linear infinite; }
.guide-art .ripple { animation: gripple 3s ease-in-out infinite; }
.guide-art .bubbles circle { animation: gbubble 3.4s ease-in infinite; }
.guide-art .bubbles circle:nth-child(2) { animation-delay: 0.9s; } .guide-art .bubbles circle:nth-child(3) { animation-delay: 1.7s; } .guide-art .bubbles circle:nth-child(4) { animation-delay: 2.5s; }
.guide-art .bob-drop { animation: bob 2.6s ease-in-out infinite; }
.guide-art .flame { transform-origin: 50% 100%; animation: gflicker 0.7s ease-in-out infinite alternate; }
.guide-art .pulse-hi { stroke-dasharray: 44 700; stroke-dashoffset: 44; animation: gtravel 2.6s linear infinite; }
.guide-art .breathe { transform-origin: 50% 100%; animation: gbreathe 4.2s ease-in-out infinite; }
.guide-art .roll { transform-origin: center; animation: groll 4s ease-in-out infinite; }
.guide-art .speed { animation: gspeed 4s ease-in-out infinite; }
.guide-art .charge { animation: gcharge 1.8s ease-in-out infinite; }
.guide-art .sound path { animation: gsound 1.6s ease-out infinite; opacity: 0; }
.guide-art .sound path:nth-child(2) { animation-delay: 0.25s; } .guide-art .sound path:nth-child(3) { animation-delay: 0.5s; }
.guide-art .orbit-a { animation: bob 3s ease-in-out infinite; } .guide-art .orbit-b { animation: bob 3.4s 0.6s ease-in-out infinite; } .guide-art .orbit-c { animation: bob 2.8s 1.1s ease-in-out infinite; }
.guide-art .zz text { transform-box: fill-box; }
@keyframes gprint { from { translate: 0 -64px; } to { translate: 0 0; } }
@keyframes gflash { 0%, 70%, 100% { opacity: 0; } 76% { opacity: 1; } 86% { opacity: 0.2; } }
@keyframes gwave { 0%, 100% { rotate: 0deg; } 20% { rotate: -16deg; } 40% { rotate: 10deg; } 60% { rotate: -12deg; } 80% { rotate: 0deg; } }
@keyframes gtwinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 0.55; opacity: 0.55; } }
@keyframes gshake { 0%, 55%, 100% { rotate: 0deg; } 60% { rotate: -4deg; } 65% { rotate: 4deg; } 70% { rotate: -4deg; } 75% { rotate: 4deg; } 80% { rotate: -2deg; } 85% { rotate: 0deg; } }
@keyframes ghammer { from { rotate: -14deg; } to { rotate: 14deg; } }
@keyframes gdash { to { stroke-dashoffset: -28; } }
@keyframes gripple { 0%, 100% { translate: 0 0; } 50% { translate: 0 2px; } }
@keyframes gbubble { 0% { translate: 0 0; opacity: 0; } 15% { opacity: 0.85; } 100% { translate: 0 -70px; opacity: 0; } }
@keyframes gflicker { from { scale: 0.94 1.04; } to { scale: 1.05 0.95; } }
@keyframes gtravel { from { stroke-dashoffset: 44; } to { stroke-dashoffset: -660; } }
@keyframes gbreathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.03 0.97; } }
@keyframes groll { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -14px 0; rotate: -22deg; } }
@keyframes gspeed { 0%, 100% { translate: 0 0; opacity: 0.6; } 50% { translate: -10px 0; opacity: 0.25; } }
@keyframes gcharge { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes gsound { 0% { opacity: 0; translate: -6px 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 8px 0; } }

/* the gift: the lid lifts and props open on its back corner; inside goes dark when it does */
.gift .g-lid { transform-origin: 3% 100%; transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
.gift.open .g-lid { transform: translate(-6px, -10px) rotate(-18deg); animation: lidpop 0.8s cubic-bezier(0.3, 1.2, 0.5, 1); }
@keyframes lidpop { 0% { transform: none; } 40% { transform: translate(0, -64px) rotate(8deg); } 100% { transform: translate(-6px, -10px) rotate(-18deg); } }
.gift .g-inside { opacity: 0; transition: opacity 0.3s ease; }
.gift.open .g-inside { opacity: 1; }
/* the thought jar's label swings on its twine */
.jar .jar-label { transform-box: fill-box; transform-origin: 30% 0; animation: tagswing 5s ease-in-out infinite; }
@keyframes tagswing { 0%, 100% { rotate: 0deg; } 50% { rotate: -5deg; } }

/* phones: the readiness values stay on one line; the thought jar's box gets the whole width, the button goes under it;
   the gift gets room above so its lid can pop without covering the words */
.field output { white-space: nowrap; }
@media (max-width: 480px) {
  .jar-form { flex-wrap: wrap; }
  .jar-form input { flex: 1 1 100%; }
  .jar-form .btn { flex: 1 1 100%; }
  .hero-toy .gift { margin-top: 44px; }
}
@media (max-width: 480px) { .jar-form .btn { justify-content: center; text-align: center; } }

/* ---- clay props on the pages that were words only (props.py, 3 Nov 2026): each plays a small move when poked ---- */
.prop { width: min(100%, 380px); margin: 0 auto; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.prop svg { display: block; width: 100%; height: auto; overflow: visible; }
.prop :is(.shackle, .key, .scroll, .seal, .quill, .buoy-sway, .buoy, .scribble, .sticker, .pencil, .k-needle, .platform, .apple, .b-top, .plant) { transform-box: fill-box; }
.prop:hover svg { translate: 0 -3px; transition: translate 0.25s ease; }
/* the lock: the shackle springs open and snaps shut, the key jumps */
.prop-lock.poked .shackle { animation: shackle 1.2s cubic-bezier(0.3, 1.3, 0.5, 1); }
.prop-lock .key { transform-origin: 20% 50%; }
.prop-lock.poked .key { animation: keyhop 0.9s cubic-bezier(0.3, 1.3, 0.5, 1); }
@keyframes shackle { 0% { translate: 0 0; } 28%, 62% { translate: 0 -30px; } 80% { translate: 0 3px; } 100% { translate: 0 0; } }
@keyframes keyhop { 0%, 100% { translate: 0 0; rotate: 0deg; } 35% { translate: -6px -26px; rotate: -14deg; } 70% { translate: 0 2px; rotate: 4deg; } }
/* the scroll: the seal comes down like a stamp, the paper shivers, the quill bobs while it waits */
.prop-scroll .seal { transform-origin: 50% 50%; }
.prop-scroll.poked .seal { animation: sealstamp 0.7s cubic-bezier(0.3, 1.2, 0.5, 1); }
.prop-scroll .scroll { transform-origin: 50% 100%; }
.prop-scroll.poked .scroll { animation: scrollshiver 0.7s ease; }
.prop-scroll .quill { transform-origin: 20% 100%; animation: quillbob 3.4s ease-in-out infinite; }
@keyframes sealstamp { 0% { translate: 0 0; scale: 1; } 30% { translate: 8px -46px; scale: 1.25; } 62% { translate: 0 0; scale: 1.12 0.86; } 100% { scale: 1; } }
@keyframes scrollshiver { 55% { rotate: 0deg; } 65% { rotate: -1.6deg; } 80% { rotate: 1deg; } 100% { rotate: 0deg; } }
@keyframes quillbob { 0%, 100% { rotate: 0deg; } 50% { rotate: -5deg; } }
/* the buoy sways on its rope and spins when poked */
.prop-buoy .buoy-sway { transform-origin: 50% 0; animation: buoysway 4.6s ease-in-out infinite; }
.prop-buoy .buoy { transform-origin: 50% 50%; }
.prop-buoy.poked .buoy { animation: buoyspin 1.5s cubic-bezier(0.2, 0.9, 0.3, 1.08); }
@keyframes buoysway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
@keyframes buoyspin { from { rotate: 0deg; } to { rotate: 360deg; } }
/* the notebook: the pencil writes a line again and the gold star sticks on */
.prop-notebook .scribble { stroke-dasharray: 130; stroke-dashoffset: 0; }
.prop-notebook.poked .scribble { animation: scribble 0.9s 0.1s ease-out both; }
.prop-notebook .pencil { transform-origin: 50% 100%; }
.prop-notebook.poked .pencil { animation: pencilwrite 1s ease-in-out; }
.prop-notebook .sticker { transform-origin: 50% 50%; }
.prop-notebook.poked .sticker { animation: stickerpop 0.6s 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes scribble { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }
@keyframes pencilwrite { 0%, 100% { translate: 0 0; rotate: 0deg; } 20% { translate: -70px 18px; rotate: -4deg; } 40% { translate: -50px 14px; rotate: 3deg; } 60% { translate: -30px 18px; rotate: -3deg; } 80% { translate: -10px 14px; rotate: 2deg; } }
@keyframes stickerpop { 0% { scale: 0; rotate: -40deg; } 70% { scale: 1.25; } 100% { scale: 1; rotate: 0deg; } }
/* the scale: the apple drops on, the platform dips, the needle swings and settles on its weight */
.prop-scale .k-needle { transform-origin: 50% 100%; rotate: 48deg; }
.prop-scale.poked .apple { animation: appledrop 0.9s cubic-bezier(0.3, 1.1, 0.5, 1); }
.prop-scale.poked .platform { animation: platformdip 0.9s ease; }
.prop-scale.poked .k-needle { animation: needleswing 1.5s ease-out; }
.prop-scale .apple { transform-origin: 50% 100%; }
@keyframes appledrop { 0% { translate: 0 -110px; scale: 1; } 45% { translate: 0 0; scale: 1; } 58% { scale: 1.12 0.86; } 75% { translate: 0 -10px; scale: 0.97 1.04; } 100% { translate: 0 0; scale: 1; } }
@keyframes platformdip { 0%, 40% { translate: 0 0; } 55% { translate: 0 5px; } 100% { translate: 0 0; } }
@keyframes needleswing { 0%, 38% { rotate: 0deg; } 58% { rotate: 74deg; } 72% { rotate: 38deg; } 86% { rotate: 53deg; } 100% { rotate: 48deg; } }
/* the books: the top one hops, the little plant wobbles */
.prop-books .b-top { transform-origin: 50% 100%; }
.prop-books.poked .b-top { animation: bookhop 0.8s cubic-bezier(0.3, 1.3, 0.5, 1); }
.prop-books .plant { transform-origin: 50% 100%; animation: plantsway 5s ease-in-out infinite; }
.prop-books.poked .plant { animation: plantwobble 0.9s ease; }
@keyframes bookhop { 0%, 100% { translate: 0 0; rotate: 0deg; } 40% { translate: 0 -34px; rotate: -5deg; } 70% { translate: 0 2px; rotate: 1deg; } }
@keyframes plantsway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
@keyframes plantwobble { 0%, 100% { rotate: 0deg; translate: 0 0; } 30% { rotate: -9deg; translate: 0 -30px; } 60% { rotate: 6deg; translate: 0 0; } 80% { rotate: -3deg; } }
@media (max-width: 680px) { .prop { width: min(86%, 320px); } }
@media (max-width: 680px) { .prop { width: min(64%, 250px); } }

/* ---- the idle loops run "on twos" like stop motion (about 12 drawings a second), and sleep off screen: the clay
   reads more handmade, and the page repaints a fifth as often (3 Nov 2026) ---- */
.guide-art .flash { animation-timing-function: steps(3); }
.guide-art .wave { animation-timing-function: steps(6); }
.guide-art .tw { animation-timing-function: steps(10); }
.guide-art .ring-shake, .guide-art .hammer { animation-timing-function: steps(2); }
.guide-art .rays, .card .ico-art .rays { animation-timing-function: steps(180); }
.guide-art .nudge, .guide-art .feed { animation-timing-function: steps(12); }
.guide-art .sand { animation-timing-function: steps(8); }
.guide-art .ripple, .guide-art .bubbles circle, .guide-art .speed, .guide-art .orbit-a, .guide-art .orbit-b, .guide-art .orbit-c { animation-timing-function: steps(12); }
.guide-art .bob-drop, .guide-art .zz text { animation-timing-function: steps(10); }
.guide-art .flame { animation-timing-function: steps(5); }
.guide-art .pulse-hi { animation-timing-function: steps(26); }
.guide-art .breathe, .guide-art .roll { animation-timing-function: steps(16); }
.guide-art .charge { animation-timing-function: steps(6); }
.guide-art .sound path { animation-timing-function: steps(8); }
.guide-art .shake-lines { animation-timing-function: steps(3); }
.night .cl1 { animation-timing-function: steps(240); } .night .cl2 { animation-timing-function: steps(300); }
.night .shoot { animation-timing-function: steps(6); }
.prop-scroll .quill { animation-timing-function: steps(12); }
.prop-buoy .buoy-sway, .prop-books .plant, .jar .jar-label { animation-timing-function: steps(16); }
.asleep, .asleep * { animation-play-state: paused !important; }

/* code samples: the dark block keeps light code, with clay tabs to switch languages (reading.js) */
.prose pre code { background: none; padding: 0; color: inherit; font-size: 14px; line-height: 1.55; }
.code-tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.code-tabbar button { font: inherit; font-size: 14px; font-weight: 700; border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--paper); cursor: pointer; }
.code-tabbar button[aria-selected="true"] { background: var(--butter); box-shadow: 2px 2px 0 var(--ink); }

/* a light button on the navy band keeps dark words */
.lo-band .btn { color: var(--ink); }

/* Moving between pages (3 Nov 2026): the header stays put and the next page plops onto the board like a fresh piece of
   clay (cross-document view transitions; a browser without them simply loads the page). Off with reduced motion. */
@view-transition { navigation: auto; }
header.top { view-transition-name: top-bar; }
::view-transition-old(root) { animation: vt-out 0.18s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.46s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* As you scroll on, the page's clay piece lifts off the board a little, and the footer's beads drop into place
   (scroll-driven animations; browsers without them keep everything still). Never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-toy { animation: pop 0.7s 0.2s var(--spring) both, herodrift linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    @keyframes herodrift { to { translate: 0 -56px; rotate: -2.5deg; } }
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .foot-beads i { animation: beaddrop linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes beaddrop { from { translate: 0 -46px; scale: 0.6; opacity: 0; } 70% { translate: 0 4px; scale: 1.12 0.88; opacity: 1; } to { translate: 0 0; scale: 1; opacity: 1; } }
  }
}

/* The phone and tablet menu (3 Nov 2026): below 980px the top bar's links live in a clay panel behind a "Menu" pill. */
.menu { display: none; position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 8px 14px;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); -webkit-tap-highlight-color: transparent; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::before { content: ""; width: 16px; height: 12px; flex: none;
  background: linear-gradient(var(--ink) 0 0) top / 100% 3px no-repeat, linear-gradient(var(--ink) 0 0) center / 100% 3px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 3px no-repeat; }
.menu[open] > summary { background: var(--butter); }
.menu > summary:focus { outline: none; } .menu > summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 12px); z-index: 70; min-width: 230px; display: grid; gap: 4px; padding: 12px; border-radius: 22px; background-color: var(--paper);
  animation: plop 0.35s cubic-bezier(0.3, 1.45, 0.5, 1) both; }
.menu-panel a { text-decoration: none; font-weight: 700; font-size: 18px; padding: 10px 14px; border-radius: 14px; border: 2.5px solid transparent; color: var(--ink); }
.menu-panel a:hover { border-color: var(--ink); }
.menu-panel a[aria-current="page"] { border-color: var(--ink); background: var(--butter); }
.menu-panel .menu-lang { margin-top: 4px; border-top: 2px dashed #e4dbd0; border-radius: 0 0 14px 14px; }
[dir="rtl"] .menu-panel { right: auto; left: 0; }
@media (max-width: 980px) { .menu { display: block; } }
@media (max-width: 420px) { .menu > summary { padding: 8px 11px; font-size: 14px; } }

/* Hebrew legal guides: every chapter as a clay link to the full English text (pages.py he_legal) */
.he-legal { max-width: none; margin-bottom: 26px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chapter { display: flex; flex-direction: column; gap: 4px; border-radius: 18px; padding: 14px 18px; text-decoration: none; background-color: var(--paper); }
.chapter b { font-weight: 800; font-size: 18px; color: var(--ink); }
.chapter span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.chapters li:nth-child(4n+1) .chapter { background-color: #eaf3ff; } .chapters li:nth-child(4n+3) .chapter { background-color: #e8f8f0; }
@media (max-width: 680px) { .chapters { grid-template-columns: 1fr; } }

/* the announcement fits one line on a phone */
@media (max-width: 680px) { .announce .lg { display: none; } }

/* the opening's clay words squish when tapped (board.js / site.js) */
.hero h1 mark, .page-hero h1 mark { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: background-color 0.25s ease, color 0.25s ease; }
.hero h1 mark.squish, .page-hero h1 mark.squish { animation: marksquish 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes marksquish { 0% { scale: 1 1; } 30% { scale: 1.14 0.84; } 60% { scale: 0.95 1.06; } 100% { scale: 1 1; } }
