/* Sample of the next website look (user, 2026-10-27): Yuna's calm rhythm and scroll motion, in
   Cubby's own colours, bear and sky. One idea per screen; headings ink in, cards rise, small cards
   fly in round a picture of the app. Every moving part reads --v (0 to 1, how far it is through
   the screen) or --p (how far the hero has folded), set by next.js. */
:root {
  --bg: #fff8f0; --surface: #ffffff; --ink: #2b2142; --ink-soft: #5d5370; --ink-pale: #d9cfe6; --line: #eadfce;
  --plum: #4b3d77; --plum-2: #3a2f60; --plum-soft: #e9e3f6;
  --honey: #e0a542; --honey-soft: #fbedd2; --honey-ink: #6b4410;
  --sage: #7fae8d; --sage-soft: #e1efe4; --sage-ink: #2f5a3d;
  --coral: #e08064; --coral-soft: #f9e3da; --coral-ink: #8a3a22;
  --sky-soft: #e3eefa; --sky-ink: #2c4a6e;
  --display: 'Fraunces', Georgia, serif; --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --r: 30px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 0; font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 8px; }

/* Top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; transition: background .3s, box-shadow .3s; }
.bar.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 9px; font: 600 22px var(--display); text-decoration: none; color: #fff; transition: color .3s; }
.bar.is-solid .brand, .bar--ink .brand { color: var(--ink); }
.brand img { width: 34px; height: auto; }
.bar__go { font: 700 14px var(--body); text-decoration: none; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--plum-2); }
.bar.is-solid .bar__go, .bar--ink .bar__go { background: var(--plum); color: #fff; }

/* The hero: a night sky that folds up and turns to morning as you scroll */
.fold { height: 190svh; position: relative; }
.fold__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.sky { position: absolute; inset: 0 0 auto; height: calc(100% - var(--p, 0) * 52%); background: linear-gradient(180deg, var(--s1, #1d1838) 0%, var(--s2, #3a2f60) 60%, var(--s3, #5b4b8a) 100%); border-radius: 0 0 50% 50% / 0 0 calc(4vw + var(--p, 0) * 6vw) calc(4vw + var(--p, 0) * 6vw); overflow: hidden; }
.stars i { position: absolute; border-radius: 50%; background: #fff; opacity: calc((1 - var(--p, 0) * 1.6) * var(--o, .7)); }
.moon { position: absolute; width: 74px; height: 74px; border-radius: 50%; right: 16%; top: calc(12% + var(--p, 0) * 40%); background: radial-gradient(circle at 35% 35%, #fff9e8, #f5e3b5 60%, #e9cf8f); box-shadow: 0 0 60px 18px rgba(255, 238, 190, calc(.35 - var(--p, 0) * .35)); opacity: calc(1 - var(--p, 0) * 1.4); }
.sun { position: absolute; width: 90px; height: 90px; border-radius: 50%; left: 18%; top: calc(80% - var(--p, 0) * 62%); background: radial-gradient(circle, #fff4d6, #ffd58a 55%, #f7b45e); box-shadow: 0 0 80px 30px rgba(255, 200, 120, .45); opacity: calc(var(--p, 0) * 1.6 - .3); }
.cloud { position: absolute; left: -10%; width: 120%; }
.cloud--back { bottom: calc(-6% + var(--p, 0) * 6%); transform: translateY(calc(var(--p, 0) * -6%)); }
.cloud--front { bottom: -14%; transform: translateY(calc(var(--p, 0) * -14%)); }
.cloud path { transition: fill .2s; }
.sleeper { position: absolute; left: 50%; bottom: 13%; width: min(150px, 34vw); transform: translate(-50%, calc(var(--p, 0) * -40%)) rotate(calc(-8deg + var(--p, 0) * 8deg)); filter: drop-shadow(0 18px 24px rgba(20, 10, 50, .35)); }
.zzz { position: absolute; left: calc(50% + min(70px, 16vw)); bottom: calc(13% + min(120px, 28vw)); font: 600 22px var(--display); color: #fff; opacity: calc(.9 - var(--p, 0) * 2); }
.zzz span { display: inline-block; animation: float 3s ease-in-out infinite; }
.zzz span:nth-child(2) { animation-delay: .5s; font-size: .8em; } .zzz span:nth-child(3) { animation-delay: 1s; font-size: .6em; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-copy { position: absolute; left: 0; right: 0; top: calc(26% - var(--p, 0) * 12%); text-align: center; color: #fff; padding: 0 22px; }
.hero-copy small { display: block; font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.hero-copy h1 { font-size: clamp(36px, 8vw, 70px); max-width: 15ch; margin: 0 auto; }
.hero-copy h1 em { font-style: italic; color: #ffd58a; }
.below { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; display: grid; place-content: center; text-align: center; padding: 0 24px; gap: 18px; opacity: calc(var(--p, 0) * 2 - .8); transform: translateY(calc((1 - var(--p, 0)) * 40px)); }
.below p { color: var(--ink-soft); max-width: 36ch; margin: 0 auto; }

/* Section rhythm: a pill, one centred heading, a line, a button, a picture */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.chap { padding: 90px 0 30px; text-align: center; }
.tag { display: inline-block; font: 600 13px var(--body); padding: 6px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.chap h2 { font-size: clamp(30px, 5.4vw, 48px); max-width: 18ch; margin: 18px auto 0; }
.chap .line { color: var(--ink-soft); max-width: 44ch; margin: 14px auto 0; }
.btn { display: inline-block; margin-top: 24px; font: 700 15px var(--body); text-decoration: none; padding: 13px 22px; border-radius: 999px; background: var(--plum); color: #fff; box-shadow: 0 10px 24px -12px rgba(58, 47, 96, .7); }
.btn--honey { background: var(--honey); color: #3a2400; }
.btn--sage { background: var(--sage-ink); }
.btn--coral { background: var(--coral); color: #3d1408; }

/* Ink in: a heading starts pale and darkens as it reaches the middle of the screen */
[data-ink] { color: color-mix(in srgb, var(--ink) calc(var(--v, 1) * 100%), var(--ink-pale)); }

/* Cards that rise into place */
.stack { display: grid; gap: 22px; margin: 44px auto 0; max-width: 760px; }
.rise { border-radius: var(--r); padding: 30px 26px 0; text-align: left; overflow: hidden; transform: translateY(calc((1 - var(--v, 1)) * 70px)) scale(calc(.94 + var(--v, 1) * .06)); opacity: calc(.2 + var(--v, 1) * .8); }
.rise h3 { font-size: clamp(24px, 3.6vw, 32px); }
.rise p { margin-top: 10px; max-width: 46ch; font-size: 15.5px; }
.rise--honey { background: var(--honey-soft); } .rise--honey p { color: var(--honey-ink); }
.rise--plum { background: var(--plum-soft); } .rise--plum p { color: var(--plum-2); }
.rise--sage { background: var(--sage-soft); } .rise--sage p { color: var(--sage-ink); }
.rise--sky { background: var(--sky-soft); } .rise--sky p { color: var(--sky-ink); }
.rise--coral { background: var(--coral-soft); } .rise--coral p { color: var(--coral-ink); }

/* A picture of the app with small cards flying in round it */
/* The floating boxes sit in a margin above and below the picture, never over it (user, 2026-10-28:
   they mustn't cover any useful part of the screenshot), and each says something the picture
   doesn't already say. */
.shot { position: relative; margin: 26px auto 0; width: min(380px, 100%); padding: 58px 0 62px; }
.shot--plain { padding: 0 0 12px; }
.rise .shot { transform: translateY(calc((1 - var(--v, 1)) * 60px)); }
.shot > img, .shot > video { width: 100%; display: block; height: auto; border-radius: 22px; box-shadow: 0 30px 50px -26px rgba(43, 33, 66, .55); background: var(--surface); }
.shot--tilt > img { transform: rotate(calc((1 - var(--v, 1)) * -6deg - 1.5deg)); }
.chip.top { top: 0; left: 4px; } .chip.bottom { bottom: 0; right: 4px; }
.chip { position: absolute; z-index: 2; font: 700 14px var(--body); white-space: nowrap; padding: 9px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 26px -14px rgba(43, 33, 66, .6); border: 2px solid currentColor;
  --c: clamp(0, (var(--v, 1) - var(--d, 0)) * 3, 1);
  opacity: var(--c); transform: translate(calc((1 - var(--c)) * var(--fx, 0px)), calc((1 - var(--c)) * var(--fy, 40px))) rotate(calc(var(--r0, 0deg) * var(--c))) scale(calc(.7 + var(--c) * .3)); }
.chip--honey { color: var(--honey-ink); background: var(--honey-soft); }
.chip--plum { color: var(--plum-2); background: var(--plum-soft); }
.chip--sage { color: var(--sage-ink); background: var(--sage-soft); }
.chip--coral { color: var(--coral-ink); background: var(--coral-soft); }

/* Thin rule between chapters, as Yuna does */
.rule { width: 120px; height: 1.5px; background: var(--line); margin: 70px auto 0; border: 0; }

/* Steps under a guide chapter */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 34px auto 0; max-width: 860px; text-align: left; }
.step { background: var(--surface); border-radius: 22px; padding: 20px 20px 22px; border: 1.5px solid var(--line); transform: translateY(calc((1 - var(--v, 1)) * 40px)); opacity: calc(.15 + var(--v, 1) * .85); }
.step b { display: block; font: 600 19px var(--display); margin-bottom: 6px; }
.step span { color: var(--ink-soft); font-size: 15px; }
.more { max-width: 66ch; margin: 22px auto 0; text-align: left; }
.more summary { cursor: pointer; font-weight: 700; color: var(--plum); list-style: none; text-align: center; padding: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ' +'; }
.more[open] summary::after { content: ' −'; }
.more p { color: var(--ink-soft); margin-top: 12px; font-size: 16px; }

/* Guide: page head and chapter tabs */
.ghead { padding-block: 110px 10px; text-align: center; }
.ghead h1 { font-size: clamp(38px, 7vw, 64px); }
.ghead p { color: var(--ink-soft); max-width: 40ch; margin: 14px auto 0; }
.tabs { position: sticky; top: 64px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); justify-content: safe center; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; font: 600 14px var(--body); text-decoration: none; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.tabs a.is-on { background: var(--plum); border-color: var(--plum); color: #fff; }
.gchap { scroll-margin-top: 130px; }
.panel { border-radius: 36px; padding: 56px 22px 46px; margin-top: 40px; }
.panel--plum { background: var(--plum-soft); } .panel--honey { background: var(--honey-soft); } .panel--sky { background: var(--sky-soft); }
.panel .chap { padding-top: 0; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 30px; align-items: start; max-width: 860px; margin: 0 auto; }

.end { text-align: center; padding: 100px 20px 120px; }
.end h2 { font-size: clamp(32px, 6vw, 54px); max-width: 16ch; margin: 0 auto; }
.end p { color: var(--ink-soft); margin: 14px auto 0; max-width: 40ch; }
.note { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.foot { text-align: center; padding: 30px 20px 50px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.foot a { margin: 0 8px; }
.foot-co { margin: 14px auto 0; max-width: 60ch; font-size: 12px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .fold { height: auto; } .fold__stick { position: relative; height: 100svh; }
  .zzz span { animation: none; }
}

.shot--wide { width: min(620px, 100%); }
.shot--watch { width: min(220px, 100%); }
.shot--watch > img { border-radius: 46px; }
.plus-list { display: grid; gap: 10px; max-width: 520px; margin: 26px auto 0; text-align: left; padding: 0; list-style: none; }
.plus-list li { background: var(--surface); border-radius: 18px; padding: 14px 18px; border: 1.5px solid var(--line); }
.plus-list b { font-family: var(--display); font-weight: 600; }
.panel--sage { background: var(--sage-soft); } .panel--coral { background: var(--coral-soft); }
.more ul { color: var(--ink-soft); margin: 12px 0 0; padding-left: 20px; font-size: 16px; }

/* Cards cut out with the app's own rounded corners, their shadow baked into the PNG: iPhone Safari
   drew a CSS drop-shadow on a moving picture as a grey box (user, 2026-10-28). */
.shot > img[src$=".png"] { background: none; box-shadow: none; border-radius: 0; }
/* A small Plus marker after a step or chapter title. */
.ptag { display: inline-block; vertical-align: 2px; margin-left: 6px; font: 700 11px var(--body); font-style: normal; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--plum); color: #fff; }
