:root { --spring: cubic-bezier(.34,1.56,.64,1); --out: cubic-bezier(.2,.8,.2,1); }
.hero, .chapters { overflow-x: clip; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ambient light */
.glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow i { position: absolute; width: 110vmax; height: 110vmax; border-radius: 50%; filter: blur(20px); opacity: .55; }
.glow .b1 { left: -55vmax; top: -40vmax; background: radial-gradient(circle, color-mix(in srgb, var(--logo-fruit) 38%, transparent), transparent 62%); animation: drift1 22s ease-in-out infinite alternate; }
.glow .b2 { right: -60vmax; bottom: -55vmax; background: radial-gradient(circle, color-mix(in srgb, var(--logo-rind) 45%, transparent), transparent 62%); animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 22vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-20vmax, -16vmax) scale(.9); } }
.petals { position: absolute; left: 0; right: 0; top: 0; height: 100svh; overflow: hidden; pointer-events: none; }
.petals svg { position: absolute; width: 22px; color: var(--logo-fruit); opacity: .22; animation: petal linear infinite; }
@keyframes petal { from { transform: translateY(110vh) rotate(0); } to { transform: translateY(-20vh) rotate(540deg); } }

/* off screen or in a hidden tab, loops hold still */
.paused, .paused *, .paused::before, .paused::after, .paused *::before, .paused *::after,
:root.hidden *, :root.hidden *::before, :root.hidden *::after { animation-play-state: paused !important; }

/* rosette */
.mark .rind, .mark .pith, .mark .dot, .mark .segs, .mark .segs > g, .mark .seg { transform-box: view-box; transform-origin: 50px 50px; }
body.intro .mark .rind { animation: pop .55s var(--spring) both; }
body.intro .mark .pith { animation: pop .55s var(--spring) .12s both; }
body.intro .mark .seg { animation: pop .5s var(--spring) both; animation-delay: calc(.32s + var(--i) * .07s); }
body.intro .mark .dot { animation: pop .4s var(--spring) 1s both; }
body.intro .mark .segs { animation: spin 1.3s cubic-bezier(.6,0,.15,1) .25s both; }
@keyframes pop { from { transform: scale(0); } }
@keyframes spin { from { transform: rotate(-200deg); } }

/* hero */
.site-header { position: relative; z-index: 3; }
.wm span { display: inline-block; }
body.intro .wm span { animation: rise .55s var(--spring) both; animation-delay: calc(.45s + var(--i) * .04s); }
@keyframes rise { from { opacity: 0; transform: translateY(.7em); } to { opacity: 1; transform: none; } }

.copy { text-align: center; padding-top: 30px; position: relative; z-index: 2; }
.copy h1 { font-size: 46px; line-height: 1.02; }
.copy h1 .w { display: inline-block; }
.copy h1 em { font-weight: 400; color: var(--accent-text); }
.lede { margin: 14px auto 0; max-width: 30ch; font: italic 400 19px/1.45 var(--font-display); color: var(--muted); }
.beats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; margin-top: 12px; }
.beats button { padding: 6px 0; border: 0; border-radius: 6px; background: none; color: var(--faint); font: 600 19px/1 var(--font-display); cursor: pointer; transition: color .3s; }
.beats button:hover { color: var(--ink); }
.beats button[aria-pressed="true"] { color: var(--primary-text); animation: bam .55s var(--spring); }
@keyframes bam { 0% { transform: scale(1.7); filter: blur(5px); opacity: 0; } 100% { transform: none; filter: none; opacity: 1; } }

