/* Cuesa — tokens measured from mobbin.com: ink #141414, muted #717171,
   translucent grey tiles (rgba 64/64/64 @ 6%), 999px pill buttons at 44px,
   a blurred floating pill nav, and a rounded white sheet over an ink footer. */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #717171;
  --tile: rgba(64, 64, 64, 0.06);
  --tile-2: rgba(64, 64, 64, 0.08);
  --line: rgba(65, 65, 65, 0.16);
  --chip: rgba(64, 64, 64, 0.08);
  --btn-dark-bg: #141414;
  --btn-dark-fg: #ffffff;
  --footer-bg: #141414;
  --footer-fg: #ffffff;
  --phone-bg: #111111;
  --haze-a: #d9d4ff;
  --haze-b: #ffd8c7;
  --haze-c: #c9ecf0;
  --glass-fill: rgba(255, 255, 255, 0.5);
  --glass-fill-strong: rgba(255, 255, 255, 0.74);
  --glass-sheen: rgba(255, 255, 255, 0.55);
  --glass-rim-top: rgba(255, 255, 255, 0.95);
  --glass-rim-bottom: rgba(0, 0, 0, 0.05);
  --glass-outline: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 14px 40px rgba(20, 20, 30, 0.12), 0 2px 8px rgba(20, 20, 30, 0.06);
  --glass-blur: blur(20px) saturate(190%) brightness(1.03);
  /* Mascot colours from assets/icons/icon-default.svg */
  --mascot-top: #f9c642;
  --mascot-bottom: #fff2c2;
  --mascot-ink: #18181b;
  --live: #3aa66a;

  --heat-0: #e6e6e6;
  --heat-1: #c9c9c9;
  --heat-2: #8f8f8f;
  --heat-3: #4a4a4a;
  --heat-4: #141414;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-sheet: 32px;
  --r-card: 32px;   /* every large surface: hero panel, section stages, focus card */
  --r-nested: 20px; /* surfaces set inside a card */

  /* Spacing — Apple's 8pt grid, grouped by proximity: a label sits 16 from
     what it names, supporting text 24, a new group 32, a big step inside a
     section 64, and sections 160 apart (96 on phones). */
  --space-label: 16px;
  --space-support: 24px;
  --space-group: 32px;
  --space-step: 64px;
  --space-section: 160px;
  --r-pill: 999px;

  /* Apple text styles (apple.com): SF Pro Display at 20px and up, SF Pro Text
     below. Renders as SF on Apple devices, Helvetica/Arial elsewhere. */
  --font-display: "SF Pro Display", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font: "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1272px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414;
    --ink: #f5f5f5;
    --ink-2: #cfcfcf;
    --muted: #8e8e8e;
    --tile: rgba(255, 255, 255, 0.06);
    --tile-2: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.14);
    --chip: rgba(255, 255, 255, 0.09);
    --btn-dark-bg: #f5f5f5;
    --btn-dark-fg: #141414;
    --glass-fill: rgba(44, 44, 46, 0.46);
    --glass-fill-strong: rgba(52, 52, 54, 0.72);
    --glass-sheen: rgba(255, 255, 255, 0.1);
    --glass-rim-top: rgba(255, 255, 255, 0.22);
    --glass-rim-bottom: rgba(0, 0, 0, 0.35);
    --glass-outline: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(20px) saturate(170%) brightness(.95);
    --footer-bg: #000000;
    --heat-0: #222222;
    --heat-1: #3a3a3a;
    --heat-2: #707070;
    --heat-3: #b5b5b5;
    --heat-4: #f5f5f5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141414;
  --ink: #f5f5f5;
  --ink-2: #cfcfcf;
  --muted: #8e8e8e;
  --tile: rgba(255, 255, 255, 0.06);
  --tile-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --chip: rgba(255, 255, 255, 0.09);
  --btn-dark-bg: #f5f5f5;
  --btn-dark-fg: #141414;
  --glass-fill: rgba(44, 44, 46, 0.46);
  --glass-fill-strong: rgba(52, 52, 54, 0.72);
  --glass-sheen: rgba(255, 255, 255, 0.1);
  --glass-rim-top: rgba(255, 255, 255, 0.22);
  --glass-rim-bottom: rgba(0, 0, 0, 0.35);
  --glass-outline: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --glass-blur: blur(20px) saturate(170%) brightness(.95);
  --footer-bg: #000000;
  --heat-0: #222222;
  --heat-1: #3a3a3a;
  --heat-2: #707070;
  --heat-3: #b5b5b5;
  --heat-4: #f5f5f5;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Fallback for browsers that bounce anyway, ignoring overscroll-behavior: what
   they reveal above the page is the root's colour, so it matches the sky's top
   edge: white by day, the app's deep violet (#0C012B) by night. */
html { background: #fff; }
html[data-mode="dark"] { background: var(--bg); }
html[data-mode="dark"]:has(.sky) { background: #0c012b; }
html { overflow-x: clip; overscroll-behavior: none; /* no bounce: the page stays put at the top and bottom */ scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* not hidden: that makes body a scroll box and breaks the footer's sticky reveal */
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-size: 56px; line-height: 1.07143; font-weight: 600; letter-spacing: -0.005em;
  text-wrap: balance;
}
.body-lg { font-family: var(--font-display); font-size: 21px; line-height: 1.38095; font-weight: 400; letter-spacing: 0.011em; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; line-height: 1.42859; font-weight: 600; letter-spacing: -0.016em; color: var(--muted);
  margin-bottom: var(--space-label);
}
.eyebrow span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--ink);
  background: var(--chip); border-radius: var(--r-pill); padding: 2px 9px;
}
.eyebrow--center { justify-content: center; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 17px; line-height: 1.17648; font-weight: 400; letter-spacing: -0.022em; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; line-height: 1.28577; letter-spacing: -0.016em; }
.btn--dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn--dark:hover { opacity: .86; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(40px); }
.btn--outline:hover { background: var(--tile-2); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink);
  font-size: 12px; line-height: 1.33337; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip--small { height: 26px; font-size: 12px; font-weight: 400; padding: 0 10px; color: var(--muted); }
.chip--ghost { background: transparent; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--live); position: relative; flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--live); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  font-weight: 400; border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.tile { background: var(--tile); border-radius: var(--r-card); }

