/* juwalio.com — the owner's palette (2026-10-25):
   bg FFF7EC · card FFF1E1 · border F8DEC5 · secondary FFD5B3 · primary FFAA24
   · primary dark F28C16 · text 3A3029 · text secondary 8C7868 · success 72B68A
   · pink E98EAE · blue 78A9D6. The hero is FDD5B3 at the top to FEF4EB.

   Motion rule, the app's own: things ENTER by scaling 0 -> 100, never by
   fading in. Every animation here moves transform only. */

@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(../fonts/Nunito-Regular.ttf) format("truetype"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(../fonts/Nunito-Bold.ttf) format("truetype"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(../fonts/Nunito-ExtraBold.ttf) format("truetype"); }

:root {
  --sky-top: #fdd5b3;
  --sky-bottom: #fef4eb;
  --bg: #fff7ec;
  --card: #fff1e1;
  --border: #f8dec5;
  --secondary: #ffd5b3;
  --primary: #ffaa24;
  --primary-dark: #f28c16;
  --text: #3a3029;
  --text-2: #8c7868;
  --success: #72b68a;
  --pink: #e98eae;
  --blue: #78a9d6;
  --link: #c4690c;
  --glass: rgba(255, 249, 242, 0.58);
  --rim-top: rgba(255, 255, 255, 0.95);
  --rim-bottom: rgba(248, 222, 197, 0.95);
  --lift: 0 14px 34px rgba(196, 105, 12, 0.12);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
/* No `scroll-behavior: smooth` here: js/smooth.js glides the page itself. */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky-bottom);
  color: var(--text);
  font: 17px/1.55 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
.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;
}
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── Glass: the tint, the blur, a 1 px rim lit from the top ── */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: var(--lift), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--rim-top), var(--rim-bottom));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ── The amber pill (the app's CTA) ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(180deg, #ffbe55 0%, var(--primary) 48%, var(--primary-dark) 100%);
  color: var(--text); font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(242, 140, 22, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.pill svg { width: 18px; height: 18px; fill: var(--text); }
.pill-small { padding: 9px 16px; font-size: 14px; }

/* Google's own "Get it on Google Play" badge (img/google-play-badge.png —
   their artwork, cropped to its edge, otherwise as they ship it), linked to
   the Play listing. */
.play-badge { display: inline-block; border-radius: 12px; line-height: 0; }
.play-badge img { width: auto; height: 56px; }

/* ── Nav ── */
.nav {
  position: fixed; z-index: 50;
  top: max(12px, env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  width: min(100% - 24px, 1080px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 12px; border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav-links { display: none; gap: 26px; }
.nav-links a { color: var(--text-2); font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 720px) { .nav-links { display: flex; } }

/* ── Hero ──
   The owner's version (2026-10-25): "Juwalio" written big behind, the
   clouds drifting slowly behind the word, and Juwalio coming forward in
   front of it — he hops in from the left or the right and sits in the
   middle — nothing else ("not too much thing"); the words wait one scroll
   down, in .intro. */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  /* CSS px per rig unit for Juwalio near: his 433-unit height at 45% of the
     screen's height, or his 350-unit width at half its width — the smaller,
     so he is smaller on a phone (the owner, 2026-10-25). */
  --k: min(calc(100vh * 0.45 / 433), calc(50vw / 350));
}
@supports (height: 100svh) { .hero { --k: min(calc(100svh * 0.45 / 433), calc(50vw / 350)); } }
/* The owner's wordmark (name.svg), big, a letter to a group so each pops,
   and the tagline under it. Kept short enough on a short screen that
   sitting Juwalio stays clear of the tagline. */
.headline {
  position: absolute; z-index: 1; left: 50%; top: 33%;
  width: min(92vw, 1400px, 120vh); transform: translate(-50%, -50%);
}
.title { margin: 0; }
.headline .tagline { width: clamp(240px, 50%, 100%); margin: 3% auto 0; }
.js .headline .tagline { transform: scale(0); animation: enter 0.6s var(--pop) 1.3s forwards; }
/* The first open: nothing in the hero moves until js/site.js says go (the
   rig is in place) — the letters' pops, drawn on the main thread, stuttered
   while the rig unpacked. Then every delay counts from the go. */
.js:not(.go) .letter, .js:not(.go) .letter path, .js:not(.go) .headline .tagline, .js:not(.go) .strip { animation-play-state: paused; }
.wordmark-art { display: block; width: 100%; height: auto; overflow: visible; }
.letter { transform-box: fill-box; transform-origin: 50% 85%; }
.letter path { transform-box: fill-box; animation: bob 2.8s ease-in-out infinite; animation-delay: calc(1.8s + var(--i) * 0.14s); }
.js .letter { transform: scale(0); animation: enter 0.6s var(--pop) forwards; animation-delay: calc(0.15s + var(--i) * 0.167s); }
.tagline { height: auto; }

@keyframes enter { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }

/* The sky: the owner's small, mid and large clouds — no bank (the owner:
   "use only cloud small to large") — in three layers drifting right to left
   on a seamless loop ("make them repeat … like a movement"), slowly behind
   the big word ("less moving"): the small ones farthest and slowest, the
   large nearest. Each strip is two identical
   halves, one screen wide each; it slides one half and starts over. */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.band { position: absolute; left: 0; width: 100%; }
.strip { position: absolute; inset: 0 auto 0 0; width: 200%; display: flex; animation: sky var(--t) linear infinite; }
.group { position: relative; width: 50%; height: 100%; }
.group img { position: absolute; height: auto; width: calc(var(--w) * var(--s, 1)); }
.far  { top: 12%; height: 14%; --t: 300s; --w: min(20vw, 147px); }
.mid  { top: 30%; height: 16%; --t: 220s; --w: min(30vw, 260px); }
.near { top: 48%; height: 18%; --t: 160s; --w: min(38vw, 340px); }
@keyframes sky { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* The stage: Juwalio's canvas, the full width of the screen so he hops in
   from past its edge, in front of the word, near the bottom. Its height is
   the rig's 490-unit band round him, at the scale js/site.js reads back off
   it. Nothing here takes a touch — the page scrolls straight through him. */
.stage { position: absolute; z-index: 2; left: 0; right: 0; bottom: 4%; height: calc(var(--k) * 490); }
/* A computer: the owner's pick "A Balanced" (2026-10-25, after the word as
   wide as the nav bar looked too big) — the word at most 760 px, Juwalio
   34% of the screen's height, the two nearer the middle with sky round
   them. */
@media (min-width: 601px) {
  .headline { top: 38%; width: min(100% - 24px, 760px, 120vh); }
  .hero { --k: min(calc(100vh * 0.34 / 433), calc(50vw / 350)); }
  .stage { bottom: 6%; }
}
@supports (height: 100svh) {
  @media (min-width: 601px) { .hero { --k: min(calc(100svh * 0.34 / 433), calc(50vw / 350)); } }
}
/* A phone: the smaller Juwalio sits higher, the word a little lower, so no
   gap opens between them. */
@media (max-width: 600px) {
  .headline { top: 40%; }
  .stage { bottom: 10%; }
}
.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; visibility: hidden;
}
.stage canvas.ready { visibility: visible; }
/* No WebGL 2 / the rig failed: Juwalio as a picture, where he would stand. */
.stage.static canvas { display: none; }
.stage.static::after {
  content: ""; position: absolute; inset: 0;
  background: url(../img/kindle.webp) 50% 95% / auto 80% no-repeat;
}

/* The words, one scroll down: what Juwalio is. */
.intro { text-align: center; padding-top: 72px; }
.intro-text {
  max-width: 24ch; margin: 0 auto;
  color: var(--text); font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.3; letter-spacing: -0.01em;
}

/* ── Sections ── */
/* The colour blobs run on across the section edges — clipping them there
   left a hard line (the owner: "no hard cut"). Only the sides are cut. */
main { overflow-x: clip; }
.section { position: relative; padding: 76px 0 16px; }
.section-head { text-align: center; margin-bottom: 34px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px var(--border), 0 6px 16px rgba(196, 105, 12, 0.08);
  color: var(--link); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow img { width: 22px; height: 22px; object-fit: contain; }
h2 {
  margin: 14px 0 10px; text-align: center;
  font-size: clamp(32px, 6vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em;
}
.lead { max-width: 40ch; margin: 0 auto; text-align: center; color: var(--text-2); font-weight: 600; font-size: 18px; line-height: 1.5; }
h3 { color: var(--text); letter-spacing: -0.01em; }
.blob { position: absolute; z-index: 0; width: 340px; height: 340px; border-radius: 50%; filter: blur(64px); pointer-events: none; }
@media (min-width: 900px) { .blob { width: 480px; height: 480px; filter: blur(80px); } }
.b1 { top: 60px; left: -140px; background: var(--secondary); }
.b2 { top: 420px; right: -150px; background: rgba(233, 142, 174, 0.42); }
.b3 { top: 80px; left: -130px; background: rgba(120, 169, 214, 0.36); }
.b4 { bottom: 20px; right: -140px; background: rgba(114, 182, 138, 0.32); }
.b5 { top: 40px; left: 50%; margin-left: -240px; background: rgba(255, 170, 36, 0.28); }

/* Each card's own colour, from the palette (r, g, b). */
.tint-amber  { --tint: 255, 170, 36; }
.tint-orange { --tint: 242, 140, 22; }
.tint-yellow { --tint: 255, 194, 74; }
.tint-blue   { --tint: 120, 169, 214; }
.tint-green  { --tint: 114, 182, 138; }
.tint-pink   { --tint: 233, 142, 174; }
.tint-red    { --tint: 229, 72, 77; }
.glass > * { position: relative; z-index: 2; }

/* The icon in a soft tile of its card's colour, as the app's rows wear it. */
.tile {
  flex: none; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(var(--tint), 0.24), rgba(var(--tint), 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(var(--tint), 0.22), 0 8px 18px rgba(var(--tint), 0.18);
}
.tile img { width: 38px; height: 38px; object-fit: contain; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* Water and Rhythm: their live art in a glow of their colour. */
.show {
  display: flex; align-items: center; gap: 12px;
  padding: 24px; border-radius: 28px; min-height: 200px;
  background: linear-gradient(135deg, rgba(var(--tint), 0.2), rgba(255, 249, 242, 0.55) 62%);
}
.show-text { flex: 1; }
.show-text .tile { margin-bottom: 14px; }
.show h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.show p { margin: 0; color: var(--text-2); font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.show-art { flex: none; position: relative; display: grid; place-items: center; width: 132px; height: 170px; }
.show-art::before {
  content: ""; position: absolute; inset: 6% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--tint), 0.38), rgba(var(--tint), 0) 100%);
}
.live { position: relative; z-index: 1; }
.live-glass { width: 104px; height: 150px; }
.live-flame { width: 132px; height: 132px; }

/* The rest: rows, icon beside the words. */
.row { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 24px; }
.row h3 { margin: 2px 0 4px; font-size: 18px; font-weight: 800; }
.row p { margin: 0; color: var(--text-2); font-weight: 600; font-size: 15px; line-height: 1.5; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .show { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(6, 1fr); }
  .features .row { grid-column: span 2; }
  .features .show { grid-column: span 3; }
}

/* Watch Juwalio Grow: the three forms on a path. */
.grow { padding: 30px 18px 28px; border-radius: 30px; text-align: center; }
.grow-head h3 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.grow-head p { margin: 0 auto; max-width: 36ch; color: var(--text-2); font-weight: 600; font-size: 15.5px; }
.path {
  list-style: none; margin: 26px auto 0; padding: 0; max-width: 680px;
  display: flex; align-items: flex-end; justify-content: space-around; position: relative;
}
.path::before {
  content: ""; position: absolute; z-index: 0; left: 17%; right: 17%; bottom: 51px;
  border-top: 3px dashed rgba(242, 140, 22, 0.42);
}
.path li { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; }
.spot { position: relative; display: grid; place-items: end center; width: 100%; }
.spot::before {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -6px; height: 22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 140, 22, 0.3), rgba(242, 140, 22, 0));
}
.spot img { position: relative; height: auto; animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -1.05s); }
.path li:nth-child(1) .spot img { width: 66%; }
.path li:nth-child(2) .spot img { width: 74%; }
.path li:nth-child(3) .spot img { width: 84%; }
.step {
  display: grid; place-items: center; width: 30px; height: 30px; margin-top: 16px; border-radius: 50%;
  background: linear-gradient(180deg, #ffbe55, var(--primary-dark)); color: var(--text); font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 10px rgba(242, 140, 22, 0.35), 0 0 0 5px rgba(255, 249, 242, 0.95);
}
.path b { margin-top: 8px; font-size: 17px; font-weight: 800; }

/* Pet · Feed · Gems: a picture, then the words. */
.care { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 1000px) { .care { grid-template-columns: repeat(3, 1fr); } }
.care-card { padding: 18px 18px 26px; border-radius: 28px; text-align: center; }
.care-art {
  position: relative; display: grid; place-items: center; height: 150px; margin-bottom: 16px; border-radius: 22px;
  container-type: inline-size;
  background: radial-gradient(60% 70% at 50% 55%, rgba(var(--tint), 0.3), rgba(var(--tint), 0.07) 70%, rgba(var(--tint), 0));
}
.care-card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.care-card p { margin: 0 auto; max-width: 28ch; color: var(--text-2); font-weight: 600; font-size: 15.5px; line-height: 1.5; }

.paw { width: 84px; height: auto; animation: bob 2.6s ease-in-out infinite; }
.heart { position: absolute; width: 22px; height: 22px; fill: var(--pink); animation: rise 3s ease-in-out infinite; }
.heart.h1 { left: 28%; top: 26%; }
.heart.h2 { right: 27%; top: 18%; width: 18px; animation-delay: -1s; }
.heart.h3 { right: 33%; bottom: 22%; width: 14px; animation-delay: -2s; }
@keyframes rise { 0%, 100% { transform: translateY(6px) scale(0.7); } 50% { transform: translateY(-8px) scale(1); } }

.tray {
  /* Drawn 328 px wide; --u shrinks the whole tray evenly to fit its card.
     Each slot is its longest name ("Glow Berry") plus ~8 px a side. */
  --u: min(1px, calc((100cqi - 8px) / 328));
  display: flex; gap: calc(4 * var(--u)); padding: calc(6 * var(--u)); border-radius: calc(22 * var(--u));
}
.slot {
  display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u));
  width: calc(76 * var(--u)); padding: calc(8 * var(--u)) 0 calc(7 * var(--u)); border-radius: calc(16 * var(--u));
  background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px var(--border);
}
.slot img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); object-fit: contain; animation: bob 2.8s ease-in-out infinite; }
.slot:nth-child(2) img { animation-delay: -0.7s; }
.slot:nth-child(3) img { animation-delay: -1.4s; }
.slot:nth-child(4) img { animation-delay: -2.1s; }
.slot small { font-size: calc(11 * var(--u)); line-height: 1.3; font-weight: 800; color: var(--text-2); white-space: nowrap; }