.rv { opacity: 0; }
body.ready .rv { animation: up .9s var(--out) both; animation-delay: var(--d, 0s); }
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* phone */
.stage { position: relative; display: grid; place-items: center; margin-top: 26px; perspective: 1400px; z-index: 1; }
.stage::before { content: ""; position: absolute; width: 120%; height: 60%; bottom: -6%; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--logo-fruit) 40%, transparent), transparent 65%); filter: blur(30px); opacity: .7; }
body.ready .stage.rv { animation: phoneIn 1.4s var(--out) both; animation-delay: var(--d); }
@keyframes phoneIn { from { opacity: 0; transform: translateY(160px) rotateX(35deg) scale(.9); } to { opacity: 1; transform: none; } }
.device { --pw: min(236px, 62vw); position: relative; width: var(--pw); aspect-ratio: 390 / 844; padding: 9px; border-radius: 42px; background: linear-gradient(145deg, #2a2d38, #08090c 40%); box-shadow: 0 0 0 1.5px #3a3e4c inset, 0 40px 80px -20px rgba(0,0,0,.7), 0 18px 40px -10px color-mix(in srgb, var(--logo-fruit) 30%, transparent); transform-style: preserve-3d; animation: float 8s ease-in-out infinite alternate; }
@keyframes float { from { transform: rotateX(10deg) rotateY(-16deg) rotateZ(2deg) translateY(0); } to { transform: rotateX(4deg) rotateY(-4deg) rotateZ(-1deg) translateY(-12px); } }
.stepper { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; border-radius: 42px; background: none; cursor: pointer; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: var(--ground); }
.canvas { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; font: 400 16px/1.5 var(--font-ui); }
.statusbar { position: absolute; z-index: 9; top: 0; left: 0; right: 0; height: 50px; padding: 16px 30px 0; display: flex; justify-content: space-between; font: 600 16px/1 var(--font-ui); color: var(--ink); }
.statusbar.light { color: #fff; }
.island { position: absolute; z-index: 10; top: 11px; left: 50%; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.scene.on { opacity: 1; }
.scene .eb, .mc .eb { font: 600 13px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); }

/* scene: share */
.reel { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, #6b3a1c, #2a140a 70%); }
.bowl { position: absolute; left: 50%; top: 260px; width: 250px; height: 250px; margin-left: -125px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #f0a24a, #d9632a 55%, #9b3412 72%, #f4ece0 73%, #e6dccd 80%, #c9bba6 81%); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.bowl::before { content: ""; position: absolute; left: 70px; top: 80px; width: 38px; height: 30px; border-radius: 50% 50% 45% 45%; background: #f6ead5; box-shadow: 60px 10px 0 #f3e4c9, 20px 55px 0 #f6ead5, 78px 62px 0 #efdfc2, -10px 30px 0 -4px #5f9b3a, 95px -15px 0 -6px #5f9b3a, 40px 30px 0 -10px #c22, 110px 40px 0 -12px #c22; }
.on .bowl { animation: steam 6s ease-in-out infinite alternate; }
@keyframes steam { to { transform: scale(1.06) rotate(8deg); } }
.reel-meta { position: absolute; left: 20px; right: 80px; bottom: 120px; color: #fff; }
.reel-meta b { font-weight: 600; }
.reel-meta p { margin: 6px 0 0; font-size: 15px; opacity: .9; }
.reel-side { position: absolute; right: 18px; bottom: 360px; display: grid; gap: 22px; color: #fff; font: 600 13px/1.2 var(--font-ui); text-align: center; }
.reel-side i { display: block; font-style: normal; font-size: 28px; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 10px 18px 34px; border-radius: 30px; background: var(--raised); transform: translateY(110%); }
.on .sheet { animation: sheetUp .55s cubic-bezier(.2,.9,.2,1) .6s both; }
@keyframes sheetUp { from { transform: translateY(110%); } to { transform: none; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--outline); margin: 0 auto 14px; }
.sheet-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sheet-head .th { width: 48px; height: 48px; border-radius: 10px; background: radial-gradient(circle, #e88a3a, #6b3a1c); }
.sheet-head b { display: block; font: 600 15px/1.2 var(--font-ui); }
.sheet-head small { color: var(--muted); font-size: 13px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 18px; text-align: center; font: 500 12px/1.2 var(--font-ui); color: var(--muted); }
.apps i { position: relative; display: block; width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 15px; }
.apps .app-msg { background: #34C759; }
.apps .app-mail { background: #3A82F7; }
.apps .app-notes { background: #FFD60A; }
.apps .ch i { background: var(--ground); display: grid; place-items: center; }
.apps .ch i svg { width: 52px; height: 52px; }
.apps .ch { color: var(--ink); font-weight: 600; }
.on .apps .ch i { animation: tapped .5s ease 1.55s both; }
@keyframes tapped { 40% { transform: scale(.85); } 100% { transform: scale(1); } }
.apps .ch i::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 3px solid var(--accent); opacity: 0; }
.on .apps .ch i::after { animation: ring .8s ease-out 1.55s both; }
@keyframes ring { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
.plat { position: absolute; z-index: 3; top: 58px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; color: #fff; }
.plat-name { font: 700 22px/1 var(--font-ui); letter-spacing: -.02em; }
.plat-tab { font: 600 15px/1 var(--font-ui); opacity: .85; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); }
.srcbadge { position: absolute; z-index: 3; top: 96px; left: 20px; right: 20px; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); color: #fff; opacity: 0; transform: translateY(-8px); }
.srcbadge span { font: 600 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--logo-fruit); }
.srcbadge b { font: 600 14px/1.35 var(--font-ui); }
.on .srcbadge { animation: rise .5s var(--spring) .25s both; }
.on .plat-name { animation: rise .45s var(--spring) both; }

/* scene: import */
.s-import, .s-tweak, .s-plan, .s-cook { padding: 64px 22px 0; }
.back { font: 500 16px/1 var(--font-ui); color: var(--primary-text); }
.working { position: absolute; left: 0; right: 0; top: 300px; text-align: center; color: var(--muted); font: 500 16px/1.4 var(--font-ui); }
.working svg { width: 96px; height: 96px; display: block; margin: 0 auto 16px; }
.on .working svg .segs { animation: turn 1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.on .working { animation: fadeOut .3s ease .8s both; }
@keyframes fadeOut { to { opacity: 0; transform: scale(.9); } }
.rec { margin-top: 26px; }
.rec > * { opacity: 0; }
.on .rec > * { animation: rise .55s var(--spring) both; animation-delay: var(--d); }
.rec h2 { font-size: 31px; line-height: 1.08; margin-top: 8px; }
.rec .sub { font: italic 400 18px/1.35 var(--font-display); color: var(--muted); margin-top: 6px; }
.rec .meta { font-size: 14px; color: var(--muted); margin-top: 10px; }
.rec ul { list-style: none; margin: 18px 0 0; padding: 0; opacity: 1 !important; animation: none !important; }
.rec li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; opacity: 0; }
.on .rec li { animation: slideIn .45s var(--spring) both; animation-delay: calc(1.75s + var(--i) * .11s); }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.rec li b { min-width: 74px; font-variant-numeric: tabular-nums; }
.pbtn { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font: 600 17px/1 var(--font-ui); }

/* scene: tweak */
.rec.static { margin-top: 18px; }
.rec.static > *, .rec.static li { opacity: 1; }
.rec.static h2 { font-size: 29px; }
.on .rec.static > *, .on .rec.static li { animation: none; }
.sw.hl { border-radius: 4px; animation: hl 1.6s ease both; }
@keyframes hl { 0% { background: var(--primary-tint); color: var(--primary-text); box-shadow: 0 0 0 3px var(--primary-tint); } 100% { background: transparent; } }

/* scene: plan */
.s-plan h2 { font-size: 32px; margin-top: 4px; }
.s-plan .sum { font-size: 14px; color: var(--muted); }
.week { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.day { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 11px 12px; border-top: 1px solid var(--line-soft); }
.day:first-child { border-top: 0; }
.date { height: 52px; border-radius: 10px; background: var(--block); display: grid; place-content: center; text-align: center; }
.date small { font: 600 11px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.date b { font: 600 20px/1.1 var(--font-display); }
.day.today { background: var(--today-row); }
.day.today .date { background: var(--primary); }
.day.today .date small, .day.today .date b { color: var(--on-primary); }
.chips { display: grid; gap: 6px; align-content: center; }
.chip { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--ground); }
.chip small { display: block; font: 600 11px/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.chip span { font: 600 15px/1.25 var(--font-display); }
.t-b { color: var(--tag-breakfast-text); } .t-l { color: var(--tag-lunch-text); } .t-d { color: var(--tag-dinner-text); }
.note { font: 600 13px/1 var(--font-ui); color: var(--faint); align-self: center; }
.thu .chips { position: relative; }
.thu .note { position: absolute; top: 50%; margin-top: -7px; }
.fly { opacity: 0; background: var(--accent-tint); border-color: var(--accent); box-shadow: var(--shadow); }
.on .fly { animation: fly 1s cubic-bezier(.3,1.25,.5,1) .55s both; }
@keyframes fly { 0% { opacity: 0; transform: translate(30px, -380px) rotate(-8deg) scale(1.15); } 25% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.on .thu .note { animation: fadeOut .2s ease .9s both; }
.on .thu { animation: flash 1.2s ease 1.45s; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--accent) 30%, transparent); } }
.toast { position: absolute; left: 22px; right: 22px; bottom: 40px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--raised); box-shadow: var(--shadow); font: 500 15px/1.3 var(--font-ui); opacity: 0; }
.toast b { color: var(--primary-text); }
.tick { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; }
.toast .tick { width: 28px; height: 28px; }
.on.s-tweak .toast, .on.s-plan .toast { animation: rise .5s var(--spring) var(--d) both; }

/* scene: cook */
.cookbar { display: flex; justify-content: space-between; align-items: center; font: 500 15px/1 var(--font-ui); color: var(--muted); }
.prog { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 16px 0 26px; }
.prog i { height: 5px; border-radius: 3px; background: var(--block); }
.prog i.done { background: var(--primary-tint); }
.s-cook .prog i.cur { position: relative; overflow: hidden; }
.s-cook .prog i.cur::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.on .prog i.cur::after { animation: fill .7s var(--out) .2s both; }
@keyframes fill { to { transform: scaleX(1); } }
.s-cook .stp > * { opacity: 0; }
.on .stp > * { animation: rise .55s var(--spring) both; animation-delay: var(--d); }
.s-cook h3 { font-size: 30px; margin-top: 8px; }
.s-cook p.big { font: 400 21px/1.5 var(--font-display); margin: 12px 0 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { padding: 7px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font: 600 14px/1.2 var(--font-ui); }
.timer { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.timer svg, .ctimer svg { width: 76px; height: 76px; transform: rotate(-90deg); flex: none; }
.timer circle, .ctimer circle { fill: none; stroke-width: 7; }
.timer .tr, .ctimer .tr { stroke: var(--block); }
.timer .tf, .ctimer .tf { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 0; }
.on .timer .tf { animation: dash 3.2s linear .9s both; }
@keyframes dash { to { stroke-dashoffset: 60; } }
.timer b, .ctimer b { display: block; font: 600 34px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.timer small, .ctimer small { color: var(--muted); font-size: 14px; }
.s-cook .pbtn { position: absolute; left: 22px; right: 22px; bottom: 40px; height: 58px; }
.s-cook .asheet { padding-bottom: 22px; }
.s-cook .acard .row { padding: 7px 0; }

/* assistant */
.abtn { position: absolute; right: 18px; bottom: 34px; width: 58px; height: 58px; border-radius: 50%; box-shadow: var(--shadow); z-index: 4; }
.abtn svg { width: 100%; height: 100%; display: block; }
.on .abtn { animation: tapped .45s ease var(--t) both; }
.abtn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.on .abtn::after { animation: ring .7s ease-out var(--t) both; }
.abtn.sm { position: relative; right: auto; bottom: auto; width: 34px; height: 34px; margin-top: -10px; box-shadow: none; }
.asheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 10px 20px 34px; border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: 0 -20px 50px rgba(0,0,0,.45); transform: translateY(110%); }
.on .asheet { animation: sheetUp .5s cubic-bezier(.2,.9,.2,1) var(--in) both, sheetDown .4s ease-in var(--out) forwards; }
@keyframes sheetDown { to { transform: translateY(110%); } }
.ahead { display: flex; align-items: center; gap: 8px; font: 600 16px/1 var(--font-ui); }
.ahead svg { width: 26px; height: 26px; }
.ahead small { color: var(--muted); font-weight: 500; font-size: 14px; }
.ask { margin-top: 14px; min-height: 50px; padding: 13px 16px; border-radius: 14px; background: var(--raised); border: 1.5px solid var(--accent); font: 500 17px/1.4 var(--font-ui); }
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 2px; vertical-align: -4px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.aworking { display: flex; align-items: center; gap: 10px; height: 0; overflow: hidden; color: var(--muted); font: 500 15px/1 var(--font-ui); opacity: 0; }
.on .aworking { animation: wOn .2s ease var(--w) forwards, wOff .2s ease var(--c) forwards; }
@keyframes wOn { to { opacity: 1; height: 54px; } }
@keyframes wOff { from { opacity: 1; height: 54px; } to { opacity: 0; height: 0; } }
.spin { width: 30px; height: 30px; animation: turn 1s linear infinite; }
.acard { margin-top: 12px; }
.acard > * { opacity: 0; }
.on .acard > * { animation: rise .45s var(--spring) var(--d) both; }
.ah { font: 600 13px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--primary-text); margin: 6px 0 6px; }
.stp .ah { margin-bottom: 10px; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font: 400 16px/1.4 var(--font-ui); }
.row i { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font: 700 14px/1 var(--font-ui); font-style: normal; }
s { color: var(--faint); text-decoration-color: var(--faint); }
ins { text-decoration: none; padding: 0 3px; border-radius: 4px; background: var(--primary-tint); color: var(--primary-text); font-weight: 600; }
.acard .apply { margin-top: 16px; }
.on .acard .apply { animation: rise .45s var(--spring) var(--d) both, press .35s ease var(--a); }
@keyframes press { 40% { transform: scale(.94); filter: brightness(1.2); } }

/* just ask */
.magic { padding-block: 10px 40px; text-align: center; }
.magic-intro { will-change: transform, opacity; }
.magic h2 { font-size: 54px; line-height: 1; margin: 12px 0 14px; }
.magic h2 em { font-weight: 400; color: var(--accent-text); }
.magic > p { margin: 0 auto; max-width: 34ch; color: var(--muted); }
.box { position: relative; max-width: 560px; margin: 34px auto 0; padding: 18px; border-radius: 24px; text-align: left; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--logo-fruit) 45%, transparent); }
.box::before { content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1.5px; background: conic-gradient(from var(--ang), var(--logo-fruit), var(--logo-rind), var(--logo-fruit)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ang 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ang { to { --ang: 360deg; } }
.box .ahead { margin-bottom: 4px; }
.box .ask { height: 80px; overflow: hidden; overflow-wrap: anywhere; border-color: var(--line); }
.box .out { height: 290px; margin-top: 10px; overflow: hidden; }
.box .out > * { animation: rise .45s var(--spring) both; }
.box .out > :nth-child(2) { animation-delay: .08s; }
.box .out > :nth-child(3) { animation-delay: .16s; }
.box .out > :nth-child(4) { animation-delay: .24s; }
.box .out > :nth-child(5) { animation-delay: .32s; }
.box .aworking { opacity: 1; height: 54px; }
.box .row { font-size: 16px; }
.box .answer { padding: 12px 0; font: 400 18px/1.5 var(--font-display); }
.box .answer small { font: 400 14px/1.5 var(--font-ui); color: var(--muted); }
.box .pbtn { margin-top: 14px; height: 48px; }
.dots { display: flex; justify-content: center; margin-top: 12px; }
.dots button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--outline); transition: width .3s, background .3s; }
.dots button[aria-pressed="true"]::before { width: 26px; background: var(--accent); }

/* chapter phones */
.mini .screen { cursor: pointer; }
.mc { padding: 64px 22px 0; overflow: hidden; }
.mc .pt { font-size: 32px; margin: 4px 0 2px; }
.finger { position: absolute; z-index: 30; left: 195px; top: 900px; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); border: 2px solid color-mix(in srgb, var(--ink) 55%, transparent); opacity: 0; pointer-events: none; transition: left .55s var(--out), top .55s var(--out), opacity .25s, transform .15s; }
.finger.on { opacity: 1; }
.finger.down { transform: scale(.78); background: color-mix(in srgb, var(--ink) 40%, transparent); }

.lib .cnt { color: var(--muted); font-size: 14px; }
.search { position: relative; display: flex; align-items: center; height: 48px; margin: 16px 0 6px; padding: 0 16px; border-radius: 12px; background: var(--block); font-size: 17px; }
.search .ph { position: absolute; left: 16px; color: var(--muted); }
.search.typing .ph { display: none; }
.search .caret { display: none; }
.search.typing .caret { display: inline-block; }
.rows { position: relative; }
.lrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-height: 80px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); overflow: hidden; transition: max-height .4s var(--out), opacity .3s, padding .4s var(--out); }
.lrow b { display: block; font: 600 17px/1.25 var(--font-display); }
.lrow small { color: var(--muted); font-size: 14px; }
.lrow .prog-t { color: var(--primary-text); }
.lrow.hide { max-height: 0; padding-block: 0; opacity: 0; border-bottom-width: 0; }
.lrow.flash { animation: flashrow 1.6s ease; }
@keyframes flashrow { 0%, 40% { background: var(--accent-tint); } 100% { background: transparent; } }
.pill { flex: none; min-width: 44px; text-align: center; padding: 4px 8px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-text); font: 600 13px/1.2 var(--font-ui); }
.banner { position: absolute; z-index: 8; left: 22px; right: 22px; top: 58px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--raised); box-shadow: var(--shadow); font-weight: 600; transform: translateY(-130px); transition: transform .5s var(--spring); }
.banner.show { transform: none; }

.seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin: 14px 0; border-radius: 12px; background: var(--block); }
.seg2 span { display: grid; place-items: center; height: 40px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: background .25s, color .25s; }
.seg2 span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pv { display: none; }
.pv.on { display: block; animation: rise .35s var(--out) both; }
.plan .week { margin-top: 0; }
.mv { position: relative; z-index: 5; transition: transform .7s cubic-bezier(.3,1.2,.5,1), box-shadow .2s, background .2s; }
.mv.lift { box-shadow: var(--shadow); background: var(--accent-tint); border-color: var(--accent); }
.day.flash { animation: flash 1.2s ease; }
.gsum { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.gsum b { color: var(--ink); font-weight: 600; }
.gh { font: 600 13px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--primary-text); margin: 6px 0 4px; }
[data-basket-head] { margin-top: 18px; }
.grow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; transition: opacity .3s; }
.grow i { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--outline); display: grid; place-items: center; font-style: normal; transition: background .2s, border-color .2s; }
.grow span { flex: 1; }
.grow.done { opacity: .5; }
.grow.done span { text-decoration: line-through; }
.grow.done i { background: var(--primary); border-color: var(--primary); }
.grow.done i::after { content: "✓"; color: var(--on-primary); font-weight: 700; font-size: 14px; }
.plan .toast { transition: opacity .3s, transform .3s; transform: translateY(10px); }
.plan .toast.show { opacity: 1; transform: none; }

.ck .prog i.cur { background: var(--accent); }
.ck .prog i { transition: background .4s; }
.stepwrap { position: relative; height: 560px; }
.cstep { position: absolute; inset: 0; opacity: 0; transform: translateX(110%); transition: transform .5s var(--out), opacity .4s; }
.cstep.on { opacity: 1; transform: none; }
.cstep.left { transform: translateX(-110%); }
.cstep h3 { font-size: 32px; margin-top: 8px; }
.cstep .big { font: 400 23px/1.45 var(--font-display); margin: 12px 0 16px; }
.need { list-style: none; margin: 0; padding: 0; }
.need li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font: 500 17px/1.3 var(--font-ui); }
.ctimer { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ctimer .tf { transition: stroke-dashoffset .12s linear; }
.ctimer.run small { color: var(--primary-text); }
.cnav { position: absolute; left: 22px; right: 22px; bottom: 36px; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.cnav div { display: grid; place-items: center; height: 58px; border-radius: 12px; border: 1px solid var(--outline); font-weight: 600; font-size: 17px; }
.cnav .next { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* chapters */
.chapters { padding-top: 40px; }
.chapter { display: grid; gap: 26px; padding: 56px 0; border-top: 1px solid var(--line); }
.chapter .num { font: 600 13px/1 var(--font-ui); letter-spacing: .12em; color: var(--accent-text); }
.chapter h2 { font-size: 38px; line-height: 1.06; margin: 10px 0 12px; }
.chapter p { margin: 0; color: var(--muted); max-width: 40ch; }
.chapter .mini { justify-self: center; perspective: 1200px; }
.mini .device { --pw: 250px; animation-duration: 9s; }
.io { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--out), transform 1s var(--out); }
.io.seen { opacity: 1; transform: none; }

/* close */
.close { position: relative; text-align: center; padding: 90px 22px 70px; margin-top: 30px; overflow: hidden; }
.close::before { content: ""; position: absolute; left: 50%; top: 40px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--logo-fruit) 28%, transparent), transparent 65%); z-index: -1; }
.close-mark { width: 120px; height: 120px; margin: 0 auto 28px; filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--logo-fruit) 40%, transparent)); }
.close-mark .mark { display: block; width: 100%; height: 100%; }
.close.seen .segs { animation: spin 1.8s cubic-bezier(.6,0,.15,1) both; }
.close h2 { font-size: 44px; line-height: 1.04; }
.close h2 em { font-weight: 400; color: var(--accent-text); }
.close > p { margin: 14px 0 26px; font: italic 400 20px/1.4 var(--font-display); color: var(--muted); }
.srcs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; margin: 0 auto; padding: 0; list-style: none; }
.srcs li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font: 500 13px/1 var(--font-ui); }
.site-footer { margin-top: 0; }

@media (max-width: 359px) {
  .beats { gap: 0 10px; }
  .beats button { font-size: 16px; }
}
@media (min-width: 900px) {
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: calc(100svh - 100px); }
  .copy { text-align: left; padding-top: 0; }
  .copy h1 { font-size: 86px; }
  .lede { margin-left: 0; font-size: 23px; }
  .beats { justify-content: flex-start; }
  .beats button { font-size: 26px; }
  .stage { margin-top: 0; }
  .device { --pw: 300px; }
  .magic h2 { font-size: 84px; }
  .chapter { grid-template-columns: 1fr 1fr; align-items: center; }
  .chapter:nth-child(even) .mini { order: -1; }
  .chapter h2 { font-size: 52px; }
  .close h2 { font-size: 72px; }
}

/* reduced motion: every scene sits in its finished state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .io, .rec > *, .rec li, .stp > *, .fly, .scene .toast, .srcbadge { opacity: 1 !important; transform: none !important; }
  .sheet, .s-cook .prog i.cur::after { transform: none; }
  .timer .tf { stroke-dashoffset: 32; }
  .working, .thu .note, .finger, .petals { display: none; }
}
@media (scripting: none) {
  .rv, .io { opacity: 1; transform: none; }
}