/* Liquid glass surface — values from this-day.app's hero badge */
.glass {
  background: linear-gradient(180deg, var(--glass-sheen) 0, transparent 42%), var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px .5px var(--glass-rim-top),
    inset 0 -1px 1px var(--glass-rim-bottom),
    inset 0 0 0 .5px var(--glass-outline),
    var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-fill-strong); }
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 5px 14px 5px 5px;
  border-radius: var(--r-pill);
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.42859; letter-spacing: -0.016em;
  max-width: 100%; min-width: 0;
  transition: transform .25s var(--ease);
}
.badge__tag {
  flex: none;
  background: linear-gradient(180deg, var(--mascot-top) 0%, var(--mascot-bottom) 140%);
  color: var(--mascot-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  font-size: 12px; font-weight: 600; line-height: 18px; letter-spacing: -0.01em;
  padding: 4px 10px; border-radius: var(--r-pill);
}
.badge__tag { display: inline-flex; align-items: center; gap: 4px; padding-left: 8px; }
/* Hourglass in the "In progress" tag — turns over, rests, turns again. */
.badge__hourglass {
  width: 12px; height: 12px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  animation: hourglass-turn 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes hourglass-turn {
  0%, 35%   { transform: rotate(0deg); }
  50%, 85%  { transform: rotate(180deg); }
  100%      { transform: rotate(360deg); }
}
.badge__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Navigation: floating pill ---------- */
.sheet {
  position: relative; z-index: 1;
  background: var(--bg);
  border-radius: 0 0 var(--r-sheet) var(--r-sheet);
  padding-bottom: var(--space-section);
}
.brand__mark {
  display: block; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); position: relative; flex: none;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 2.5px solid var(--bg);
}
.brand__mark--inverse { background: #fff; }
.brand__mark--inverse::after { border-color: var(--footer-bg); }

/* ---------- Dock ----------
   The app's floating nav bar (HomeFloatingNavBar) in a ThisDay-style glass
   card. Circle metrics are the app's: 56pt buttons 8pt apart (shown here at 44),
   CuesaGlass fill #FDFDFD / white 0.67pt rim / 0 5 16 black@9% shadow,
   active #8A5BF6 with a #D4A6FC rim and #F5F3FF icon, idle icons #A1A1AA. */
.dock {
  /* Circles are opaque so an icon's contrast never depends on what scrolls
     behind the dock. Idle icons clear WCAG's 3:1 for graphics with room to
     spare: #71717a on #fdfdfd is 4.7:1; night is #a1a1aa on #2c2c2e, 5.4:1. */
  --nav-fill: #fdfdfd; --nav-rim: #fff; --nav-icon: #71717a;
  --nav-shadow: 0 5px 16px rgba(0, 0, 0, 0.09);
  position: fixed; left: 50%; bottom: 16px; z-index: 60;
  width: min(360px, calc(100% - 24px));
  transform: translateX(-50%);
}
.dock__card { border-radius: 30px; padding: 8px; } /* concentric: 44/2 + 8 */
/* The denser glass fill, so the bare icons (menu, appearance) stay legible
   over light and dark content alike. */
.dock__card.glass {
  background: linear-gradient(180deg, var(--glass-sheen) 0, transparent 42%), var(--glass-fill-strong);
}

/* Menu panel — opened by the hamburger on the left; the legal links. */
.dock__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.dock__panel.is-open { grid-template-rows: 1fr; }
/* Tiles as on this-day.app: icon stacked over a 12px label. */
.dock__panel > .dock__panel-inner {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; transition: opacity .25s var(--ease), padding .4s var(--ease);
}
.dock__panel.is-open > .dock__panel-inner { opacity: 1; padding-bottom: 8px; }
.dock__panel a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 6px 10px; border-radius: 22px; /* concentric inside the dock: 30 - 8 */
  font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--ink); text-align: center;
  transition: background-color .2s;
}
.dock__panel a .navbtn__icon { width: 16px; height: 16px; }
.dock__panel a:hover { background: var(--tile-2); }

.dock__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.dock__bar > .dock__nav { grid-column: 2; }
/* Menu and the appearance switch are bare icons — no circle behind them. */
.dock__menu, .dock__cycle {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--ink); border-radius: 50%;
  transition: opacity .2s, transform .2s var(--ease);
}
.dock__menu { grid-column: 1; justify-self: start; }
.dock__menu:hover, .dock__menu[aria-expanded="true"], .dock__cycle:hover { background: var(--tile-2); }
.dock__menu:active, .dock__cycle:active { transform: scale(.92); }
.dock__nav { display: flex; align-items: center; gap: 6px; }
.navbtn {
  position: relative; flex: none;
  display: grid; place-items: center; height: 44px;
  color: var(--nav-icon);
  transition: transform .2s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.navbtn:active { transform: scale(.94); }
.navbtn {
  width: 44px; border-radius: 50%;
  background: var(--nav-fill);
  box-shadow: inset 0 0 0 .67px var(--nav-rim), var(--nav-shadow);
}
.navbtn:hover { color: var(--ink); }
.navbtn.is-active {
  background: #8a5bf6; color: #f5f3ff;
  box-shadow: inset 0 0 0 .67px #d4a6fc;
}
.navbtn__icon {
  width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
/* Night: the app's circles, dimmed onto the dark glass. */
/* Night: the app's buttons on dark ground (PomodoroGlassCircle) — white 20%
   fill the background shows through, a 1px white-18% ring, white glyphs. */
[data-mode="dark"] .dock {
  --nav-fill: rgba(255, 255, 255, 0.2); --nav-rim: rgba(255, 255, 255, 0.18);
  --nav-icon: #fff; --nav-shadow: none;
}
[data-mode="dark"] .dock .navbtn:not(.is-active) { box-shadow: inset 0 0 0 1px var(--nav-rim); }
/* The appearance switch — one icon showing the current mode. */
.dock__cycle { grid-column: 3; justify-self: end; }
.dock__cycle-icon {
  grid-area: 1 / 1;
  opacity: 0; transform: rotate(-90deg) scale(.5);
  transition: opacity .25s var(--ease), transform .45s var(--ease);
}
svg.dock__cycle-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
svg.dock__cycle-icon path { fill: currentColor; stroke: none; }
[data-choice="light"] .dock__cycle-icon[data-cycle-mode="light"],
[data-choice="dark"] .dock__cycle-icon[data-cycle-mode="dark"],
[data-choice="system"] .dock__cycle-icon[data-cycle-mode="system"] { opacity: 1; transform: none; }

/* Leave room so the dock never sits on the last of the page. */
.footer .footer__inner { padding-bottom: 144px; } /* clears the dock */

/* Two set lines. */
/* Sun after "day" — the app welcome screen's own glyph (SettingsSunHighIcon),
   at its proportions there: 20pt on 28pt type with a 4pt gap (.714em, .143em),
   centred on the line. Masked so it takes the text colour in both themes. */
.hero__title .glyph {
  display: inline-block; width: .714em; height: .714em;
  margin-left: .143em; vertical-align: .01em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.hero__line { display: block; white-space: nowrap; }
/* ---------- Introduction (after joi.software) ----------
   One large centred statement; words go from muted to ink as it scrolls by. */
.intro { padding-top: var(--space-section); text-align: center; }
.intro__statement {
  max-width: 18em; margin: 0 auto;
  font-family: var(--font-display);
  font-size: 56px; line-height: 1.07143; font-weight: 600; letter-spacing: -0.005em;
  text-wrap: balance;
}
/* One phrase lit at a time as the statement scrolls by; the rest wait, muted.
   The app's waving flag rides along at the end of the lit phrase. */
.intro__statement { position: relative; }
.intro__phrase { color: color-mix(in srgb, var(--ink) 22%, transparent); transition: color .5s var(--ease); }
.intro__phrase.is-lit { color: var(--ink); }
.intro__flag {
  position: absolute; left: 0; top: 0; width: 104px; height: auto; pointer-events: none;
  transform: translate(var(--fx, 0), var(--fy, 0));
  transition: transform .8s cubic-bezier(.32, .72, 0, 1), opacity .4s var(--ease);
  opacity: 0;
}
.intro__flag.is-on { opacity: 1; }
.intro__flag img { display: block; width: 100%; height: auto; transform-origin: 20% 90%; animation: flag-wave 1.8s ease-in-out infinite alternate; }
@keyframes flag-wave { from { transform: rotate(-7deg); } to { transform: rotate(6deg); } }
@media (max-width: 734px) { .intro__flag { width: 72px; } }
@media (prefers-reduced-motion: reduce) { .intro__flag, .intro__flag img { transition: none; animation: none; } }

/* ---------- Showcase: Insights and Pomodoro ----------
   Copy beside a reserved slot for the app screen; the second section flips. */
.showcase {
  padding-top: var(--space-section);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-step); align-items: center;
}
.showcase--flip .showcase__copy { order: 2; }
.showcase__copy .body-lg { margin-top: var(--space-support); }
.showcase__points { margin-top: var(--space-group); display: grid; gap: var(--space-label); }
.showcase__points li {
  position: relative; padding-left: 24px;
  font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; color: var(--muted);
}
.showcase__points li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(180deg, var(--mascot-top), var(--mascot-bottom));
}
.showcase__points strong { color: var(--ink); font-weight: 600; }
.showcase__points .tag { margin-left: 6px; vertical-align: 1px; }
.showcase .chips { margin-top: var(--space-group); margin-bottom: 0; }
/* Reserved for the app screen — a quiet tile until the visual lands. */
.showcase__shot { aspect-ratio: 4 / 5; border-radius: var(--r-card); background: var(--tile); }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: var(--space-group); }
  .showcase--flip .showcase__copy { order: 0; }
}
@media (max-width: 734px) {
  :root { --space-section: 96px; --space-step: 48px; }
}

