/* Hourlet site. Monochrome and Apple-native: a plain white or black desktop behind the product
   (with a faint drifting silver sheen), silver gradients for emphasis, plus two accents: warm (streaks, drift) and calm (breaks). */

:root {
  --paper: #ffffff;
  --mist: #f5f5f7;
  --card: #ffffff;
  --graphite: #1d1d1f;
  --slate: #6e6e73;
  --hairline: #d2d2d7;
  --hairline-soft: rgba(0, 0, 0, 0.07);
  --mark: #1d1d1f;
  --bar: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.86);
  --glass-edge: rgba(0, 0, 0, 0.08);
  --control: rgba(0, 0, 0, 0.05);
  --control-edge: rgba(0, 0, 0, 0.07);
  --pill: #ffffff;
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 18px 48px -12px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.04), 0 40px 90px -20px rgba(30, 20, 60, 0.35);
  --focus: #0071e3;
  --warm: #f0562a;
  --warm-soft: rgba(240, 86, 42, 0.12);
  --calm: #1f9e8f;
  --calm-soft: rgba(31, 158, 143, 0.12);
  --heat-0: #ebebef; --heat-1: #c9c9cf; --heat-2: #9a9aa2; --heat-3: #5d5d64; --heat-4: #1d1d1f;
  --wall-base: #ffffff;
  --wall-a: #ececf0; --wall-b: #f5f5f7; --wall-c: #e3e3e8; --wall-d: #fafafa;
  --sheen-a: #1d1d1f; --sheen-b: #6e6e73; --sheen-c: #aeaeb2;

  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --numerals: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 34rem;
  --page: 72rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --mist: #0e0e10;
    --card: #141416;
    --graphite: #f5f5f7;
    --slate: #a1a1a6;
    --hairline: #38383a;
    --hairline-soft: rgba(255, 255, 255, 0.08);
    --mark: #f5f5f7;
    --bar: rgba(30, 30, 34, 0.62);
    --glass: rgba(28, 28, 31, 0.84);
    --glass-edge: rgba(255, 255, 255, 0.1);
    --control: rgba(255, 255, 255, 0.08);
    --control-edge: rgba(255, 255, 255, 0.08);
    --pill: rgba(255, 255, 255, 0.16);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 48px -12px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -20px rgba(0, 0, 0, 0.9);
    --focus: #2997ff;
    --warm: #ff7a4d;
    --warm-soft: rgba(255, 122, 77, 0.16);
    --calm: #3cc9b7;
    --calm-soft: rgba(60, 201, 183, 0.15);
    --heat-0: #202023; --heat-1: #3a3a3f; --heat-2: #66666d; --heat-3: #a5a5ac; --heat-4: #f5f5f7;
    --wall-base: #000000;
    --wall-a: #1a1a1d; --wall-b: #111113; --wall-c: #202024; --wall-d: #0a0a0b;
    --sheen-a: #ffffff; --sheen-b: #c7c7cc; --sheen-c: #6e6e73;
  }
}
:root[data-theme="dark"] {
  --paper: #000000;
  --mist: #0e0e10;
  --card: #141416;
  --graphite: #f5f5f7;
  --slate: #a1a1a6;
  --hairline: #38383a;
  --hairline-soft: rgba(255, 255, 255, 0.08);
  --mark: #f5f5f7;
  --bar: rgba(30, 30, 34, 0.62);
  --glass: rgba(28, 28, 31, 0.84);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --control: rgba(255, 255, 255, 0.08);
  --control-edge: rgba(255, 255, 255, 0.08);
  --pill: rgba(255, 255, 255, 0.16);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 48px -12px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -20px rgba(0, 0, 0, 0.9);
  --focus: #2997ff;
  --warm: #ff7a4d;
  --warm-soft: rgba(255, 122, 77, 0.16);
  --calm: #3cc9b7;
  --calm-soft: rgba(60, 201, 183, 0.15);
  --heat-0: #202023; --heat-1: #3a3a3f; --heat-2: #66666d; --heat-3: #a5a5ac; --heat-4: #f5f5f7;
  --wall-base: #000000;
  --wall-a: #1a1a1d; --wall-b: #111113; --wall-c: #202024; --wall-d: #0a0a0b;
  --sheen-a: #ffffff; --sheen-b: #c7c7cc; --sheen-c: #6e6e73;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2rem, var(--page)); margin-inline: auto; }
.muted { color: var(--slate); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--graphite); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.site-header.scrolled, .doc-page .site-header {
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hairline-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 650; font-size: 1.0625rem; text-decoration: none; letter-spacing: -0.01em;
}
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.site-nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; }
.site-nav a { color: var(--slate); text-decoration: none; transition: color 150ms ease; }
.site-nav a:hover { color: var(--graphite); }
@media (max-width: 46rem) { .site-nav { display: none; } }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border: 0; border-radius: 999px;
  background: var(--graphite); color: var(--paper);
  font-weight: 550; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 160ms ease, background-color 160ms ease;
}
.button:hover { opacity: 0.88; text-decoration: none; }
.button:active { transform: scale(0.97); }
.button--small { padding: 0.4rem 0.95rem; font-size: 0.9375rem; }
.button--ghost {
  background: var(--control); color: var(--graphite);
  box-shadow: inset 0 0 0 1px var(--control-edge);
}
.button--ghost:hover { opacity: 1; background: color-mix(in srgb, var(--graphite) 10%, transparent); }
.button--ghost svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.button--ghost:hover svg { transform: translateY(2px); }

/* The main download button: a big one-line pill with the Apple glyph and a light sweep on hover. */
.download {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 4rem; padding: 0 2.25rem 0 1.9rem;
  border-radius: 999px;
  background: var(--graphite); color: var(--paper);
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 220ms var(--spring), box-shadow 220ms ease;
}
.download::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--paper) 28%, transparent) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.download:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 16px 36px -12px rgba(0, 0, 0, 0.5); }
.download:hover::after { transform: translateX(120%); }
.download:active { transform: translateY(0) scale(0.98); }
/* The glyph's leaf makes it look low; lift it a touch so it sits on the text's centre line. */
.download svg { width: 1.3rem; height: 1.3rem; flex: none; transform: translateY(-0.06em); transition: transform 300ms var(--spring); }
.download:hover svg { transform: translateY(-0.16em); }

