/* Dayone website. Colours, type and shapes come from the app itself:
   the Home background (#1f2730 → #0b0d10 → #060606), #141518 cards with a
   hairline edge, rounded Nunito, white text, and colour only on promise
   icons and the score. */

:root {
  --bg: #060606;
  --bg-2: #0b0d10;
  --sky: #1f2730;
  --card: #141518;
  --lift: #1d1e24;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --muted: #8b9099;
  --soft: #c9cad0;
  --green: #30d158;
  --round: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--round);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The app's Home light, falling from the top of the page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1600px;
  background: radial-gradient(120% 70% at 50% 0%, var(--sky) 0%, var(--bg-2) 55%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.sub, .lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; text-wrap: pretty; }
.center { text-align: center; margin-inline: auto; }
.fine { color: #5f646d; font-size: 13px; line-height: 1.5; }
.muted-s { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: #000; padding: 10px 14px; border-radius: 12px; z-index: 100; font-weight: 800; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 10px; }

section { padding: clamp(80px, 12vw, 150px) var(--gutter); }

/* Icons: Material Symbols Rounded, filled, like the app's promise icons. */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 1, "wght" 500;
  display: inline-block; user-select: none;
}

/* A promise tile: the promise colour at low strength, glyph in full colour. */
.tile {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: color-mix(in srgb, var(--c, #8b9099) 24%, #141518);
  color: var(--c, #8b9099);
  flex: none;
}
.tile .ms { font-size: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: #f5f5f7; color: #0b0d10;
  font-weight: 800; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background .2s ease, translate .45s cubic-bezier(.2,.9,.3,1.3);
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.96); }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: var(--lift); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: #26272e; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Store buttons: dark like the app's cards, a hairline edge, and both
   exactly the same width with the logo and words lined up the same way. */
.store {
  display: inline-flex; align-items: center; gap: 14px;
  width: 212px; height: 62px; padding: 0 20px; border-radius: 18px;
  background: linear-gradient(180deg, #1e2026 0%, #121317 100%);
  color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, translate .45s cubic-bezier(.2,.9,.3,1.3);
}
.store:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.45); }
.store:active { transform: scale(.96); }
.store svg { width: 28px; height: 30px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; font-size: 21px; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; font-family: -apple-system, "SF Pro Display", var(--round); }
.store small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: #a1a5ad; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(11, 13, 16, .72); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn-small { margin-left: auto; } }

/* ---------- The cloud: stacked layers ----------
   The drawing space is the cloud image's own 512 × 482; everything is placed
   in percentages of it. */
.cloud { position: relative; aspect-ratio: 512 / 482; container-type: inline-size; }
.cl { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 72%; }
.cl > * { position: absolute; }
.cl-img { inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.cl-masked {
  inset: 0;
  -webkit-mask: url(assets/cloud-blank.webp) center / 100% 100% no-repeat;
  mask: url(assets/cloud-blank.webp) center / 100% 100% no-repeat;
}
.cl-shade { background: rgb(13, 17, 24); }
.cl-band i { position: absolute; left: -4%; width: 108%; top: 25%; height: 8.5%; transform: rotate(-4deg); }
.cl-ties { inset: 0; color: #30d158; }
.cl-ties svg, .cl-bolt svg, .cl-eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cl-ties path { fill: currentColor; }
.cl-ties g { transform-origin: 80% 27%; animation: flutter 1.4s ease-in-out infinite alternate; }
.cl-eyes { position: absolute; inset: 0; }
.cl-glow {
  left: 50%; top: 55%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cl-accent, #ffc93c) 42%, transparent), transparent);
}
.cl-sun { left: 80%; top: 24%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.cl-sun svg { width: 100%; height: 100%; fill: #ffd60a; animation: spin 24s linear infinite; }
.cl-rain { inset: 0; }
.cl-drop { position: absolute; width: 2.2%; height: 8.3%; margin-left: -1.1%; border-radius: 99px; background: rgba(143, 196, 255, .8); animation: drop 1.1s linear infinite; }
.cl-rain:not(.heavy) .cl-drop.odd { display: none; }
.cl-bolt { inset: 0; }
.cl-bolt path { fill: none; stroke: #fff3b0; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.cl-bolt svg { animation: bolt 3.2s steps(1) infinite; }
.cl-zs { inset: 0; animation: zs 3s ease-in-out infinite; }
.cl-zs b { position: absolute; font-weight: 900; color: #d9dadf; line-height: 1; font-family: var(--round); }
.cl-zs b:first-child { left: 82%; top: 11%; font-size: 11.3cqw; }
.cl-zs b:last-child { left: 92%; top: 0%; font-size: 8.2cqw; opacity: .7; }
.cl-sparks { inset: 0; }
.cl-sparks i {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: #ffe08a; animation: twinkle 2.2s ease-in-out infinite;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.cl-sparks.purple i { background: #e3b8ff; }

@keyframes drop { from { transform: translateY(-30%) rotate(12deg); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(110%) rotate(12deg); opacity: 0; } }
@keyframes bolt { 0%, 62%, 70%, 100% { visibility: hidden; } 64%, 74% { visibility: visible; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flutter { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes twinkle { 0%, 100% { transform: translate(-50%, -50%) scale(.7); opacity: .6; } 50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
@keyframes zs { 0%, 100% { transform: translateY(1.5%); } 50% { transform: translateY(-2%); } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: clamp(16px, 3vw, 40px); padding-bottom: 40px; }
/* The mascot at the top: in the page itself, so it is always there. It drops
   in once when the page opens; site.js lets it drift up a little as you
   scroll, never down onto the headline. */
.hero-cloud { position: relative; z-index: 2; width: clamp(150px, 20vw, 230px); margin: 0 auto clamp(16px, 2.6vw, 30px); will-change: transform; }
.hero-cloud .cloud { animation: drop-in 1.1s cubic-bezier(.2, .9, .3, 1.25) .15s both; cursor: pointer; -webkit-tap-highlight-color: transparent; outline-offset: 8px; }
.hero h1, .hero .lead { position: relative; z-index: 3; }
/* What the cloud says when you tap it: the app's glass bubble, tail at the cloud. */
.hero-cloud .hero-say {
  position: absolute; left: 92%; top: 22%;
  width: max-content; max-width: 220px;
  padding: 12px 16px 12px 24px;
  font-size: 16px; font-weight: 800; line-height: 1.3; text-align: left;
  opacity: 0; transform: translateX(-10px) scale(.9); transform-origin: left center;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3);
  pointer-events: none;
}
.hero-cloud .hero-say.on { opacity: 1; transform: none; }
.hero-say[data-bubble="hook"] .bubble-svg path { fill: rgba(40, 42, 50, .82); stroke: rgba(255,255,255,.18); }
@media (max-width: 560px) { .hero-cloud .hero-say { left: 78%; top: -6%; max-width: 130px; font-size: 14px; padding: 10px 12px 10px 20px; } }
@keyframes drop-in { from { transform: translateY(-40px) scale(.72); opacity: 0; } 60% { opacity: 1; } }
.hero h1 { max-width: 12.5em; margin-inline: auto; }
.hero .lead { margin: 22px auto 0; max-width: 33em; }
.hero .stores { margin-top: 34px; }
.cta-note { color: var(--muted); font-size: 15px; font-weight: 700; margin-top: 14px; }


.hero-stage { position: relative; max-width: 1120px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 20px 0 40px; }

/* ---------- Floating cards ---------- */
.float { position: absolute; z-index: 3; text-align: left; will-change: transform; }
/* Each card drifts gently on its own slow loop: a few pixels up and down,
   a touch side to side, with different lengths so they never move in step.
   Linus found the first version too much; keep it this calm. */
.float > * { animation: drift 11s ease-in-out infinite; }
.float:nth-of-type(2n) > * { animation-name: drift-b; animation-duration: 13s; animation-delay: -3s; }
.float:nth-of-type(3n) > * { animation-name: drift-c; animation-duration: 9.5s; animation-delay: -5s; }
.float:nth-of-type(5n) > * { animation-duration: 14.5s; animation-delay: -7s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2px, -4px) rotate(.3deg); }
  50% { transform: translate(-1px, -7px) rotate(-.15deg); }
  75% { transform: translate(-2px, -3px) rotate(-.3deg); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(-2px, -5px) rotate(-.35deg); }
  60% { transform: translate(1px, -7px) rotate(.2deg); }
  80% { transform: translate(2px, -2px) rotate(.3deg); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35% { transform: translate(2px, 3px) rotate(.25deg); }
  70% { transform: translate(-2px, -4px) rotate(-.25deg); }
}

.fl-notif { left: 0; top: 8%; }
.fl-streak { left: 16%; top: 33%; }
.fl-checkin { left: 2%; top: 52%; }
.fl-talk { right: 0; top: 6%; }
.fl-kept { right: 6%; top: 34%; }
.fl-trophy { right: 0; top: 56%; }
.fl-dot.d1 { left: 25%; top: 4%; }
.fl-dot.d2 { right: 24%; top: 84%; }
.fl-dot.d3 { left: 22%; top: 82%; }
.fl-dot .tile { width: 52px; height: 52px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06); }
.fl-dot .tile .ms { font-size: 28px; }
@media (max-width: 1140px) {
  .fl-streak, .fl-dot { display: none; }
  .fl-notif { left: -2%; }
  .fl-talk { right: -2%; }
}
@media (max-width: 960px) {
  .fl-checkin, .fl-trophy, .fl-notif, .fl-talk { display: none; }
  .fl-kept { right: auto; left: calc(50% - min(360px, 82vw) / 2 - 40px); top: 84%; }
  .fl-streak { display: block; left: auto; right: calc(50% - min(360px, 82vw) / 2 - 30px); top: 16%; }
}
@media (max-width: 560px) {
  .fl-kept { left: 0; transform: scale(.85); transform-origin: left center; }
  .fl-streak { right: 0; }
}

.notif {
  display: flex; gap: 12px; align-items: flex-start;
  width: 300px; padding: 14px 16px; border-radius: 24px;
  background: rgba(40, 42, 50, .72);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px rgba(0,0,0,.45);
}
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif > div { flex: 1; }
.notif-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.3; }
.notif-top b { font-weight: 800; }
.notif-top span { color: var(--muted); }
.notif-title { font-weight: 800; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.notif-body { color: #c4c6cc; font-size: 14px; line-height: 1.35; }

.card-float, .kept-chip, .trophy-chip, .pill-card, .checkin-card, .day-card, .review-card, .mini-talk p {
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 44px rgba(0,0,0,.5);
}
.kept-chip, .trophy-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 22px;
  background: var(--card);
}
.kept-chip b, .trophy-chip b { display: block; font-size: 16px; line-height: 1.2; }
.kept-chip div, .trophy-chip div { display: flex; flex-direction: column; }
.kept-chip div span, .trophy-chip div span { color: var(--muted); font-size: 13px; }
.tick, .cross { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-left: 8px; flex: none; }
.tick { background: var(--green); color: #052b10; }
.cross { background: #3a1f22; color: #ff6b6b; }
.tick .ms, .cross .ms { font-size: 18px; }

.pill-card { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 99px; background: var(--card); font-size: 15px; }
.flame { color: #ff9f0a; font-size: 22px; }

.checkin-card { width: 250px; padding: 14px; border-radius: 22px; background: var(--card); }
.cc-head { display: flex; gap: 10px; align-items: center; }
.cc-head .tile { width: 38px; height: 38px; border-radius: 11px; }
.cc-head .tile .ms { font-size: 20px; }
.cc-head div { display: flex; flex-direction: column; line-height: 1.25; }
.cc-head b { font-size: 16px; }
.cc-head span { color: var(--muted); font-size: 13px; }
.cc-q { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #c4c6cc; margin: 12px 0 7px; }
.cc-q b { color: var(--c); }
.cc-bar { height: 10px; border-radius: 99px; background: #23252b; position: relative; }
.cc-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--c); }
.cc-bar i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }

.mini-talk { display: flex; align-items: center; gap: 2px; }
.mini-cloud { width: 74px; flex: none; }
.mini-talk p { box-shadow: none; position: relative; padding: 12px 16px 12px 24px; font-weight: 800; font-size: 15px; max-width: 190px; line-height: 1.3; }

.medal {
  --s: 44px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: calc(var(--s) * .04) solid transparent;
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, #e4e5ea 55%, #c3c5cd 100%) padding-box,
    linear-gradient(180deg, #fff, #9a9ca4) border-box;
  box-shadow: 0 calc(var(--s) * .08) calc(var(--s) * .2) rgba(0,0,0,.45);
  color: #6b6f7a;
}
.medal .ms { font-size: calc(var(--s) * .46); text-shadow: 0 1px 0 rgba(255,255,255,.9); }
.medal.gold {
  border-width: calc(var(--s) * .07);
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, #e4e5ea 55%, #c3c5cd 100%) padding-box,
    linear-gradient(135deg, #f8dc8a, #b8862b 50%, #f1cd6b) border-box;
  color: #c8962e;
}

/* ---------- Phone: an iPhone 17 Pro, kept minimal ----------
   A hairline dark rim and a slim black bezel, so the eye goes to the app,
   not the metal. The corner radii are worked out so rim, bezel and screen
   stay concentric. */
.phone {
  position: relative; margin-inline: auto;
  width: min(360px, 82vw);
  aspect-ratio: 0.4813;
  padding: 0.55%;
  border-radius: 17% / 8%;
  background: linear-gradient(90deg, #1d1e22, #2e3035 50%, #1d1e22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.1),
    0 40px 70px -20px rgba(0,0,0,.85),
    0 90px 140px -50px rgba(0,0,0,.7);
}
/* The side buttons: just barely there. */
.pb { position: absolute; width: 0.6%; background: #26282d; }
.pb-action, .pb-up, .pb-down { left: -0.5%; border-radius: 2px 0 0 2px; }
.pb-power, .pb-cam { right: -0.5%; border-radius: 0 2px 2px 0; }
.pb-action { top: 17%; height: 3.6%; }
.pb-up { top: 24%; height: 7.2%; }
.pb-down { top: 33%; height: 7.2%; }
.pb-power { top: 26%; height: 11%; }
.pb-cam { display: none; }
.phone-glass {
  position: relative; height: 100%;
  padding: 1.7%;
  border-radius: 16.6% / 7.77%;
  background: #000;
}
.phone-screen {
  position: relative; height: 100%;
  border-radius: 15% / 7.07%;
  overflow: hidden; background: #000;
  container-type: inline-size;
  isolation: isolate;
}
/* A soft reflection on the glass. */
.phone-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.02) 26%, transparent 27%);
}
.phone-sm { width: min(310px, 74vw); }

/* ---------- Screens (sized in app points: --u is 1 pt) ---------- */
.scr {
  --u: calc(100cqw / 402);
  position: absolute; inset: 0;
  font-size: calc(15 * var(--u));
  line-height: 1.3;
  text-align: left;
  color: var(--text);
  background: radial-gradient(130% 55% at 50% 0%, #1f2730 0%, #0b0d10 55%, #060606 100%);
  padding: 0 calc(20 * var(--u));
  overflow: hidden;
}
.scr .tile { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: calc(13 * var(--u)); }
.scr .tile .ms { font-size: calc(22 * var(--u)); }
.scr .tile.big { width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: calc(15 * var(--u)); }
.scr .tile.big .ms { font-size: calc(26 * var(--u)); }

.status { display: flex; align-items: center; justify-content: space-between; height: calc(56 * var(--u)); padding: calc(6 * var(--u)) calc(16 * var(--u)) 0; font-weight: 800; font-size: calc(17 * var(--u)); position: relative; z-index: 4; }
.status > span:first-child { width: calc(64 * var(--u)); text-align: center; }
.island { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(124 * var(--u)); height: calc(36 * var(--u)); margin-left: calc(-62 * var(--u)); border-radius: 99px; background: #000; }
.status-r { display: flex; gap: calc(6 * var(--u)); align-items: center; width: calc(72 * var(--u)); justify-content: center; }
.sig { width: calc(17 * var(--u)); height: calc(11 * var(--u)); background: linear-gradient(90deg, #fff 0 18%, transparent 18% 27%, #fff 27% 45%, transparent 45% 54%, #fff 54% 72%, transparent 72% 81%, #fff 81%); clip-path: polygon(0 75%, 100% 0, 100% 100%, 0 100%); }
.wifi { width: calc(15 * var(--u)); height: calc(11 * var(--u)); background: #fff; clip-path: polygon(50% 100%, 0 25%, 15% 8%, 35% 0, 65% 0, 85% 8%, 100% 25%); }
.bat { width: calc(25 * var(--u)); height: calc(12 * var(--u)); border-radius: calc(4 * var(--u)); background: #fff; }

.home-head { display: flex; justify-content: space-between; align-items: center; margin-top: calc(24 * var(--u)); }
.home-head .muted-s { font-size: calc(14 * var(--u)); }
.day-title { font-size: calc(34 * var(--u)); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.head-pill { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(5 * var(--u)) calc(5 * var(--u)) calc(5 * var(--u)) calc(16 * var(--u)); border-radius: 99px; background: #15171b; box-shadow: inset 0 0 0 1px var(--line-2); }
.head-pill .ms { font-size: calc(21 * var(--u)); }
.avatar { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: #dbeafe; color: #5b6b80; font-weight: 800; font-size: calc(15 * var(--u)); }
.arrows { display: flex; gap: calc(10 * var(--u)); }
.arrows .ms { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; display: grid; place-items: center; font-size: calc(24 * var(--u)); background: rgba(36,38,44,.78); box-shadow: inset 0 0 0 1px var(--line-2); }

.arc-wrap { position: relative; width: calc(290 * var(--u)); margin: calc(26 * var(--u)) auto 0; }
.arc { display: block; width: 100%; overflow: visible; }
.arc-track { fill: none; stroke: #1c1e23; stroke-width: 16; stroke-linecap: round; }
.arc-fill { fill: none; stroke: #30d158; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 0 100; }
.arc-knob { fill: #fff; stroke: rgba(0,0,0,.25); stroke-width: 3; }
.arc-slot { position: absolute; left: 50%; top: 44%; width: calc(112 * var(--u)); aspect-ratio: 512 / 482; transform: translateX(-50%); }
/* The phone's cloud drops into the arc when the phone comes into view. */
.arc-slot .cloud { opacity: 0; transform: translateY(-70%) scale(.6); transition: transform .9s cubic-bezier(.2, .9, .3, 1.25), opacity .5s ease; }
.arc-slot.in .cloud { opacity: 1; transform: none; }
.arc-lo, .arc-hi { position: absolute; bottom: calc(-22 * var(--u)); color: #4c5059; font-size: calc(13 * var(--u)); }
.arc-lo { left: calc(14 * var(--u)); }
.arc-hi { right: calc(6 * var(--u)); }
.home-mood { text-align: center; font-weight: 900; font-size: calc(25 * var(--u)); margin-top: calc(36 * var(--u)); letter-spacing: -0.01em; }
.home-sub { text-align: center; color: var(--muted); font-size: calc(13.5 * var(--u)); margin-top: calc(4 * var(--u)); }

.sec-title { font-weight: 900; font-size: calc(21 * var(--u)); margin: calc(24 * var(--u)) 0 calc(12 * var(--u)); }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; }
.sec-row .muted-s { font-size: calc(13.5 * var(--u)); }

.upnext {
  --c: #ff453a;
  padding: calc(16 * var(--u));
  border-radius: calc(26 * var(--u));
  background: color-mix(in srgb, var(--c) 9%, #141518);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
  transition: background .6s, box-shadow .6s;
}
.upnext-swap { position: relative; height: calc(52 * var(--u)); overflow: hidden; }
.upnext-info { display: flex; gap: calc(14 * var(--u)); align-items: center; }
.upnext-swap .upnext-info { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2,.9,.25,1), opacity .4s; }
.upnext-swap .b { transform: translateY(100%); opacity: 0; }
.un-name { font-weight: 900; font-size: calc(19 * var(--u)); }
.un-time { display: flex; align-items: center; gap: calc(5 * var(--u)); color: var(--muted); font-size: calc(14 * var(--u)); }
.un-time .ms { font-size: calc(15 * var(--u)); font-variation-settings: "FILL" 0; }
.un-btns { display: flex; gap: calc(10 * var(--u)); margin-top: calc(16 * var(--u)); }
.un-done { flex: 1.6; height: calc(46 * var(--u)); border-radius: 99px; background: #f3f3f5; color: #0b0d10; display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); font-weight: 900; font-size: calc(18 * var(--u)); transition: transform .15s; }
.un-done .ms { font-size: calc(22 * var(--u)); font-variation-settings: "wght" 700; }
.un-skip { flex: 1; height: calc(46 * var(--u)); border-radius: 99px; background: #1c1e23; color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: calc(16 * var(--u)); }
.un-x { width: calc(46 * var(--u)); height: calc(46 * var(--u)); border-radius: 50%; background: #1c1e23; color: var(--muted); display: grid; place-items: center; }
.un-x .ms { font-size: calc(20 * var(--u)); }

.row { display: flex; align-items: center; gap: calc(14 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(24 * var(--u)); background: #141518; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: calc(10 * var(--u)); }
.row > div { flex: 1; min-width: 0; }
.row-name { font-weight: 800; font-size: calc(17 * var(--u)); }
.row-sub { color: var(--muted); font-size: calc(13.5 * var(--u)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; box-shadow: inset 0 0 0 calc(2 * var(--u)) #3a3d45; display: grid; place-items: center; color: #052b10; flex: none; }
.check .ms { font-size: calc(18 * var(--u)); }
.check.on { background: var(--green); box-shadow: none; }
.status-pill { padding: calc(5 * var(--u)) calc(10 * var(--u)); border-radius: 99px; font-weight: 800; font-size: calc(12 * var(--u)); flex: none; }
.status-pill.kept { background: color-mix(in srgb, var(--green) 18%, #141518); color: var(--green); }

.tabbar { position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); bottom: calc(24 * var(--u)); display: flex; gap: calc(10 * var(--u)); align-items: center; z-index: 5; }
.tabs { flex: 1; display: flex; padding: calc(5 * var(--u)); border-radius: 99px; background: rgba(36, 38, 44, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; padding: calc(7 * var(--u)) 0; border-radius: 99px; color: var(--muted); font-size: calc(12 * var(--u)); font-weight: 700; }
.tab .ms { font-size: calc(23 * var(--u)); }
.tab.on { background: rgba(255,255,255,.1); color: #fff; }
.plus { width: calc(60 * var(--u)); height: calc(60 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: rgba(36, 38, 44, .78); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.plus .ms { font-size: calc(30 * var(--u)); }

/* The hero phone's Up next works: its colour glides to the next promise's. */
@property --uc { syntax: '<color>'; inherits: true; initial-value: #ff453a; }
#upNext { --uc: #ff453a; background: color-mix(in srgb, var(--uc) 9%, #141518); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--uc) 24%, transparent); transition: --uc .6s ease; }
#upNext button { font: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#upNext .un-done { font-weight: 900; font-size: calc(18 * var(--u)); }
#upNext .un-done:hover { background: #fff; }
#upNext .un-skip:hover { color: var(--text); }
#upNext button:active, #upNext button.pressed { transform: scale(.94); }
#upNext button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.upnext-swap .enter { transform: translateY(100%); opacity: 0; }
.upnext-swap .leave { transform: translateY(-100%); opacity: 0; }
.un-alldone { display: none; align-items: center; gap: calc(8 * var(--u)); font-weight: 900; font-size: calc(17 * var(--u)); padding: calc(4 * var(--u)) 0; }
.un-alldone .ms { color: var(--green); font-size: calc(26 * var(--u)); }
#upNext.all .upnext-swap, #upNext.all .un-btns { display: none; }
#upNext.all .un-alldone { display: flex; animation: pop-in .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } }
#restRows .row { transition: opacity .4s ease; }
#restRows .row.skipped { opacity: .45; }
.check.skip { background: #3a1f22; box-shadow: none; color: #ff6b6b; }

/* The app's reward on Done: two beams race up the screen edges in the
   promise's colour, meet at the top, and the edge flashes. */
.edge-light { position: absolute; inset: 0; z-index: 25; pointer-events: none; overflow: visible; }
.edge-light path { fill: none; stroke-linecap: round; }

/* Confetti, in the promise's colours. */
.confetti { position: fixed; left: 0; top: 0; z-index: 80; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; will-change: transform, opacity; }

/* "Tap Done" cue, right on the button: a finger taps it, the button dips
   in time and a ring pulses out from it. Shown when it's your turn. */
#upBtns { position: relative; }
.tap-cue {
  position: absolute; left: 41%; top: 44%; z-index: 4;
  font-size: calc(38 * var(--u)); color: #fff; line-height: 1;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, .65));
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.tap-cue .ms { font-size: inherit; font-variation-settings: "FILL" 1, "wght" 600; }
#upNext.cue .tap-cue { opacity: 1; animation: finger 1.7s cubic-bezier(.45, 0, .2, 1) infinite; }
#upNext.cue .un-done { animation: done-cue 1.7s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes finger {
  0%, 100% { transform: translate(calc(14 * var(--u)), calc(16 * var(--u))) rotate(-8deg); }
  38% { transform: translate(0, 0) rotate(0deg) scale(1); }
  46% { transform: translate(0, calc(2 * var(--u))) scale(.86); }
  58% { transform: translate(0, 0) scale(1); }
}
@keyframes done-cue {
  0%, 40% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
  46% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
  56% { transform: scale(1); }
  100% { transform: scale(1); box-shadow: 0 0 0 calc(16 * var(--u)) rgba(255, 255, 255, 0); }
}

/* Screen: new promise sheet over a dimmed Home */
.scr-dim { background: radial-gradient(130% 55% at 50% 0%, #121820 0%, #060708 60%, #030303 100%); }
.dim-home { margin-top: calc(24 * var(--u)); opacity: .3; }
.dim-home .muted-s { font-size: calc(14 * var(--u)); }
.sheet {
  position: absolute; left: calc(8 * var(--u)); right: calc(8 * var(--u)); bottom: calc(8 * var(--u));
  padding: calc(10 * var(--u)) calc(22 * var(--u)) calc(22 * var(--u));
  border-radius: calc(52 * var(--u));
  background: #141518; box-shadow: inset 0 0 0 1px var(--line);
}
.handle { display: block; width: calc(40 * var(--u)); height: calc(5 * var(--u)); border-radius: 9px; background: #3a3c43; margin: 0 auto calc(10 * var(--u)); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; font-size: calc(15 * var(--u)); margin-bottom: calc(6 * var(--u)); }
.sheet-top i { width: calc(32 * var(--u)); }
.sheet-top .x { width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; background: #1f2026; display: grid; place-items: center; font-size: calc(18 * var(--u)); color: var(--muted); }
.field-label { color: var(--muted); font-size: calc(13.5 * var(--u)); font-weight: 700; margin: calc(14 * var(--u)) 0 calc(8 * var(--u)); }
.name-field { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)); border-radius: calc(20 * var(--u)); background: #0e0f12; font-weight: 900; font-size: calc(22 * var(--u)); }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: #fff; vertical-align: -0.12em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.days { display: flex; justify-content: space-between; }
.d { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: #0e0f12; color: var(--muted); font-weight: 800; font-size: calc(14 * var(--u)); }
.d.on { background: color-mix(in srgb, #ff9f0a 22%, #141518); color: #ff9f0a; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) color-mix(in srgb, #ff9f0a 60%, transparent); }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: calc(8 * var(--u)); border-radius: calc(20 * var(--u)); background: #0e0f12; }
.stepper .ms { width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: #1f2026; font-size: calc(20 * var(--u)); }
.stepper b { font-size: calc(24 * var(--u)); font-weight: 900; }
.anchor { padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(20 * var(--u)); background: #0e0f12; font-weight: 700; font-size: calc(15 * var(--u)); }
.sheet-cta { margin-top: calc(18 * var(--u)); height: calc(52 * var(--u)); border-radius: 99px; display: grid; place-items: center; background: #c9cad0; color: #0b0d10; font-weight: 900; font-size: calc(17 * var(--u)); }

/* Screen: lock screen */
.scr-lock { background: radial-gradient(120% 70% at 30% 10%, #2a3646 0%, #10151c 50%, #050608 100%); text-align: center; }
.lock-date { margin-top: calc(18 * var(--u)); font-weight: 700; font-size: calc(18 * var(--u)); color: #dfe3ea; }
.lock-time { font-size: calc(92 * var(--u)); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: #eef1f6; }
.lock-notes { position: absolute; left: calc(10 * var(--u)); right: calc(10 * var(--u)); bottom: calc(120 * var(--u)); display: flex; flex-direction: column; gap: calc(8 * var(--u)); text-align: left; }
.lnote {
  display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)); align-items: flex-start;
  padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(24 * var(--u));
  background: rgba(40, 42, 50, .72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lnote img { width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(9 * var(--u)); flex: none; }
.lnote-text { flex: 1; min-width: 0; }
.lnote .notif-top { font-size: calc(13 * var(--u)); }
.lnote .notif-title { font-size: calc(15 * var(--u)); }
.lnote .notif-body { font-size: calc(14 * var(--u)); }
.lnote-btns { flex-basis: 100%; display: flex; flex-direction: column; gap: calc(4 * var(--u)); margin-top: calc(4 * var(--u)); }
.lnote-btns span { padding: calc(11 * var(--u)); border-radius: calc(14 * var(--u)); background: rgba(255,255,255,.1); text-align: center; font-weight: 800; font-size: calc(15 * var(--u)); }
.lnote-btns span:first-child { background: rgba(255,255,255,.9); color: #0b0d10; }
.lock-bottom { position: absolute; left: calc(46 * var(--u)); right: calc(46 * var(--u)); bottom: calc(44 * var(--u)); display: flex; justify-content: space-between; }
.lock-bottom i { width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }

/* Screen: inline check-in */
.checkin-cloud { width: calc(120 * var(--u)); margin: calc(28 * var(--u)) auto 0; }
.scr-checkin .home-mood { margin-top: calc(18 * var(--u)); }
.scr-checkin .upnext { margin-top: calc(22 * var(--u)); }
.slider-q { margin-top: calc(16 * var(--u)); }
.slider-q p { display: flex; justify-content: space-between; font-size: calc(14 * var(--u)); font-weight: 700; color: #c4c6cc; margin-bottom: calc(8 * var(--u)); }
.slider-q b { color: var(--c); }
.bar { height: calc(14 * var(--u)); border-radius: 99px; background: #23252b; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--c); }
.bar i::after { content: ""; position: absolute; right: calc(-6 * var(--u)); top: 50%; width: calc(26 * var(--u)); height: calc(26 * var(--u)); margin-top: calc(-13 * var(--u)); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }

/* Screen: Week */
.wk { margin-top: calc(18 * var(--u)); padding: calc(18 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)); border-radius: calc(26 * var(--u)); background: #141518; box-shadow: inset 0 0 0 1px var(--line); }
.wk-head p { color: var(--muted); font-weight: 700; font-size: calc(16 * var(--u)); padding-left: calc(4 * var(--u)); }
.wk-head b { color: var(--text); font-size: calc(36 * var(--u)); font-weight: 900; letter-spacing: -0.03em; }
.wk-bar { height: calc(5 * var(--u)); border-radius: 9px; background: #23252b; margin: calc(10 * var(--u)) calc(4 * var(--u)) calc(14 * var(--u)); }
.wk-bar i { display: block; height: 100%; border-radius: 9px; background: var(--green); }
.wk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(3 * var(--u)); }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); padding: calc(8 * var(--u)) 0; border-radius: calc(20 * var(--u)); }
.wk-day.today { background: #22252b; }
.wk-day .l { color: var(--muted); font-size: calc(11 * var(--u)); font-weight: 700; }
.wk-day .n { font-weight: 800; font-size: calc(16 * var(--u)); margin-bottom: calc(2 * var(--u)); }
.wk-day .tile { width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(10 * var(--u)); position: relative; }
.wk-day .tile .ms { font-size: calc(17 * var(--u)); }
.wk-day .tile.kept { background: color-mix(in srgb, var(--c) 34%, #141518); }
.wk-day .tile.kept::after, .wk-day .tile.miss::after {
  font-family: "Material Symbols Rounded"; font-variation-settings: "FILL" 1, "wght" 700;
  position: absolute; right: calc(-4 * var(--u)); bottom: calc(-4 * var(--u));
  width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%;
  font-size: calc(10 * var(--u)); display: grid; place-items: center; box-shadow: 0 0 0 calc(2 * var(--u)) #141518;
}
.wk-day .tile.kept::after { content: "check"; background: var(--green); color: #052b10; }
.wk-day .tile.miss { opacity: .45; }
.wk-day .tile.miss::after { content: "close"; background: #ff453a; color: #2b0505; }
.wk-day .tile.ahead { opacity: .7; }
.scr-week .sec-title { margin-top: calc(20 * var(--u)); }

/* Screen: Promises, with the cloud talking */
.talk { display: flex; align-items: center; margin-top: calc(18 * var(--u)); }
.talk-cloud { width: calc(104 * var(--u)); flex: none; }
.talk-bubble { position: relative; flex: 1; min-height: calc(118 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)) calc(30 * var(--u)); }
.talk-label { display: flex; align-items: center; gap: calc(5 * var(--u)); font-size: calc(11 * var(--u)); font-weight: 800; color: var(--muted); margin-bottom: calc(6 * var(--u)); position: relative; }
.talk-label .ms { font-size: calc(13 * var(--u)); }
.talk-text { font-size: calc(14.5 * var(--u)); font-weight: 600; line-height: 1.38; position: relative; }
.talk-dots { display: none; gap: calc(5 * var(--u)); height: calc(21 * var(--u)); align-items: center; position: relative; }
.talk.thinking .talk-dots { display: flex; }
.talk-dots i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #fff; animation: dot .9s ease-in-out infinite; }
.talk-dots i:nth-child(2) { animation-delay: .16s; }
.talk-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.talk-text .new { animation: ink .25s ease-out; }
@keyframes ink { from { opacity: 0; } }

/* Bubbles drawn by site.js: an SVG outline that wraps body and tail. */
[data-bubble] { position: relative; isolation: isolate; }
.bubble-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
[data-bubble] > :not(.bubble-svg) { position: relative; z-index: 1; }
[data-bubble="hook"] .bubble-svg path { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.14); stroke-width: 1; }
.mini-talk [data-bubble="hook"] .bubble-svg path { fill: rgba(40,42,50,.8); stroke: rgba(255,255,255,.16); }
[data-bubble="hook"] { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
[data-bubble="point"] .bubble-svg path { fill: #2a2b31; stroke: rgba(255,255,255,.16); stroke-width: 1; }

.pcard { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(12 * var(--u)) calc(14 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(24 * var(--u)); background: #141518; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: calc(10 * var(--u)); }
.pcard > div:nth-child(2) { min-width: 0; }
/* --rp is registered so the ring's fill can animate when a promise is kept. */
@property --rp { syntax: '<number>'; inherits: false; initial-value: 50; }
.ring { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--c) calc(var(--rp) * 1%), #26282e 0); }
.ring::before { content: ""; position: absolute; inset: calc(4 * var(--u)); border-radius: 50%; background: #141518; }
.ring b { position: relative; font-size: calc(13 * var(--u)); font-weight: 900; }
.wline { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(5 * var(--u)); }
.wline i { height: calc(5 * var(--u)); border-radius: 9px; background: #24262c; }
.wline i.k { background: var(--c); }
.wline i.m { background: color-mix(in srgb, var(--c) 28%, #1c1d22); }

/* Screen: home screen with the widgets */
.scr-springboard {
  --wm: calc(338 * var(--u));
  padding: 0 calc(32 * var(--u));
  background:
    radial-gradient(90% 55% at 12% 8%, #4b3f86 0%, transparent 60%),
    radial-gradient(80% 50% at 95% 70%, #7a3550 0%, transparent 62%),
    radial-gradient(70% 45% at 20% 100%, #1d4f6b 0%, transparent 65%),
    linear-gradient(180deg, #17192a, #0b0c14);
}
.wgt {
  border-radius: calc(24 * var(--u)); padding: calc(16 * var(--u));
  background: radial-gradient(110% 110% at 50% 0%, #1f2730 0%, #0b0d10 52%, #060606 100%);
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0,0,0,.35);
  color: #fff;
}
.wgt-m { margin-top: calc(18 * var(--u)); height: calc(158 * var(--u)); display: flex; flex-direction: column; justify-content: space-between; }
.wm-top { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.wm-info { min-width: calc(92 * var(--u)); flex: 1 1 0; }
.wm-label { font-size: calc(10 * var(--u)); font-weight: 900; color: var(--muted); letter-spacing: .02em; }
.wm-label span { margin-left: calc(4 * var(--u)); }
.wm-name { display: flex; align-items: center; gap: calc(7 * var(--u)); margin-top: calc(3 * var(--u)); }
.wm-name b { font-size: calc(21 * var(--u)); font-weight: 900; }
.wtile { width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: calc(7.7 * var(--u)); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.wtile .ms { font-size: calc(15 * var(--u)); }
.wm-time { font-size: calc(12 * var(--u)); font-weight: 700; color: var(--muted); margin-top: calc(3 * var(--u)); }
.wm-talk { display: flex; align-items: center; flex: none; }
.wbubble { max-width: calc(124 * var(--u)); padding: calc(7.8 * var(--u)) calc(17.4 * var(--u)) calc(7.8 * var(--u)) calc(10.4 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 800; line-height: 1.2; margin-right: calc(-2 * var(--u)); transition: opacity .35s ease, transform .35s ease; transform-origin: right center; }
.wbubble.swap { opacity: 0; transform: scale(.92); }
.wm-cloud { width: calc(80 * var(--u)); flex: none; }
.wbtns { display: flex; gap: calc(6 * var(--u)); }
.wbtns > span { flex: 1; height: calc(36 * var(--u)); border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: calc(4 * var(--u)); font-size: calc(16 * var(--u)); }
.wdone { background: #fff; color: #0f0f0f; font-weight: 800; }
.wdone .ms { font-size: calc(14 * var(--u)); font-variation-settings: "wght" 800; }
.wskip { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #d9d9d9; font-weight: 700; }
.wgt-name { text-align: center; font-size: calc(11.5 * var(--u)); font-weight: 600; color: rgba(255,255,255,.9); margin-top: calc(6 * var(--u)); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sb-row { display: grid; grid-template-columns: calc(158 * var(--u)) 1fr; gap: calc(22 * var(--u)); margin-top: calc(14 * var(--u)); }
.wgt-s { height: calc(158 * var(--u)); display: flex; flex-direction: column; }
.ws-top { display: flex; justify-content: space-between; align-items: baseline; }
.ws-top b { font-size: calc(15 * var(--u)); font-weight: 900; }
.ws-top span { font-size: calc(13 * var(--u)); font-weight: 800; }
.ws-cloud { width: calc(70 * var(--u)); margin: calc(6 * var(--u)) auto 0; }
.ws-mood { font-size: calc(12 * var(--u)); font-weight: 800; margin-top: auto; }
.ws-bar { height: calc(6 * var(--u)); border-radius: 9px; background: rgba(255,255,255,.1); margin-top: calc(5 * var(--u)); }
.ws-bar i { display: block; height: 100%; border-radius: 9px; }
.sb-apps { display: grid; grid-template-columns: 1fr 1fr; gap: calc(14 * var(--u)) calc(18 * var(--u)); align-content: start; }
.app { display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--u)); }
.app img, .app i { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(15 * var(--u)); }
.app img { box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0,0,0,.35); }
.app i, .sb-dock i { background: rgba(255,255,255,.14); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.35); }
.app span { font-size: calc(11.5 * var(--u)); font-weight: 600; color: rgba(255,255,255,.92); }
.sb-search { position: absolute; left: 50%; bottom: calc(132 * var(--u)); transform: translateX(-50%); display: flex; align-items: center; gap: calc(5 * var(--u)); padding: calc(7 * var(--u)) calc(16 * var(--u)); border-radius: 99px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: calc(14 * var(--u)); font-weight: 600; }
.sb-search .ms { font-size: calc(15 * var(--u)); }
.sb-dock { position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(14 * var(--u)); height: calc(96 * var(--u)); border-radius: calc(36 * var(--u)); background: rgba(255,255,255,.12); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: flex; justify-content: space-around; align-items: center; padding: 0 calc(10 * var(--u)); }
.sb-dock i { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(15 * var(--u)); }

/* ---------- Promises section ---------- */
.promises { text-align: center; }
.promises .sub { margin: 18px auto 0; max-width: 38em; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: var(--max); margin: 54px auto 0; text-align: left; }
.pg {
  --c: #8b9099;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.2,.9,.25,1), box-shadow .25s;
}
.pg { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.pg:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.pg:active { transform: scale(.97); }
.pg:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pg .ring { transition: --rp .8s cubic-bezier(.2,.9,.25,1); }
.pg.kept { background: color-mix(in srgb, var(--c) 10%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.pg-tap { position: absolute; right: 14px; bottom: 12px; font-size: 12px; font-weight: 800; color: #5f646d; transition: opacity .3s; }
.pg:hover .pg-tap { color: var(--c); }
.pg.kept .pg-tap { color: var(--green); }
.pg .wline i { transition: background .4s ease; }
.pg > div { min-width: 0; }
.pg b { display: block; font-size: 18px; line-height: 1.2; }
.pg-plan { display: block; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg .ring { --u: 1px; }
.pg .ring::before { background: var(--card); }
.pg .wline { gap: 5px; }
.pg .wline i { height: 5px; }
.pg-why { grid-column: 1 / -1; color: #b8bcc4; font-size: 14px; line-height: 1.4; }
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }

.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: var(--max); margin: 64px auto 0; text-align: left; }
.outcomes .ms { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lift); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 22px; margin-bottom: 14px; }
.outcomes b { display: block; font-size: 19px; }
.outcomes p { color: var(--muted); font-size: 16px; margin-top: 6px; max-width: 26em; }
@media (max-width: 760px) { .outcomes { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- How it works ---------- */
.how h2 { text-align: center; max-width: 14em; margin-inline: auto; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: var(--max); margin: 70px auto 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; opacity: .35; transition: opacity .4s ease; }
.step:last-child { min-height: 64vh; }
.step.on { opacity: 1; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lift); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 900; margin-bottom: 20px; }
.step > h3 { font-size: clamp(32px, 3.4vw, 44px); }
.step > p { color: var(--muted); font-size: 19px; margin-top: 14px; }
.step-media { display: none; }
/* The phone always fits between the nav and the bottom of the screen. */
.how-sticky { --ph: min(760px, calc(100vh - 130px)); position: sticky; top: calc(50vh - var(--ph) / 2 + 30px); height: max-content; align-self: start; }
.how-sticky .phone { width: calc(var(--ph) * 0.4813); }
.how-sticky .scr { opacity: 0; transition: opacity .5s ease; }
.how-sticky .scr.on { opacity: 1; }

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .how-sticky { display: none; }
  .step, .step:last-child { min-height: 0; opacity: 1; padding: 50px 0; max-width: none; text-align: center; align-items: center; }
  .step > p { max-width: 30em; }
  .step-media { display: block; margin-top: 40px; width: 100%; }
  .step-media .phone { width: min(300px, 78vw); }
  .step-media .scr { opacity: 1; }
}

/* ---------- Meet your cloud ----------
   Copy and controls on the left, the cloud on the right, so you can drag
   and watch at the same time. Stacked on small screens. */
.meet {
  display: grid; grid-template-columns: 1fr 1.1fr; grid-template-areas: "copy stage" "controls stage";
  column-gap: clamp(32px, 6vw, 90px); align-items: center;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
}
.meet-copy { grid-area: copy; align-self: end; }
.meet .sub { margin-top: 18px; }
.mood-stage { grid-area: stage; text-align: center; }
.mood-controls { grid-area: controls; align-self: start; margin-top: 34px; }
.mood-arc { position: relative; width: min(520px, 92vw); margin-inline: auto; }
.mood-arc .arc-track, .mood-arc .arc-fill { stroke-width: 12; }
.mood-cloud { position: absolute; left: 50%; top: 32%; width: 46%; transform: translateX(-50%); }
.mood-name { font-weight: 900; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; margin-top: 64px; min-height: 1.2em; }
.mood-range { display: block; width: min(460px, 100%); }
.mood-range input { width: 100%; height: 44px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; --p: 78%; --c: #30d158; touch-action: pan-y; }
.mood-range input::-webkit-slider-runnable-track { height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--p), #1f2127 var(--p)); }
.mood-range input::-moz-range-track { height: 14px; border-radius: 99px; background: #1f2127; }
.mood-range input::-moz-range-progress { height: 14px; border-radius: 99px; background: var(--c); }
.mood-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.mood-range input::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.mood-range input:focus-visible { outline: none; }
.mood-range input:focus-visible::-webkit-slider-thumb { outline: 3px solid #fff; outline-offset: 3px; }
.mood-score { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-weight: 700; font-size: 15px; margin-top: 6px; }
.mood-score b { color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: left; }
.mood-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; max-width: 520px; }
.mood-chips button {
  font: inherit; font-size: 14px; font-weight: 800; color: var(--muted);
  padding: 9px 14px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .2s, box-shadow .2s, transform .15s;
}
.mood-chips button:hover { color: var(--text); }
.mood-chips button:active { transform: scale(.95); }
.mood-chips button.on { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--c, #fff); transform: translateY(-1px); }
@media (max-width: 860px) {
  .meet { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "controls"; text-align: center; }
  .meet .sub { margin-inline: auto; }
  .mood-stage { margin-top: 50px; }
  .mood-range { margin-inline: auto; }
  .mood-score, .mood-chips { justify-content: center; margin-inline: auto; }
}

/* ---------- Features ---------- */
.features h2 { max-width: 13em; }
.feat { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; max-width: var(--max); margin: clamp(80px, 11vw, 140px) auto 0; }
.feat.flip .feat-copy { order: 2; }
.feat-copy p { color: var(--muted); font-size: 19px; margin-top: 16px; max-width: 28em; }
.feat-visual { display: flex; justify-content: center; }
.feat-copy, .feat-visual { min-width: 0; }
.stage { position: relative; width: 100%; max-width: 560px; display: flex; justify-content: center; padding: 10px 0; }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; text-align: center; }
  .feat.flip .feat-copy { order: 0; }
  .feat-copy p { margin-inline: auto; }
}

.fl-wk1 { left: 0; top: 10%; }
.fl-wk2 { right: -6%; bottom: 12%; }
.fl-review { left: -4%; bottom: -4%; }
.fl-wnote { right: -10%; top: 60%; }
@media (max-width: 1080px) { .fl-wk2 { right: -2%; } .fl-review { left: -4%; } .fl-wnote { right: -2%; } }
@media (max-width: 560px) {
  .fl-wk1, .fl-wnote { display: none; }
  .fl-wk2 { right: -6px; bottom: 6%; transform: scale(.82); transform-origin: right bottom; }
  .fl-review { left: -6px; bottom: 6%; transform: scale(.82); transform-origin: left bottom; }
}

.day-card { width: 250px; padding: 14px; border-radius: 22px; background: var(--card); }
.dc-day { font-weight: 900; font-size: 15px; margin: 0 0 10px 2px; }
.dc-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.dc-row .tile { width: 36px; height: 36px; border-radius: 11px; }
.dc-row .tile .ms { font-size: 19px; }
.dc-row div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.dc-row b { font-size: 15px; }
.dc-row span:not(.ms):not(.tile) { color: var(--muted); font-size: 12.5px; }

.review-card { width: 260px; padding: 18px; border-radius: 24px; background: var(--card); }
.rv-top { color: var(--muted); font-weight: 800; font-size: 13px; }
.rv-big { font-weight: 900; font-size: 36px; letter-spacing: -0.03em; line-height: 1.1; }
.rv-big span { font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 700; }
.rv-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rv-row .ms { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex: none; }
.rv-row .up { background: color-mix(in srgb, #ffc93c 20%, #141518); color: #ffc93c; }
.rv-row .down { background: color-mix(in srgb, #bf5af2 20%, #141518); color: #bf5af2; }
.rv-row p { font-size: 14px; color: #c4c6cc; line-height: 1.3; }
.rv-row b { display: block; color: var(--text); font-size: 13px; }
.rv-fix { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--lift); }
.rv-fix p { flex: 1; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.rv-fix span { padding: 7px 14px; border-radius: 99px; background: #f3f3f5; color: #0b0d10; font-weight: 900; font-size: 13px; }


/* ---------- Trophies ---------- */
.trophies .sub { margin-top: 18px; }
.medals { list-style: none; padding: 0; margin: 60px auto 0; max-width: var(--max); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.medals li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.medals .medal { --s: 84px; margin-bottom: 18px; transition: transform .35s cubic-bezier(.2,.9,.25,1); }
.medals li:hover .medal { transform: translateY(-6px) rotate(-8deg); }
.medals b { font-size: 17px; }
.medals p { color: var(--muted); font-size: 14.5px; margin-top: 4px; max-width: 16em; }
@media (max-width: 860px) { .medals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); max-width: var(--max); margin-inline: auto; align-items: center; }
.why-day .muted-s { font-size: 18px; font-weight: 700; }
.why-big { font-size: clamp(84px, 9.5vw, 150px); font-weight: 900; letter-spacing: -0.05em; line-height: .95; white-space: nowrap; }
.why-copy > p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 32em; }
.why-list { list-style: none; padding: 0; margin: 30px 0 26px; display: grid; gap: 18px; }
.why-list li { color: var(--muted); font-size: 17px; padding-left: 20px; border-left: 2px solid var(--line-2); max-width: 34em; }
.why-list b { color: var(--text); display: block; font-size: 18px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing .sub { margin-top: 18px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; margin: 54px auto 26px; }
.plan { padding: 30px 28px; border-radius: 32px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan.best { background: #17191d; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.plan-tag { align-self: flex-start; padding: 5px 12px; border-radius: 99px; background: #f3f3f5; color: #0b0d10; font-weight: 900; font-size: 13px; }
.plan-tag.ghost { background: var(--lift); color: var(--muted); }
.plan-name { font-weight: 900; font-size: 22px; margin-top: 18px; }
.plan-price { font-weight: 900; font-size: 46px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.plan-price span { font-size: 18px; color: var(--muted); letter-spacing: 0; font-weight: 700; }
.plan-per { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16px; }
.plan li::before { content: "check"; font-family: "Material Symbols Rounded"; font-variation-settings: "FILL" 1, "wght" 700; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--green) 20%, #141518); color: var(--green); display: grid; place-items: center; font-size: 15px; flex: none; }
.plan .btn { margin-top: auto; }
.pricing .fine { max-width: 40em; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 420px); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-list { margin-top: 40px; display: grid; gap: 10px; }
.faq details { border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-weight: 800; font-size: 19px; position: relative; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "add"; font-family: "Material Symbols Rounded"; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--lift); display: grid; place-items: center; font-size: 20px; transition: transform .3s cubic-bezier(.2,.9,.25,1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); font-size: 17px; max-width: 40em; }

/* ---------- Closing ---------- */
.closing { text-align: center; padding-bottom: clamp(100px, 14vw, 170px); background: radial-gradient(70% 60% at 50% 60%, #151b24 0%, transparent 70%); }
.closing-cloud { width: clamp(160px, 20vw, 230px); margin: 0 auto 30px; }
.closing .sub { margin-top: 16px; margin-bottom: 34px; }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding: 30px var(--gutter) 40px; border-top: 1px solid var(--line); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot nav a, .foot p { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.foot nav a:hover { color: var(--text); }
.foot .brand img { width: 28px; }
@media (max-width: 560px) { .foot nav { margin-left: 0; } }

/* ---------- Scroll reveals ----------
   Only when <html> has .js-reveal (set in <head> unless the visitor asked
   for less motion). site.js marks each element with the kind of entrance it
   gets and a delay (--d), adds .revealed when it scrolls into view, then
   takes the marks off again so hover effects work as before. The moves use
   translate / scale / rotate, which stack on top of any transform the
   element already has (the phone tilt, card hovers). */
.js-reveal [data-reveal]:not([data-reveal="words"]) {
  opacity: 0;
  transition:
    opacity .8s ease var(--d, 0s),
    translate 1.1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s),
    scale 1.1s cubic-bezier(.2, .9, .3, 1.2) var(--d, 0s),
    rotate 1.2s cubic-bezier(.16, 1, .3, 1) var(--d, 0s),
    filter 1s ease var(--d, 0s),
    transform .25s cubic-bezier(.2, .9, .25, 1), box-shadow .25s ease, background .3s ease;
}
/* Text and cards come into focus as they rise (phones and floating cards
   skip the blur: it's costly on big layers). */
.js-reveal [data-reveal="rise"] { translate: 0 64px; filter: blur(10px); }
.js-reveal [data-reveal="pop"] { translate: 0 48px; scale: .86; filter: blur(8px); }
.js-reveal [data-reveal="left"] { filter: blur(8px); }
.js-reveal [data-reveal="phone"] { translate: 0 90px; }
.js-reveal [data-reveal="float"] { scale: .55; }
.js-reveal [data-reveal="left"] { translate: -48px 0; }
.js-reveal [data-reveal="drop"] { translate: 0 -60px; scale: .7; }
.js-reveal [data-reveal="spin"] { scale: .4; rotate: y 200deg; }
.js-reveal [data-reveal].revealed { opacity: 1; translate: none; scale: none; rotate: none; filter: none; }

/* Headings: each word slides up from behind its own mask. */
.js-reveal .rw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin: 0 -.02em -.14em; }
.js-reveal .rw > span { display: inline-block; translate: 0 112%; rotate: 5deg; filter: blur(6px); transition: translate 1.1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), rotate 1.1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), filter .9s ease var(--d, 0s); }
.js-reveal .revealed .rw > span { translate: none; rotate: none; filter: none; }

/* A soft light rises behind each feature phone as it arrives, like the
   light at the top of the app's Home. */
.stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; z-index: -1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(70, 90, 120, .28), rgba(31, 39, 48, .12) 55%, transparent);
  opacity: 0; scale: .7; transition: opacity 1.6s ease .2s, scale 1.8s cubic-bezier(.16, 1, .3, 1) .2s;
}
.stage.lit::before { opacity: 1; scale: 1; }
.stage { isolation: isolate; }

/* Inside a phone, once it has landed (.shown stays on): the week's tiles,
   the promise cards and the home-screen widgets build themselves. */
.js-reveal .scr-week .wk-day .tile { scale: 0; transition: scale .6s cubic-bezier(.2, .9, .3, 1.35) var(--d2, 0s); }
.js-reveal .scr-promises .pcard, .js-reveal .scr-promises .talk { opacity: 0; translate: 0 30px; transition: opacity .6s ease var(--d2, 0s), translate .9s cubic-bezier(.16, 1, .3, 1) var(--d2, 0s); }
.js-reveal .scr-springboard .wgt, .js-reveal .scr-springboard .app { opacity: 0; scale: .6; transition: opacity .5s ease var(--d2, 0s), scale .8s cubic-bezier(.2, .9, .3, 1.3) var(--d2, 0s); }
.js-reveal .shown .scr-week .wk-day .tile,
.js-reveal .shown .scr-springboard .wgt, .js-reveal .shown .scr-springboard .app { scale: none; opacity: 1; }
.js-reveal .shown .scr-promises .pcard, .js-reveal .shown .scr-promises .talk { opacity: 1; translate: none; }
