/* Trim website. Tokens mirror trim-ios/Trim/Theme/Colors.swift. Never write a colour literal below the token blocks. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --frame: #E9E9E4;
  --fg: #121214;
  --body: #2A2A2E;
  --mfg: #5E5E66;
  --line: #E3E3DE;
  --dash: #B9B9B2;
  --sep: rgba(60, 60, 67, 0.18);
  --fill: rgba(118, 118, 128, 0.12);
  --primary: #121214;
  --onprimary: #F6F6F3;
  --slab: #121214;
  --onslab: #FAFAFA;
  --slab-mfg: #A3A3AE;
  --e1: #FF7A59;
  --e2: #FFB020;
  --e3: #3BA4F5;
  --e4: #2FBF8A;
  --e5: #9B7BFF;
  --onentry: #121214;
  --good: #1E7F5C;
  --ongood: #FFFFFF;
  --lock: #1B1B1F;
  --onlock: #FAFAFA;
  --lock-mfg: #A3A3AE;
  --live: #4FD6A2;
  --shadow: rgba(18, 18, 20, 0.14);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --page: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 140px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F0F11;
    --surface: #1B1B1F;
    --frame: #2A2A30;
    --fg: #FAFAFA;
    --body: #D4D4DA;
    --mfg: #A3A3AE;
    --line: rgba(255, 255, 255, 0.08);
    --dash: #5A5A5F;
    --sep: rgba(84, 84, 88, 0.6);
    --fill: rgba(118, 118, 128, 0.24);
    --primary: #FAFAFA;
    --onprimary: #0F0F11;
    --slab: #1B1B1F;
    --e1: #FF8F70;
    --e2: #FFC14D;
    --e3: #6BC4FF;
    --e4: #4FD6A2;
    --e5: #B49CFF;
    --good: #4FD6A2;
    --ongood: #0F0F11;
    --lock: #232328;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0F11;
  --surface: #1B1B1F;
  --frame: #2A2A30;
  --fg: #FAFAFA;
  --body: #D4D4DA;
  --mfg: #A3A3AE;
  --line: rgba(255, 255, 255, 0.08);
  --dash: #5A5A5F;
  --sep: rgba(84, 84, 88, 0.6);
  --fill: rgba(118, 118, 128, 0.24);
  --primary: #FAFAFA;
  --onprimary: #0F0F11;
  --slab: #1B1B1F;
  --e1: #FF8F70;
  --e2: #FFC14D;
  --e3: #6BC4FF;
  --e4: #4FD6A2;
  --e5: #B49CFF;
  --good: #4FD6A2;
  --ongood: #0F0F11;
  --lock: #232328;
  --shadow: rgba(0, 0, 0, 0.5);
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--e3); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display {
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(40px, 5.4vw, 76px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--onprimary);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.small { min-height: 44px; padding: 0 20px; font-size: 16px; }

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand svg { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 28px; flex: 1; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--fg); }
.site-nav a:hover { color: var(--mfg); }
.site-header .button { margin-left: auto; }
@media (max-width: 640px) { .site-nav { display: none; } }

/* Hero */

.hero-scene { position: relative; }
.hero-stage { position: relative; }
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: clamp(28px, 5vw, 56px);
  max-width: 760px;
}
.hero-copy h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-copy .aside { font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 500; color: var(--mfg); }
.hero-copy .button { align-self: flex-start; margin-top: 10px; }

.giant {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  margin-top: 24px;
}
.giant text {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
}
/* Variable glyphs overlap their own contours (a 9 is a bowl plus a tail). Stroke first, then fill with the page
   colour so only the outer edge shows; the stroke is doubled because the fill covers its inner half. */