/* ---------- Hero ---------- */

.hero { position: relative; padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.25rem);
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero h1 .accent-word {
  background: linear-gradient(100deg, var(--sheen-a) 10%, var(--sheen-b) 55%, var(--sheen-c) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  line-height: 1.4;
  color: var(--slate);
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.news {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1.75rem; padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--control); box-shadow: inset 0 0 0 1px var(--control-edge);
  font-size: 0.875rem; color: var(--slate); text-decoration: none;
}
.news:hover { color: var(--graphite); text-decoration: none; }
.news .short { display: none; }
@media (max-width: 30rem) { .news .long { display: none; } .news .short { display: inline; } }
.news b {
  padding: 0.1rem 0.55rem; border-radius: 999px;
  background: linear-gradient(100deg, var(--sheen-a), var(--sheen-c)); color: var(--paper); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; white-space: nowrap;
}
.cta-row { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.9rem 1rem; }
/* The secondary button beside the download pill: same height, outlined. */
.cta-row .button--ghost {
  min-height: 4rem; padding: 0 2rem;
  background: transparent; font-size: 1.125rem; font-weight: 600;
  box-shadow: inset 0 0 0 2px var(--hairline);
}
.cta-row .button--ghost:hover { background: color-mix(in srgb, var(--graphite) 8%, transparent); }
.fineprint { margin: 1rem 0 0; color: var(--slate); font-size: 0.875rem; }

/* ---------- Demo desktop ---------- */

.stage { margin-top: clamp(3rem, 7vw, 4.5rem); }
.desktop {
  position: relative; isolation: isolate; overflow: hidden;
  height: 46rem;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  background: var(--wall-base);
  outline: 1px solid var(--hairline-soft);
}
.wallpaper { position: absolute; inset: -20%; z-index: -1; filter: blur(60px); }
.wallpaper i { position: absolute; width: 55%; aspect-ratio: 1; border-radius: 50%; opacity: 0.9; }
.wallpaper i:nth-child(1) { background: var(--wall-a); left: 0; top: 5%; animation: drift-a 22s ease-in-out infinite alternate; }
.wallpaper i:nth-child(2) { background: var(--wall-b); right: 0; top: 0; animation: drift-b 26s ease-in-out infinite alternate; }
.wallpaper i:nth-child(3) { background: var(--wall-c); right: 10%; bottom: 0; animation: drift-c 24s ease-in-out infinite alternate; }
.wallpaper i:nth-child(4) { background: var(--wall-d); left: 10%; bottom: 0; width: 40%; animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(18%, 12%) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-16%, 18%) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-12%, -16%) scale(1.12); } }

.mb {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 1.9rem; padding-inline: 1rem;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  font-size: 0.8125rem; font-weight: 500;
}
.mb-menus { display: flex; gap: 1.1rem; white-space: nowrap; overflow: hidden; }
.mb-menus b { font-weight: 650; }
.mb-status { display: flex; align-items: center; gap: 0.9rem; white-space: nowrap; }
.mb-status svg { width: 16px; height: 16px; }
.mb-item {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 1.45rem; padding: 0 0.45rem; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer;
  font: 500 0.8125rem/1 var(--numerals); font-variant-numeric: tabular-nums;
}
.mb-item[aria-expanded="true"] { background: color-mix(in srgb, var(--graphite) 14%, transparent); }
.mb-item .glyph { width: 15px; height: 15px; }
.glyph .track { fill: none; stroke: currentColor; stroke-width: 2.3; opacity: 0.25; }
.glyph .arc { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
.glyph .dot { fill: currentColor; opacity: 0; transition: opacity 200ms ease; }
.glyph.drifting .dot { opacity: 1; }

/* A work window behind the popover, so it reads as a real desktop. */
.app-window {
  position: absolute; left: 5%; top: 4.5rem; width: 50%; height: 30rem;
  border-radius: 14px; overflow: hidden;
  background: var(--glass); box-shadow: var(--shadow);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}
.app-window header { display: flex; gap: 0.45rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--hairline-soft); }
.app-window header i { width: 12px; height: 12px; border-radius: 50%; background: var(--hairline); }
.app-window .lines { padding: 1.25rem 1.5rem; display: grid; gap: 0.7rem; }
.app-window .lines span { height: 0.6rem; border-radius: 99px; background: color-mix(in srgb, var(--graphite) 10%, transparent); }
.app-window .lines span.hl { background: color-mix(in srgb, var(--calm) 35%, transparent); }
.app-window .lines span.cursor { position: relative; }
.app-window .lines span.cursor::after {
  content: ""; position: absolute; right: -6px; top: -3px; width: 2px; height: 1rem; background: var(--graphite);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* The popover, rebuilt in HTML to match the app. */
.pop {
  --pop-w: 348px;
  position: absolute; top: 2.45rem; right: calc(12.5rem - var(--pop-w) / 2);
  width: var(--pop-w);
  padding: 1.1rem 1rem 0.9rem;
  border-radius: 26px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 0 0 0.5px var(--glass-edge), 0 24px 60px -18px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 0;
  transition: opacity 180ms ease, transform 220ms var(--spring);
}
.pop[hidden] { display: block; opacity: 0; transform: scale(0.96) translateY(-6px); pointer-events: none; }
.pop-head { display: flex; align-items: center; gap: 0.5rem; padding-inline: 0.25rem; }
/* The phase button: names the phase and opens a small menu of Focus, Short Break and Long Break. */
.pop-phase { position: relative; }
.pop-phase-btn {
  display: inline-flex; align-items: center; gap: 0.3rem; height: 1.625rem; padding: 0 0.75rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--control); box-shadow: inset 0 0 0 0.5px var(--control-edge);
  font: 600 0.75rem var(--text); color: var(--graphite);
}
.pop-phase-btn svg { width: 9px; height: 9px; color: var(--slate); transition: transform 200ms var(--ease-out); }
.pop-phase-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.pop-phase-menu {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 9.5rem;
  padding: 5px; border-radius: 10px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 0 0 0.5px var(--glass-edge), 0 12px 30px -8px rgba(0, 0, 0, 0.35);
  transform-origin: 0 0; animation: menu-in 140ms var(--ease-out);
}
.pop-phase-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.96); } }
.pop-phase-menu button {
  display: flex; align-items: center; width: 100%; height: 1.5rem; padding: 0 0.5rem 0 1.4rem;
  border: 0; border-radius: 5px; background: transparent; cursor: pointer; text-align: left;
  font: 500 0.8125rem var(--text); color: var(--graphite); position: relative;
}
.pop-phase-menu button[aria-checked="true"]::before { content: "✓"; position: absolute; left: 0.45rem; font-size: 0.75rem; }
.pop-phase-menu button:not([aria-disabled="true"]):hover,
.pop-phase-menu button:not([aria-disabled="true"]):focus-visible { background: var(--control); outline: none; }
.pop-phase-menu button[aria-disabled="true"] { color: var(--slate); cursor: default; opacity: 0.6; }
.pop-phase-menu .hint {
  margin: 4px 0 0; padding: 5px 0.5rem 1px 1.4rem; border-top: 0.5px solid var(--hairline-soft);
  font-size: 0.75rem; color: var(--slate); white-space: nowrap;
}
/* Under the phase button: which session is next, and once it runs, when it ends. */
.pop-session {
  margin-top: 0.75rem; height: 1.375rem; display: grid; place-items: center;
  font: 500 0.75rem var(--numerals); font-variant-numeric: tabular-nums; color: var(--slate);
}
.pop-head .spacer { flex: 1; }
.pop-streak { display: inline-flex; align-items: center; gap: 0.2rem; font: 600 0.8125rem var(--numerals); }
.pop-streak svg { width: 13px; height: 13px; }
.pop-streak.bump { animation: bump 500ms var(--spring); }
.pop-streak.bump svg { color: var(--warm); }
@keyframes bump { 40% { transform: scale(1.25); } }
.pop-more { color: var(--slate); letter-spacing: 0.1em; font-weight: 700; }
.pop-ring { width: 184px; margin: 0.75rem auto 0.5rem; }
.pop.on-break .dial { --arc: var(--calm); }

