/* eloai.io pages in clay (generated by yc-home/pages_yc.py from lifeos-home/lo/board.css, 3 Nov 2026): the reading and
   listing pieces, the props and the guide pictures, so both sites read the same. Edit the source, then re-run. */

/* ---- 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; }

.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; }

/* 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; }

/* 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; }

/* 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; } }

/* ---- 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; } }

/* ---- eloai.io's own props (pages_yc.py): the newsletter envelope, the developers' laptop ---- */
.prop-mail .letter { transform-box: fill-box; }
.prop-mail.poked .letter { animation: letterpop 1.1s cubic-bezier(0.3, 1.3, 0.5, 1); }
.prop-mail .seal { transform-box: fill-box; transform-origin: center; }
.prop-mail.poked .seal { animation: sealpop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes letterpop { 0%, 100% { translate: 0 0; } 40%, 60% { translate: 0 -46px; } }
@keyframes sealpop { 50% { scale: 1.4; rotate: -12deg; } }
.prop-laptop .caret { animation: caretblink 1s steps(1) infinite; }
.prop-phones :is(.n1, .n2, .n3, .n4) { transform-box: fill-box; animation: notefloat 3s steps(18) infinite; }
.prop-phones .n2 { animation-delay: 0.7s; } .prop-phones .n3 { animation-delay: 1.4s; } .prop-phones .n4 { animation-delay: 2.1s; }
.prop-phones.poked :is(.n1, .n2, .n3, .n4) { animation: notepop 0.8s cubic-bezier(0.3, 1.4, 0.5, 1); }
@keyframes notefloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: 6deg; } }
@keyframes notepop { 50% { translate: 0 -30px; scale: 1.25; } }
/* index pages: groups of cards with their headings */
.cards-sec { padding-top: clamp(10px, 2vw, 24px); }
.group + .group { margin-top: clamp(44px, 6vw, 80px); }
.group-h { font-size: clamp(30px, 3.6vw, 52px); margin: 0 0 8px; }
.group-lede { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; color: var(--ink-2); margin: 0 0 24px; max-width: 52ch; }
.group-tail { margin: 26px 0 0; font-weight: 600; color: var(--ink-2); max-width: 70ch; }
.group-tail a { color: var(--navy); font-weight: 800; }
@keyframes caretblink { 50% { opacity: 0; } }
@keyframes lookabout { 0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 50% { translate: 4px -3px; } 75% { translate: 5px 2px; } }
/* the page opening matches the Life OS pages' size; eloai.io's yellow logo stays */
.lo-hero h1 { font-size: clamp(42px, 5.6vw, 86px); }
.yc-page .lo-hero h1 mark { background-color: var(--tone, var(--butter)); color: var(--ink); }
@media (max-width: 980px) {
  .lo-hero .wrap, .plans { 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; }
  .prose { font-size: 17px; }
  .prop { width: min(64%, 250px); }
}