.giant .outline { fill: var(--bg); stroke: var(--dash); stroke-width: 7; stroke-dasharray: 16 12; paint-order: stroke; }
.giant .block {
  transform-box: fill-box;
  transform-origin: left center;
}
/* Finale blocks wait unfilled until it scrolls into view. */
.finale .block { transition: transform 520ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.giant .block.pending { transform: scaleX(0); }

.hero-phone {
  width: 340px;
  margin: 32px auto 0;
  position: relative;
  z-index: 2;
}
@media (min-width: 960px) {
  .hero-phone {
    position: absolute;
    top: clamp(28px, 5vw, 56px);
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
    margin: 0;
  }
  .hero-copy { padding-right: 380px; max-width: none; }
  .giant { max-height: min(430px, 46vh); margin-top: 8px; }
}

/* Below 372px the 340px mock scales down whole rather than reflowing. */
@media (max-width: 371px) { .hero-phone { zoom: 0.84; } }

/* Phone mock: the Energy tab. */

.phone {
  background: var(--frame);
  padding: 12px;
  border-radius: 52px;
  box-shadow: 0 30px 60px var(--shadow), 0 2px 6px var(--shadow);
}
.phone-screen {
  background: var(--bg);
  border-radius: 42px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.phone-top { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.phone-top b { font-weight: 700; }
.phone-top span { color: var(--mfg); flex: 1; }
.round {
  width: 36px; height: 36px; border-radius: 18px;
  background: var(--fill);
  display: grid; place-items: center;
}
.round svg { width: 18px; height: 18px; }
.phone-hero { display: flex; align-items: baseline; gap: 8px; padding-top: 6px; }
.phone-hero strong { font-size: 60px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.phone-hero span { white-space: nowrap; font-size: 18px; font-weight: 500; color: var(--mfg); }
.daybar { display: flex; gap: 4px; height: 46px; }
.daybar > span { border-radius: 10px; min-width: 0; }
.daybar .rest { border: 2px dashed var(--dash); }
.daybar-caption { display: flex; justify-content: space-between; font-size: 13px; color: var(--mfg); margin-top: -8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.pill span { color: var(--mfg); font-weight: 500; }
.pill.all { background: var(--fill); border-color: transparent; }
.log { display: flex; flex-direction: column; font-size: 16px; }
.log li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 0.5px solid var(--sep); }
.log li:last-child { border-bottom: 0; }
.log li[hidden] { display: none; }
.log .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.log .label { flex: 1; }
.log time { font-size: 13px; color: var(--mfg); }
.log .kj { font-weight: 600; width: 52px; text-align: right; }
.tabbar {
  align-self: center;
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mfg);
}
.tabbar span { padding: 8px 14px; border-radius: 999px; }
.tabbar .on { background: var(--fill); color: var(--fg); }

/* Day colours */

.c1 { background: var(--e1); } .c2 { background: var(--e2); } .c3 { background: var(--e3); } .c4 { background: var(--e4); } .c5 { background: var(--e5); }
.f1 { fill: var(--e1); } .f2 { fill: var(--e2); } .f3 { fill: var(--e3); } .f4 { fill: var(--e4); } .f5 { fill: var(--e5); }

/* Bloat */

.bloat {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
  padding-block: var(--section);
}
.bloat-intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bloat-intro h2 strong { font-weight: 800; }
.bloat-intro p { font-size: 19px; color: var(--mfg); }
.bloat-art { width: 100%; max-width: 570px; height: auto; color: var(--fg); margin-top: 16px; }
.cut { flex: 1 1 420px; min-width: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.cut li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cut li:last-child { border-bottom: 0; color: var(--fg); }
/* A background line, not a pseudo-element, so a wrapped item is struck on every line. */
.cut s {
  text-decoration: none;
  color: var(--mfg);
  background: linear-gradient(var(--strike), var(--strike)) no-repeat 0 56% / 100% 0.11em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 600ms cubic-bezier(0.6, 0, 0.2, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .js .cut:not(.in-view) s { background-size: 0% 0.11em; }
}
.cut li:nth-child(2) s { transition-delay: 90ms; }
.cut li:nth-child(3) s { transition-delay: 180ms; }
.cut li:nth-child(4) s { transition-delay: 270ms; }
.cut li:nth-child(5) s { transition-delay: 360ms; }

/* What's left */

.left-slab {
  background: var(--slab);
  color: var(--onslab);
  border-radius: 36px;
  padding: clamp(32px, 5vw, 72px) clamp(32px, 5vw, 72px) 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
  overflow: hidden;
}
.left-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; }
.left-grid li { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--strike); padding-top: 20px; }
.left-grid h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.left-grid p { color: var(--slab-mfg); }
.garden {
  margin: 0 calc(-1 * clamp(32px, 5vw, 72px));
  display: block;
  width: calc(100% + 2 * clamp(32px, 5vw, 72px));
  max-width: none;
  height: auto;
  aspect-ratio: 1056 / 150;
  min-height: 110px;
}

/* Tabs */

.inside { padding-top: var(--section); display: flex; flex-direction: column; gap: 32px; }
.tabs { border-radius: 32px; overflow: hidden; }
.tablist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }

.tab {
  appearance: none;
  border: 0;
  margin: 0;
  font: inherit;
  color: var(--onentry);
  text-align: left;
  cursor: pointer;
  padding: 22px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--tab);
  position: relative;
}
.tab strong { font-size: 22px; font-weight: 700; }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 10px;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--onentry);
}
/* Narrow screens: all five tabs stay on one row, centred and condensed. */
@media (max-width: 860px) {
  .tab { padding: 16px 2px 24px; align-items: center; text-align: center; }
  .tab strong { font-size: clamp(13px, 3.7vw, 20px); font-stretch: 80%; letter-spacing: -0.01em; }
  .tab[aria-selected="true"]::after { left: 50%; translate: -50% 0; width: 22px; bottom: 9px; }
}
.panel {
  background: var(--tab);
  color: var(--onentry);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  min-height: 520px;
}
.panel[hidden] { display: none; }
.panel-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel-copy h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.panel-copy p { max-width: 32ch; font-size: 19px; }
.plus-tag { align-self: flex-start; font-size: 14px; font-weight: 700; background: var(--onentry); color: var(--tab); border-radius: 999px; padding: 6px 14px; }
.panel-art { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; color: var(--fg); }
.js .panel:not([hidden]) .panel-art { animation: rise 420ms cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

.t1 { --tab: var(--e1); } .t2 { --tab: var(--e5); } .t3 { --tab: var(--e3); } .t4 { --tab: var(--e4); } .t5 { --tab: var(--e2); }
.s1 { --strike: var(--e1); } .s2 { --strike: var(--e2); } .s3 { --strike: var(--e3); } .s4 { --strike: var(--e4); } .s5 { --strike: var(--e5); }

.card {
  background: var(--bg);
  border-radius: 36px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 48px var(--shadow);
}
.card-head { display: flex; align-items: center; font-size: 15px; }
.card-head span { color: var(--mfg); width: 40px; }
.card-head b { flex: 1; text-align: center; font-size: 16px; }
.card-head i { width: 40px; }
.big { display: flex; align-items: baseline; gap: 8px; }
.big strong { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.big span { font-size: 17px; font-weight: 500; color: var(--mfg); }
.minibar { display: flex; gap: 3px; height: 30px; }
.minibar > span { border-radius: 7px; min-width: 0; }
.minibar .eaten { background: var(--dash); }
.minibar .rest { border: 2px dashed var(--dash); }
.caption { font-size: 13px; color: var(--mfg); }
.items { background: var(--surface); border-radius: 16px; padding: 0 14px; font-size: 15px; }
.items li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 0.5px solid var(--sep); }
.items li:last-child { border-bottom: 0; }
.items .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.items .label { flex: 1; }
.items b { font-weight: 600; }
.cta-inline { background: var(--primary); color: var(--onprimary); border-radius: 999px; min-height: 52px; display: grid; place-items: center; font-size: 17px; font-weight: 600; }

.days { display: flex; flex-direction: column; gap: 10px; }
.day { background: var(--bg); border-radius: 24px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 30px var(--shadow); }
.day:nth-child(1) { opacity: 0.55; transform: scale(0.94); }
.day:nth-child(2) { opacity: 0.8; transform: scale(0.97); }
.day-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.day-top b { font-size: 17px; }
.day-top span { color: var(--mfg); }
.day .minibar { height: 22px; }
.under { color: var(--good); font-weight: 700; }

.lock { background: var(--lock); color: var(--onlock); border-radius: 28px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 48px var(--shadow); }
.lock-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--lock-mfg); }
.lock-top svg { width: 22px; height: 22px; color: var(--onlock); }
.lock-row { display: flex; align-items: center; justify-content: space-between; }
.timer { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.timer .colon { color: var(--live); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.end { background: var(--fill); color: var(--onlock); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
.week { background: var(--bg); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 30px var(--shadow); }
.week-head { display: flex; justify-content: space-between; align-items: baseline; }
.week-head strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.week-head span { color: var(--mfg); font-size: 14px; }
.tracks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 110px; }
.tracks span { background: var(--fill); border-radius: 12px; position: relative; overflow: hidden; }
.tracks i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 12px; }
.tracks .easy { background: var(--easy); } .tracks .mod { background: var(--mod); } .tracks .hard { background: var(--hard); } .tracks .now { background: var(--live); }
.days-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 12px; color: var(--mfg); }