/* The timer dial, as in the app: a minute bezel, a track, an arc that brightens toward a lit head,
   and the phase icon, time, session dashes and caption inside. --f is the elapsed fraction. */
@property --f { syntax: "<number>"; inherits: true; initial-value: 0; }
.dial { --f: 0; --arc: var(--graphite); position: relative; aspect-ratio: 1; container-type: inline-size; }
.dial .bezel { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--graphite); }
.dial .bezel line { stroke: currentColor; stroke-width: 1; stroke-linecap: round; opacity: 0.12; }
.dial .bezel line.major { stroke-width: 1.3; opacity: 0.26; }
.dial-track, .dial-fill {
  position: absolute; inset: 4.08%; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(89.35% - 0.6px), #000 89.35%);
  mask: radial-gradient(farthest-side, transparent calc(89.35% - 0.6px), #000 89.35%);
}
.dial-track { background: color-mix(in srgb, var(--graphite) 8%, transparent); }
.dial-fill { background: conic-gradient(color-mix(in srgb, var(--arc) 22%, transparent) 0turn, var(--arc) calc(var(--f) * 1turn), transparent 0); }
.dial-head { position: absolute; inset: 0; rotate: calc(var(--f) * 1turn); transition: opacity 200ms ease; }
.dial-head::before {
  content: ""; position: absolute; left: 50%; top: 3.26%; width: 6.52%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; background: var(--arc); box-shadow: 0 0 8px color-mix(in srgb, var(--arc) 45%, transparent);
}
.dial.empty .dial-head { opacity: 0; }
.dial-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.dial .glyph { width: 8cqi; height: 8cqi; color: var(--slate); margin-bottom: 1cqi; }
/* The icon above the time is a button: click it to pick another symbol, like the app. */
.glyph-btn {
  display: grid; place-items: center; width: 15cqi; height: 9.5cqi; margin-bottom: 1cqi; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--slate); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.glyph-btn .glyph { margin: 0; color: inherit; }
.glyph-btn:hover, .glyph-btn[aria-expanded="true"] { background: var(--control); color: var(--graphite); }
.glyph-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.glyph-btn .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.icon-picker {
  position: absolute; z-index: 6; top: 30%; left: 50%; translate: -50% 0;
  padding: 10px; border-radius: 12px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 0 0 0.5px var(--glass-edge), 0 12px 30px -8px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 0; animation: menu-in 140ms var(--ease-out);
}
.icon-picker[hidden] { display: none; }
.icon-picker-title { margin: 0 0 8px 2px; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; color: var(--slate); }
.icon-grid { display: grid; grid-template-columns: repeat(6, 1.75rem); gap: 4px; }
.icon-grid button {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0;
  border: 0; border-radius: 7px; cursor: pointer; color: var(--slate);
  background: color-mix(in srgb, var(--graphite) 6%, transparent);
}
.icon-grid button:hover, .icon-grid button:focus-visible { color: var(--graphite); background: color-mix(in srgb, var(--graphite) 11%, transparent); outline: none; }
.icon-grid button[aria-pressed="true"] { color: var(--graphite); background: color-mix(in srgb, var(--graphite) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--graphite) 35%, transparent); }
.pop .icon-grid svg { width: 15px; height: 15px; }
.icon-grid .none svg { opacity: 0.6; }
.dial .num { font: 600 21.7cqi/1.05 var(--numerals); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dial .dashes { margin-top: 3.3cqi; }
.dial .caption { margin-top: 3.3cqi; }
.caption { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; color: var(--slate); }
.dashes { display: flex; gap: 4px; justify-content: center; }
.dashes i { width: 7px; height: 3px; border-radius: 99px; background: color-mix(in srgb, var(--graphite) 15%, transparent); }
.dashes i.on { background: var(--graphite); }
.dashes i.cur { background: color-mix(in srgb, var(--graphite) 50%, transparent); }
.dashes i.cur.live { background: var(--graphite); animation: breathe 1.4s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.3; } to { opacity: 0.75; } }
.pop-task { margin: 0; text-align: center; font-size: 0.875rem; }
.pop-note {
  display: flex; justify-content: center; align-items: center; gap: 0.3rem;
  margin: 0.2rem 0 0; min-height: 1.2rem;
  font-size: 0.75rem; color: var(--slate);
  transition: opacity 250ms ease;
}
.pop-note svg { width: 12px; height: 12px; }
.pop-controls { display: flex; justify-content: center; gap: 0.8rem; margin-top: 1rem; }
.pbtn {
  min-width: 4.4rem; height: 2.15rem; padding: 0 1rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--control); box-shadow: inset 0 0 0 0.5px var(--control-edge);
  font-size: 0.875rem; font-weight: 500;
  transition: transform 140ms var(--ease-out), background-color 140ms ease, opacity 140ms ease;
}
.pbtn:hover { background: color-mix(in srgb, var(--graphite) 10%, transparent); }
.pbtn:active { transform: scale(0.95); }
.pbtn:disabled { opacity: 0.4; cursor: default; }
.pbtn--primary { min-width: 6.8rem; background: var(--graphite); color: var(--paper); font-weight: 600; }
.pbtn--primary:hover { background: var(--graphite); opacity: 0.88; }
.pbtn--primary.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--graphite) 30%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--graphite) 0%, transparent); }
}
.pop-music {
  display: flex; align-items: center; gap: 0.5rem;
  height: 2.3rem; margin-top: 1rem; padding: 0 0.35rem 0 0.9rem;
  border-radius: 999px; background: var(--control); box-shadow: inset 0 0 0 0.5px var(--control-edge);
  font-size: 0.875rem; color: var(--slate);
}
.pop-music > svg { width: 15px; height: 15px; }
.pop-music .spacer { flex: 1; }
.icon-btn {
  display: grid; place-items: center; width: 1.8rem; height: 1.8rem;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--slate);
}
.icon-btn:hover { background: var(--control); color: var(--graphite); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn[aria-pressed="true"] { color: var(--graphite); }
.pop-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 0.6rem; padding: 3px; border-radius: 999px;
  background: var(--control); box-shadow: inset 0 0 0 0.5px var(--control-edge);
}
.pop-tabs::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--pill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 260ms var(--spring);
}
.pop-tabs[data-tab="progress"]::before { transform: translateX(100%); }
.pop-tabs button {
  position: relative; height: 1.55rem; border: 0; background: transparent; cursor: pointer;
  font-size: 0.75rem; font-weight: 500; color: var(--slate);
}
.pop-tabs button[aria-selected="true"] { color: var(--graphite); font-weight: 600; }
.pop-panel { height: 11.5rem; padding: 0.75rem 0.25rem 0; overflow: hidden; }
.pop-panel[hidden] { display: none; }

