/* Fluffy: tokens from the app's own design kit */
:root {
  --bg: #F8F3E6;
  --surface: #FFFCF5;
  --surface2: #EFEADC;
  --ink: #1C302A;
  --muted: #55665E;
  --away: #C2603F;
  --away-bg: #F6E6D9;
  --night: #0A1923;
  --night-ink: #F4F1E8;

  --primary: #5F8A66;
  --button: #55725E;
  --chip: #E2E5D3;
  --on-button: #FFFCF5;

  --sky: #F8EBD8;

  --f-text: "Nunito", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --t-xs: 14px;
  --t-s: 17px;
  --t-m: 22px;
  --t-l: clamp(32px, 2.9vw, 44px);
  --t-xl: clamp(44px, 4.8vw, 76px);

  --edge: 12px;
  --pad: clamp(24px, 4.4vw, 72px);
  --radius: 20px;
  --gap: clamp(120px, 14vw, 200px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121E20;
    --surface: #1A2729;
    --surface2: #24332F;
    --ink: #F4F1E8;
    --muted: #A9B6B0;
    --away: #FF9F78;
    --away-bg: #233735;
    --primary: #95C297;
    --button: #5E8A68;
    --chip: #2A3D37;
    --on-button: #FFFCF5;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-s)/1.55 var(--f-text);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--chip); color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; }
.skip:focus { top: var(--edge); }
.hand { font-family: var(--f-hand); font-weight: 500; }

h1 { font-size: clamp(40px, 3.9vw, 60px); line-height: 1; letter-spacing: -.03em; font-weight: 800; }
h1 span { display: block; }
h2 { font-size: var(--t-l); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: var(--t-m); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }

/* buttons: one shape, fully round */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--button); color: var(--on-button);
  font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease), background-color .25s ease;
}
.btn-small { min-height: 44px; padding: 0 20px; font-size: var(--t-xs); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active, .store:active { transform: scale(.96); }

/* ---------- the split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "top stage" "hero stage" "try stage" "get stage" "main stage";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: var(--edge);
  padding: 0 var(--edge);
}
.top {
  grid-area: top;
  display: flex; align-items: center; gap: 28px;
  padding: 28px calc(var(--pad) - var(--edge)) 0;
  font-size: var(--t-xs); font-weight: 600;
}
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { text-decoration: none; padding: 10px 0; }
.top nav a:hover { color: var(--primary); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: var(--t-m); font-weight: 800; letter-spacing: -.02em; }
.wordmark img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--chip); }

.main { display: contents; }
.hero { grid-area: hero; }
.tryit { grid-area: try; }
.hero-get { grid-area: get; }
.hero, .tryit, .hero-get { max-width: calc(34rem + var(--pad) * 2); padding-left: calc(var(--pad) - var(--edge)); padding-right: calc(var(--pad) - var(--edge)); }
.column { grid-area: main; padding: var(--gap) calc(var(--pad) - var(--edge)) var(--gap); }
.column > section { max-width: 34rem; }
.column > section + section { margin-top: var(--gap); }
.column h2 + p { margin-top: 20px; }

/* stage: Fluffy on a phone, held still in front of the trail */
.stage {
  grid-area: stage;
  position: sticky; top: var(--edge);
  height: calc(100svh - var(--edge) * 2);
  margin-top: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky);
  isolation: isolate;
}
.land {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 100%;
  opacity: 0; transition: opacity 1.6s ease;
  animation: drift 26s ease-in-out infinite alternate;
  transform-origin: 50% 80%;
}
.land.is-on { opacity: 1; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.04); } }

.phone {
  position: absolute; z-index: 2; left: 38%; top: 36px; bottom: 96px;
  aspect-ratio: 410 / 865; max-width: calc(100% - 48px);
  padding: 10px; border-radius: 54px; background: #10191B;
  transform: translateX(-50%);
  animation: rise 1.1s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 40px); } }