.chart-card { background: var(--bg); border-radius: 32px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 48px var(--shadow); }
.change { font-size: 15px; color: var(--good); font-weight: 600; }
.chart { width: 100%; height: auto; }
.chart .dots circle { fill: var(--dash); }
.chart .trend { fill: none; stroke: var(--e3); stroke-width: 3; stroke-linecap: round; }
.chart .goal { stroke: var(--good); stroke-width: 2; stroke-dasharray: 6 6; }
.chart text { fill: var(--mfg); font: 500 12px var(--display); }

.notif { background: var(--surface); border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 36px var(--shadow); font-size: 15px; }
.notif-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mfg); }
.notif-top img { width: 20px; height: 20px; border-radius: 5px; }
.notif-top span { flex: 1; }
.notif-action { margin-top: 6px; background: var(--fill); border-radius: 12px; padding: 10px; text-align: center; font-weight: 600; }
.widgets { display: flex; gap: 14px; }
.widget { background: var(--surface); border-radius: 24px; padding: 16px; aspect-ratio: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 36px var(--shadow); }
.widget strong { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.widget span { color: var(--mfg); font-size: 13px; }
.widget .minibar { height: 12px; gap: 2px; }
.widget .minibar > span { border-radius: 4px; }
.ring { width: 70px; height: 70px; }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--fill); }
.ring .val { stroke: var(--e4); stroke-linecap: round; }