.tasklist { list-style: none; margin: 0; padding: 0; display: grid; }
.task {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.35rem; border-radius: 8px;
  font-size: 0.875rem;
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
.task:hover { background: var(--control); }
.task .check {
  position: relative; flex: none; width: 1.1rem; height: 1.1rem; padding: 0;
  border: 1.5px solid var(--slate); border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms var(--spring);
}
.task .check::after {
  content: ""; position: absolute; left: 0.3rem; top: 0.14rem; width: 0.28rem; height: 0.5rem;
  border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 220ms var(--spring) 60ms;
}
.task .check:active { transform: scale(0.85); }
.task.done .check { background: var(--graphite); border-color: var(--graphite); }
.task.done .check::after { transform: rotate(45deg) scale(1); }
.task .title { flex: 0 1 auto; margin-right: auto; position: relative; }
.task .title::after {
  content: ""; position: absolute; left: 0; top: 55%; height: 1px; width: 0; background: var(--slate);
  transition: width 300ms var(--ease-out);
}
.task.done .title { color: var(--slate); }
.task.done .title::after { width: 100%; }
.task em { font: normal 500 0.75rem var(--numerals); color: var(--slate); font-variant-numeric: tabular-nums; }
.task.current .title { font-weight: 600; }

.mini-stats { display: flex; gap: 1.1rem; align-items: flex-end; }
.mini-stats div { display: grid; }
.mini-stats b { font: 600 1.05rem var(--numerals); font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 0.6875rem; color: var(--slate); }
.heat { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: repeat(7, 1fr); gap: 3px; margin-top: 0.8rem; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--heat-0); transition: background-color 400ms ease; }
.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); }
.heat i.today { outline: 1.5px solid var(--warm); outline-offset: -1.5px; }

.notif {
  position: absolute; top: 2.6rem; right: 0.75rem; z-index: 5;
  display: flex; gap: 0.75rem; align-items: flex-start;
  width: min(22rem, calc(100% - 1.5rem));
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 0 0 0.5px var(--glass-edge), 0 18px 40px -14px rgba(0, 0, 0, 0.45);
  font-size: 0.8125rem; line-height: 1.35;
  transform: translateX(calc(100% + 2rem)); opacity: 0;
  transition: transform 520ms var(--spring), opacity 300ms ease;
}
.notif.show { transform: none; opacity: 1; }
.notif img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.notif strong { display: block; font-weight: 600; }
.notif span { color: var(--slate); }
.notif .actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.notif .actions button { padding: 0.25rem 0.65rem; border: 0; border-radius: 999px; background: var(--control); font-size: 0.75rem; font-weight: 500; }

.demo-hint { margin: 1rem 0 0; text-align: center; font-size: 0.875rem; color: var(--slate); }
.demo-hint kbd { font: 600 0.8125rem var(--text); }