/* ---------- Bento: Insights (Figma 2691:25976) ----------
   After this-day.app's bento: a live demo on a tinted stage beside the copy.
   The stage is the frame's 639 x 503 at any width — every Figma measurement
   is written in --u, one design pixel of the stage. */
.bento {
  padding-top: var(--space-section);
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; /* both halves centred on each other */
}
.bento__stage {
  position: relative; container-type: inline-size;
  aspect-ratio: 639 / 503; overflow: hidden;
  border-radius: var(--r-card);
  background: rgba(24, 24, 27, 0.04);
}
/* The stage stretches to the copy's height (never shorter than 639:503);
   the 639 x 503 design box sits centred in it. */
.bento__stage { align-self: stretch; aspect-ratio: auto; }
/* Keeps the 639:503 floor as a spacer, so stretching adds height, never width. */
.bento__stage::before { content: ""; display: block; padding-top: calc(503 / 639 * 100%); }
.mood { --u: calc(100cqw / 639); position: absolute; left: 0; right: 0; top: 50%; height: calc(503 * var(--u)); transform: translateY(-50%); }
.mood__card {
  position: absolute; left: calc(104.59 * var(--u)); top: calc(66 * var(--u));
  width: calc(429.826 * var(--u)); height: calc(506.32 * var(--u));
  border-radius: calc(87.422 * var(--u)) calc(87.422 * var(--u)) 0 0; overflow: hidden; background: #fff; /* square foot: it fades out */
  transform: scale(.88); transform-origin: 50% 0; /* a touch smaller than the node */
  /* The card itself fades out at the foot (a true linear blend to transparent),
     so it melts into whatever tint the stage has, day or night. */
  -webkit-mask: linear-gradient(180deg, #000 58%, transparent 96%);
          mask: linear-gradient(180deg, #000 58%, transparent 96%);
  box-shadow: 0 calc(93.397 * var(--u)) calc(91.053 * var(--u)) rgba(0, 0, 0, 0.05),
              0 calc(-7.268 * var(--u)) calc(91.074 * var(--u)) rgba(0, 0, 0, 0.05);
}
.mood__glass {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 calc(50.187 * var(--u)) calc(84.84 * var(--u)) rgba(255, 255, 255, 0.15),
              inset 0 calc(-47.356 * var(--u)) calc(84.84 * var(--u)) rgba(255, 255, 255, 0.15),
              inset 0 calc(50.187 * var(--u)) calc(84.84 * var(--u)) rgba(255, 255, 255, 0.3);
}
.mood__chart-box {
  position: absolute; right: calc(-205.78 * var(--u)); top: calc(50% + 74.04 * var(--u));
  width: calc(1348.318 * var(--u)); height: calc(366.743 * var(--u));
  transform: translateY(-50%);
}
.mood__chart { position: absolute; inset: 0 -0.8% 0 -0.53%; width: 101.33%; height: 100%; }
.mood__sun {
  position: absolute; left: calc(311.94 * var(--u)); top: calc(44.4 * var(--u));
  width: calc(74.847 * var(--u)); height: calc(74.847 * var(--u));
  display: flex; align-items: center; justify-content: center;
}
.mood__sun-rot { flex: none; transform: rotate(6.72deg); width: calc(67.421 * var(--u)); height: calc(67.421 * var(--u)); position: relative; overflow: hidden; }
.mood__sun-mask {
  position: absolute; inset: 0.02% -0.01% -0.02% 0.01%;
  -webkit-mask: url(assets/insights/sun-mask.svg) 0 0 / calc(74.847 * var(--u)) calc(74.848 * var(--u)) no-repeat;
          mask: url(assets/insights/sun-mask.svg) 0 0 / calc(74.847 * var(--u)) calc(74.848 * var(--u)) no-repeat;
}
.mood__sun-mask img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.mood__title {
  position: absolute; left: calc(46.54 * var(--u)); top: calc(53.06 * var(--u)); width: calc(216.905 * var(--u));
  font-family: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 600; font-size: calc(30.376 * var(--u)); line-height: 1.3; letter-spacing: 0; color: #18181b;
}
.mood__fade {
  position: absolute; left: 0; top: calc(416.38 * var(--u)); width: calc(678 * var(--u)); height: calc(287.472 * var(--u));
  display: none; /* replaced by the card's mask */
  pointer-events: none;
}
.bento__copy { display: grid; gap: var(--space-support); }
/* The curve draws itself as the app's welcome card does (WelcomeCardAnimation):
   wash + line wipe in left to right (0.6s ease-out) across the visible card,
   then the markers spring in from 60% (cuesaReorderLift: response .3,
   damping .7) with their drop lines; rest, clear, go again. */
.mood__wipe { transform-box: view-box; transform-origin: 700px 0; transform: scaleX(0); }
.mood__draw, .mood__dot, .mood__drop { transition: opacity .27s ease-in; }
.mood__dot, .mood__drop { opacity: 0; }
.mood__dot { transform-box: fill-box; transform-origin: center; transform: scale(.6); }
.bento__stage.is-drawn .mood__wipe { transform: scaleX(1); transition: transform .6s cubic-bezier(0, 0, .58, 1); }
.bento__stage.is-dot .mood__dot { opacity: 1; transform: none; transition: opacity .2s ease-out, transform .35s cubic-bezier(.34, 1.45, .64, 1); }
.bento__stage.is-dot .mood__drop { opacity: 1; transition: opacity .3s ease-out; }
.bento__stage.is-out .mood__draw, .bento__stage.is-out .mood__dot, .bento__stage.is-out .mood__drop { opacity: 0; transition: opacity .27s ease-in; }
.bento__stage.no-anim * { transition: none !important; }
.bento__stage.is-still .mood__wipe { transform: none; }
.bento__stage.is-still .mood__dot, .bento__stage.is-still .mood__drop { opacity: 1; transform: none; }

/* Night: an elevated dark card, white SF Pro Display title. */
[data-mode="dark"] .mood__card { background: #2c2c2e; } /* Apple's elevated dark surface */
[data-mode="dark"] .mood__title { color: #fff; font-family: var(--font-display); }

/* SF Pro Display Bold 44 on desktop (-2% tracking); body 20/26. */
.bento__title {
  font-family: var(--font-display); font-size: 44px; line-height: normal; font-weight: 700; letter-spacing: -0.88px;
  color: var(--ink);
}
.bento__body { font-family: var(--font-display); font-size: 20px; line-height: 26px; letter-spacing: 0; color: var(--muted); }
[data-mode="dark"] .bento__stage { background: rgba(255, 255, 255, 0.05); }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; gap: var(--space-group); }
  .bento__stage { border-radius: var(--r-card); }
  .bento__copy { padding-top: 0; }
}
@media (max-width: 734px) {
  .bento__title { font-size: 40px; letter-spacing: -0.8px; }
  .bento__body { font-size: 19px; line-height: 1.4211; }
}

/* ---------- Bento: Cues (after Notion AI's intro sheet) ----------
   Mirrored: copy left, stage right. The intentions-screen mascot sits in a
   soft halo; the Pomodoro screen's tag pills (FocusTagsOverlay) drift up past
   it, lit from behind by the same violet and pink glows. Sizes in --u, one
   design pixel of the 639-wide stage. */
.bento--flip { grid-template-columns: 1fr 1fr; }
.bento--flip .bento__copy { order: -1; }
.tagstage { --u: calc(100cqw / 639); }
/* The same foot as the Insights card: the whole scene fades out to
   transparent (a true linear blend), so it melts into the stage's tint. */
.tagstage__scene {
  position: absolute; inset: 0;
  -webkit-mask: linear-gradient(180deg, #000 58%, transparent 96%);
          mask: linear-gradient(180deg, #000 58%, transparent 96%);
}
.tagstage__glow { position: absolute; border-radius: 50%; filter: blur(calc(60 * var(--u))); opacity: .35; pointer-events: none; }
.tagstage__glow--violet { width: calc(320 * var(--u)); height: calc(320 * var(--u)); left: calc(300 * var(--u)); top: calc(40 * var(--u)); background: #8b5cf6; }
.tagstage__glow--pink { width: calc(280 * var(--u)); height: calc(280 * var(--u)); left: calc(380 * var(--u)); top: calc(230 * var(--u)); background: #f472b6; }
.tagstage__mascot {
  position: absolute; left: calc(28 * var(--u)); top: 50%; transform: translateY(-50%);
  width: calc(290 * var(--u)); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 0 68%, rgba(255, 255, 255, .5) 69%, rgba(255, 255, 255, 0) 100%);
}
.tagstage__face { grid-area: 1 / 1; width: 70%; height: auto; }
.tagstage__face--night { display: none; }
[data-mode="dark"] .tagstage__face--day { display: none; }
[data-mode="dark"] .tagstage__face--night { display: block; }
[data-mode="dark"] .tagstage__mascot { background: radial-gradient(closest-side, #2c2c2e 0 68%, rgba(44, 44, 46, .5) 69%, rgba(44, 44, 46, 0) 100%); }
.tagstage__rail {
  position: absolute; left: calc(330 * var(--u)); right: 0; top: 0; bottom: 0; overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent 4%, #000 30%, #000 70%, transparent 96%);
          mask: linear-gradient(180deg, transparent 4%, #000 30%, #000 70%, transparent 96%);
}
.tagstage__list { display: flex; flex-direction: column; align-items: flex-start; gap: calc(14 * var(--u)); padding-top: calc(24 * var(--u)); }
.tagstage.is-moving .tagstage__list { animation: tags-drift 22s linear infinite; }
@keyframes tags-drift { to { transform: translateY(-50%); } }
/* The app's pill: white-to-60% surface with an inner highlight, #18181B ink,
   18pt icon, 15pt semibold, 42pt tall, 16pt sides (here x1.2 in --u). */
.tagpill {
  flex: none; display: inline-flex; align-items: center; gap: calc(10 * var(--u));
  height: calc(50 * var(--u)); padding: 0 calc(19 * var(--u));
  border-radius: 999px; color: #18181b;
  font-size: calc(18 * var(--u)); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .6));
  box-shadow: inset 0 calc(5 * var(--u)) calc(5 * var(--u)) rgba(255, 255, 255, .8), 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(24, 24, 27, .06);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.tagpill i {
  width: calc(22 * var(--u)); height: calc(22 * var(--u)); flex: none; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
/* Selected, as the app marks a chosen tag: violet ink on #F5F3FF, #DDD6FE ring. */
.tagpill.is-selected {
  color: #7c3aed; background: #f5f3ff;
  box-shadow: inset 0 0 0 1px #ddd6fe, 0 calc(4 * var(--u)) calc(14 * var(--u)) rgba(124, 58, 237, .12);
}
[data-mode="dark"] .tagstage__glow { opacity: .28; }
@media (max-width: 860px) {
  .bento--flip .bento__copy { order: 0; }
  .bento--flip .bento__stage { border-radius: var(--r-card); }
}

/* ---------- Focus (Figma 2692:26044) ----------
   The frame as drawn: a full-width band in the app's Pomodoro gradient
   (#1D8AEE at 43.8% -> #000851), and on it a 1191 x 537 glass card (71.4
   radius: grey 25% + #171717 plus-lighter, blur, rim) holding the dial panel
   (637 wide, white 8%) and the copy. All of the section's copy is kept. */
/* When the band closes the page, it runs to the sheet's rounded bottom edge. */
.sheet:has(> main > .focusband:last-child) { padding-bottom: 0; overflow: hidden; }
.focusband {
  position: relative; overflow: hidden; container-type: inline-size;
  margin-top: var(--space-section);
  background: linear-gradient(180deg, #1d8aee 43.828%, #000851);
  padding: var(--space-section) var(--gutter);
}
/* The band's sky (node 2695:27548) on the frame's 1440 width: --b is one
   design pixel. A soft-glow group and two haze photos in screen blend. */
.focusband__sky { --b: calc(100cqw / 1440); position: absolute; left: 0; top: calc(4 * var(--b)); width: 100%; height: calc(812 * var(--b)); pointer-events: none; }
.focusband__glow { position: absolute; left: 50%; top: calc(-346.83 * var(--b)); width: calc(1440 * var(--b)); height: calc(1528.656 * var(--b)); transform: translateX(-50%); }
.focusband__glow img { position: absolute; inset: -24.32% -24.88% -23.43% -25.81%; width: 150.69%; height: 147.75%; max-width: none; display: block; }
.focusband__haze { position: absolute; overflow: hidden; mix-blend-mode: screen; }
.focusband__haze img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; }
.focusband__haze--low { left: -166.21%; right: -164.94%; top: calc(320.71 * var(--b)); height: calc(491.289 * var(--b)); opacity: .1; }
.focusband__haze--high { left: -192.6%; right: -180.07%; top: 0; height: calc(518.998 * var(--b)); opacity: .2; }
[data-mode="dark"] .focusband__glow { display: none; }
/* Night: the Pomodoro star field — five bands at the app's opacities, falling
   at its per-band paces (a tile of 519pt, here x1.5), and six fixed glares. */
.focusband__stars { position: absolute; inset: 0; display: none; pointer-events: none; }
[data-mode="dark"] .focusband__stars { display: block; }
.focusband__band { position: absolute; inset: 0; background-size: 562px 778px; background-repeat: repeat; } /* still: the falling is the hero's alone */
.focusband__glare { position: absolute; max-width: none; }
/* The app's aurora, anchored to the band's bottom edge. The blobs keep the
   app's point sizes, scaled from its 375pt screen (--k), and composite
   together first, then add light to the sky once (plus-lighter), as the
   app's compositingGroup does. Motion is set per frame in script.js. */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora__bloom {
  --k: min(100cqw / 375, 2.6px); /* one app point, as a length */
  /* Sunk 200pt below the edge, so only the top of the bloom glows up into the band. */
  position: absolute; left: 50%; bottom: calc(-200 * var(--k)); width: 0; height: 0;
  mix-blend-mode: plus-lighter; opacity: .88;
}
/* By day the band is already bright blue; at full strength the bloom
   washes it white, so it glows at half strength. Night keeps the app's .88. */
:root:not([data-mode="dark"]) .aurora__bloom { opacity: .45; }
.aurora__blob {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k));
  margin: calc(var(--h) * var(--k) / -2) 0 0 calc(var(--w) * var(--k) / -2);
  background: var(--c); filter: blur(calc(var(--r) * var(--k)));
  will-change: transform, opacity;
}
.aurora__blob--indigo  { --w: 420; --h: 300; --r: 70; --c: rgb(77, 79, 235); }
.aurora__blob--magenta { --w: 520; --h: 300; --r: 54; --c: rgb(255, 92, 255); }
.aurora__blob--white   { --w: 520; --h: 260; --r: 40; --c: #fff; }
.focuscard {
  /* Two halves, as Insights and Cues: the dial on its own glass panel, the
     copy straight on the band, 72 apart and centred on each other. */
  max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; /* both halves centred on each other */
}
[data-mode="dark"] .focusband { background: #0c012b url(assets/night/sky.jpg) center / cover no-repeat; }
.focuspanel {
  position: relative; overflow: hidden; /* no isolation: the glass blends with the band behind */
  border-radius: var(--r-card);
  box-shadow: 0 .714px 5.714px rgba(0, 0, 0, .1);
}
.focuspanel::before, .focuspanel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.focuspanel > * { position: relative; z-index: 1; }
.focuspanel::before { background: rgba(140, 140, 140, .25); }
.focuspanel::after {
  background: #171717; mix-blend-mode: plus-lighter;
  -webkit-backdrop-filter: blur(4.286px); backdrop-filter: blur(4.286px);
  box-shadow: inset 1.429px 1.429px .357px -1.429px #262626, inset -1.429px -1.429px .357px -1.429px #262626, inset 0 0 0 .714px #a6a6a6;
}
/* Side by side, the stage fills the card's full height with the dial centred;
   stacked (phones), it keeps the design's 639:503 shape. */
.focusstage { position: relative; container-type: size; aspect-ratio: 639 / 503; overflow: hidden; }
.focuscard__copy { padding-left: var(--space-group); /* nudged in off the gap */ display: flex; flex-direction: column; gap: 24px; color: #fff; }
.focuscard__copy .bento__title { color: #fff; }
.focuscard__copy .bento__body { color: rgba(255, 255, 255, .75); }
.focuscard__copy .showcase__points { margin-top: 0; }
.focuscard__copy .showcase__points li { color: rgba(255, 255, 255, .75); }
.focuscard__copy .showcase__points strong { color: #fff; }
.focuscard__copy .tag--build { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
/* The section's points as two glass tiles, echoing the card: an app icon in
   a glass disc, a white title, a softer line; "In build" rides the title. */
.focustiles { display: grid; gap: 8px; }
.focustile {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 16px; border-radius: var(--r-nested);
  background: rgba(255, 255, 255, .08);
}
.focustile__icon {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.focustile__icon::after {
  content: ""; position: absolute; inset: 10px; background: #fff;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.focustile strong { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.016em; color: #fff; }
.focustile p { margin-top: 2px; font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; color: rgba(255, 255, 255, .75); }
.focustile .tag { height: 22px; padding: 0 9px; font-size: 11px; }
/* The same tiles on the page itself (Insights): ink on a faint tint by day,
   white on a faint lift by night. */
.focustiles--plain .focustile { background: rgba(24, 24, 27, .02); }
.focustiles--plain .focustile__icon { background: #fff; box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .08); }
.focustiles--plain .focustile__icon::after { background: var(--ink); }
.focustiles--plain .focustile strong { color: var(--ink); }
.focustiles--plain .focustile p { color: var(--muted); }
[data-mode="dark"] .focustiles--plain .focustile { background: rgba(255, 255, 255, .025); }
[data-mode="dark"] .focustiles--plain .focustile__icon { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
/* Insights' tile takes the mood graph's blue (#1999F5), glyph and a faint disc. */
#insights .focustile__icon, [data-mode="dark"] #insights .focustile__icon { background: rgba(25, 153, 245, .12); box-shadow: none; }
#insights .focustile__icon::after { background: #1999f5; }
/* Cues' tile takes the stage's violet. */
#cues .focustile__icon, [data-mode="dark"] #cues .focustile__icon { background: rgba(139, 92, 246, .14); box-shadow: none; }
#cues .focustile__icon::after { background: #8b5cf6; }
/* Focus' tile takes pink, the aurora's magenta softened for the glass. */
.focuscard__copy .focustile__icon { background: rgba(244, 114, 182, .2); box-shadow: none; }
.focuscard__copy .focustile__icon::after { background: #f9a8d4; }
/* Paragraph and tile run a little past the heading's longest line (~340-385)
   rather than the full column, so the block reads as one measure. */
.bento__copy .bento__body, .bento__copy .focustiles,
.focuscard__copy .bento__body, .focuscard__copy .focustiles { max-width: 420px; }
/* One rhythm for every section's copy: title to body 24, body to tiles 32. */
.bento__copy .focustiles, .focuscard__copy .focustiles { margin-top: calc(var(--space-group) - var(--space-support)); }

@media (max-width: 860px) {
  .focuscard { grid-template-columns: 1fr; gap: var(--space-group); }
  .focuscard__copy { padding-top: 0; padding-left: 0; }
}
/* Fits the dial and pill inside the stage both ways, with room around them. */
.focusstage__canvas { --u: calc(min(100cqw * 503 / 639, 100cqh) * .86 / 539); position: absolute; top: 50%; left: 50%; width: calc(637 * var(--u)); height: calc(539 * var(--u)); transform: translate(-50%, -50%); }
.focusstage__group {
  position: absolute; left: calc(144.03 * var(--u)); top: calc(45.84 * var(--u)); width: calc(348.939 * var(--u));
  display: flex; flex-direction: column; align-items: center; gap: calc(40 * var(--u));
}
.dial { position: relative; width: 100%; height: calc(345.246 * var(--u)); flex: none; }
.dial__disc {
  position: absolute; left: calc(50% + 1.23 * var(--u)); top: calc(50% + .23 * var(--u));
  width: calc(345.808 * var(--u)); height: calc(345.808 * var(--u)); transform: translate(-50%, -50%);
}
.dial__disc img { position: absolute; inset: -9.72% -9% -18.23% -9%; width: 118%; height: 127.95%; max-width: none; display: block; }
.dial__chart { position: absolute; left: calc(11.54 * var(--u)); top: calc(7.73 * var(--u)); width: calc(326.381 * var(--u)); height: calc(326.381 * var(--u)); }
.dial__tick { position: absolute; display: block; }
.dial__tick img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.dial__time {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(210.368 * var(--u)); display: flex; align-items: center; justify-content: center;
  color: #fff; white-space: nowrap;
}
@font-face { font-family: "Cabinet Grotesk"; font-weight: 800; font-display: swap; src: url(assets/fonts/CabinetGrotesk-Extrabold.otf) format("opentype"); }
.dial__num { font-family: "Cabinet Grotesk", var(--font-display); font-weight: 800; font-size: calc(76.429 * var(--u)); line-height: 1.2; text-box: trim-both cap alphabetic; }
.dial__colon { font-family: "SF Pro Rounded", ui-rounded, var(--font-display); font-weight: 900; font-size: calc(41.313 * var(--u)); line-height: 1.3; }
/* The app's tagsChip (FocusSessionView), at the dial's Figma scale (x1.41):
   20/14 padding, 6 gap, 15pt medium label, 11pt chevron, on CuesaFigmaGlass:
   white 25%, red 10% in saturation, #1A1A1A 20% in plus-lighter. */
.glasspill {
  position: relative; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; gap: calc(8.46 * var(--u));
  padding: calc(19.74 * var(--u)) calc(28.2 * var(--u));
  border-radius: 999px;
}
.glasspill::before, .glasspill::after, .glasspill__sat { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.glasspill::before { background: rgba(255, 255, 255, .25); }
.glasspill__sat { background: rgba(255, 0, 0, .1); mix-blend-mode: saturation; }
.glasspill::after { background: rgba(26, 26, 26, .2); mix-blend-mode: plus-lighter; }
.glasspill > span, .glasspill > svg { position: relative; z-index: 1; }
.glasspill__chev { width: calc(19.74 * var(--u)); height: calc(19.74 * var(--u)); fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glasspill span { font-family: var(--font); font-weight: 500; font-size: calc(21.15 * var(--u)); line-height: 1.2; letter-spacing: -0.0025em; color: #fff; white-space: nowrap; }

/* ---------- Legal pages (privacy.html, terms.html) ----------
   A single reading column in the site's Apple text styles. */
.legal { max-width: 760px; padding-top: 56px; } /* matches the hero's top */
.legal__back {
  display: inline-flex; gap: 8px; margin-bottom: var(--space-group);
  font-size: 14px; font-weight: 600; letter-spacing: -0.016em; color: var(--muted);
  transition: color .2s;
}
.legal__back:hover { color: var(--ink); }
.legal__title {
  font-family: var(--font-display);
  font-size: 56px; line-height: 1.07143; font-weight: 600; letter-spacing: -0.005em;
  text-wrap: balance;
}
.legal__dates { margin-top: 16px; font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); }
.legal__body { margin-top: var(--space-group); color: var(--ink-2); }
.legal__body h2 {
  margin-top: calc(var(--space-group) * 1.5); margin-bottom: var(--space-label); scroll-margin-top: 24px; /* 48 · 16 */
  font-family: var(--font-display); font-size: 21px; line-height: 1.19048; font-weight: 600; letter-spacing: 0.011em;
  color: var(--ink);
}
.legal__body p, .legal__body li { font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; }
.legal__body p + p { margin-top: var(--space-label); }
.legal__body ul { margin: var(--space-label) 0; padding-left: 1.2em; list-style: disc; }
.legal__body li + li { margin-top: 8px; }
.legal__body li::marker { color: var(--muted); }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__summary {
  padding: var(--space-support); border-radius: var(--r-nested);
  background: var(--tile); color: var(--ink);
}
/* Unfilled placeholders from the draft — visible until they're replaced. */
mark.todo {
  background: color-mix(in srgb, var(--mascot-top) 45%, transparent);
  color: var(--ink); border-radius: 4px; padding: 0 3px;
}
.legal__next {
  margin-top: var(--space-step); padding-top: var(--space-support); border-top: 1px solid var(--line);
  font-size: 17px; color: var(--muted);
}
.legal__next a { color: var(--ink); font-weight: 600; }
.legal__next a:hover span { margin-left: 2px; }
@media (max-width: 734px) {
  .legal__title { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
}

/* ---------- Hero sky (Figma 2670:24144) ----------
   Built on the design's 1440px canvas and scaled uniformly to the viewport,
   like the app's HazeBackground does from 375pt. Anchored top-right so the
   clouds stay in view on narrow screens. */
.sky {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0;
  height: calc(922px * var(--sky-scale, 1));
  overflow: hidden; pointer-events: none;
}
.sky__canvas {
  position: absolute; top: 0; right: 0;
  width: 1440px; height: 922px;
  /* --zoom: the pull-down stretch (script.js). Grows from the top edge,
     centred, so only the sky zooms and the page itself never moves. */
  transform: translateX(calc(720px * var(--sky-scale, 1) * (var(--zoom, 1) - 1)))
             scale(calc(var(--sky-scale, 1) * var(--zoom, 1)));
  transform-origin: top right;
  overflow: hidden;
}
.sky.is-settling .sky__canvas { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.sky__canvas--day { background: #fff; }
.sky__canvas--night { display: none; background: #0c012b; }
.sky__blobs { position: absolute; inset: 0; isolation: isolate; }
.sky__blob {
  position: absolute; max-width: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  /* The exported SVGs clip their blur at the file edge; rotated, that edge
     showed as a faint straight line across the sky. Fade it out. */
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent);
          mask: radial-gradient(closest-side, #000 72%, transparent);
}
.sky__cloud { position: absolute; }
.sky__cloud--far  { left: -3997.76px; top: -369.21px; --w: 7077.283px; --h: 2697.776px; }
.sky__cloud--near { left: -456.91px;  top: -595.47px; --w: 2573.57px;  --h: 1516.96px; }
.sky__track { display: flex; width: calc(var(--w) * 2); will-change: transform; }
.sky__track img { display: block; width: var(--w); height: var(--h); max-width: none; flex: none; }
/* One pace for every cloud, as in the app: 1% of the canvas width a second
   (DriftingCloud.pointsPerSecond = 375/100 on a 375pt canvas -> 14.4px here),
   so each layer's loop time is its own width / 14.4. */
.sky__cloud--far  .sky__track { animation: sky-drift 491.48s linear infinite; }
.sky__cloud--near .sky__track { animation: sky-drift 178.72s linear infinite; }
@keyframes sky-drift { to { transform: translateX(calc(var(--w) * -1)); } }
.sky__fade {
  position: absolute; left: 0; top: -1.23px; width: 1440px; height: 2855.96px;
  background: linear-gradient(180.8deg, rgba(255,255,255,0) 6.2604%, #fff 20.193%);
}
.sheet > main { position: relative; z-index: 1; }

/* Night — shown whenever the page is dark. The app's StarryNightBackground,
   re-laid for the 1440 canvas; fades into the page instead of to white,
   so the app's two white blooms (there to light its white list) are left out. */
.night__sky {
  position: absolute; inset: 0;
  background: url(assets/night/sky.jpg) center top / 100% 100% no-repeat;
}
.night__field { position: absolute; inset: 0; }
/* The five star bands at their app opacities, still (isFalling: false). */
.night__stars {
  position: absolute; inset: 0; background-size: 562px 778px; background-repeat: repeat;
  background-position: var(--x) var(--y);
  animation: star-fall var(--fall) linear infinite; /* the app's PomodoroStarfall: each band at its own pace */
}
@keyframes star-fall { from { background-position: var(--x) var(--y); } to { background-position: var(--x) calc(var(--y) + 778px); } }
@media (prefers-reduced-motion: reduce) { .night__stars { animation: none; } }
.night__glare { position: absolute; max-width: none; }
.night__moon {
  position: absolute; left: 1218px; top: 138px; opacity: .82;
  filter: blur(2px) drop-shadow(0 0 3px rgba(255,255,255,.5)) drop-shadow(0 0 12px rgba(255,255,255,.22));
}
/* NightCloudWisp in overlay, one per 1440 tile so it crosses the sky alone,
   at the same 14.4px/s pace as the day clouds (1440 / 14.4 = 100s a loop). */
.night__wisp { left: 0; top: 40px; --w: 1440px; --h: 464px; mix-blend-mode: overlay; }
.night__tile { position: relative; width: var(--w); height: var(--h); flex: none; }
.night__tile img { position: absolute; left: -120px; top: 0; width: 760px; height: 464px; }
.night__wisp .sky__track { animation: sky-drift 100s linear infinite; }
.sky__canvas--night .sky__fade {
  background: linear-gradient(180deg, rgba(20,20,20,0) 6.2604%, var(--bg) 20.193%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sky__canvas--day { display: none; }
  :root:not([data-theme="light"]) .sky__canvas--night { display: block; }
}
:root[data-theme="dark"] .sky__canvas--day { display: none; }
:root[data-theme="dark"] .sky__canvas--night { display: block; }

/* ---------- Hero: centered, like mobbin.com ---------- */
/* Hero spacing, measured from mobbin.com's hero: icon 40 · (badge 24) ·
   headline 20 · subheading 40 · form 120 · mockup. */
.hero { padding-top: 120px; } /* hero block starts 120 from the top of the screen */
.hero__copy { max-width: 820px; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
/* App icon deck — cycles like mobbin.com's hero: the front icon drops away,
   the one behind rises into place, and the old front rejoins at the back. */
.icon-stack { position: relative; width: 88px; height: 88px; margin: 32px 0 40px; } /* the card peeking ~7px above lands at ~48 */
.icon-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 24px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.35);
  /* One long, soft curve (iOS's sheet spring, no overshoot) on transform and
     opacity only, both compositor-run, so the deal stays at full frame rate. */
  transition: transform .9s cubic-bezier(.32, .72, 0, 1), opacity .9s cubic-bezier(.32, .72, 0, 1);
  will-change: transform, opacity; backface-visibility: hidden;
}
.icon-stack img[data-pos="0"] { z-index: 3; transform: translate3d(0, 0, 0); opacity: 1; }
.icon-stack img[data-pos="1"] { z-index: 2; transform: translate3d(0, -14px, 0) scale(.84); opacity: .5; }
.icon-stack img[data-pos="2"] { z-index: 1; transform: translate3d(0, -24px, 0) scale(.7); opacity: 0; }
.icon-stack img.is-leaving { z-index: 4; transform: translate3d(0, 24px, 0) scale(.94); opacity: 0; transition-duration: .7s; }
.icon-stack img.no-anim { transition: none; }

.hero__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 64px; line-height: 1; letter-spacing: -0.02em; font-weight: 600;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 20px; max-width: 26em;
  font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 400; letter-spacing: 0.012em;
  color: var(--muted); text-wrap: balance;
}

/* Waitlist — a glass pill holding the field and its button. */
.waitlist {
  margin-top: 40px; width: 100%; max-width: 460px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 22px; border-radius: var(--r-pill);
  transition: box-shadow .2s var(--ease);
}
.waitlist:focus-within {
  box-shadow:
    inset 0 1px .5px var(--glass-rim-top), inset 0 -1px 1px var(--glass-rim-bottom),
    0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent),
    0 0 0 5px color-mix(in srgb, var(--ink) 5%, transparent),
    var(--glass-shadow);
}
.waitlist__input {
  flex: 1; min-width: 0; height: 44px;
  border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; letter-spacing: -0.022em;
}
.waitlist__input::placeholder { color: var(--muted); }
.waitlist__button { flex: none; }
.waitlist__button[disabled] { opacity: .6; cursor: progress; }
.waitlist[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #d93025, var(--glass-shadow); }
.waitlist__status { margin-top: 8px; min-height: 20px; font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); }
.waitlist__status.is-error { color: #d93025; }
.waitlist__status.is-success { color: var(--ink); font-weight: 600; }
.waitlist.is-done { display: none; }


.hero__stage {
  position: relative; margin-top: 92px; /* + 28 status line = 120 from the form */
  background: var(--tile); border-radius: var(--r-card);
  display: grid; place-items: center;
  padding: 64px 24px 0; height: clamp(520px, 56vw, 640px);
  overflow: hidden;
}
.hero__stage::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  top: 30%; left: 15%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--haze-a) 55%, transparent), transparent);
  filter: blur(20px); opacity: .7;
}

.phone {
  width: 290px; aspect-ratio: 9 / 19.2;
  background: var(--phone-bg); border-radius: 48px; padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative; align-self: start;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 39px; overflow: hidden;
  background: #fbfaf8; color: #0d0d0d;
}
.phone__island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.app { position: absolute; inset: 0; padding: 50px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.app__top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 4px; }
.app__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.019em; }
.app__time { font-size: 11px; color: #8a8a8a; }
.app__card { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 0 0 1px #eee; }
.app__label { font-size: 10.5px; color: #8a8a8a; font-weight: 500; }
.app__card--cue { display: grid; gap: 3px; }
.app__cue { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.app__sub { font-size: 11.5px; color: #6b6b6b; line-height: 1.35; }
.app__card--session { display: grid; gap: 10px; justify-items: center; padding-top: 16px; }
.app__row { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.app__pill { font-size: 10.5px; font-weight: 500; background: #f2f2f2; padding: 3px 8px; border-radius: 999px; }

.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring__track { stroke: #f0f0f0; }
.ring__fill { stroke: #0d0d0d; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 74.8)); transition: stroke-dashoffset 1s linear; }
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__time { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ring__meta { font-size: 10px; color: #8a8a8a; }

.app__card--audio { display: flex; align-items: center; gap: 10px; }
.haze {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  background: conic-gradient(from 200deg, var(--haze-a), var(--haze-b), var(--haze-c), var(--haze-a));
  filter: saturate(1.1);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.app__audio-text { display: grid; line-height: 1.25; }
.app__audio-text strong { font-size: 13px; font-weight: 600; }
.app__audio-text span { font-size: 10.5px; color: #8a8a8a; }
.eq { margin-left: auto; display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: #0d0d0d; border-radius: 2px; animation: eq 1.4s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.eq i:nth-child(2) { height: 90%; animation-delay: -.6s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -1s; }
.eq i:nth-child(4) { height: 30%; animation-delay: -.4s; }
@keyframes eq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }
.app__footnote { margin-top: auto; text-align: center; font-size: 11px; color: #9a9a9a; }

.float-chip {
  position: absolute; z-index: 2;
  background: var(--bg); color: var(--ink);
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 14px; line-height: 1.42859; font-weight: 600; letter-spacing: -0.016em;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.25), inset 0 0 0 1px var(--line);
  animation: float 7s ease-in-out infinite;
}
.float-chip--a { top: 30%; left: calc(50% - 300px); }
.float-chip--b { top: 58%; right: calc(50% - 300px); animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(88px, 12vw, 160px); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head .body-lg { margin-top: 20px; }

.split { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.split .display { max-width: 14em; }
.split .body-lg { margin-top: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.step { padding: 28px; display: flex; flex-direction: column; min-height: 360px; }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--muted); }
.step h3 { margin-top: auto; font-family: var(--font-display); font-size: 28px; line-height: 1.14286; font-weight: 600; letter-spacing: 0.007em; }
.step p { margin-top: 10px; color: var(--muted); font-weight: 400; font-size: 17px; line-height: 1.47059; letter-spacing: -0.022em; max-width: 26em; }
.step__art { height: 132px; margin: 24px 0; position: relative; display: grid; place-items: center; }

.step__art--cue span {
  width: 120px; height: 44px; border-radius: var(--r-pill);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
}
.step__art--cue span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ink);
}
.step__art--cue span::after {
  content: ""; position: absolute; left: 34px; right: 18px; top: 50%; height: 6px; margin-top: -3px; border-radius: 4px; background: var(--tile-2);
}
.step__art--focus span {
  width: 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(var(--ink) 0 72%, var(--tile-2) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 44px, #000 45px);
          mask: radial-gradient(circle, transparent 44px, #000 45px);
  transition: transform .8s var(--ease);
}
.step:hover .step__art--focus span { transform: rotate(40deg); }
.step__art--notice { display: flex; gap: 8px; }
.step__art--notice span { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.step__art--notice span:nth-child(2) { background: var(--ink); box-shadow: none; transform: translateY(-8px); }
.step:hover .step__art--notice span:nth-child(2) { transform: translateY(-14px); }

/* Patterns */
.patterns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.patterns__card { padding: 28px; }
.patterns__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.patterns__title { font-family: var(--font-display); font-size: 21px; line-height: 1.19048; font-weight: 600; letter-spacing: 0.011em; display: block; }
.patterns__range { font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); }
.patterns__caption { margin-top: 20px; color: var(--ink-2); font-size: 17px; }
.heat {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.heat i {
  aspect-ratio: 1.5; border-radius: 6px; background: var(--heat-0);
  opacity: 0; transform: scale(.6);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.heat.is-in i { opacity: 1; transform: none; }
.heat i[data-l="1"] { background: var(--heat-1); }
.heat i[data-l="2"] { background: var(--heat-2); }
.heat i[data-l="3"] { background: var(--heat-3); }
.heat i[data-l="4"] { background: var(--heat-4); }
.patterns__foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; color: var(--muted); }
.patterns__days { font-family: var(--mono); letter-spacing: 0; }
.legend { display: inline-flex; align-items: center; gap: 4px; }
.legend span { margin: 0 4px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend .l1 { background: var(--heat-1); }
.legend .l2 { background: var(--heat-2); }
.legend .l3 { background: var(--heat-3); }
.legend .l4 { background: var(--heat-4); }
.patterns__copy { padding: 28px 12px 12px 28px; display: flex; flex-direction: column; justify-content: flex-end; }

/* Features */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tabs button {
  padding: 10px 0; margin-bottom: -1px;
  font-size: 17px; font-weight: 400; letter-spacing: -0.022em; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:hover { color: var(--ink); }

.features { display: grid; }
.feature {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: opacity .3s var(--ease);
}
.feature[hidden] { display: none; }
.feature__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--muted); }
.feature h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.14286; font-weight: 600; letter-spacing: 0.007em; }
.feature p { margin-top: 6px; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--chip); font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
}
.tag--build { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* CTA */
.cta {
  text-align: center; display: grid; justify-items: center;
  padding: clamp(56px, 9vw, 112px) clamp(24px, 6vw, 80px);
  background: var(--tile); border-radius: var(--r-card);
}
.cta .display { max-width: 13em; }
.cta .body-lg { margin: 20px auto 32px; }
.cta__credit { margin-top: 24px; font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; color: var(--muted); }

/* Footer — ink base revealed beneath the rounded sheet, as on mobbin.com */
.footer {
  position: sticky; bottom: 0; z-index: 0;
  margin-top: calc(var(--r-sheet) * -1);
  background: var(--footer-bg); color: #fff;
}
.footer__inner { padding-top: calc(var(--space-step) + var(--r-sheet)); padding-bottom: var(--space-group); }
/* After ThisDay and Joi: one quiet centred column. The app icon (the one the
   hero shows for this mode), the line, one call back to the form, one row of
   links, a line of fine print. */
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__icon { display: grid; width: 64px; height: 64px; }
.footer__icon img { grid-area: 1 / 1; width: 100%; height: 100%; border-radius: 17px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.footer__icon--night { display: none; }
[data-mode="dark"] .footer__icon--day { display: none; }
[data-mode="dark"] .footer__icon--night { display: block; }
.footer__statement {
  margin-top: var(--space-support);
  font-family: var(--font-display);
  font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: 0.004em;
  max-width: 14em; text-wrap: balance;
}
.footer__cta {
  margin-top: var(--space-group);
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  background: #fff; color: #141414; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), opacity .2s;
}
.footer__cta:hover { opacity: .88; }
.footer__cta:active { transform: scale(.97); }
.footer__links { margin-top: var(--space-step); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; font-size: 14px; letter-spacing: -0.016em; }
.footer__links span { color: rgba(255, 255, 255, .3); }
.footer__links a { color: rgba(255, 255, 255, .6); transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__fine {
  margin-top: var(--space-step); display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 1.43; letter-spacing: -0.016em; color: rgba(255, 255, 255, .45);
}
.footer__studio { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .75); font-weight: 600; transition: color .2s; }
.footer__studio:hover { color: #fff; }
.footer__studio img { width: 20px; height: 20px; border-radius: 50%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* The Focus card's glass blends with the band behind it (plus-lighter). Fading
   or moving the card itself makes it its own layer, so the glass blends with
   nothing and shows black until the animation ends. Fade its layers instead. */
.focuscard.reveal { opacity: 1; transform: none; transition: none; }
.focuscard.reveal .focuspanel::before, .focuscard.reveal .focuspanel::after { opacity: 0; transition: opacity .8s var(--ease); }
.focuscard.reveal .focusstage, .focuscard.reveal .focuscard__copy { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.focuscard.reveal.is-in .focuspanel::before, .focuscard.reveal.is-in .focuspanel::after { opacity: 1; }
.focuscard.reveal.is-in .focusstage, .focuscard.reveal.is-in .focuscard__copy { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Apple's responsive type steps */
@media (max-width: 1068px) {
  .hero__title { font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
  .display, .intro__statement { font-size: 48px; line-height: 1.08349; letter-spacing: -0.003em; }
}
@media (max-width: 734px) {
  .hero__title { font-size: min(48px, 12.8vw); line-height: 1.02; letter-spacing: -0.015em; } /* two set lines fit down to 320px */
  .display, .intro__statement { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
  .body-lg { font-size: 19px; line-height: 1.4211; letter-spacing: 0.012em; }
  .step h3, .feature h3 { font-size: 21px; line-height: 1.19048; letter-spacing: 0.011em; }
}

@media (max-width: 1024px) {
  .patterns { grid-template-columns: 1fr; }
  .patterns__copy { padding: 8px 0 0; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .waitlist { padding-left: 18px; }
  .waitlist__button { padding: 0 14px; }
  .badge { font-size: 13px; gap: 7px; padding-right: 14px; }
  .badge__tag { font-size: 11px; letter-spacing: 0.006em; padding: 3px 8px 3px 6px; gap: 3px; }
  .badge__text { font-size: 12px; letter-spacing: -0.01em; }
  .badge__hourglass { width: 11px; height: 11px; }
  .hero__stage { height: 500px; padding-top: 40px; }
  .icon-stack { width: 72px; height: 72px; }
  .icon-stack img { border-radius: 20px; }
  .phone { width: 244px; border-radius: 42px; }
  .phone__screen { border-radius: 33px; }
  .float-chip--a { left: 8px; top: 12%; }
  .float-chip--b { right: 8px; top: 64%; }
  .feature { grid-template-columns: 1fr auto; }
  .feature__num { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .heat i, .focuscard.reveal .focusstage, .focuscard.reveal .focuscard__copy, .focuscard.reveal .focuspanel::before, .focuscard.reveal .focuspanel::after { opacity: 1; transform: none; }
}