/* Pricing */

.pricing { padding-top: var(--section); display: flex; flex-direction: column; gap: 40px; }
.pricing-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.pricing-head h2 { flex: 1 1 520px; }
.pricing-head p { flex: 1 1 340px; font-size: 19px; color: var(--body); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.plan { border-radius: 32px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.plan.free { background: var(--surface); border: 1px solid var(--line); }
.plan.plus { background: var(--e5); color: var(--onentry); }
.plan h3 { font-size: 26px; font-weight: 700; }
.plan-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.badge { font-size: 14px; font-weight: 700; letter-spacing: 0; background: var(--onentry); color: var(--e5); border-radius: 999px; padding: 5px 12px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.price strong { font-size: clamp(72px, 8vw, 96px); line-height: 0.9; font-weight: 800; font-stretch: 80%; letter-spacing: -0.04em; }
.price span { font-size: 18px; font-weight: 500; }
.plan ul { display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.plan li { display: flex; gap: 12px; }
.plan li::before { content: "✓"; font-weight: 700; color: var(--good); }
.plan.plus li::before { content: "+"; color: inherit; }

/* Privacy */

.privacy { padding-top: var(--section); display: flex; flex-direction: column; gap: 40px; }
.privacy h2 { max-width: 16ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.facts li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--fg); padding-top: 18px; }
.facts h3 { font-size: 21px; font-weight: 700; }
.facts p { color: var(--body); font-size: 16px; }
.facts a { color: var(--fg); }

/* Finale */

.finale { padding-block: var(--section) 64px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.finale .giant { margin-top: 0; }
/* The finale's outline only shows while its blocks wait to fill. */
.finale .outline { opacity: 0; transition: opacity 400ms ease 500ms; }
.finale .giant.waiting .outline { opacity: 1; transition: none; }
.finale p { font-size: 22px; line-height: 1.4; font-weight: 500; color: var(--mfg); }

/* Footer */

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--mfg);
}
.site-footer .brand { font-size: 16px; color: var(--fg); }
.site-footer .brand svg { width: 20px; height: 20px; }
.site-footer .spacer { flex: 1; }
.site-footer a { color: var(--mfg); }

/* Legal pages */

.doc { max-width: 720px; padding-block: 56px 96px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; font-weight: 800; font-stretch: 85%; letter-spacing: -0.035em; }
.doc h2 { font-size: 26px; letter-spacing: -0.015em; margin-top: 20px; }
.doc p, .doc li { color: var(--body); }
.doc ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .updated { color: var(--mfg); }

/* Gym effort blues */
:root { --easy: #B9DDF8; --mod: #6BB6F0; --hard: #2A86D9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --easy: #2A4A63; --mod: #3D7FB5; --hard: #6BC4FF; } }
:root[data-theme="dark"] { --easy: #2A4A63; --mod: #3D7FB5; --hard: #6BC4FF; }

/* Scroll scene: wide screens with motion only. The hero pins while the day plays out. */

@media (min-width: 960px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .hero-scene { height: 300vh; }
  .hero-stage { position: sticky; top: 0; min-height: 100vh; }
  .hero-phone { transform: translateY(calc(var(--rise, 1) * 60px)); }
  /* The scrubbed hero starts at breakfast, not the static midday state: hold it until the script has drawn. */
  .js .hero-scene:not(.ready) :is(.giant-frame, .hero-phone) { opacity: 0; }
  .js .hero-scene :is(.giant-frame, .hero-phone) { transition: opacity 300ms ease; }
}

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