@media (max-width: 56rem) {
  .app-window { display: none; }
  .mb-menus { display: none; }
  .mb { justify-content: flex-end; }
  .desktop { height: auto; padding-bottom: 1rem; }
  .pop { position: relative; top: auto; right: auto; margin: 0.6rem auto 0; }
  .notif { top: 2.3rem; }
}
@media (max-width: 26rem) {
  .pop { --pop-w: calc(100vw - 2.75rem); padding-inline: 0.75rem; }
  .mb-status .hide-small { display: none; }
  .pop-controls { gap: 0.5rem; }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden; padding-block: 1.25rem;
  border-block: 1px solid var(--hairline-soft);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 0.75rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--mist); font-size: 0.9375rem; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; color: var(--slate); }
@keyframes marquee { to { transform: translateX(calc(-50% - 0.375rem)); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-title .muted { color: var(--slate); }
.section-lede { max-width: 38rem; margin: 0; color: var(--slate); font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.5; }
.section p { max-width: var(--measure); }

/* ---------- Bento ---------- */

.bento {
  display: grid; gap: 1rem; margin-top: 3rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 20rem; padding: 1.6rem;
  border-radius: 24px;
  background: var(--mist);
}
.tile h3 { margin: 0; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.02em; }
.tile p { margin: 0.35rem 0 0; color: var(--slate); font-size: 0.9688rem; line-height: 1.45; }
.tile .visual { flex: 1; display: grid; place-items: center; align-content: center; min-height: 9rem; }
.t-faces { grid-column: span 4; }
.t-tasks { grid-column: span 2; }
.t-streak { grid-column: span 2; }
.t-heat { grid-column: span 4; }
.t-sound { grid-column: span 3; }
.t-menubar { grid-column: span 3; }
@media (max-width: 60rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-faces, .t-heat { grid-column: span 2; }
  .t-tasks, .t-streak, .t-sound, .t-menubar { grid-column: span 1; }
}
@media (max-width: 40rem) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { grid-column: auto !important; min-height: 0; }
}

.seg {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--control); box-shadow: inset 0 0 0 0.5px var(--control-edge);
}
.seg button {
  padding: 0.35rem 0.9rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 0.8125rem; font-weight: 500; color: var(--slate);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.seg button[aria-pressed="true"] { background: var(--pill); color: var(--graphite); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

.faces { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; width: 100%; }
.faces .seg { grid-column: 1 / -1; justify-self: start; }
.face-stage { position: relative; grid-column: 1 / -1; height: 12rem; display: grid; place-items: center; }
.face { position: absolute; display: grid; place-items: center; gap: 0.6rem; opacity: 0; transform: scale(0.94); transition: opacity 300ms ease, transform 400ms var(--spring); }
.face.on { opacity: 1; transform: none; }
.face-ring { width: 10.5rem; }
.faces .dial { width: 100%; transition: --f 1s linear; }
.face-bar .num, .face-min .num { font: 600 3rem/1.05 var(--numerals); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.face-bar { width: min(22rem, 70vw); gap: 0; }
.face-label { display: flex; align-items: center; gap: 0.4rem; }
.face-bar .glyph, .face-min .glyph { width: 15px; height: 15px; color: var(--slate); }
.face-bar .num { margin: 0.1rem 0 0.6rem; }
.face-bar .track { --w: 0%; position: relative; width: 100%; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--graphite) 8%, transparent); }
.face-bar .fill { height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--graphite) 22%, transparent), var(--graphite)); transition: width 1s linear; }
.face-bar .head { position: absolute; top: 50%; left: var(--w); width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 8px color-mix(in srgb, var(--graphite) 45%, transparent); transition: left 1s linear; }
.face-bar .dashes { margin-top: 0.9rem; }
.face-min { gap: 0; }
.face-min .num { font-size: 4.25rem; }
.face-min .dashes { margin: 0.4rem 0 0.55rem; }

.t-tasks .tasklist { width: 100%; }

.streak { display: grid; justify-items: center; gap: 0.35rem; }
.streak .count { display: flex; align-items: center; gap: 0.4rem; font: 650 4.25rem/1 var(--numerals); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.streak .count svg { width: 2.6rem; height: 2.6rem; color: var(--warm); transform-origin: 50% 90%; animation: flicker 2.8s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.05, 0.97) rotate(-2deg); } 60% { transform: scale(0.97, 1.04) rotate(2deg); } }
.streak .sub { font-size: 0.875rem; color: var(--slate); }
.freezes { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.freezes span {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--calm-soft); color: var(--calm); font-size: 0.75rem; font-weight: 600;
}
.freezes svg { width: 12px; height: 12px; }

.t-heat .heat { width: 100%; grid-template-rows: repeat(7, minmax(0, 1fr)); gap: 4px; }
.t-heat .heat i { border-radius: 4px; transform: scale(0.4); opacity: 0; }
.t-heat.in .heat i { animation: pop-in 420ms var(--spring) forwards; animation-delay: calc(var(--d) * 14ms); }
@keyframes pop-in { to { transform: none; opacity: 1; } }
.heat-legend { margin-top: 0.75rem; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--slate); }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; }

.sounds { display: grid; gap: 1.1rem; justify-items: center; width: 100%; }
.wave { display: flex; align-items: center; gap: 4px; height: 4.5rem; }
.wave i { width: 5px; height: 20%; border-radius: 99px; background: var(--graphite); opacity: 0.25; transition: opacity 300ms ease; }
.sounds.playing .wave i { opacity: 0.9; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -90ms); }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: calc(30% + var(--h) * 70%); } }
.sound-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.sound-buttons button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline-soft);
  font-size: 0.875rem; font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.sound-buttons button:active { transform: scale(0.96); }
.sound-buttons button[aria-pressed="true"] { background: var(--graphite); color: var(--paper); }
.sound-buttons svg { width: 13px; height: 13px; }

.mb-preview {
  display: flex; justify-content: flex-end; align-items: center; gap: 1rem;
  width: 100%; max-width: 22rem; height: 2.1rem; padding: 0 0.9rem; border-radius: 10px;
  background: var(--bar); box-shadow: inset 0 0 0 1px var(--hairline-soft);
  font-size: 0.8125rem; font-weight: 500;
}
.mb-preview .mb-item { background: color-mix(in srgb, var(--graphite) 12%, transparent); cursor: default; }
.mb-preview .muted { color: var(--slate); }
.menubar-visual { display: grid; gap: 1.25rem; justify-items: center; width: 100%; }
.glyph-row { display: flex; gap: 1.1rem; align-items: center; }
.glyph-row figure { margin: 0; display: grid; justify-items: center; gap: 0.35rem; font-size: 0.6875rem; color: var(--slate); }
.glyph-row svg { width: 26px; height: 26px; }

