:root {
  --cream: #F7EBCB;
  --cream-deep: #F0DFB4;
  --lime: #B3F24A;
  --lime-pale: #D9F7A8;
  --ink: #111111;
  --white: #FFFFFF;
  --grey: #E6E6E6;
  --muted: #5b5646;

  --line: 3px solid var(--ink);
  --line-thick: 4px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);

  --r-blob: 48px;
  --r-card: 26px;
  --r-pill: 999px;

  --font: "Baloo 2", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--lime); border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--lime); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }

.dotted {
  background-image: radial-gradient(rgba(17,17,17,.13) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.05rem/1 var(--font);
  padding: 0.95em 1.6em 0.85em;
  border: var(--line);
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: var(--pop-sm);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-lime { background: var(--lime); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ghost { background: var(--white); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding-block: 14px; padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; }
.logo { width: 44px; height: 44px; }
.logo-eyes { transition: transform .08s linear; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; padding: 6px 14px; border-radius: var(--r-pill); }
.nav-links a:hover { background: var(--lime-pale); }
.nav-cta { padding: 0.8em 1.3em 0.7em; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: var(--line); border-radius: 14px; background: var(--white); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 12px auto; z-index: 49;
  background: var(--cream); border: var(--line-thick); border-radius: var(--r-card);
  box-shadow: var(--pop);
  padding: 20px 24px 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.mobile-menu a { font-size: 1.9rem; font-weight: 800; text-decoration: none; padding: 4px 0; }
.mobile-menu img { margin: 12px -24px 0; width: calc(100% + 48px); max-width: none; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); padding-inline: var(--gutter);
}
.hero-title { font-size: clamp(3.6rem, 9.5vw, 7.4rem); line-height: .86; letter-spacing: -0.045em; }
.hero-title .w { display: inline-block; }
.hero-lede { margin-top: 26px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 30ch; color: #2b2a24; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-visual { position: relative; }
.blob-window {
  border: 5px solid var(--ink);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  overflow: hidden; background: var(--cream-deep) url("/img/hero-frame.webp") 60% 50% / cover no-repeat;
  box-shadow: 8px 10px 0 var(--ink);
  aspect-ratio: 16 / 12;
  animation: blob 14s ease-in-out infinite alternate;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.02); }
@keyframes blob {
  to { border-radius: 55% 45% 58% 42% / 44% 56% 46% 54%; }
}
.speech {
  position: absolute; left: -2%; bottom: 8%;
  background: var(--white); border: var(--line); border-radius: 22px;
  padding: 12px 18px 10px; font-weight: 700; line-height: 1.15; font-size: 1.05rem;
  box-shadow: var(--pop-sm); transform: rotate(-4deg);
}
.speech::after {
  content: ""; position: absolute; right: 26px; bottom: -14px; width: 22px; height: 22px;
  background: var(--white); border-right: var(--line); border-bottom: var(--line);
  transform: skewX(-25deg) rotate(45deg);
}

/* page-load: words drip in, one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .w { opacity: 0; transform: translateY(-40px) scaleY(1.25); transform-origin: 50% 0; }
  .js.loaded .hero-title .w { animation: drip-in .75s cubic-bezier(.3, 1.6, .5, 1) forwards; }
  .js.loaded .hero-title .w:nth-child(2) { animation-delay: .12s; }
  .js.loaded .hero-title .w:nth-child(3) { animation-delay: .24s; }
  .js .blob-window, .js .speech { opacity: 0; }
  .js.loaded .blob-window { animation: pop-in .7s .35s cubic-bezier(.3, 1.5, .5, 1) forwards, blob 14s 1s ease-in-out infinite alternate; }
  .js.loaded .speech { animation: pop-in .5s .9s cubic-bezier(.3, 1.8, .5, 1) forwards; }
}
@keyframes drip-in { to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .js.loaded .speech { animation-name: pop-in-tilt; }
}
@keyframes pop-in-tilt { from { opacity: 0; transform: scale(.6) rotate(-4deg); } to { opacity: 1; transform: rotate(-4deg); } }

/* ---------- drips ---------- */
.drip { height: clamp(56px, 8vw, 110px); position: relative; z-index: 1; margin-block: -1px; }
.drip svg { width: 100%; height: 100%; }
.drip-lime { color: var(--lime); background: var(--white); }
.drip-ink { color: var(--ink); background: var(--cream); }
.drip-flip { transform: scaleY(-1); }
.wave { height: clamp(28px, 4vw, 48px); color: var(--lime); background: var(--cream); margin-bottom: -1px; }
.wave svg { width: 100%; height: 100%; }

/* ---------- pulse sentence ---------- */
.pulse { background: var(--lime); padding-block: 24px 36px; padding-inline: var(--gutter); }
.pulse-line { max-width: 1060px; margin: 0 auto; font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.45; text-align: center; text-wrap: balance; }
.chip { display: inline-block; background: var(--white); border: var(--line); border-radius: 16px; padding: 0 .35em; line-height: 1.25; font-weight: 800; transform: rotate(-1.5deg); }
.chip:nth-of-type(even) { transform: rotate(1.5deg); }
.nw { white-space: nowrap; }
.chip-lime { background: var(--ink); color: var(--lime); }

/* ---------- sections ---------- */
.section-head { max-width: 640px; }
.section-head p { margin-top: 14px; font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.section-head-light p { color: #cfcfc4; }

.how, .grow, .faq, .community {
  padding-block: clamp(64px, 9vw, 120px); padding-inline: var(--gutter);
}
.how { background: var(--white); }
.how .section-head { margin: 0 auto; text-align: center; }
.how .section-head p { margin-inline: auto; }

.steps { list-style: none; padding: 0; margin: 56px auto 0; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step img { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 10px; }
.step:nth-child(odd) img { transform: rotate(-3deg); }
.step:nth-child(even) img { transform: rotate(3deg); }
.step h3 { display: flex; align-items: center; justify-content: center; gap: 10px; }
.step p { margin-top: 8px; color: var(--muted); max-width: 26ch; margin-inline: auto; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); border: var(--line); font-size: 1.1rem; padding-top: 3px; }
.step + .step::before {
  content: ""; position: absolute; top: 110px; left: -30px; width: 40px; height: 14px;
  background: radial-gradient(circle, var(--ink) 2.5px, transparent 3px) 0 50% / 13px 14px repeat-x;
}

/* ---------- grow calc ---------- */
.grow { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.frame { border: 5px solid var(--ink); border-radius: var(--r-blob); overflow: hidden; box-shadow: 8px 10px 0 var(--ink); transform: rotate(-2deg); background: var(--cream-deep) url("/img/grow-frame.webp") center / cover no-repeat; }
.frame video { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.calc h2 { margin-bottom: 10px; }
.calc-pool { color: var(--muted); font-size: 1.15rem; }
.calc-pool strong { color: var(--ink); }
.calc-pool select { font: 700 1.05rem var(--font); padding: 4px 10px 2px; margin: 0 4px; border: var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; margin-top: 22px; font-size: 1.2rem; font-weight: 600; }
.field output { font-weight: 800; font-size: 1.6rem; }
.field input { grid-column: 1 / -1; margin-top: 8px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: var(--white); border: var(--line); border-radius: var(--r-pill); background-image: linear-gradient(var(--lime), var(--lime)); background-size: var(--fill, 50%) 100%; background-repeat: no-repeat; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: var(--line-thick); box-shadow: var(--pop-sm); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: var(--line-thick); box-shadow: var(--pop-sm); cursor: grab; }

.result { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding: 18px 24px; background: var(--white); border: var(--line-thick); border-radius: var(--r-card); box-shadow: var(--pop); }
.jar { width: 104px; flex-shrink: 0; }
#jar-liquid { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.result-copy p:first-child { color: var(--muted); font-weight: 600; }
.result-copy .big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.result-copy .small { margin-top: 6px; font-size: 1rem; color: var(--muted); }
.result-copy .small strong { color: var(--ink); }
.fineprint { margin: 14px 0 22px; font-size: .95rem; color: var(--muted); }

/* ---------- strategies ---------- */
.strategies { background: var(--ink); color: var(--white); padding-block: clamp(40px, 6vw, 80px); padding-inline: var(--gutter); }
.strategies .section-head { max-width: var(--max); margin: 0 auto; }
.strategy-list { max-width: var(--max); margin: 48px auto 0; display: grid; gap: 22px; }
.strategy {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center;
  background: var(--cream); color: var(--ink); border-radius: var(--r-blob); padding: 24px 36px 24px 24px;
}
.strategy:nth-child(2) { background: var(--lime); margin-left: clamp(0px, 6vw, 80px); }
.strategy:nth-child(3) { background: var(--white); margin-left: clamp(0px, 12vw, 160px); }
.strategy img { width: 200px; aspect-ratio: 1; object-fit: contain; }
.strategy h3 { font-size: 2rem; margin-bottom: 10px; }
.strategy dl { margin: 0; display: grid; grid-template-columns: 11rem 1fr; gap: 6px 18px; }
.strategy dt { font-weight: 800; }
.strategy dd { margin: 0; }

/* ---------- app teaser ---------- */
.try { padding-block: clamp(64px, 9vw, 120px); padding-inline: var(--gutter); background-color: var(--cream); }
.try-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.try-sticker { width: clamp(130px, 16vw, 190px); transform: rotate(-6deg); margin-bottom: 14px; }
.try-copy p { margin: 14px 0 26px; font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.try-pools { background: var(--white); border: var(--line-thick); border-radius: var(--r-card); box-shadow: 8px 10px 0 var(--ink); padding: 20px 22px; }
.try-pools h3 { font-size: 1.35rem; margin-bottom: 6px; }
.try-pools ul { list-style: none; margin: 0; padding: 0; }
.try-pools li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 6px; border-top: 2px dashed #e1dccb; text-decoration: none; }
.try-pools li:first-child a { border-top: 0; }
.try-pools li a:hover { background: #fbf6e6; }
.try-pools strong { display: block; font-size: 1.12rem; line-height: 1.2; }
.try-pools small { color: var(--muted); font-size: .95rem; }
.try-all { display: inline-block; margin-top: 12px; font-weight: 700; text-underline-offset: 3px; }
.tokens { display: flex; }
.tokens i { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 800; background: var(--white); padding-top: 2px; }
.tokens i:first-child { background: var(--lime-pale); }
.tokens i + i { margin-left: -10px; }
.apy-chip { font-weight: 800; font-size: 1.1rem; background: var(--lime); border: 2.5px solid var(--ink); border-radius: 12px; padding: 2px 10px 0; }

/* ---------- faq ---------- */
.faq { background-color: var(--lime-pale); }
.faq .section-head, .faq-list { max-width: 820px; margin-inline: auto; }
.faq-list { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--pop-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px 16px; font-weight: 800; font-size: 1.3rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: var(--line); background: var(--lime) linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat; }
.faq details:not([open]) summary::after { background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 12px 3px, 3px 12px; background-position: center, center; background-repeat: no-repeat; }
.faq details p { padding: 0 22px 20px; color: #3a3830; max-width: 64ch; }

/* ---------- community ---------- */
.community { text-align: center; background: var(--cream); }
.community .crowd { width: min(900px, 100%); margin: 0 auto 28px; }
.community p { margin: 14px auto 0; max-width: 46ch; font-size: 1.2rem; color: var(--muted); }
.community .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--white); position: relative; padding-inline: var(--gutter); padding-block: 0 36px; }
.footer-peek { width: min(560px, 90%); margin: 0 auto; transform: translateY(-38%); margin-bottom: -12%; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.footer-brand strong { font-size: 2rem; }
.footer-brand p { color: var(--lime); font-weight: 600; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--lime); }
.footer-note { grid-column: 1 / -1; color: #a9a79c; font-size: .9rem; border-top: 2px dashed #3a3a36; padding-top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .hero, .grow, .try-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step + .step::before { display: none; }
  .strategy, .strategy:nth-child(n) { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .steps { grid-template-columns: 1fr; }
  .strategy { grid-template-columns: 1fr; padding: 22px; border-radius: 34px; }
  .strategy img { width: 150px; }
  .strategy dl { grid-template-columns: 1fr; }
  .strategy dd { margin-bottom: 8px; }
  .result { flex-direction: column; align-items: flex-start; }
  .speech { left: 4px; bottom: -18px; font-size: .95rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
