/* CubbyReads landing page.
   Colours and fonts are CubbyReads' own (DESIGN.md, the Cream palette and the teal night).
   The layout borrows two habits: Wise's oversized, tightly set headlines, pill buttons and bold colour
   blocks, and Notion's quiet hairline cards, numbered labels and plain toggles. */

:root {
  --paper: #faf3e4;
  --sand: #efe3cc;
  --sand-2: #e5d7bc;
  --ink: #3a2b22;
  --ink-2: #655546;
  --line: rgba(58, 43, 34, .13);
  --line-2: rgba(58, 43, 34, .22);
  --peach: #f3b88f;
  --peach-edge: #d99a70;
  --peach-soft: #fbe3d1;
  --link: #94491f;
  --teal-night: #022f37;
  --teal-night-2: #033f4a;
  --teal: #035a69;
  --aqua: #02a8b0;
  --mist: #a3c0c5;
  --green: #356b50;
  --green-soft: #e0e9d8;
  --gold: #b8862b;
  --gold-soft: #f4e8cf;
  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --voice: 'Mali', 'Nunito', cursive;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.55 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 800 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--spring), background .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 -2px rgba(58, 43, 34, .25); }
.btn--ink:hover { box-shadow: 0 10px 22px -6px rgba(58, 43, 34, .45); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn.is-static { cursor: default; }
.btn.is-static:hover { transform: none; }
.apple { width: 16px; height: 19px; fill: currentColor; margin-top: -3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; transition: background .3s, box-shadow .3s; }
.nav.is-stuck { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; width: min(1280px, 100% - 32px); margin-inline: auto; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 28px; height: auto; transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 13px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s; }
.nav-links a:hover { background: var(--sand); }
@media (max-width: 920px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px; width: min(1280px, 100% - 40px); margin-inline: auto; padding: 40px 0 72px; min-height: calc(100svh - 70px); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: 14px; font-weight: 800; }
.pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(2, 168, 176, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(2, 168, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(2, 168, 176, 0); } }
.hero-title { margin: 22px 0 22px; font: 800 clamp(50px, 6.5vw, 100px)/.92 var(--display); letter-spacing: -.035em; word-spacing: .04em; font-variation-settings: 'opsz' 96; }
.hero-title .w { display: inline-block; overflow: hidden; padding: .06em .04em .12em; margin: -.06em .1em -.12em -.04em; vertical-align: top; }
.hero-title .w > span { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: left bottom; animation: rise .9s var(--ease) forwards; }
.hero-title .w:nth-child(1) > span { animation-delay: .05s; }
.hero-title .w:nth-child(2) > span { animation-delay: .12s; }
.hero-title .w:nth-child(3) > span { animation-delay: .19s; }
.hero-title .w:nth-child(4) > span { animation-delay: .26s; }
.hero-title .w:nth-child(5) > span { animation-delay: .36s; }
.hero-title .w:nth-child(6) > span { animation-delay: .44s; }
@keyframes rise { to { transform: none; } }
.mark { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.mark::after { content: ''; position: absolute; z-index: -1; left: -.04em; right: -.06em; bottom: .06em; height: .34em; border-radius: .2em; background: var(--peach); transform: scaleX(0); transform-origin: left; animation: swipe .8s .95s var(--ease) forwards; }
@keyframes swipe { to { transform: scaleX(1); } }
.lede { max-width: 560px; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.tags li { padding: 5px 12px; border-radius: 8px; background: transparent; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 700; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.blob { position: absolute; width: min(560px, 92%); aspect-ratio: 1; border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; background: radial-gradient(circle at 35% 35%, var(--peach-soft), var(--peach) 70%); animation: morph 14s ease-in-out infinite; opacity: .9; }
@keyframes morph { 50% { border-radius: 58% 42% 38% 62% / 55% 61% 39% 45%; transform: rotate(14deg) scale(1.03); } }
.phone { position: relative; margin: 0; padding: 10px; border-radius: 52px; background: #1d1714; box-shadow: 0 0 0 2px #3d332d inset, 0 40px 80px -30px rgba(58, 43, 34, .55), 0 12px 24px -12px rgba(58, 43, 34, .35); }
.phone::before { content: ''; position: absolute; z-index: 2; top: 20px; left: 50%; width: 30%; height: 26px; border-radius: 999px; background: #1d1714; transform: translateX(-50%); }
.phone-screen { position: relative; overflow: hidden; border-radius: 42px; aspect-ratio: 390 / 844; background: var(--sand); }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone--hero { width: min(330px, 70vw); transform: rotate(-4deg); animation: phone-in 1.2s .3s var(--ease) both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotate(4deg) scale(.94); } }
.float { position: absolute; width: 150px; height: auto; filter: drop-shadow(0 18px 18px rgba(58, 43, 34, .18)); animation: bob 6s ease-in-out infinite, pop .9s var(--spring) both; }
.float--owl { left: -2%; top: 8%; width: 140px; animation-delay: 0s, .9s; }
.float--seal { right: -3%; top: 38%; width: 160px; animation-delay: -2s, 1.1s; }
.float--dragon { left: 4%; bottom: 4%; width: 150px; animation-delay: -4s, 1.3s; }
@keyframes bob { 50% { translate: 0 -14px; rotate: 3deg; } }
@keyframes pop { from { opacity: 0; scale: .4; } }
.bubble { position: relative; padding: 12px 16px; border-radius: 18px; background: #fffaf1; border: 1px solid var(--line); box-shadow: 0 10px 28px -14px rgba(58, 43, 34, .4); font: 500 16px/1.4 var(--voice); color: var(--ink); }
.bubble--hero { position: absolute; right: 0; top: 4%; width: 250px; min-height: 72px; animation: pop .8s 1.5s var(--spring) both; }
.bubble--hero::after { content: ''; position: absolute; left: 32px; bottom: -9px; width: 16px; height: 16px; background: #fffaf1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
[data-typer]::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero-note { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; min-height: 0; text-align: left; }
  .hero-stage { min-height: 560px; margin-top: 12px; }
  .bubble--hero { right: 4%; top: 0; width: 220px; font-size: 15px; }
  .float--owl { width: 110px; } .float--seal { width: 120px; } .float--dragon { width: 110px; }
}

/* ---------- marquee band ---------- */
.band { background: var(--teal-night); color: #e9eef0; padding: 22px 0; overflow: hidden; transform: rotate(-1.4deg); margin: 0 -20px; box-shadow: 0 12px 30px -18px rgba(2, 47, 55, .7); }
.marquee { display: flex; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; padding-right: 14px; flex: none; animation: slide 38s linear infinite; }
.band:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--teal-night-2); border: 1px solid rgba(233, 238, 240, .14); font: 800 20px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.chip img { width: 46px; height: 46px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--sand); }
.chip i { font: 600 15px var(--body); color: var(--mist); font-style: normal; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--sunk { background: var(--sand); }
.section--dark { background: var(--teal-night); color: #e9eef0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--ink-2); text-transform: uppercase; }
.kicker span { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line-2); font-feature-settings: 'tnum'; color: var(--ink); background: var(--paper); }
.section--sunk .kicker span { background: var(--paper); }
.kicker--light { color: var(--mist); }
.kicker--light span { background: transparent; border-color: rgba(233, 238, 240, .3); color: #e9eef0; }
.h2 { font: 800 clamp(40px, 5.6vw, 80px)/.95 var(--display); letter-spacing: -.04em; font-variation-settings: 'opsz' 96; text-wrap: balance; }
.sec-lede { margin-top: 20px; max-width: 620px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }
.sec-head--center .sec-lede { margin-inline: auto; }
.section--dark .sec-lede { color: var(--mist); }
.scribble { position: relative; white-space: nowrap; }
.scribble::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .28em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C40 4 80 4 110 9 S170 16 197 6' fill='none' stroke='%23d99a70' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; clip-path: inset(0 100% 0 0); transition: clip-path 1s .3s var(--ease); }
.in .scribble::after, .scribble.in::after { clip-path: inset(0 0 0 0); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero .reveal { transition-delay: calc(.55s + var(--d, 0s)); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 26px; border-radius: var(--r-lg); background: #fffaf1; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(58, 43, 34, .5); border-color: var(--line-2); }
.card h3 { font: 800 22px/1.15 var(--display); letter-spacing: -.02em; margin: 14px 0 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card--tall { grid-row: span 2; grid-column: span 2; display: flex; flex-direction: column; background: var(--peach-soft); border-color: transparent; padding-bottom: 0; }
.card--tall h3 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 0; }
.card--wide { grid-column: span 2; }
.card--half { grid-column: span 2; }
.card-shot { width: 58%; height: auto; aspect-ratio: 390 / 610; object-fit: cover; object-position: top; margin: 26px auto 0; border-radius: 28px 28px 0 0; border: 8px solid #1d1714; border-bottom: 0; box-shadow: 0 -10px 40px -20px rgba(58, 43, 34, .5); transition: transform .8s var(--ease); }
.card--tall:hover .card-shot { transform: translateY(-10px); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sand); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini-progress { margin-top: auto; padding-top: 18px; }
.mini-progress span { display: block; height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.mini-progress span::before { content: ''; display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); transition: transform 1.4s .4s var(--ease); border-radius: inherit; }
.in .mini-progress span::before { transform: scaleX(var(--p)); }
.mini-progress b { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: auto; padding-top: 18px; box-sizing: content-box; }
.mini-bars i { flex: 1; height: 100%; border-radius: 6px 6px 3px 3px; background: var(--peach); transform-origin: bottom; transform: scaleY(.05); transition: transform 1s var(--spring); }
.mini-bars i:nth-child(even) { background: var(--peach-edge); }
.in .mini-bars i { transform: scaleY(var(--h)); }
.mini-bars i:nth-child(2) { transition-delay: .06s; } .mini-bars i:nth-child(3) { transition-delay: .12s; } .mini-bars i:nth-child(4) { transition-delay: .18s; } .mini-bars i:nth-child(5) { transition-delay: .24s; } .mini-bars i:nth-child(6) { transition-delay: .3s; } .mini-bars i:nth-child(7) { transition-delay: .36s; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.review-demo { padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.stars { display: flex; align-items: center; gap: 4px; }
.stars span { position: relative; width: 30px; height: 30px; background: var(--sand-2); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars span::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform .35s var(--ease); }
.stars b { margin-left: 8px; font: 800 20px var(--display); font-feature-settings: 'tnum'; }
.mood-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mood-row em { padding: 4px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green); font: 700 13px var(--body); font-style: normal; }
.scanline { position: absolute; left: 26px; right: 26px; bottom: 26px; height: 46px; }
.scanline::before { content: ''; position: absolute; inset: 0; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px); opacity: .22; }
.scanline::after { content: ''; position: absolute; left: -4px; right: -4px; top: 0; height: 2px; background: #e5484d; box-shadow: 0 0 10px 2px rgba(229, 72, 77, .6); animation: scan 2.4s ease-in-out infinite; }
.card:has(.scanline) { padding-bottom: 92px; }
@keyframes scan { 50% { top: 100%; } }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card--tall, .card--wide, .card--half { grid-column: auto; } .card-row { grid-template-columns: 1fr; } }

/* ---------- story (sticky) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; opacity: .28; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 20px var(--display); margin-bottom: 18px; }
.step h3 { font: 800 clamp(30px, 3.2vw, 44px)/1 var(--display); letter-spacing: -.03em; margin-bottom: 14px; }
.step p { color: var(--ink-2); font-size: 18px; }
.bubble--small { margin-top: 18px; align-self: flex-start; font-size: 15px; max-width: 340px; }
.story-stage { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; justify-content: center; gap: 24px; }
.phone--story { width: min(330px, 100%); }
.story-shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story-shot.is-on { opacity: 1; transform: none; }
.story-dots { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.story-dots li { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: height .4s var(--ease), background .3s; }
.story-dots li.is-on { height: 32px; background: var(--ink); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { order: -1; top: 70px; height: auto; z-index: 2; padding: 12px 0; background: linear-gradient(var(--sand) 85%, transparent); }
  .phone--story { width: 170px; padding: 6px; border-radius: 30px; }
  .phone--story .phone-screen { border-radius: 25px; }
  .phone--story::before { top: 11px; height: 14px; }
  .step { min-height: 62vh; }
}

/* ---------- compare ---------- */
.compare { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 1800 / 1260; box-shadow: 0 40px 80px -40px rgba(58, 43, 34, .55); user-select: none; touch-action: pan-y; }
.compare > img, .compare-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: var(--paper); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--paper); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.compare-handle span::before, .compare-handle span::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare-handle span::before { left: 10px; border-right: 8px solid var(--ink); }
.compare-handle span::after { right: 10px; border-left: 8px solid var(--ink); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + .compare-tag, .compare:has(.compare-range:focus-visible) { outline: 3px solid var(--teal); outline-offset: 4px; }
.compare-tag { position: absolute; top: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(250, 243, 228, .92); font-size: 14px; font-weight: 800; pointer-events: none; }
.compare-tag--l { left: 18px; } .compare-tag--r { right: 18px; }

/* ---------- eggs ---------- */
.eggs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.egg { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 300px; padding: 24px 12px 20px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s; }
.egg:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(58, 43, 34, .55); }
.egg-shell { width: 104px; height: auto; margin-bottom: 52px; transform-origin: 50% 90%; animation: wobble 3.4s ease-in-out infinite; transition: transform .5s var(--ease), opacity .4s; }
.egg:nth-child(2n) .egg-shell { animation-delay: -1.1s; } .egg:nth-child(3n) .egg-shell { animation-delay: -2.2s; }
.egg:hover .egg-shell { animation-duration: .9s; }
@keyframes wobble { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -7deg; } 82% { rotate: 6deg; } 88% { rotate: -4deg; } 94% { rotate: 2deg; } }
.egg-pet { position: absolute; left: 50%; bottom: 58px; width: 160px; height: auto; translate: -50% 0; opacity: 0; scale: .3; transition: opacity .3s, scale .7s var(--spring); }
.egg-name { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-size: 14px; color: var(--ink-2); font-weight: 600; opacity: .0; transform: translateY(8px); transition: opacity .4s .15s, transform .4s .15s var(--ease); }
.egg-name b { color: var(--ink); font: 800 19px var(--display); }
.egg.is-hatched { background: var(--peach-soft); }
.egg.is-hatched .egg-shell { animation: none; opacity: 0; transform: scale(1.5) rotate(-8deg); }
.egg.is-hatched .egg-pet { opacity: 1; scale: 1; }
.egg.is-hatched .egg-name { opacity: 1; transform: none; }
.egg::after { content: 'Tap to hatch'; position: absolute; bottom: 20px; font-size: 13px; font-weight: 800; color: var(--ink-2); transition: opacity .3s; }
.egg.is-hatched::after { opacity: 0; }
.burst { position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; animation: burst .8s var(--ease) forwards; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); opacity: 0; } }
@media (max-width: 860px) { .eggs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .egg { min-height: 250px; } .egg-pet { width: 130px; } }

/* ---------- calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.facts { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.facts li { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(233, 238, 240, .14); color: var(--mist); }
.facts b { min-width: 110px; font: 800 30px/1 var(--display); color: #e9eef0; letter-spacing: -.02em; }
.calc { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-xl); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.calc-title { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 22px; max-width: 70%; }
.calc-label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.calc-label output { display: inline-block; min-width: 2.2ch; padding: 0 8px; border-radius: 8px; background: var(--peach); font: 800 22px var(--display); text-align: center; font-feature-settings: 'tnum'; }
.calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.calc-range::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--fill, 14%), var(--sand-2) var(--fill, 14%)); }
.calc-range::-moz-range-track { height: 10px; border-radius: 99px; background: var(--sand-2); }
.calc-range::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--green); }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 4px 10px rgba(58, 43, 34, .3); transition: transform .2s var(--spring); }
.calc-range:active::-webkit-slider-thumb { transform: scale(1.2); }
.calc-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.calc-cell { padding: 18px; border-radius: 18px; background: var(--sand); }
.calc-cell--wide { grid-column: span 2; }
.calc-num { display: block; font: 800 clamp(40px, 4vw, 56px)/1 var(--display); letter-spacing: -.03em; font-feature-settings: 'tnum'; }
.calc-cap { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.calc-bar { height: 10px; margin-top: 14px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.calc-bar span { display: block; height: 100%; width: 50%; border-radius: inherit; background: linear-gradient(90deg, var(--aqua), var(--teal)); transition: width .6s var(--ease); }
.calc-note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.calc-pet { position: absolute; right: -18px; top: -70px; width: 130px; height: auto; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .25)); }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } .calc-pet { width: 100px; top: -54px; right: 0; } }

/* ---------- garden ---------- */
.garden-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.garden { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(58, 43, 34, .55); }
.garden img { width: 100%; height: auto; transition: transform 1.6s var(--ease); }
.garden:hover img { transform: scale(1.04); }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23356b50' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 900px) { .garden-wrap { grid-template-columns: 1fr; } }

/* ---------- together ---------- */
.together { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; border-top: 1px solid var(--line-2); }
.feature-list > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line-2); }
.feature-list > div:nth-child(odd) { border-right: 1px solid var(--line-2); }
.feature-list > div:nth-child(even) { padding-left: 22px; }
.feature-list h3 { font: 800 22px var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.feature-list p { color: var(--ink-2); font-size: 15.5px; }
.phone--side { width: min(320px, 100%); justify-self: center; transform: rotate(3deg); }
@media (max-width: 900px) { .together { grid-template-columns: 1fr; } .feature-list { grid-template-columns: 1fr; } .feature-list > div:nth-child(odd) { border-right: 0; } .feature-list > div:nth-child(even) { padding-left: 0; } }

/* ---------- promises ---------- */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise { min-height: 300px; padding: 28px; border-radius: var(--r-xl); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .5s var(--spring); }
.promise:hover { transform: translateY(-8px) rotate(-1deg); }
.promise h3 { font: 800 clamp(30px, 3vw, 42px)/.95 var(--display); letter-spacing: -.035em; margin-bottom: 14px; }
.promise p { font-size: 16px; }
.promise--peach { background: var(--peach); }
.promise--green { background: var(--green); color: #faf3e4; }
.promise--teal { background: var(--teal-night); color: #e9eef0; }
.promise--teal p { color: var(--mist); }
.promise--gold { background: var(--gold-soft); }
@media (max-width: 1000px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promise { min-height: 240px; } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
.plan h3 { font: 800 30px var(--display); letter-spacing: -.02em; }
.price { margin: 12px 0 4px; color: var(--ink-2); font-weight: 700; }
.price b { font: 800 56px/1 var(--display); color: var(--ink); letter-spacing: -.04em; }
.price span { display: block; margin-top: 6px; font-size: 15px; }
.plan .ticks { margin-bottom: 28px; flex: 1; }
.plan--plus { background: var(--ink); color: var(--paper); border-color: transparent; }
.plan--plus .price, .plan--plus .ticks li, .plan--plus .plan-note { color: #d9cbb4; }
.plan--plus .price b { color: var(--paper); }
.plan--plus .btn--ink { background: var(--peach); color: var(--ink); box-shadow: none; }
.plan--plus .ticks li::before { background-color: rgba(250, 243, 228, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23f3b88f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-flag { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--peach); color: var(--ink); font-size: 13px; font-weight: 800; }
.plan-note { margin-top: 14px; font-size: 13.5px; text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 16px 0; list-style: none; cursor: pointer; font: 800 20px/1.25 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ''; flex: none; width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; transition: transform .3s var(--ease); }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details p { padding: 0 0 22px 23px; color: var(--ink-2); max-width: 620px; }
.faq details[open] p { animation: open .4s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }

/* ---------- final ---------- */
.final { position: relative; display: grid; place-items: center; min-height: 92vh; padding: 80px 20px; overflow: hidden; background: var(--teal-night); }
.final-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.final.in .final-room { transform: scale(1); }
.final-card { position: relative; max-width: 620px; padding: 44px 40px 40px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.final-card .h2 { font-size: clamp(36px, 4.6vw, 60px); }
.final-card p { margin: 16px 0 26px; color: var(--ink-2); font-size: 18px; }
.final-egg { width: 74px; height: auto; margin: -92px auto 16px; animation: wobble 3s ease-in-out infinite; transform-origin: 50% 90%; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 48px; background: var(--paper); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--link); text-decoration: underline; }
.foot p { width: 100%; color: var(--ink-2); font-size: 14px; }
.foot .brand { font-size: 18px; }
.foot .brand img { width: 22px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .w > span { transform: none; }
}