/* ---------- Focus Guard (always dark) ---------- */

.guard {
  --g-paper: #0b0b0d; --g-card: #16161a; --g-text: #f5f5f7; --g-slate: #a1a1a6; --g-edge: rgba(255, 255, 255, 0.09);
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: clamp(0rem, 2vw, 1.5rem);
  border-radius: clamp(0px, 3vw, 36px);
  background: var(--g-paper); color: var(--g-text);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.guard::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 70%; z-index: -1;
  background: radial-gradient(50% 60% at 30% 40%, rgba(255, 255, 255, 0.10), transparent 70%),
              radial-gradient(40% 50% at 75% 30%, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(40px);
}
.guard .eyebrow, .guard .section-lede, .guard .muted { color: var(--g-slate); }
.guard-grid { display: grid; gap: 2.5rem; margin-top: 3rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 56rem) { .guard-grid { grid-template-columns: minmax(0, 1fr); } }
.g-card { padding: 1.5rem; border-radius: 24px; background: var(--g-card); box-shadow: inset 0 0 0 1px var(--g-edge); }
.g-card h3 { margin: 0 0 0.25rem; font-size: 1.125rem; }
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.score { font: 650 3rem/1 var(--numerals); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.score small { font-size: 0.875rem; font-weight: 500; color: var(--g-slate); letter-spacing: 0; margin-left: 0.3rem; }
.timeline { position: relative; display: flex; height: 3rem; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.seg-app { position: relative; height: 100%; flex: var(--w) 0 0; display: flex; align-items: center; padding-left: 0.6rem; font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); white-space: nowrap; overflow: hidden; }
.seg-app + .seg-app { box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.4); }
.seg-app.work { background: #3a3a40; }
.seg-app.work.alt { background: #4b4b52; }
.seg-app.drift { background: var(--warm); color: #fff; }
.timeline .cover { position: absolute; inset: 0; left: var(--p, 0%); background: #1c1c21; transition: left 80ms linear; }
.timeline .playhead { position: absolute; top: -4px; bottom: -4px; left: var(--p, 0%); width: 2px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
.ticks { display: flex; justify-content: space-between; margin-top: 0.5rem; font: 500 0.75rem var(--numerals); color: var(--g-slate); }
.legend { display: grid; gap: 0.55rem; margin-top: 1.5rem; }
.legend div { display: grid; grid-template-columns: 0.75rem 1fr auto; gap: 0.6rem; align-items: center; font-size: 0.9375rem; }
.legend i { width: 0.75rem; height: 0.75rem; border-radius: 3px; }
.legend b { font: 500 0.9375rem var(--numerals); font-variant-numeric: tabular-nums; color: var(--g-slate); }
.guard .notif { position: relative; top: auto; right: auto; width: 100%; margin-top: 1.5rem; background: rgba(40, 40, 46, 0.92); color: var(--g-text); transform: translateY(12px); }
.guard .notif span { color: var(--g-slate); }
.guard .notif.show { transform: none; }
.guard .notif .actions button { background: rgba(255, 255, 255, 0.1); color: var(--g-text); }
.modes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.modes span { padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.8125rem; font-weight: 500; }
.never { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.never li { display: flex; gap: 0.7rem; align-items: center; }
.never svg { width: 18px; height: 18px; flex: none; }
.never .yes svg { color: var(--calm); }
.never .no svg { color: var(--g-slate); }
.never .no { color: var(--g-slate); }
.guard figure { margin: 3rem 0 0; }
.guard figure img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--g-edge), 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.guard figcaption { margin-top: 0.9rem; font-size: 0.875rem; color: var(--g-slate); text-align: center; }

/* ---------- Calendar + Do Not Disturb ---------- */

.pair { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 56rem) { .pair { grid-template-columns: minmax(0, 1fr); } }
.pair .tile { min-height: 22rem; }
.day { position: relative; width: 100%; padding-top: 1.5rem; }
.day-scale { display: flex; justify-content: space-between; font: 500 0.75rem var(--numerals); color: var(--slate); margin-bottom: 0.5rem; }
.day-track { position: relative; height: 5.5rem; border-radius: 14px; background: color-mix(in srgb, var(--graphite) 5%, transparent);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--hairline-soft) calc(25% - 1px) 25%); }
.now-line { position: absolute; top: -0.35rem; bottom: -0.35rem; left: 30%; width: 2px; background: var(--warm); border-radius: 2px; }
.now-line::before { content: "10:36"; position: absolute; bottom: -1.35rem; left: 50%; transform: translateX(-50%); font: 700 0.6875rem var(--numerals); color: var(--warm); }
.event {
  position: absolute; top: 0.6rem; bottom: 0.6rem; left: 50%; width: 37.5%;
  padding: 0.5rem 0.7rem; border-radius: 10px;
  background: color-mix(in srgb, #6e5bff 18%, var(--paper)); box-shadow: inset 3px 0 0 #6e5bff;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.25;
}
.event small { display: block; font-weight: 500; color: var(--slate); }
.session {
  position: absolute; top: 1.2rem; bottom: 1.2rem; left: 30%; width: 0;
  display: flex; align-items: center; padding-left: 0.6rem; overflow: hidden; white-space: nowrap;
  border-radius: 8px; background: var(--graphite); color: var(--paper);
  font-size: 0.75rem; font-weight: 600;
  transition: width 900ms var(--ease-out);
}
.session-ghost {
  position: absolute; top: 1.2rem; bottom: 1.2rem; left: 30%; width: 0;
  border-radius: 8px; border: 1.5px dashed var(--warm); opacity: 0;
  transition: width 900ms var(--ease-out), opacity 300ms ease;
}
.day.stage-1 .session-ghost { width: 20.8%; opacity: 1; }
.day.stage-2 .session-ghost { width: 20.8%; opacity: 0.5; }
.day.stage-2 .session { width: 18.3%; }
.day-caption { margin-top: 1.9rem; min-height: 1.4rem; font-size: 0.875rem; color: var(--slate); }
.day-caption b { color: var(--graphite); }

.dnd { display: grid; gap: 1rem; justify-items: center; width: 100%; }
.dnd-tile {
  display: flex; align-items: center; gap: 0.75rem; width: min(100%, 16rem);
  padding: 0.75rem 1rem; border-radius: 16px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline-soft);
  transition: background-color 400ms ease, color 400ms ease;
}
.dnd-tile .moon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--control); transition: background-color 400ms ease, color 400ms ease; }
.dnd-tile .moon svg { width: 16px; height: 16px; }
.dnd-tile b { display: block; font-size: 0.9375rem; }
.dnd-tile span { font-size: 0.8125rem; color: var(--slate); }
.dnd.on .dnd-tile .moon { background: #6e5bff; color: #fff; }
.dnd-state::after { content: "Off"; }
.dnd.on .dnd-state::after { content: "On"; }
.dnd-steps { display: flex; gap: 0.35rem; align-items: center; font-size: 0.75rem; color: var(--slate); }
.dnd-steps span { padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--control); transition: background-color 300ms ease, color 300ms ease; }
.dnd-steps span.on { background: var(--graphite); color: var(--paper); }

/* ---------- Comparison ---------- */

.compare { margin-top: 3rem; overflow-x: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hairline); }
.compare table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 38rem; }
.compare th, .compare td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--hairline-soft); vertical-align: middle; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-size: 0.8125rem; font-weight: 600; color: var(--slate); background: var(--mist); }
.compare thead th.us { color: var(--graphite); }
.compare tbody th { font-weight: 500; }
.compare td.us { background: color-mix(in srgb, var(--graphite) 3.5%, transparent); font-weight: 600; }
.compare .yes, .compare .no, .compare .meh { display: inline-flex; align-items: center; gap: 0.4rem; }
.compare svg { width: 16px; height: 16px; flex: none; }
.compare .yes svg { color: var(--calm); }
.compare .no { color: var(--slate); }
.compare .meh { color: var(--slate); }

