/* Hutoo · hutoo.app
   Clean product page: warm light grey, heavy tight type, real-looking phones. Giant hour and
   minute wheels sit on the edges and turn with the scroll; the phone in the middle is pinned
   and steps through set it, it rings, you're up; the end is dark with two phones at
   different depths. Without motion everything is laid out in place. */

:root {
  --bg: #FFFAF0;
  --bg-2: #FFF1D9;
  --ink: #141218;
  --ink-2: #57535E;
  --ink-3: #9C978F;
  --line: rgba(20, 18, 24, .1);
  --accent: #FF6A1F;
  --sun: #FFC93C;
  --night: #0D0B12;
  --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--body); font-size: clamp(16px, .45vw + 14px, 19px); line-height: 1.5; color: var(--ink); background: linear-gradient(180deg, #FFFCF5 0%, #FFFAF0 45%, #FFF0D6 100%); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2, .big { font-family: var(--head); font-weight: 800; letter-spacing: -.055em; line-height: .92; }
em { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 16px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Lines that rise out of a mask */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow span { width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.eyebrow-dark { color: rgba(255, 255, 255, .6); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); transition: background .4s, backdrop-filter .4s; }
.nav.is-scrolled { background: rgba(255, 250, 240, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.nav.on-dark { background: rgba(13, 11, 18, .6); color: #fff; }
.wordmark { display: block; height: 28px; width: auto; overflow: visible; }
.wm-letters { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 100px; letter-spacing: -2px; fill: currentColor; }
.wm-beak { fill: var(--accent); }
.wm-eyes circle { fill: var(--ink); }
.wm-pupils .wm-day circle { fill: #fff; }
.wm-pupils .wm-night circle { fill: var(--ink); }
.wm-pupils .wm-glint { fill: #fff; }
.wm-night { display: none; }
/* Over the dark section: the night variant, sunbeam letters and eyes with ink pupils */
.on-dark .wm-letters, .on-dark .wm-eyes circle { fill: var(--sun); }
.on-dark .wm-day { display: none; }
.on-dark .wm-night { display: inline; }
/* Alive: blinks now and then, chirps every so often, squints happily on hover */
.wm-face, .wm-blink { transform-box: view-box; transform-origin: 0 42.7px; }
.wm-face { transition: transform .45s var(--ease); }
.wm-beak-g { transform-box: fill-box; transform-origin: 50% 0; }
.motion .wm-blink { animation: wm-blink 5s infinite; }
.motion .wm-beak-g { animation: wm-chirp 7s var(--ease) infinite; }
.nav-mark:hover .wm-face { transform: scaleY(.55); }
.nav-mark:hover .wm-beak-g { animation: wm-chirp-now .5s var(--ease); }
@keyframes wm-blink { 0%, 42%, 46%, 84%, 87%, 90%, 100% { transform: scaleY(1); } 44%, 85.5%, 88.5% { transform: scaleY(.08); } }
@keyframes wm-chirp { 0%, 90%, 100% { transform: none; } 92% { transform: translateY(3px) scaleY(1.25); } 94% { transform: none; } 96% { transform: translateY(3px) scaleY(1.25); } }
@keyframes wm-chirp-now { 30% { transform: translateY(4px) scaleY(1.3); } 60% { transform: none; } 80% { transform: translateY(2px) scaleY(1.15); } }
.pill { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; transition: transform .4s var(--ease), background .3s; }
.pill:hover { transform: scale(1.04); }
.on-dark .pill { background: #fff; color: var(--ink); }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.stores-left { justify-content: flex-start; }
.store { display: inline-flex; align-items: center; gap: 11px; padding: 10px 20px 10px 16px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; transition: transform .4s var(--ease); }
.store:hover { transform: translateY(-3px); }
.store-light { background: #fff; color: var(--ink); }
.store-logo { width: 26px; height: 26px; flex: none; }
.store-text { display: flex; flex-direction: column; text-align: left; line-height: 1.05; }
.store-text small { font-size: 11px; font-weight: 500; opacity: .8; }
/* Free · No ads: outlined green checks with bold labels */
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 20px 0 0; padding: 0; list-style: none; }
.perks li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 500; font-size: 17px; letter-spacing: -.005em; color: var(--ink-2); }
.perks .tick { width: 22px; height: 22px; color: #3E8E5A; display: grid; }
.perks .tick svg { width: 100%; height: 100%; }
.download .perks { justify-content: flex-start; margin-top: 26px; }
.download .perks li { color: #fff; }
.download .perks .tick { color: #5CC08A; }
.store-text strong { font-family: -apple-system, 'Segoe UI', var(--body); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- The split twin-bell alarm clock on the edges ----------
   One classic twin-bell clock cut in half: each edge shows half of it (the right half is
   the left one mirrored) with its bell, a leg, and half of the carrying handle and hammer on
   the cut. It's pale, a backdrop like the scrolling numbers were, so it never competes
   with the copy. Everything is sized from --D, the clock's diameter. */
.clocks { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .6s; }
.clocks.is-hidden { opacity: 0; }
.aclock { --D: min(55vh, 40vw); --metal: #F6ECD6; --metal-dk: #EDE0C3; --metal-lt: #FDF8EC; position: absolute; top: 63%; width: var(--D); height: var(--D); margin-top: calc(var(--D) * -.42); }
.aclock-l { left: calc(var(--D) * -.5); }
.aclock-r { right: calc(var(--D) * -.5); transform: scaleX(-1); }
.body { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 26%, var(--metal-lt), var(--metal) 50%, var(--metal-dk)); box-shadow: inset 0 0 0 calc(var(--D) * .006) rgba(255, 255, 255, .7), inset calc(var(--D) * -.02) calc(var(--D) * -.025) calc(var(--D) * .05) rgba(0, 0, 0, .05), 0 30px 60px -40px rgba(20, 18, 24, .18); }
/* A thin chrome ring between the case and the face */
.body::after { content: ''; position: absolute; inset: calc(var(--D) * .052); border-radius: 50%; box-shadow: 0 0 0 calc(var(--D) * .008) #FBF1DA, 0 0 0 calc(var(--D) * .014) var(--metal-dk); }
.face { position: absolute; z-index: 1; inset: calc(var(--D) * .065); border-radius: 50%; background: radial-gradient(circle at 62% 34%, #FFFEF9, #FBF4E4); box-shadow: inset 0 calc(var(--D) * .012) calc(var(--D) * .03) rgba(0, 0, 0, .05); will-change: transform; }
.face::before, .face::after { content: ''; position: absolute; inset: calc(var(--D) * .014); border-radius: 50%; }
.face::before { background: repeating-conic-gradient(from -.3deg, #F1E7CF 0 .6deg, transparent .6deg 6deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--D) * .022), #000 calc(100% - var(--D) * .022)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--D) * .022), #000 calc(100% - var(--D) * .022)); }
.face::after { background: repeating-conic-gradient(from -.8deg, #E6D9BA 0 1.6deg, transparent 1.6deg 30deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--D) * .042), #000 calc(100% - var(--D) * .042)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--D) * .042), #000 calc(100% - var(--D) * .042)); }
.anum { position: absolute; left: 50%; top: 50%; width: 2em; height: 1em; margin: -.5em -1em; text-align: center; font-family: var(--head); font-weight: 800; font-size: calc(var(--D) * .085); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #EFE5CC; transition: color .3s; }
.anum.is-now { color: #C9B892; }
/* The hand points in, at the time */
.hand { position: absolute; z-index: 2; left: 50%; top: 50%; width: calc(var(--D) * .2); height: calc(var(--D) * .016); margin-top: calc(var(--D) * -.008); border-radius: 99px; background: #F6C49B; }
.cap { position: absolute; z-index: 3; left: 50%; top: 50%; width: calc(var(--D) * .055); height: calc(var(--D) * .055); margin: calc(var(--D) * -.0275); border-radius: 50%; background: var(--metal-dk); box-shadow: 0 0 0 calc(var(--D) * .01) #F6C49B; }
/* The bell sits on the rim at one o'clock on a short post: a dome with a rolled lip */
.bell { position: absolute; z-index: 1; left: calc(var(--D) * .6); top: calc(var(--D) * -.2); width: calc(var(--D) * .3); height: calc(var(--D) * .2); transform: rotate(32deg); transform-origin: 50% 120%; }
.bell::before { content: ''; position: absolute; inset: 0 0 12% 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse at 36% 28%, var(--metal-lt), var(--metal) 45%, var(--metal-dk)); box-shadow: inset 0 0 0 calc(var(--D) * .005) rgba(255, 255, 255, .7); }
.bell::after { content: ''; position: absolute; left: -6%; right: -6%; bottom: 4%; height: 16%; border-radius: 50%; background: linear-gradient(var(--metal-dk), var(--metal)); }
.bell-post { position: absolute; z-index: 0; left: calc(var(--D) * .72); top: calc(var(--D) * .02); width: calc(var(--D) * .028); height: calc(var(--D) * .07); border-radius: 99px; background: var(--metal-dk); transform: rotate(32deg); }
/* Half of the carrying handle and of the hammer stand on the cut */
.handle { position: absolute; left: calc(var(--D) * .3); top: calc(var(--D) * -.3); width: calc(var(--D) * .4); height: calc(var(--D) * .34); border: calc(var(--D) * .024) solid var(--metal-dk); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hammer { position: absolute; left: calc(var(--D) * .49); top: calc(var(--D) * -.11); width: calc(var(--D) * .018); height: calc(var(--D) * .13); border-radius: 99px; background: var(--metal-dk); transform-origin: 50% 100%; }
.hammer::before { content: ''; position: absolute; left: 50%; top: calc(var(--D) * -.026); width: calc(var(--D) * .05); height: calc(var(--D) * .05); margin-left: calc(var(--D) * -.025); border-radius: 50%; background: var(--metal); box-shadow: inset 0 0 0 calc(var(--D) * .004) var(--metal-dk); }
.leg { position: absolute; left: calc(var(--D) * .72); top: calc(var(--D) * .89); width: calc(var(--D) * .05); height: calc(var(--D) * .14); border-radius: 0 0 99px 99px; background: var(--metal-dk); transform: rotate(-32deg); transform-origin: 50% 0; }
.leg::after { content: ''; position: absolute; left: -30%; right: -30%; bottom: -10%; height: 26%; border-radius: 50%; background: var(--metal-dk); }
/* Motion lines by the bell while it rings */
.buzz { position: absolute; left: calc(var(--D) * .94); top: calc(var(--D) * -.17); }
.buzz i { position: absolute; left: 0; top: 0; width: calc(var(--D) * .07); height: calc(var(--D) * .014); border-radius: 99px; background: #F7C7A2; opacity: 0; transform-origin: 0 50%; }
.buzz i:nth-child(1) { transform: rotate(-40deg) translateX(calc(var(--D) * .02)); }
.buzz i:nth-child(2) { transform: rotate(-5deg) translateX(calc(var(--D) * .03)); }
.buzz i:nth-child(3) { transform: rotate(30deg) translateX(calc(var(--D) * .02)); }
/* Ringing, silently: the bells and hammer shake, the clock rattles */
.clocks.is-ringing .bell { animation: ding .07s linear infinite alternate; }
.clocks.is-ringing .hammer { animation: strike .07s linear infinite alternate; }
.clocks.is-ringing .aclock { animation: rattle .14s linear infinite; }
.clocks.is-ringing .buzz i { animation: buzzline .28s ease-in-out infinite alternate; }
.clocks.is-ringing .buzz i:nth-child(2) { animation-delay: .09s; }
.clocks.is-ringing .buzz i:nth-child(3) { animation-delay: .18s; }
@keyframes ding { from { transform: rotate(25deg); } to { transform: rotate(39deg); } }
@keyframes strike { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes rattle { 0%, 100% { translate: 0 0; } 25% { translate: 0 -2px; } 50% { translate: 1px 0; } 75% { translate: 0 2px; } }
@keyframes buzzline { from { opacity: 0; } to { opacity: 1; } }
html:not(.motion) .clocks { display: none; }

/* ---------- 1 · Hero ---------- */
main { position: relative; z-index: 1; }
.hero { min-height: 88vh; min-height: 88svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 110px var(--gutter) 24px; text-align: center; }
.hero-title { font-size: clamp(46px, 7vw, 112px); }
.swap { position: relative; display: inline-grid; color: var(--accent); }
.swap-word { grid-area: 1 / 1; transition: transform .45s var(--ease), opacity .3s; }
.swap-word:not(.is-on) { opacity: 0; transform: translateY(70%); }
.swap-word.is-out { opacity: 0; transform: translateY(-70%); }
html:not(.motion) .swap-word:not(:first-child) { display: none; }
.hero-sub { margin: 24px auto 28px; max-width: 28em; font-size: clamp(18px, 1.3vw, 21px); font-weight: 500; color: #46424D; }

/* ---------- Phones ---------- */
/* A current iPhone, sized from one width (--w): iPhone 16 Pro proportions, a thin black
   bezel, a slim titanium band, evenly rounded corners, side buttons and a glass sheen */
.phone { --w: clamp(260px, 25vw, 340px); position: relative; width: var(--w); aspect-ratio: 71.5 / 149.6; border-radius: calc(var(--w) * .175); padding: calc(var(--w) * .032); background: #050506;
  box-shadow: inset 0 0 0 calc(var(--w) * .004) #2C2C30, 0 0 0 calc(var(--w) * .006) #1C1C1F, 0 0 0 calc(var(--w) * .013) #7D7C82, 0 0 0 calc(var(--w) * .016) #C9C8CE, 0 50px 90px -40px rgba(20, 18, 24, .5), 0 20px 40px -24px rgba(20, 18, 24, .35); }
/* Action button and volume on the left, side button on the right */
.phone::after { content: ''; position: absolute; left: calc(var(--w) * -.03); top: 19%; width: calc(var(--w) * .014); height: 5.2%; border-radius: 2px 0 0 2px; background: #8E8D93;
  box-shadow: 0 calc(var(--w) * .16) 0 0 #8E8D93, 0 calc(var(--w) * .3) 0 0 #8E8D93, calc(var(--w) * 1.046) calc(var(--w) * .22) 0 0 #8E8D93; }
.phone-screen { position: relative; height: 100%; border-radius: calc(var(--w) * .145); overflow: hidden; background: #F7F6F3; font-family: var(--body); color: var(--ink); container-type: inline-size; }
.phone-screen::after { content: ''; position: absolute; inset: 0; z-index: 8; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .05) 100%); }
/* The Dynamic Island grows into a live alarm while it rings */
.island { position: absolute; z-index: 5; top: calc(var(--w) * .03); left: 50%; width: calc(var(--w) * .3); height: calc(var(--w) * .088); margin-left: calc(var(--w) * -.15); border-radius: 99px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * .035); transition: width .7s var(--ease), height .7s var(--ease), margin .7s var(--ease); }
.island > span { opacity: 0; transition: opacity .25s; color: var(--accent); }
.isl-bell { width: 5.4cqw; display: grid; }
.isl-bell svg { width: 100%; }
.isl-time { font-family: var(--head); font-weight: 700; font-size: 4.2cqw; letter-spacing: -.02em; }
.is-ringing .island { width: calc(var(--w) * .66); height: calc(var(--w) * .11); margin-left: calc(var(--w) * -.33); }
.is-ringing .island > span { opacity: 1; transition-delay: .35s; }
.motion .is-ringing .isl-bell svg { animation: bell 1s ease-in-out infinite; transform-origin: 50% 10%; }
.motion .phone.is-ringing { animation: buzz .9s linear infinite; }
@keyframes buzz { 0%, 34%, 100% { translate: 0 0; } 6% { translate: -2px 0; } 12% { translate: 2px 0; } 18% { translate: -2px 0; } 24% { translate: 1px 0; } }

/* Screens change like iOS: the old one sinks back and blurs, the new one comes into focus,
   and its contents settle in one after another */
.screen { position: absolute; inset: 0; padding: 15% 7% 8%; display: flex; flex-direction: column; opacity: 0; transform: scale(1.08); filter: blur(12px); transition: opacity .55s, transform .9s var(--ease), filter .6s var(--ease); }
.screen.is-on { opacity: 1; transform: none; filter: none; }
.screen.is-past { transform: scale(.9); }
.st { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 180ms); }
.is-on .st { opacity: 1; transform: none; }
html:not(.motion) .st { opacity: 1; transform: none; }

/* Pip on the screens */
.pip { display: block; width: 100%; height: auto; overflow: visible; }
.pip-body, .pip-wing-l, .pip-wing-r, .pip-tuft { transform-box: fill-box; }
.pip-body { transform-origin: 50% 100%; }
.pip-wing-l { transform-origin: 80% 15%; }
.pip-wing-r { transform-origin: 20% 15%; }
.pip-tuft { transform-origin: 50% 100%; }
.pip-eyes { transform-box: fill-box; transform-origin: 50% 50%; }
.motion .pip-body { animation: breathe 3.4s ease-in-out infinite; }
.motion .pip-eyes { animation: pip-blink 4.6s infinite; }
.motion .pip-tuft { animation: tuft 2.4s ease-in-out infinite alternate; }
@keyframes breathe { 50% { transform: scale(1.025, .975); } }
@keyframes pip-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes tuft { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.sb { position: absolute; top: 5.4cqw; left: 10%; right: 8%; display: flex; justify-content: space-between; align-items: center; font-size: 4.4cqw; font-weight: 600; }
.sb svg { width: 17cqw; height: auto; color: currentColor; }
.sb-light { color: #fff; }
/* The opened island takes over the top of the screen while it rings */
.sb { transition: opacity .3s; }
.is-ringing .s-ring .sb { opacity: 0; }
.card { background: #fff; border-radius: 6cqw; box-shadow: 0 1px 0 rgba(20, 18, 24, .04); }

/* Screen 1 · Home at bedtime, in Pip's cream and sunrise yellow */
.s-home { background: #FFF4D6; }
.h-head { margin-top: 3%; }
.h-head small { display: block; font-size: 3.5cqw; font-weight: 600; color: #6E6585; }
.h-head b { display: block; font-family: var(--head); font-weight: 800; font-size: 9.5cqw; letter-spacing: -.045em; line-height: 1.05; }
.h-hero { margin: 5% 0 4%; padding: 5.5% 5.5% 4.5%; border-radius: 7cqw; background: #FFD24A; box-shadow: 0 10px 24px -14px rgba(194, 86, 15, .5); }
.h-bubble { position: relative; margin-bottom: 3%; padding: 3.6% 4.6%; border-radius: 4.6cqw 4.6cqw 4.6cqw 1.4cqw; background: #fff; font-size: 3.6cqw; font-weight: 600; line-height: 1.3; }
.h-name { display: block; margin-bottom: 1%; font-size: 2.8cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C2560F; }
.h-row { display: flex; align-items: center; gap: 3%; }
.h-pip { position: relative; width: 33cqw; flex: none; }
.motion .h-pip .pip-body { animation-duration: 5s; }
.z { position: absolute; right: 8%; top: 4%; font-family: var(--head); font-weight: 800; font-size: 5cqw; color: #7C6BF0; opacity: 0; }
.motion .z { animation: zz 3.6s ease-out infinite; }
.z2 { animation-delay: 1.2s !important; font-size: 4cqw; }
.z3 { animation-delay: 2.4s !important; font-size: 3cqw; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(2cqw, -6cqw); } }
.h-next small { display: block; font-size: 3.3cqw; font-weight: 600; color: #5A3E00; }
.h-next b { display: block; font-family: var(--head); font-weight: 800; font-size: 15cqw; letter-spacing: -.055em; line-height: 1; }
.h-next span { font-size: 3.3cqw; color: #5A3E00; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 5% 6%; margin-bottom: 3%; }
.row b { display: block; font-family: var(--head); font-size: 8cqw; letter-spacing: -.04em; line-height: 1.05; }
.row small { font-size: 3.4cqw; color: var(--ink-3); }
.toggle { position: relative; width: 13cqw; height: 7.6cqw; border-radius: 99px; background: #E3E0DA; }
.toggle::after { content: ''; position: absolute; top: 10%; left: 6%; width: 6cqw; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle.on { background: var(--accent); }
.toggle.on::after { left: auto; right: 6%; }

@keyframes bell { 0%, 50%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-4deg); } }

/* Screen 2 · Ringing: Pip's three wake-up skies, night to dusk to sunrise, while Pip
   knocks on the glass */
.s-ring { align-items: center; text-align: center; color: #EADBC6; background: #140F1A; overflow: hidden; }
.r-sky, .r-sky i { position: absolute; inset: 0; }
.r-sky i { opacity: 0; }
.r-sky i:nth-child(1) { background: linear-gradient(180deg, #140F1A, #221A28); opacity: 1; }
.r-sky i:nth-child(2) { background: linear-gradient(180deg, #3A1E30, #4A2638 50%, #7A4A5E); }
.r-sky i:nth-child(3) { background: radial-gradient(90% 60% at 50% 100%, #FFE3A6, #FFC15A 60%, #F5A63A); }
.s-ring.is-on .r-sky i:nth-child(2) { animation: sky .9s ease .8s forwards; }
.s-ring.is-on .r-sky i:nth-child(3) { animation: sky 1.1s ease 2.4s forwards; }
.s-ring.is-on { animation: ring-ink 3.5s ease forwards; }
@keyframes sky { to { opacity: 1; } }
@keyframes ring-ink { 0%, 25% { color: #EADBC6; } 50%, 70% { color: #FFEBD6; } 100% { color: #2B2340; } }
.s-ring-loop .r-sky i:nth-child(2), .s-ring-loop .r-sky i:nth-child(3) { animation-duration: 3s !important; animation-iteration-count: infinite !important; animation-direction: alternate !important; }
.s-ring-loop.is-on { animation: none; color: #2B2340; }
.s-ring > :not(.r-sky) { position: relative; }
.r-time { margin-top: 12%; font-family: var(--head); font-weight: 800; font-size: 25cqw; letter-spacing: -.06em; line-height: 1; }
.r-label { font-size: 4cqw; font-weight: 600; opacity: .75; }
.r-bubble { margin-top: 7%; padding: 3.4% 6%; border-radius: 5cqw; background: #fff; color: var(--ink); font-size: 3.9cqw; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .4); }
.r-bubble::after { content: ''; position: absolute; left: 50%; bottom: -1.6cqw; width: 3.6cqw; height: 3.6cqw; margin-left: -1.8cqw; background: #fff; transform: rotate(45deg); border-radius: .6cqw; }
.r-pip { width: 60cqw; margin-top: 4%; }
.r-pip [data-pip] { transform-origin: 50% 60%; }
.motion .is-on .r-pip [data-pip] { animation: knock .8s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes knock { 0%, 45%, 100% { transform: none; } 14% { transform: scale(1.12) translateY(-3%); } 26% { transform: scale(1.04); } }
.motion .r-pip .pip-wing-l { animation: flapL .16s linear infinite alternate; }
.motion .r-pip .pip-wing-r { animation: flapR .16s linear infinite alternate; }
@keyframes flapL { to { transform: rotate(26deg); } }
@keyframes flapR { to { transform: rotate(-26deg); } }
.r-knock i { position: absolute; z-index: 2; left: 50%; top: 60%; width: 26cqw; height: 26cqw; margin: -13cqw; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; }
.motion .is-on .r-knock i { animation: tap-ripple .8s var(--ease) infinite; }
.r-knock i:nth-child(2) { animation-delay: .12s !important; }
@keyframes tap-ripple { 0%, 8% { transform: scale(.2); opacity: 0; } 14% { opacity: .9; } 60%, 100% { transform: scale(1.6); opacity: 0; } }
.r-btn { margin-top: auto; width: 100%; padding: 4.4% 0; border-radius: 99px; background: #2B2340; color: #fff; font-size: 4.4cqw; font-weight: 700; }

/* Screen 3 · Mission: a walk with Pip. The ring fills as the steps count up (site.js
   counts), Pip waddles along, then it's done and the ring turns green */
.s-mission { background: #FFF4D6; align-items: center; text-align: center; }
.m-head { margin-top: 5%; }
.m-head small { display: block; font-size: 3.2cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C2560F; }
.m-head b { display: block; margin-top: 1%; font-family: var(--head); font-weight: 800; font-size: 9cqw; letter-spacing: -.03em; line-height: 1.05; }
.w-ring { position: relative; width: 68cqw; aspect-ratio: 1; margin-top: 9%; display: grid; place-items: center; }
.w-track { position: absolute; inset: 0; transform: rotate(-90deg); }
.w-track circle { fill: none; stroke: #F1E3BD; stroke-width: 6; }
.w-track .w-fill { stroke: #FF8A3D; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.s-mission.is-on .w-fill { animation: w-fill 2.8s cubic-bezier(.4, 0, .2, 1) .5s forwards, w-green .4s ease 3.3s forwards; }
@keyframes w-fill { to { stroke-dashoffset: 0; } }
@keyframes w-green { to { stroke: #0F9F6E; } }
html:not(.motion) .w-fill { stroke-dashoffset: 0; }
.w-pip { width: 44cqw; transform-origin: 50% 100%; }
.motion .s-mission.is-on .w-pip { animation: waddle .45s ease-in-out infinite alternate; }
@keyframes waddle { from { transform: rotate(-7deg); } to { transform: rotate(7deg) translateY(-3%); } }
.w-feet { position: absolute; bottom: 12%; left: 50%; display: flex; gap: 3cqw; transform: translateX(-50%); }
.w-feet i { width: 2.6cqw; height: 3.6cqw; border-radius: 50%; background: #E8D29C; opacity: 0; }
.w-feet i:nth-child(odd) { margin-top: 1.6cqw; }
.motion .s-mission.is-on .w-feet i { animation: foot 1.6s ease infinite; }
.w-feet i:nth-child(2) { animation-delay: .4s !important; }
.w-feet i:nth-child(3) { animation-delay: .8s !important; }
.w-feet i:nth-child(4) { animation-delay: 1.2s !important; }
@keyframes foot { 0%, 100% { opacity: 0; } 20%, 60% { opacity: 1; } }
.w-count { margin-top: 7%; }
.w-count b { display: block; font-family: var(--head); font-weight: 800; font-size: 15cqw; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-count span { display: block; margin-top: 1%; font-size: 3.6cqw; font-weight: 600; color: #6E6585; }
.w-note { position: relative; display: grid; margin-top: auto; padding: 4% 6%; border-radius: 99px; background: #fff; font-size: 3.8cqw; font-weight: 700; }
.w-note span { grid-area: 1 / 1; }
.w-done { color: #0F9F6E; opacity: 0; }
.s-mission.is-on .w-going { animation: w-out .3s ease 3.3s forwards; }
.s-mission.is-on .w-done { animation: w-in .4s ease 3.4s forwards; }
@keyframes w-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes w-in { from { transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Screen 4 · Up: Pip hops for joy */
.s-up { align-items: center; text-align: center; background: linear-gradient(180deg, #FFF6DD, #FFE3A3); }
.sunburst { position: absolute; left: 50%; top: 10%; width: 130%; aspect-ratio: 1; margin-left: -65%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 60, .75), rgba(255, 201, 60, 0) 60%); }
.motion .s-up.is-on .sunburst { animation: glow 3s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.12); opacity: .8; } }
.u-pip { position: relative; width: 50cqw; margin-top: 18%; }
.motion .s-up.is-on .u-pip [data-pip] { animation: joy 1.4s var(--ease) infinite; transform-origin: 50% 100%; }
@keyframes joy { 0%, 60%, 100% { transform: none; } 12% { transform: scale(1.1, .88); } 32% { transform: scale(.95, 1.06) translateY(-16%); } 48% { transform: scale(1.04, .96); } }
.motion .s-up.is-on .u-pip .pip-wing-l { animation: flapL .14s linear 6 alternate; animation-iteration-count: infinite; }
.motion .s-up.is-on .u-pip .pip-wing-r { animation: flapR .14s linear 6 alternate; animation-iteration-count: infinite; }
.spark { position: absolute; width: 6cqw; aspect-ratio: 1; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; }
.s1 { left: -8%; top: 10%; }
.s2 { right: -10%; top: 2%; width: 4.5cqw; }
.s3 { right: -2%; top: 52%; width: 3.6cqw; background: #FFC21F; }
.motion .s-up.is-on .spark { animation: twinkle 1.6s ease-in-out infinite; }
.s2 { animation-delay: .4s !important; }
.s3 { animation-delay: .8s !important; }
html:not(.motion) .spark { opacity: 1; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.u-title { position: relative; margin-top: 7%; font-family: var(--head); font-weight: 800; font-size: 11cqw; letter-spacing: -.02em; line-height: 1; }
.u-sub { position: relative; margin-top: 3%; font-size: 4.4cqw; color: var(--ink-2); font-weight: 600; }
.u-card { position: relative; margin-top: auto; width: 100%; padding: 6% 7%; text-align: left; }
.u-card small { display: block; font-size: 3.4cqw; color: var(--ink-3); }
.u-card b { font-family: var(--head); font-size: 6cqw; letter-spacing: -.03em; }

/* Lock screen */
.s-lock { align-items: center; text-align: center; color: #fff; background: linear-gradient(180deg, #1B1530 0%, #3B2756 60%, #6D3A5C 100%); }
.l-date { margin-top: 10%; font-size: 4.6cqw; font-weight: 600; opacity: .85; }
.l-time { font-family: var(--head); font-weight: 700; font-size: 30cqw; letter-spacing: -.06em; line-height: 1; }
.notif { margin-top: auto; width: 100%; display: flex; align-items: center; gap: 4%; padding: 4.5%; border-radius: 6cqw; text-align: left; background: rgba(255, 255, 255, .2); backdrop-filter: blur(12px); }
.notif b { display: block; font-size: 4.2cqw; }
.notif small { font-size: 3.8cqw; opacity: .85; }
.n-icon { width: 11cqw; aspect-ratio: 1; border-radius: 2.6cqw; flex: none; background: var(--accent) url('favicon.svg') center / cover; }

/* ---------- 2 · Story ---------- */
.story { position: relative; }
.story-pin { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(24px, 6vw, 120px); max-width: 1280px; margin: 0 auto; padding: 96px var(--gutter) 40px; }
.story-copy { padding-top: clamp(16px, 7vh, 90px); }
.story-heads { display: grid; }
.story-head { grid-area: 1 / 1; font-size: clamp(48px, 6.6vw, 108px); transition: opacity .5s, transform .8s var(--ease); }
.story-head:not(.is-on) { opacity: 0; transform: translateY(30px); }
.story-head.is-past { transform: translateY(-30px); }
.steps { display: flex; gap: 10px; margin-top: 48px; max-width: 460px; }
.step { flex: 1; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); transition: color .4s; }
.step i { display: block; height: 3px; margin-bottom: 12px; border-radius: 3px; background: var(--line); overflow: hidden; }
.step b { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.step.is-on { color: var(--ink); }
.phone-stage { position: relative; display: grid; place-items: center; perspective: 1600px; }
.phone-stage .phone { transform-style: preserve-3d; will-change: transform; }
.phone-shadow { width: 60%; height: 26px; margin-top: 30px; border-radius: 50%; background: radial-gradient(rgba(20, 18, 24, .25), rgba(20, 18, 24, 0) 70%); }
/* Without motion the phone shows the ringing screen and all steps are plain */
html:not(.motion) .story .screen { opacity: 0; }
html:not(.motion) .story .s-ring { opacity: 1; }
html:not(.motion) .story-head:not([data-step='1']) { display: none; }
html:not(.motion) .story-head { opacity: 1; transform: none; }
html:not(.motion) .step { color: var(--ink); }
html:not(.motion) .step b { transform: none; }

/* ---------- 3 · Statement ---------- */
.statement { display: grid; place-items: center; padding: 24px var(--gutter) 130px; text-align: center; }
.big { font-size: clamp(52px, 9vw, 150px); }
.big .muted { color: #D3BF92; }

/* ---------- 4 · Download ---------- */
.download { position: relative; z-index: 2; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 140px var(--gutter) 0; background: var(--night); color: #fff; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.dl-glow { position: absolute; right: -10%; top: 10%; width: 70vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 31, .35), rgba(255, 106, 31, 0) 60%); pointer-events: none; }
.dl-copy { position: relative; max-width: 640px; justify-self: end; }
.dl-title { font-size: clamp(48px, 6.4vw, 104px); }
/* Looser tracking so "rn" in mornings doesn't read as an "m" */
.dl-title em { color: var(--accent); letter-spacing: -.015em; }
.dl-sub { margin: 24px 0 36px; font-size: clamp(17px, 1.3vw, 21px); color: rgba(255, 255, 255, .6); }
.duo { position: relative; height: clamp(520px, 52vw, 720px); }
.phone-sm { --w: clamp(220px, 20vw, 290px); position: absolute; }
.duo-back { left: 8%; top: 4%; transform: rotate(-9deg); opacity: .9; }
.duo-front { left: 40%; top: 16%; transform: rotate(7deg); }
.footer { grid-column: 1 / -1; position: relative; display: flex; justify-content: space-between; gap: 16px; margin: 40px calc(var(--gutter) * -1) 0; padding: 24px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .55); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ---------- Phones (the devices) ---------- */
@media (max-width: 860px) {
  .nav { padding: 14px var(--gutter); }
  .aclock { --D: 58vw; top: 50%; }
  /* On phones the hero is as tall as its content, so the story follows right after */
  .hero { min-height: 0; padding: 120px var(--gutter) 74px; }
  .story-pin { grid-template-columns: 1fr; gap: 28px; padding-top: 76px; text-align: center; align-content: start; }
  .story-copy { padding-top: 0; }
  .story-copy { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { margin-bottom: 16px; }
  .story-head { font-size: clamp(40px, 11vw, 64px); }
  .steps { margin-top: 24px; width: 100%; gap: 6px; }
  .step { font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
  .phone-stage .phone { --w: min(230px, 58vw); }
  .phone-shadow { display: none; }
  .download { grid-template-columns: minmax(0, 1fr); padding-top: 100px; text-align: center; }
  .dl-copy { justify-self: center; }
  .stores-left, .download .perks { justify-content: center; }
  .duo { height: 120vw; max-height: 560px; }
  .phone-sm { --w: 46vw; }
  .duo-back { left: 6%; }
  .duo-front { left: 46%; }
  .footer { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