.gems { width: 132px; height: auto; animation: bob 3s ease-in-out infinite; }
.plus {
  position: absolute; top: 20px; left: calc(50% + 46px);
  padding: 4px 11px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--text);
  background: linear-gradient(180deg, #ffbe55, var(--primary-dark));
  box-shadow: 0 6px 14px rgba(242, 140, 22, 0.35); animation: bob 2.4s ease-in-out infinite;
}

/* The closing card: Juwalio standing on his own, waving now and then. */
.get { display: grid; border-radius: 32px; overflow: hidden; }
.hello-stage {
  position: relative; height: 320px;
  background: radial-gradient(52% 58% at 50% 64%, rgba(255, 170, 36, 0.3), rgba(255, 213, 179, 0.16) 62%, rgba(255, 213, 179, 0) 78%);
}
.hello-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.hello-stage canvas.ready { visibility: visible; } /* once the rig reports him in place */
.get-text { padding: 26px 22px 34px; text-align: center; }
.get-text .tagline { width: min(84%, 380px); margin: 0 auto 12px; }
.get-text p { margin: 0 0 22px; color: var(--text-2); font-weight: 700; }
.get-text .small { margin: 22px 0 0; font-size: 15px; }
@media (min-width: 860px) {
  .get { grid-template-columns: 1fr 1fr; }
  .hello-stage { height: 100%; min-height: 440px; }
  .get-text { align-self: center; padding: 40px; }
}

/* ── Footer ── */
.footer { padding: 56px 0 36px; }
/* Brand left, Privacy Policy in the true middle, the copyright right — a
   grid, so the middle stays centred whatever the two ends measure. On a
   phone all three stack, centred. */
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 24px; }
.footer-row .brand { justify-self: start; }
.footer-row small { justify-self: end; text-align: right; }
@media (max-width: 640px) {
  .footer-row { grid-template-columns: 1fr; justify-items: center; }
  .footer-row .brand, .footer-row small { justify-self: center; text-align: center; }
  .legal { text-align: center; }
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.footer small { color: var(--text-2); font-size: 14px; font-weight: 700; }
.legal { margin: 18px 0 0; color: var(--text-2); font-size: 12.5px; font-weight: 600; }

/* Scroll-in: each block pops in once it is on screen (js/site.js adds .in). */
.js [data-pop] { transform: scale(0); transition: transform 0.6s var(--pop) var(--d, 0s); }
.js [data-pop].in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .letter, .js .headline .tagline, .js [data-pop] { transform: none !important; }
}