/* ---------- Privacy ---------- */

.privacy { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
@media (max-width: 52rem) { .privacy { grid-template-columns: minmax(0, 1fr); } }
.zero { display: flex; align-items: baseline; gap: 0.75rem; margin: 2rem 0 0.25rem; }
.zero b { font: 700 clamp(4.5rem, 12vw, 7.5rem)/0.9 var(--numerals); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.zero span { font-size: 1.125rem; color: var(--slate); }
.zero-sub { font-size: 0.9375rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 0.1rem; color: var(--calm); }
.shot { margin: 0 auto; width: min(100%, 348px); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper); }
.shot img { width: 100%; height: auto; }

/* ---------- Install ---------- */

.steps-grid { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
@media (max-width: 52rem) { .steps-grid { grid-template-columns: minmax(0, 1fr); } }
.step { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: 24px; background: var(--mist); }
.step .num { font: 700 0.875rem var(--numerals); color: var(--slate); }
.step h3 { margin: 0; font-size: 1.125rem; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--slate); font-size: 0.9375rem; }
.step .art { height: 8.5rem; display: grid; place-items: center; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline-soft); overflow: hidden; position: relative; }
/* Step 1: a tiny Terminal window running the installer. */
.term-art { width: 84%; border-radius: 10px; overflow: hidden; background: #1d1d1f; color: #f5f5f7; font: 0.72rem/1.5 var(--mono); text-align: left; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.term-art .bar { display: flex; gap: 0.3rem; padding: 0.45rem 0.6rem; background: #2c2c2e; }
.term-art .bar i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #48484a; }
.term-art p { margin: 0; padding: 0 0.7rem; white-space: nowrap; overflow: hidden; }
.term-art p:first-of-type { padding-top: 0.55rem; }
.term-art p:last-child { padding-bottom: 0.65rem; }
.term-art .muted { color: #8e8e93; }
.term-art .ok { color: #5fd3c3; }
.step.in .term-art .ok { animation: appear 3s ease-in-out infinite; }
@keyframes appear { 0%, 40% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Key caps, in the sheet and the steps; step 2's art presses ⌘ V return in turn. */
kbd {
  display: inline-block; min-width: 1.5em; padding: 0.05em 0.4em; border-radius: 5px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline), 0 1px 0 var(--hairline);
  font: 600 0.8em/1.5 var(--text); color: var(--graphite); text-align: center;
}
.keys-art { display: flex; gap: 0.5rem; }
.keys-art kbd { min-width: 2.6rem; padding: 0.55rem 0.7rem; border-radius: 9px; font-size: 1rem; background: var(--mist); }
.keys-art kbd.wide { min-width: 4.5rem; font-size: 0.8rem; }
.step.in .keys-art kbd { animation: press 2.6s ease-in-out infinite; }
.step.in .keys-art kbd:nth-child(2) { animation-delay: 0.25s; }
.step.in .keys-art kbd:nth-child(3) { animation-delay: 0.7s; }
@keyframes press { 0%, 55%, 100% { transform: none; } 60% { transform: scale(0.9); } 66% { transform: none; } }
.drag-art { display: flex; align-items: center; gap: 0.7rem; font-size: 0.875rem; font-weight: 500; }
.drag-art img { border-radius: 10px; }
.drag-art .arrow { color: var(--slate); }
.step.in .drag-art img { animation: press 2.6s ease-in-out infinite; }
.open-anyway { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--mist); font-size: 0.8125rem; }
.step.in .open-anyway { animation: press 2.6s ease-in-out infinite; }
.login-art { display: flex; align-items: center; gap: 0.9rem; font-size: 0.875rem; font-weight: 500; }
.switch { position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--hairline); transition: background-color 300ms ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.5rem - 4px); height: calc(1.5rem - 4px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 300ms var(--spring); }
.step.in .switch { animation: switch-bg 3s ease-in-out infinite; }
.step.in .switch::after { animation: switch-knob 3s ease-in-out infinite; }
@keyframes switch-bg { 0%, 30% { background: var(--hairline); } 40%, 100% { background: var(--calm); } }
@keyframes switch-knob { 0%, 30% { transform: none; } 40%, 100% { transform: translateX(1.1rem); } }

.checksum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 16px; background: var(--mist);
  font-size: 0.875rem; color: var(--slate);
}
.checksum > span { flex: 1 1 16rem; }
.checksum code { display: block; margin-top: 0.25rem; font: 0.8125rem/1.5 var(--mono); overflow-wrap: anywhere; color: var(--graphite); }
code.inline { font: 0.875em var(--mono); color: var(--graphite); }
.checksum code.inline { display: inline; margin: 0; font-size: 0.8125rem; }