/* the wallpaper phone: smaller, behind, a little turned, so the app stays the lead */
.phone-lock {
  z-index: 1; left: 76%; top: 140px; bottom: 168px;
  transform: translateX(-50%) rotate(5deg);
  animation: rise-lock 1.3s var(--ease) .15s both;
}
@keyframes rise-lock { from { opacity: 0; transform: translate(-50%, 60px) rotate(0deg); } }
@keyframes rise-lock-m { from { opacity: 0; transform: translateY(60px); } }
@keyframes rise-m { from { opacity: 0; transform: translateY(40px); } }
.phone::before {
  content: ""; position: absolute; z-index: 9; top: 24px; left: 50%;
  width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #05090A;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #F8F3E6; }

/* the app at its real size (390 x 845), scaled to the phone by app.js */
.app {
  --bg: #F8F3E6; --surface: #FFFCF5; --surface2: #EFEADC; --ink: #1C302A; --muted: #637169;
  --primary: #5F8A66; --button: #55725E; --chip: #E2E5D3; --away: #C2603F; --away-bg: #F6E6D9;
  position: absolute; top: 0; left: 0; width: 390px; height: 845px;
  transform-origin: 0 0; transform: scale(var(--s, 1));
  background: var(--bg); color: var(--ink);
  transition: background-color .6s ease, color .6s ease;
}
.stage[data-night="true"] .app {
  --bg: #121E20; --surface: #1A2729; --surface2: #24332F; --ink: #F4F1E8; --muted: #A9B6B0;
  --primary: #95C297; --button: #5E8A68; --chip: #2A3D37; --away: #FF9F78; --away-bg: #233735;
}
.stage[data-night="true"] .phone-screen { background: #121E20; }
.stage[data-night="true"] .phone { background: #3A4744; }
[data-ui] .status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 12px 30px 0 34px; font-size: 15px; font-weight: 700; }
[data-ui] .status-icons { display: flex; gap: 5px; align-items: center; }
[data-ui] .status-icons i { display: block; width: 15px; height: 10px; border-radius: 3px; background: currentColor; opacity: .85; }
[data-ui] .status-icons i:first-child { width: 4px; height: 10px; border-radius: 1px; box-shadow: -6px 3px 0 -1px currentColor; margin-left: 6px; }
[data-ui] .status-icons i:last-child { width: 24px; height: 12px; }
[data-ui] .app-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 0; }
[data-ui] .app-head p { font-size: 23px; font-weight: 600; }
[data-ui] .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--chip); color: var(--primary); display: grid; place-items: center; }
[data-ui] .avatar svg { width: 22px; height: 22px; }
[data-ui] .ring { position: relative; width: 184px; height: 184px; margin: 14px auto 0; }
[data-ui] .ring svg { width: 100%; height: 100%; overflow: visible; }
[data-ui] .ring circle { fill: none; stroke-width: 11; }
[data-ui] .ring-track { stroke: var(--chip); }
[data-ui] .ring-arc { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 0 100; transform: rotate(90deg); transform-origin: 50% 50%; transition: stroke-dasharray 1.1s var(--ease), stroke .6s ease; }
[data-ui] .ring-dot { fill: var(--bg) !important; stroke: var(--primary); stroke-width: 4 !important; }
[data-ui] .ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
[data-ui] .ring-text small { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
[data-ui] .ring-text small:last-child { letter-spacing: 0; font-size: 13px; font-weight: 600; }
[data-ui] .ring-text b { font-size: 50px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
[data-ui] .ring-text i { font-style: normal; font-size: 18px; color: var(--muted); margin-left: 3px; }
[data-ui] .app-label { font-size: 15px; font-weight: 700; padding: 10px 24px 0; }
[data-ui] #miniChart { display: block; width: calc(100% - 36px); margin: 2px 14px 0 22px; }
[data-ui].app .tags { justify-content: center; margin-top: 4px; position: relative; z-index: 2; }

[data-ui] .scene { position: absolute; left: 0; right: 0; bottom: 0; }
[data-ui] .ground { position: relative; aspect-ratio: 1315 / 1196; }
[data-ui] .scene-land {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity .5s ease;
  -webkit-mask-image: linear-gradient(transparent, #000 16%); /* taste-skill-ignore: melts the painting into the app */
          mask-image: linear-gradient(transparent, #000 16%); /* taste-skill-ignore */
}
[data-ui] .scene-next { opacity: 0; }
/* while the year slider is in use it drives every blend itself, frame by frame */
.stage.scrub .land, .stage.scrub [data-ui] .scene-land, .stage.scrub [data-ui] .lock, .stage.scrub .app { transition: none; }
[data-ui] .buddy { position: absolute; left: 30%; bottom: 36%; height: 46%; margin: 0; transform: translateX(-50%); z-index: 2; }
[data-ui] .buddy img {
  height: 100%; width: auto; max-width: none;
  transform-origin: 50% 100%;
  animation: breathe 4.2s ease-in-out infinite;
  transition: opacity .35s ease, transform .5s var(--ease);
}
[data-ui] .buddy img.swap { opacity: 0; transform: translateY(10px) scale(.96); animation: none; }
@keyframes breathe { 50% { transform: scaleY(1.018) scaleX(.992); } }
[data-ui] .sign {
  position: absolute; left: 82%; bottom: 25%; height: 24%;
  aspect-ratio: 295 / 420; transform: translateX(-50%) rotate(-3deg);
  container-type: size; z-index: 1;
}
[data-ui] .sign img { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ui] .sign-night { opacity: 0; }
[data-ui] .sign-text {
  position: absolute; left: 6%; right: 6%; top: 10%; height: 36%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #4A2E1A; font-weight: 800; line-height: 1.05; text-align: center; font-size: 9cqh;
}
[data-ui] .sign-text b { font-size: 11cqh; letter-spacing: .02em; }
[data-ui] .say {
  position: absolute; left: 50%; top: 13%; z-index: 3;
  font-family: var(--f-hand); font-weight: 500; font-size: 25px; line-height: 1;
  color: #2E4A3A; transform: rotate(-6deg);
}
[data-ui] .say span { display: inline-block; transition: opacity .3s ease, transform .5s var(--ease); }
[data-ui] .say span::after { content: " \2661"; font-size: .7em; }
[data-ui] .say.swap span { opacity: 0; transform: translateY(8px); }
.stage[data-night="true"] .say { color: #F4F1E8; }
.stage[data-night="true"] .sign-day { opacity: 0; }
.stage[data-night="true"] .sign-night { opacity: 1; }
.stage[data-night="true"] .sign-text { color: #3A2414; }

/* the living wallpaper on the lock screen: the same scene, never a number */
[data-ui] .lock {
  position: absolute; inset: 0; z-index: 8; background: var(--sky-now, #F8EBD8);
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s, background-color 1.6s ease;
}
[data-ui].lockapp .lock { opacity: 1; visibility: visible; z-index: 1; }
[data-ui].lockapp .status { position: relative; z-index: 2; }
[data-ui] .lock .ground { position: absolute; left: 0; right: 0; bottom: 0; }
[data-ui] .lock .buddy { height: 48%; bottom: 33%; }
[data-ui] .lock .say { color: #5F8A66; font-size: 28px; top: 0; left: auto; right: 6%; max-width: 44%; text-align: right; line-height: 1.05; transform: none; }
.stage[data-night="true"] [data-ui] .lock .say { color: #95C297; }
[data-ui] .lock .sign-text b { font-size: 15cqh; }
[data-ui] .lock-time { position: absolute; top: 92px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; color: #1C302A; }
.stage[data-night="true"] [data-ui] .lock-time { color: #F4F1E8; }
[data-ui] .lock-time span { font-size: 92px; font-weight: 400; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
[data-ui] .lock-time small { font-size: 17px; font-weight: 600; margin-top: 6px; }

[data-ui] .plus {
  position: absolute; z-index: 4; left: 50%; bottom: 30px; width: 70px; height: 70px; margin-left: -35px;
  border: 0; border-radius: 50%; background: var(--button); color: #FFFCF5;
  display: grid; place-items: center;
  transition: transform .25s var(--ease), background-color .6s ease;
  animation: nudge 3.2s ease-in-out 2s 2;
}
[data-ui] .plus svg { width: 30px; height: 30px; }
[data-ui] .plus:hover { transform: scale(1.06); }
[data-ui] .plus:active { transform: scale(.92); }
@keyframes nudge { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.12); } 90% { transform: scale(.98); } }
[data-ui] .toast {
  position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 116px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px 6px 18px; border-radius: 16px;
  background: #1C302A; color: #F4F1E8; font-size: 16px; font-weight: 600;
  animation: pop .45s var(--ease);
}
[data-ui] .toast[hidden] { display: none; }
[data-ui] .toast button { border: 0; background: none; color: #95C297; font-weight: 700; font-size: 16px; padding: 12px 14px; border-radius: 12px; }
[data-ui] .toast button:hover { background: rgba(255, 255, 255, .08); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
[data-ui] .scrim { position: absolute; inset: 0; z-index: 6; background: rgba(16, 24, 26, .38); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
[data-ui] .scrim.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
[data-ui] .logsheet {
  position: absolute; z-index: 7; left: 0; right: 0; bottom: 0;
  padding: 10px 22px 30px; border-radius: 30px 30px 0 0; background: var(--surface);
  transform: translateY(102%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
}
[data-ui] .logsheet.open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
[data-ui] .handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--surface2); margin: 0 auto 10px; }
[data-ui] .sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 700; }
[data-ui] .close { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-right: -10px; }
[data-ui] .close:hover { background: var(--surface2); }
[data-ui] .close svg { width: 22px; height: 22px; }
[data-ui] .readout { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 10px; font-weight: 700; }
[data-ui] .readout span { font-size: 66px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
[data-ui] .readout span:empty::before { content: "0"; color: var(--muted); }
[data-ui] .readout small { font-size: 22px; color: var(--muted); }
[data-ui] .last { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
[data-ui] .date { display: block; width: fit-content; margin: 10px auto 0; padding: 7px 14px; border-radius: 999px; background: var(--surface2); font-size: 14px; font-weight: 600; }
[data-ui] .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 10px; }
[data-ui] .keys button {
  border: 0; background: transparent; border-radius: 16px; height: 56px;
  font-size: 27px; font-weight: 600; display: grid; place-items: center;
  transition: background-color .15s ease, transform .15s var(--ease);
}
[data-ui] .keys button:hover { background: var(--surface2); }
[data-ui] .keys button:active { background: var(--chip); transform: scale(.94); }
[data-ui] .keys svg { width: 26px; height: 26px; }
[data-ui] .log-btn {
  width: 100%; margin-top: 12px; min-height: 56px; border: 0; border-radius: 999px;
  background: var(--button); color: #FFFCF5; font-weight: 700; font-size: 17px;
  transition: transform .2s var(--ease), opacity .2s ease;
}
[data-ui] .log-btn:active { transform: scale(.97); }
[data-ui] .log-btn:disabled { opacity: .45; cursor: default; }

.bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  min-height: 60px; padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface);
  font-size: var(--t-xs); font-weight: 700;
}
.seg { display: flex; gap: 2px; }
.bar button {
  border: 0; background: transparent; border-radius: 999px;
  min-height: 44px; padding: 0 14px; color: var(--muted);
  transition: background-color .25s ease, color .25s ease, transform .2s var(--ease);
}
.bar button:hover { color: var(--ink); }
.bar button:active { transform: scale(.95); }
.bar button[aria-pressed="true"] { background: var(--chip); color: var(--ink); }
.night-toggle[aria-pressed="true"] { background: var(--night) !important; color: var(--night-ink) !important; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(32px, 6vh, 88px); }
.hero .lead { margin-top: 22px; max-width: 40ch; font-size: var(--t-m); line-height: 1.45; }
.facts { margin-top: 20px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }

/* the two controls that drive the phone */
.tryit { margin-top: 28px; display: grid; gap: 16px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick button {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 16px 8px 8px;
  border: 0; border-radius: 999px; background: var(--surface2); text-align: left;
  transition: background-color .25s ease, transform .2s var(--ease);
}
.pick button:hover { background: var(--chip); }
.pick button:active { transform: scale(.97); }
.pick button[aria-pressed="true"] { background: var(--button); color: var(--on-button); }
.pick img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--surface); flex: none; transition: transform .4s var(--ease); }
.pick button:hover img { transform: rotate(-6deg) scale(1.05); }
.pick span { display: flex; flex-direction: column; font-weight: 800; line-height: 1.2; }
.pick small { font-size: var(--t-xs); font-weight: 600; opacity: .85; }
.weigh label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.weigh output { font-size: var(--t-m); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.weigh p { margin-top: 0; font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.weigh input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.weigh input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: var(--chip); }
.weigh input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--chip); }
.weigh input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%;
  background: var(--button); border: 5px solid var(--bg); transition: transform .2s var(--ease);
}
.weigh input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--button); border: 5px solid var(--bg); }
.weigh input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.weigh input[type="range"]:focus-visible { outline: none; }
.weigh input[type="range"]:focus-visible::-webkit-slider-thumb { border-color: var(--ink); }
.weigh input[type="range"]:focus-visible::-moz-range-thumb { border-color: var(--ink); }

.year { margin-top: 36px; }
.year-facts { margin-top: 40px; display: grid; gap: 4px; }
.year-facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; }
.year-facts dt { font-size: var(--t-m); font-weight: 400; }
.year-facts dd { font-size: var(--t-xs); color: var(--muted); font-weight: 600; align-self: center; }
.year-ticks { display: flex; justify-content: space-between; font-size: var(--t-xs); font-weight: 600; color: var(--muted); }

.hero-get .stores { margin-top: 24px; }
.stores { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 26px 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  font-weight: 800; font-size: var(--t-s); line-height: 1.05;
  transition: transform .2s var(--ease), background-color .25s ease;
}
.store:hover { background: var(--button); color: var(--on-button); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: var(--t-xs); font-weight: 600; opacity: .85; }
.store-note { flex-basis: 100%; min-height: 1.5em; font-size: var(--t-xs); font-weight: 600; color: var(--muted); }

/* ---------- reacts: four light rows ---------- */
.moods { margin-top: 36px; display: flex; flex-direction: column; gap: 4px; }
.moods button {
  display: grid; grid-template-columns: 56px 9.5rem 1fr; align-items: center; gap: 16px;
  border: 0; border-radius: var(--radius); background: transparent; padding: 8px 16px 8px 8px; text-align: left;
  transition: background-color .25s ease;
}
.moods button:hover { background: var(--surface2); }
.moods button[aria-pressed="true"] { background: var(--chip); }
.moods img { width: 56px; height: 56px; object-fit: contain; object-position: 50% 100%; transition: transform .4s var(--ease); }
.moods button:hover img, .moods button[aria-pressed="true"] img { transform: translateY(-3px) rotate(-4deg); }
.m-name { font-size: var(--t-m); font-weight: 400; letter-spacing: -.01em; }
.m-desc { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
@media (max-width: 480px) {
  .moods button { grid-template-columns: 48px 1fr; row-gap: 0; }
  .moods img { grid-row: span 2; width: 48px; height: 48px; }
}

/* ---------- log: the real screens ---------- */
.log-shots { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 30rem; }
.log-shots img { width: 100%; height: auto; border-radius: var(--radius); background: var(--surface2); }
.js .log-shots img.rv.in:nth-child(2) { transform: translateY(40px); }
.log-shots img:nth-child(2) { transform: translateY(40px); }

/* ---------- trend chart ---------- */
.trend .chart-card { margin-top: 40px; }
[data-ui].chart-card { background: var(--surface); border-radius: 24px; padding: 20px 18px 18px; max-width: 460px; }
[data-ui] .chart-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
[data-ui] .unit-seg { display: flex; background: var(--surface2); border-radius: 999px; padding: 3px; }
[data-ui] .unit-seg button { border: 0; background: transparent; border-radius: 999px; min-width: 52px; min-height: 36px; font-size: 14px; font-weight: 700; color: var(--muted); }
[data-ui] .unit-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
[data-ui] #chart { width: 100%; height: auto; margin-top: 10px; }
[data-ui] .chart { overflow: visible; }
[data-ui] .chart text { font: 600 10px var(--f-text); fill: var(--muted); }
[data-ui] .chart .grid { stroke: var(--surface2); stroke-width: 1; }
[data-ui] .chart .area { fill: var(--primary); opacity: .1; }
[data-ui] .chart .avg { fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .7; }
[data-ui] .chart .line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
[data-ui] .chart .dot { fill: var(--primary); }
[data-ui] .chart .last { fill: var(--surface); stroke: var(--primary); stroke-width: 2.4; }
[data-ui] .chart .flag rect { fill: var(--chip); }
[data-ui] .chart .flag text { fill: var(--ink); font-weight: 700; font-size: 11px; }
[data-ui] .chart .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
[data-ui] .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
[data-ui] .tag { background: var(--chip); color: color-mix(in srgb, var(--primary) 62%, var(--ink)); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
[data-ui] .tag.away { background: var(--away-bg); color: color-mix(in srgb, var(--away) 75%, var(--ink)); }
[data-ui] .tag small { font-weight: 600; color: var(--muted); font-size: 13px; }

/* ---------- privacy letter on the night trail ---------- */
.privacy {
  position: relative; margin: var(--edge) var(--edge) 0; border-radius: var(--radius); overflow: hidden;
  background: var(--night); color: var(--night-ink);
  padding: 140px var(--pad);
}
.letter { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.letter h2 { margin-bottom: 36px; max-width: 16ch; }
.letter .portrait { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; background: #24332F; margin-bottom: 24px; }
.letter p + p { margin-top: 1.1em; }
.letter mark { background: #2A3D37; color: #F4F1E8; padding: 0 .2em; border-radius: 4px; }
.sign-off { display: flex; flex-direction: column; margin-top: 32px !important; }
.sign-off .hand { font-size: var(--t-l); line-height: 1; color: #95C297; }
.sign-off small { font-size: var(--t-xs); color: #A9B6B0; margin-top: 6px; }
.sign-off a { color: #F4F1E8; }

/* ---------- get: accent field with the first screen open ---------- */
.get {
  margin: var(--edge) var(--edge) 0; border-radius: var(--radius);
  min-height: 90svh; padding: var(--pad);
  background: var(--chip); color: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: end;
}
.get-copy h2 { font-size: var(--t-xl); line-height: .95; letter-spacing: -.035em; max-width: 8ch; }
.get-copy > p { margin-top: 28px; max-width: 38ch; font-size: var(--t-s); }
.get .store { background: var(--ink); color: var(--bg); }
.get .store:hover { background: var(--button); color: var(--on-button); }

.get-buddy { justify-self: center; align-self: end; margin: 0; height: min(72svh, 640px); }
.get-buddy img { height: 100%; width: auto; transform-origin: 50% 100%; animation: breathe 4.2s ease-in-out infinite; }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px;
  padding: 140px calc(var(--pad)) 30px;
  font-size: var(--t-xs); color: var(--muted);
}
.foot nav { display: flex; gap: 24px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--primary); }
.foot p:last-child { text-align: right; }

/* ---------- desktop: the split moves one screen at a time ---------- */
@media (min-width: 901px) {
  html.snap { scroll-snap-type: y mandatory; }
  .top, .privacy, .get { scroll-snap-align: start; }
  .foot { scroll-snap-align: end; }
  .column { padding-top: 0; padding-bottom: 0; }
  .column > section {
    min-height: 100svh; margin-top: 0 !important; padding: 64px 0;
    display: flex; flex-direction: column; justify-content: center;
    scroll-snap-align: start;
  }
  .column > section > * { flex: none; }
}

/* ---------- entrances ---------- */
.js .rv { opacity: 0; transform: translateY(24px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  [data-ui] .logsheet:not(.open), [data-ui] .scrim:not(.open) { display: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .top nav { display: none; }
  .get { grid-template-columns: 1fr; align-items: start; }
  .get-buddy { height: min(56svh, 480px); }
}

/* ---------- phone: headline, then the phone, then the column slides over it ---------- */
@media (max-width: 900px) {
  :root { --pad: 24px; --gap: 112px; }
  .split { grid-template-columns: 1fr; grid-template-areas: "top" "hero" "get" "stage" "try" "main"; grid-template-rows: auto; padding: 0; }
  .top { padding: 16px 16px 12px; position: relative; z-index: 3; background: var(--bg); }
  .hero { padding: 28px var(--pad) 0; max-width: none; }
  .hero-get { padding: 0 var(--pad) 40px; max-width: none; }
  .hero-get .stores { margin-top: 28px; }
  .tryit { padding: 0 var(--pad); margin-top: 28px; max-width: none; }
  .column { padding-top: 96px !important; }
  .stage {
    position: relative; top: 0; margin: 0 var(--edge);
    height: min(92svh, 760px);
  }
  .stage { height: calc((100vw - 24px) * .58 * 865 / 410 + 110px); }
  .phone-main { top: 22px; bottom: auto; left: 2%; right: auto; width: 58%; transform: none; animation-name: rise-m; }
  .phone-lock { top: 76px; bottom: auto; left: auto; right: 3%; width: 43%; transform: rotate(5deg); animation-name: rise-lock-m; }
  .phone { padding: 6px; border-radius: 34px; }
  .phone-screen { border-radius: 28px; }
  .column {
    position: relative; z-index: 2; background: var(--bg);
    padding: var(--gap) var(--pad);
  }
  h1 { font-size: clamp(32px, 8.4vw, 60px); }
  .hero .lead { font-size: 19px; margin-top: 20px; }
  .bar { min-height: 52px; padding: 4px 6px; }
  .bar button { padding: 0 9px; }
  .store { flex: 1 1 220px; }
  .privacy, .get { padding-left: var(--pad); padding-right: var(--pad); }
  .get { min-height: 84svh; padding-top: 72px; padding-bottom: 32px; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding: 96px var(--pad) 24px; }
  .foot nav { flex-wrap: wrap; gap: 8px 20px; }
  .foot p:last-child { text-align: left; }
}

@media (max-width: 480px) {
  .pick small { display: none; }
}

/* ---------- legal pages ---------- */
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px var(--pad); }
.legal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 10vh, 120px) var(--pad) var(--gap);
}
.legal-side { position: sticky; top: 24px; align-self: start; }
.legal-side img { width: min(220px, 60%); height: auto; margin-bottom: 28px; }
.legal-side nav { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.legal-side nav a { text-decoration: none; padding: 6px 0; color: var(--muted); }
.legal-side nav a:hover, .legal-side nav a[aria-current="page"] { color: var(--ink); }
.legal-body { max-width: 68ch; }
.legal-body h1 { max-width: 16ch; }
.legal-body .updated { margin-top: 20px; color: var(--muted); font-size: var(--t-xs); font-weight: 600; }
.legal-body .summary { margin-top: 32px; padding: 28px; border-radius: var(--radius); background: var(--chip); font-size: var(--t-m); line-height: 1.4; }
.legal-body h2 { font-size: var(--t-m); margin-top: 56px; }
.legal-body h2 + p, .legal-body h2 + ul { margin-top: 12px; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 1em; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li + li { margin-top: .4em; }
.legal-body details { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin-top: 10px; }
.legal-body summary { font-weight: 700; cursor: pointer; }
.legal-body details p { margin-top: 10px; }
@media (max-width: 760px) {
  .legal { grid-template-columns: 1fr; }
  .legal-side { position: static; }
  .legal-side img { width: 120px; }
  .legal-side nav { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
}