/* The install command, with its Copy button, in step 1 and the Download sheet. */
.cmd { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.7rem 0.7rem 0.9rem; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline-soft); }
.cmd code { flex: 1; min-width: 0; font: 0.78rem/1.5 var(--mono); color: var(--graphite); overflow-wrap: anywhere; user-select: all; }
.install-note { max-width: 48rem; margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--slate); }

/* The disk-image route, folded away under the steps. */
.manual { max-width: 48rem; margin-top: 1rem; border-top: 1px solid var(--hairline); }
.manual summary { cursor: pointer; padding-block: 1rem; font-weight: 600; color: var(--graphite); }
.manual > div { padding-bottom: 0.5rem; color: var(--slate); font-size: 0.9375rem; }
.manual > div > p { margin: 0 0 0.75rem; }
.manual .checksum { margin-top: 1rem; }

/* The sheet a Download button opens. */
dialog.get {
  width: min(28rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0;
  border: 0; border-radius: 24px; background: var(--card); color: var(--graphite);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--hairline-soft);
}
dialog.get[open] { animation: sheet-in 320ms var(--ease-out); }
dialog.get::backdrop { background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.get-body { position: relative; display: grid; gap: 1rem; padding: 1.75rem 1.5rem 1.5rem; }
.get-body img { width: 56px; height: 56px; border-radius: 13px; }
.get-body h2 { margin: 0; font-size: 1.375rem; letter-spacing: -0.02em; }
.get-close {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%;
  background: var(--control); color: var(--slate); font: 400 1.25rem/1 var(--text); cursor: pointer;
}
.get-close:hover { color: var(--graphite); }
.get-status { margin: -0.5rem 0 0; font-weight: 600; color: var(--slate); }
.get-status.done { color: var(--calm); }
.get-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.6rem; font-size: 0.9375rem; line-height: 1.55; }
.get-body .cmd { background: var(--mist); }
.get-terminal { padding-top: 0.9rem; border-top: 1px solid var(--hairline-soft); font-size: 0.8125rem; color: var(--slate); }
.get-terminal summary { cursor: pointer; font-weight: 600; color: var(--graphite); }
.get-terminal p { margin: 0.6rem 0; }
.get-note, .get-alt { margin: 0; font-size: 0.8125rem; color: var(--slate); }
.get-alt { padding-top: 0.9rem; border-top: 1px solid var(--hairline-soft); }
.copy { flex: none; }
.copy.done { background: var(--calm); color: #fff; }

/* ---------- FAQ ---------- */

.faq > * { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1.2rem; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-top: 0.45rem;
  border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate);
  transform: rotate(45deg); transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.7rem; }
.faq details::details-content { height: 0; overflow: clip; transition: height 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details > div { padding-bottom: 1.2rem; color: var(--slate); }
.faq details > div p { margin: 0 0 0.75rem; }

/* ---------- Final call to action ---------- */

.final {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: clamp(0rem, 2vw, 1.5rem); margin-bottom: clamp(0rem, 2vw, 1.5rem);
  border-radius: clamp(0px, 3vw, 36px);
  padding-block: clamp(4.5rem, 10vw, 7rem);
  text-align: center; background: var(--wall-base);
}
.final .wallpaper { opacity: 0.8; }
.final .dial { width: min(14rem, 50vw); margin: 0 auto 2rem; }
.dial svg { width: 100%; height: auto; overflow: visible; }
.dial .track { fill: none; stroke: color-mix(in srgb, var(--graphite) 12%, transparent); stroke-width: 22; }
.dial .arc { fill: none; stroke: var(--mark); stroke-width: 22; stroke-linecap: round; }
.dial figcaption { margin-top: 1rem; color: var(--slate); font-size: 0.9375rem; }
.dial .minutes { font-family: var(--numerals); font-weight: 600; color: var(--graphite); font-variant-numeric: tabular-nums; }
.final h2 { margin: 0 auto 1rem; max-width: 40rem; text-wrap: balance; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 750; }
.final .cta-row { margin-top: 2rem; }

/* ---------- Legal pages ---------- */

.doc { padding-block: clamp(3rem, 7vw, 5rem); }
.doc .wrap { max-width: 44rem; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.04em; margin: 0 0 0.5rem; line-height: 1.05; }
.doc h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; letter-spacing: -0.015em; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc .license-text { font: 0.75rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--mist); border: 1px solid var(--hairline-soft); border-radius: 12px; padding: 1rem 1.25rem; color: var(--slate); max-height: 28rem; overflow: auto; }

/* What's new: one block per release, like the app's window. */
.release { border-top: 1px solid var(--hairline-soft); padding-top: 1.75rem; margin-top: 1.75rem; }
.release header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.release h2 { margin: 0; }
.release .version { font: 0.8125rem var(--mono); background: var(--mist); border: 1px solid var(--hairline-soft); border-radius: 6px; padding: 0.15rem 0.5rem; color: var(--graphite); }
.release h3 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin: 1.25rem 0 0.5rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline-soft); padding-block: 2.5rem 3rem; font-size: 0.875rem; color: var(--slate); }
.site-footer .wrap { display: grid; gap: 0.5rem; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer nav a { color: var(--graphite); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; max-width: 44rem; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .t-heat .heat i { transform: none; opacity: 1; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
