/* ═══════════════════════════════════════════════════════════════════════
   Pure Focus — marketing homepage
   Same visual language as the app (styles.css): translucent glass over an
   animated aurora, rounded type, a glowing progress ring.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Ember defaults; themes.css and home.js swap these live via data-pf-theme. */
  --accent: #ff6b35;
  --focus-tint: #e8482b;
  --break-tint: #2aa198;
  --longbreak-tint: #7c5cbf;
  --ring: var(--focus-tint);

  --page: #07070a;
  --surface-1: #121214;
  --text-primary: #f3f2ef;
  --text-secondary: #c3c2b7;
  --text-muted: #8e8c86;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --radius-card: 28px;
  --radius-inner: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;

  --gutter: 24px;
  --maxw: 1180px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--focus-tint) 55%, transparent); color: #fff; }

h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 19px; letter-spacing: -0.012em; font-weight: 700; line-height: 1.25; }
p { margin: 0; }

kbd {
  display: inline-block;
  font: 600 0.82em/1 var(--mono);
  padding: 4px 7px 5px;
  border-radius: 7px;
  border: 1px solid var(--hairline-strong);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  vertical-align: 0.08em;
}

code {
  font: 600 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-word;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--focus-tint); color: #fff; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 14px; }

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

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───────────────────────────  AURORA  ─────────────────────────── */

.aurora {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: var(--page);
}
.blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
  transition: background 1.2s ease;
}
.blob-1 {
  width: 900px; height: 900px; top: -30%; left: -24%;
  background: radial-gradient(circle, var(--focus-tint) 0%, color-mix(in srgb, var(--focus-tint) 50%, transparent) 38%, transparent 70%);
  opacity: .34; filter: blur(70px);
  animation: drift-1 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 1000px; height: 1000px; top: 18%; right: -34%;
  background: radial-gradient(circle, var(--accent) 0%, color-mix(in srgb, var(--accent) 45%, transparent) 38%, transparent 70%);
  opacity: .2; filter: blur(80px);
  animation: drift-2 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 820px; height: 820px; bottom: -30%; left: 18%;
  background: radial-gradient(circle, var(--longbreak-tint) 0%, color-mix(in srgb, var(--longbreak-tint) 45%, transparent) 40%, transparent 72%);
  opacity: .22; filter: blur(80px);
  animation: drift-3 19s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes drift-2 { from { transform: scale(1.05); } to { transform: translate(-70px, 50px) scale(.94); } }
@keyframes drift-3 { from { transform: scale(.95); } to { transform: translate(40px, -45px) scale(1.1); } }

main, .footer { position: relative; z-index: 1; }

/* ───────────────────────────  GLASS  ─────────────────────────── */

.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%);
  pointer-events: none;
}
.glass-blur {
  background: linear-gradient(160deg, rgba(22, 22, 26, 0.58), rgba(14, 14, 18, 0.46));
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
}

/* ───────────────────────────  BUTTONS  ─────────────────────────── */

.btn {
  appearance: none; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease-out), background .2s, box-shadow .25s, border-color .2s;
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: rgba(255, 255, 255, 0.13); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.btn-glass { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.btn-primary {
  color: #fff;
  border-color: color-mix(in srgb, var(--focus-tint) 60%, white 10%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(120deg, var(--focus-tint), var(--accent));
  box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--focus-tint) 60%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 55%),
    linear-gradient(120deg, var(--focus-tint), var(--accent));
  box-shadow: 0 14px 40px -6px color-mix(in srgb, var(--focus-tint) 75%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-lg svg { transition: transform .2s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(3px); }

.round-btn {
  appearance: none; cursor: pointer; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  transition: background .2s, transform .16s var(--ease-out), opacity .2s;
}
.round-btn svg { width: 19px; height: 19px; }
.round-btn:hover { background: rgba(255, 255, 255, 0.14); }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ───────────────────────────  NAV  ─────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 12px var(--gutter);
  transition: padding .3s var(--ease-out);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 58px;
  padding: 0 10px 0 20px;
  max-width: calc(var(--maxw) + 20px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 18, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.nav.is-scrolled .nav-inner {
  background: rgba(13, 13, 17, 0.86);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--focus-tint); text-decoration: none; flex: none;
}
.brand-mark { width: 26px; height: 26px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--focus-tint) 60%, transparent)); transition: color .6s; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }

.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--text-secondary); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.nav-links a.is-current { color: var(--text-primary); background: rgba(255, 255, 255, 0.09); }
.nav-cta { margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }
@media (max-width: 960px) { .nav-links + .nav-cta { margin-left: auto; } }

/* ───────────────────────────  HERO  ─────────────────────────── */

.hero {
  position: relative;
  margin-top: -82px;              /* tuck under the floating nav */
  padding: 150px 0 110px;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-poster, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-poster { transition: opacity .8s ease; }
.hero-video { opacity: 0; transition: opacity 1.1s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-media.is-swapping .hero-poster,
.hero-media.is-swapping .hero-video { opacity: 0; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 40%, transparent 0%, rgba(7, 7, 10, 0.25) 55%, rgba(7, 7, 10, 0.7) 100%),
    linear-gradient(90deg, rgba(7, 7, 10, 0.82) 0%, rgba(7, 7, 10, 0.5) 42%, rgba(7, 7, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.55) 0%, transparent 22%, transparent 62%, var(--page) 100%);
}
.hero::after {           /* accent glow bleeding up from below */
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: -260px; width: 1200px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--focus-tint) 30%, transparent), transparent);
  filter: blur(30px); pointer-events: none;
  transition: background 1s;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, white);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--focus-tint), var(--accent));
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 50%, #ffd7a8) 45%, var(--focus-tint) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 24px color-mix(in srgb, var(--focus-tint) 40%, transparent));
}

.lead {
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}
.hero-lead { margin-top: 22px; max-width: 560px; color: rgba(243, 242, 239, 0.82); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.micro { margin-top: 22px; font-size: 13.5px; color: var(--text-muted); font-weight: 600; }

.resume-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 8px 10px 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 18, 0.55);
  border: 1px solid color-mix(in srgb, var(--focus-tint) 45%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.resume-pill strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.resume-go {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--focus-tint); color: #fff;
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--ring);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ring) 60%, transparent);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ring) 65%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* ── Live demo card ── */

.demo {
  --ring: var(--focus-tint);
  width: 100%; max-width: 440px; justify-self: end;
  padding: 24px 24px 20px;
  background:
    radial-gradient(120% 90% at 88% 0%, color-mix(in srgb, var(--ring) 16%, transparent), transparent 58%),
    radial-gradient(100% 80% at 0% 100%, color-mix(in srgb, var(--break-tint) 10%, transparent), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032) 52%, rgba(255, 255, 255, 0.05));
  border-color: color-mix(in srgb, var(--ring) 26%, rgba(255, 255, 255, 0.14));
  box-shadow:
    0 36px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 70px -30px color-mix(in srgb, var(--ring) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: border-color .6s, box-shadow .6s;
}
/* A lit edge in the mode colour, so the card sits inside the aurora rather than on top of it. */
.demo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--ring) 65%, transparent),
    rgba(255, 255, 255, 0.06) 38%,
    rgba(255, 255, 255, 0.04) 62%,
    color-mix(in srgb, var(--ring) 34%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.demo[data-mode="shortBreak"] { --ring: var(--break-tint); }
.demo[data-mode="longBreak"] { --ring: var(--longbreak-tint); }

.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-secondary);
}
.mode-chips {
  display: flex; gap: 2px; padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mode-chip {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  padding: 6px 13px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700;
  background: transparent; color: var(--text-muted);
  transition: color .2s, background .25s;
}
.mode-chip:hover { color: var(--text-primary); }
.mode-chip.is-active {
  color: #fff;
  background: color-mix(in srgb, var(--ring) 42%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ring) 55%, transparent);
}

.demo-ring {
  position: relative;
  width: min(100%, 300px); aspect-ratio: 1;
  margin: 20px auto 18px;
}
.demo-ring::before {          /* soft glow behind the ring */
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ring) 32%, transparent), transparent);
  filter: blur(18px);
  transition: background .6s;
}
.demo-ring::after {           /* a slow orbit ring, like the app's ambience */
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--ring) 22%, transparent);
  animation: demo-orbit 80s linear infinite;
  pointer-events: none;
}
@keyframes demo-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .demo-ring::after { animation: none; } }
.demo-ring svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.ring-track { stroke: rgba(255, 255, 255, 0.08); }
.ring-arc {
  stroke: var(--ring);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ring) 70%, transparent));
  transition: stroke .6s;
}
.ring-head {
  fill: #fff;
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px var(--ring));
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.ring-mode {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ring) 55%, white);
  transition: color .6s;
}
.ring-time {
  font: 700 clamp(54px, 7vw, 68px)/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--ring) 42%, #fff));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.ring-round { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }

.demo-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.demo-toggle { min-width: 132px; padding: 13px 24px; font-size: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 55%), var(--ring);
  border-color: color-mix(in srgb, var(--ring) 60%, white 12%);
  box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--ring) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.demo-toggle:hover { background: linear-gradient(180deg, rgba(255,255,255,.26), transparent 55%), var(--ring); }
.demo-toggle .i-pause { display: none; }
.demo-toggle[aria-pressed="true"] .i-play { display: none; }
.demo-toggle[aria-pressed="true"] .i-pause { display: block; }
.demo-toggle:hover svg { transform: none; }

.demo-continue {
  display: block; text-align: center; margin-top: 14px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: color-mix(in srgb, var(--ring) 45%, white);
}
.demo-continue:hover { text-decoration: underline; text-underline-offset: 3px; }

.scene-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.scene-switch-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.scene-dots { display: flex; gap: 8px; }
.scene-dot {
  appearance: none; cursor: pointer; padding: 0;
  width: 52px; height: 34px; border-radius: 11px; overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: #111;
  opacity: .68;
  transition: opacity .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
:root[data-theme="light"] .scene-dot {
  background: var(--surface-1);
  border-color: rgba(23, 18, 16, 0.14);
}
:root[data-theme="light"] .scene-dot img { opacity: .35; }
:root[data-theme="light"] .scene-dot:hover { border-color: rgba(23, 18, 16, 0.28); }
:root[data-theme="light"] .scene-dot[aria-pressed="true"] { border-color: #171210; }
.scene-dot img { width: 100%; height: 100%; object-fit: cover; }
.scene-dot:hover { opacity: 1; transform: translateY(-1px); }
.scene-dot[aria-pressed="true"] {
  opacity: 1; border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(7, 7, 10, 0.6), 0 0 0 4px color-mix(in srgb, var(--ring) 55%, transparent), 0 8px 20px -8px color-mix(in srgb, var(--ring) 60%, transparent);
}

/* ───────────────────────────  SECTIONS  ─────────────────────────── */

.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 700px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { text-wrap: balance; }
.section-head .lead { margin-top: 18px; }

/* ── Steps ── */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  counter-reset: step;
}
.step { padding: 28px 24px 26px; overflow: hidden; }
.step-num {
  display: inline-block;
  font: 800 15px/1 var(--mono); letter-spacing: .04em;
  padding: 8px 11px; border-radius: 11px;
  color: color-mix(in srgb, var(--accent) 70%, white);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  margin-bottom: 22px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: 15px; }
.step::after {        /* connector glow line */
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
  opacity: .6;
}

/* ── Bento ── */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  grid-auto-flow: dense;
}
.tile {
  display: flex; flex-direction: column;
  padding: 28px;
  overflow: hidden;
  min-height: 280px;
  transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s;
}
.tile:hover { border-color: rgba(255, 255, 255, 0.16); }
.tile-7 { grid-column: span 7; }
.tile-5 { grid-column: span 5; }
.tile-4 { grid-column: span 4; }
.tile h3 { margin: 18px 0 10px; font-size: 21px; }
.tile > p { color: var(--text-secondary); font-size: 15px; max-width: 54ch; }

.tile-icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  color: color-mix(in srgb, var(--accent) 60%, white);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--focus-tint) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 50%, transparent);
}
.tile-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tile-visual { margin-top: auto; padding-top: 24px; }
.tile-link {
  margin-top: 16px; align-self: flex-start;
  font-size: 14.5px; font-weight: 700; text-decoration: none;
  color: color-mix(in srgb, var(--accent) 60%, white);
}
.tile-link span { display: inline-block; transition: transform .2s var(--ease-out); }
.tile-link:hover span { transform: translateX(3px); }

/* cycle bar */
.cycle-bar { display: flex; gap: 4px; height: 40px; }
.cycle-bar .seg {
  flex: var(--m) 1 0; border-radius: 9px;
  position: relative; overflow: hidden;
}
.seg.f { background: linear-gradient(180deg, color-mix(in srgb, var(--focus-tint) 95%, white 5%), color-mix(in srgb, var(--focus-tint) 70%, black)); box-shadow: 0 6px 18px -8px var(--focus-tint); }
.seg.s { background: color-mix(in srgb, var(--break-tint) 80%, black); }
.seg.l { background: color-mix(in srgb, var(--longbreak-tint) 85%, black); }
.cycle-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13.5px; color: var(--text-secondary); font-weight: 600; }
.cycle-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cycle-legend i { width: 10px; height: 10px; border-radius: 3px; }
.cycle-legend i.f { background: var(--focus-tint); }
.cycle-legend i.s { background: var(--break-tint); }
.cycle-legend i.l { background: var(--longbreak-tint); }
.cycle-legend b { color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* mini tasks */
.mini-tasks { list-style: none; margin: 0; padding: 24px 0 0; display: grid; gap: 8px; }
.mini-tasks li {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px; font-weight: 600;
}
.mini-tasks li.is-active {
  background: color-mix(in srgb, var(--focus-tint) 12%, rgba(255, 255, 255, 0.04));
  border-color: color-mix(in srgb, var(--focus-tint) 40%, transparent);
}
.mini-tasks .check {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.28);
}
.mini-tasks .is-done .check {
  border-color: var(--break-tint);
  background: var(--break-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.mini-tasks .is-done .t { color: var(--text-muted); text-decoration: line-through; }
.mini-tasks .t { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-tasks small { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.cat { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; flex: none; }
.cat.c1 { color: #c9b8f5; background: rgba(155, 126, 222, 0.2); }
.cat.c2 { color: #a5d4f0; background: rgba(77, 168, 218, 0.2); }
.cat.c3 { color: #a8dca3; background: rgba(90, 181, 82, 0.2); }
.pips { display: flex; gap: 3px; flex: none; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.pips i.on { background: var(--focus-tint); box-shadow: 0 0 6px var(--focus-tint); }

/* now playing */
.now-playing {
  display: flex; align-items: center; gap: 14px;
}
.wave { display: flex; align-items: center; gap: 3px; height: 40px; flex: 1; min-width: 0; }
.wave i {
  flex: 1; max-width: 5px; min-width: 2px; border-radius: 3px;
  height: 30%;
  background: linear-gradient(180deg, var(--accent), var(--focus-tint));
  animation: wave 1.2s ease-in-out infinite alternate;
}
.wave i:nth-child(3n)   { animation-delay: -.2s; animation-duration: 1s; }
.wave i:nth-child(3n+1) { animation-delay: -.6s; animation-duration: 1.4s; }
.wave i:nth-child(4n)   { animation-delay: -.9s; }
.wave i:nth-child(5n+2) { animation-duration: .9s; }
@keyframes wave { from { height: 18%; } to { height: 100%; } }
.np-meta { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: var(--text-muted); font-weight: 600; flex: none; }
.np-meta b { color: var(--text-primary); font-size: 14.5px; }

/* scene tile */
.tile-scene { isolation: isolate; }
.tile-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  opacity: .62;
  transition: transform 1.2s var(--ease-out), opacity .5s;
}
.tile-scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.15), rgba(8, 8, 12, 0.88) 78%);
}
.tile-scene:hover .tile-bg { transform: scale(1.05); opacity: .78; }
.tile-scene > p { color: rgba(243, 242, 239, 0.84); }
.tile-scene h3 { margin-top: auto; padding-top: 40px; }

/* mini chart */
.mini-chart { display: flex; flex-direction: column; gap: 14px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; }
.bars i {
  flex: 1; height: calc(var(--h) * 100%); border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
  transform-origin: bottom;
}
.bars i.today {
  background: linear-gradient(180deg, var(--accent), var(--focus-tint));
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--accent) 70%, transparent);
}
.reveal.is-in .bars i { animation: grow .9s var(--ease-out) both; }
.reveal.is-in .bars i:nth-child(2) { animation-delay: .05s; }
.reveal.is-in .bars i:nth-child(3) { animation-delay: .1s; }
.reveal.is-in .bars i:nth-child(4) { animation-delay: .15s; }
.reveal.is-in .bars i:nth-child(5) { animation-delay: .2s; }
.reveal.is-in .bars i:nth-child(6) { animation-delay: .25s; }
.reveal.is-in .bars i:nth-child(7) { animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(0); } }
.insight {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13.5px; font-weight: 700;
  padding: 7px 12px 7px 8px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hairline);
}
.insight em, .example {
  font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.07);
}
.example { align-self: flex-start; width: fit-content; margin-top: 10px; }

/* sources */
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.source {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hairline);
  font-size: 13.5px; font-weight: 700;
}
.source i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; }
.source i.g-cal { background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc04 0 75%, #ea4335 0); }
.source i.g-tasks { background: #2684fc; }
.source i.ics { background: rgba(255, 255, 255, 0.16); }
.source i::after {
  content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.95);
}
.source i.g-tasks::after {
  width: 10px; height: 6px; border-radius: 0; background: none;
  border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

/* hud */
.hud {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "goal streak" "goal level" "week week";
  gap: 12px 18px; align-items: center;
  position: relative;
}
.hud-goal { grid-area: goal; position: relative; width: 104px; height: 104px; }
.hud-goal svg { width: 100%; height: 100%; }
.hud-goal circle { fill: none; stroke-width: 4.5; }
.hud-goal .t { stroke: rgba(255, 255, 255, 0.09); }
.hud-goal .p {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 113.1; stroke-dashoffset: 28.3;   /* 75% — 90 of 120 */
  filter: drop-shadow(0 0 5px var(--accent));
}
.reveal.is-in .hud-goal .p { animation: ring-in 1.4s var(--ease-out) both; }
@keyframes ring-in { from { stroke-dashoffset: 113.1; } }
.hud-goal span {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11.5px; color: var(--text-muted); font-weight: 700; line-height: 1.2;
}
.hud-goal b { font: 800 24px/1 var(--mono); color: var(--text-primary); }
.hud-streak {
  grid-area: streak;
  display: inline-flex; align-items: center; gap: 0; justify-self: start;
  padding: 8px 14px 8px 10px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--focus-tint) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--focus-tint) 34%, transparent);
  font-size: 14px; font-weight: 700; color: var(--text-secondary);
}
.hud-streak svg { flex: none; margin-right: 8px; width: 17px; height: 17px; fill: var(--focus-tint); filter: drop-shadow(0 0 5px var(--focus-tint)); }
.hud-streak b { color: var(--text-primary); }
.hud-level { grid-area: level; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-secondary); font-weight: 600; }
.hud-level b { color: var(--text-primary); }
.xp { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xp i {
  display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--focus-tint), var(--accent));
  box-shadow: 0 0 12px var(--accent);
}
.reveal.is-in .xp i { animation: xp-in 1.4s .2s var(--ease-out) both; }
@keyframes xp-in { from { width: 0; } }
.week { grid-area: week; display: flex; gap: 8px; margin-top: 6px; }
.week span {
  flex: 1; aspect-ratio: 1; max-width: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; color: var(--text-muted);
  border: 2px solid rgba(255, 255, 255, 0.12);
  position: relative;
}
.week span.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(145deg, var(--accent), var(--focus-tint));
  box-shadow: 0 4px 14px -4px var(--focus-tint);
}
.week span.on + span.on::before {   /* streak link bar between consecutive days */
  content: ""; position: absolute; right: 100%; top: 50%; width: 10px; height: 4px; margin-top: -2px;
  background: var(--focus-tint); z-index: -1;
}
.week span.today { border-color: color-mix(in srgb, var(--accent) 70%, transparent); color: var(--text-primary); border-style: dashed; }
.hud .example { position: absolute; top: 0; right: 0; margin-top: 0; }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  --a: #ff6b35; --f: #e8482b;
  appearance: none; cursor: pointer; padding: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--a), var(--f)) padding-box, transparent border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 14px -4px var(--f);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.swatch:hover { transform: translateY(-2px) scale(1.05); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--page), 0 0 0 4px #fff, 0 6px 18px -4px var(--f); }
.swatch[data-theme="ember"]    { --a: #ff6b35; --f: #e8482b; }
.swatch[data-theme="ocean"]    { --a: #4da8da; --f: #2e6fbd; }
.swatch[data-theme="forest"]   { --a: #5ab552; --f: #3e8e41; }
.swatch[data-theme="lavender"] { --a: #9b7ede; --f: #7c5cbf; }
.swatch[data-theme="rose"]     { --a: #e86a92; --f: #d64c6f; }
.swatch[data-theme="graphite"] { --a: #9aa0a6; --f: #6e747a; }
.swatch[data-theme="midnight"] { --a: #8c9bff; --f: #5b6cff; }
.swatch[data-theme="mocha"]    { --a: #d9a273; --f: #b8693f; }
.swatch[data-theme="pomodoro"] { --a: #ff5a4e; --f: #e5383b; }
.swatch[data-theme="honey"]    { --a: #ffb020; --f: #f08c00; }
.swatch[data-theme="matcha"]   { --a: #a6c86e; --f: #6f9e45; }
.swatch[data-theme="glacier"]  { --a: #6ee3f5; --f: #1fa2d6; }
.swatch[data-theme="boreal"]   { --a: #45e0a0; --f: #16a88a; }
.swatch[data-theme="synthwave"]{ --a: #ff4fd8; --f: #ee3a8c; }
.swatch-name { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--text-muted); }
.swatch-name span { color: var(--text-primary); }

/* csv */
.csv { display: flex; flex-wrap: wrap; gap: 6px; }
.csv span {
  font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 7px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hairline);
  color: var(--text-secondary);
}
.csv span:nth-child(odd) { color: color-mix(in srgb, var(--accent) 55%, white); }

/* menubar (tile + mac art share these) */
.menubar, .mac-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px; padding: 0 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hairline);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mb-dots { display: flex; gap: 6px; }
.mb-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mb-dots i:first-child { background: #ff5f57; } .mb-dots i:nth-child(2) { background: #febc2e; } .mb-dots i:nth-child(3) { background: #28c840; }
.mb-item {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 14px/1 var(--mono); font-variant-numeric: tabular-nums;
  padding: 5px 9px; border-radius: 8px;
}
.mb-item.is-open { background: rgba(255, 255, 255, 0.12); }
.mb-item svg { width: 18px; height: 18px; overflow: visible; }
.mb-item circle { fill: none; stroke-width: 2.4; }
.mb-item .t { stroke: rgba(255, 255, 255, 0.2); }
.mb-item .p { stroke: var(--focus-tint); stroke-linecap: round; stroke-dasharray: 44 44; stroke-dashoffset: 13; filter: drop-shadow(0 0 3px var(--focus-tint)); }
.mb-item .pip { fill: var(--focus-tint); stroke: none; }

/* ── Calendar section ── */

.split {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.split-rev { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split-copy h2 { text-wrap: balance; }
.split-copy .lead { margin-top: 18px; }

.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding-left: 36px;
  color: var(--text-secondary); font-size: 15.5px;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
}
.checks b { color: var(--text-primary); }

.cal { margin: 0; padding: 20px 20px 16px; }
.cal-head, .cal-body { display: grid; grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 0 8px; }
.cal-head { margin-bottom: 10px; }
.cal-head span {
  text-align: center; font-size: 13px; font-weight: 800; color: var(--text-muted);
  padding: 6px 0; border-radius: 10px;
}
.cal-head .is-today { color: #fff; background: color-mix(in srgb, var(--accent) 26%, transparent); }
.cal-times { display: grid; grid-template-rows: repeat(6, 1fr); }
.cal-times span { font-size: 11px; font-weight: 700; color: var(--text-muted); transform: translateY(-6px); }
.cal-grid {
  grid-column: 2 / -1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(12, 30px);
  gap: 4px 8px;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 68px);
}
.ev {
  grid-column: var(--c); grid-row: var(--r) / span var(--s);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 7px 9px; border-radius: 10px;
  font-size: 12.5px; font-weight: 800; line-height: 1.2;
  overflow: hidden; min-width: 0;
  border: 1px solid transparent;
}
.ev small { font-size: 10.5px; font-weight: 700; opacity: .75; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.focus { color: #fff; }
.ev.focus.c1 { background: linear-gradient(160deg, color-mix(in srgb, var(--focus-tint) 75%, transparent), color-mix(in srgb, var(--focus-tint) 45%, transparent)); border-color: color-mix(in srgb, var(--focus-tint) 70%, transparent); }
.ev.focus.c2 { background: linear-gradient(160deg, rgba(77, 168, 218, 0.62), rgba(77, 168, 218, 0.34)); border-color: rgba(77, 168, 218, 0.6); }
.ev.focus.c3 { background: linear-gradient(160deg, rgba(155, 126, 222, 0.62), rgba(155, 126, 222, 0.34)); border-color: rgba(155, 126, 222, 0.6); }
.ev.import {
  color: var(--text-secondary);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 6px, rgba(255, 255, 255, 0.025) 6px 12px);
  border: 1px dashed rgba(255, 255, 255, 0.22);
}
.ev.task { color: #cfe3ff; background: rgba(38, 132, 252, 0.16); border-color: rgba(38, 132, 252, 0.45); }
.ev.now { box-shadow: 0 0 0 2px #fff, 0 8px 22px -6px rgba(77, 168, 218, 0.9); }
.cal figcaption { margin-top: 12px; text-align: right; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* ── Scenes ── */

.scenes-head { position: relative; }
.track-nav { position: absolute; right: var(--gutter); bottom: 0; display: flex; gap: 10px; margin-bottom: clamp(40px, 5vw, 60px); }

.scene-track {
  list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 24px;
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scrollbar-width: none;
}
.scene-track::-webkit-scrollbar { display: none; }
.scene-card { flex: 0 0 clamp(250px, 26vw, 330px); scroll-snap-align: start; }
.scene-btn {
  appearance: none; cursor: pointer; font: inherit; color: inherit; text-align: left;
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--hairline);
  background: #111;
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition: transform .4s var(--ease-out), border-color .3s;
}
.scene-btn img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease-out);
}
.scene-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 6, 9, 0.88));
}
.scene-btn:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24); }
.scene-btn:hover img { transform: scale(1.06); }
.scene-btn[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-card); }
.scene-meta { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.scene-mood {
  align-self: flex-start;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 7px; margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scene-title { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.scene-hint { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.scene-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ── Mac ── */

.mac-art {
  margin: 0; position: relative;
  padding: 18px 18px 24px;
  border-radius: 30px;
  background:
    radial-gradient(90% 70% at 30% 10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(80% 70% at 90% 100%, color-mix(in srgb, var(--longbreak-tint) 32%, transparent), transparent 70%),
    linear-gradient(160deg, #17161b, #0c0c10);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mac-bar { background: rgba(0, 0, 0, 0.35); }
.popover {
  width: min(300px, 100%);
  margin: 12px 0 0 auto;
  padding: 22px 20px 18px;
  border-radius: 24px;
}
.pop-ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.pop-ring svg { width: 100%; height: 100%; overflow: visible; }
.pop-ring circle { fill: none; stroke-width: 9; }
.pop-ring .t { stroke: rgba(255, 255, 255, 0.08); }
.pop-ring .p {
  stroke: var(--focus-tint); stroke-linecap: round;
  stroke-dasharray: 314.16; stroke-dashoffset: 79;
  filter: drop-shadow(0 0 8px var(--focus-tint));
}
.pop-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pop-ring b { font: 800 32px/1 var(--mono); font-variant-numeric: tabular-nums; }
.pop-ring span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--focus-tint) 55%, white); margin-top: 4px; }
.pop-transport { display: flex; justify-content: center; gap: 14px; margin: 16px 0; }
.pt { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--hairline); }
.pt svg { width: 17px; height: 17px; }
.pt.main { background: var(--focus-tint); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -4px var(--focus-tint); }
.pop-links { display: grid; gap: 2px; border-top: 1px solid var(--hairline); padding-top: 10px; }
.pop-links span { font-size: 13.5px; font-weight: 600; color: var(--text-secondary); padding: 6px 8px; border-radius: 8px; }
.pop-links span:first-child { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.mac-art figcaption { position: absolute; left: 22px; bottom: 18px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); max-width: 40%; }
.req { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }

/* ── FAQ ── */

.faq { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.qa {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: background .25s, border-color .25s;
}
.qa[open] { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform .3s var(--ease-out), background-color .2s;
}
.qa[open] summary::after { transform: rotate(45deg); background-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.qa summary:focus-visible { outline-offset: -2px; border-radius: 20px; }
.qa p { padding: 0 22px 22px; color: var(--text-secondary); font-size: 15.5px; max-width: 68ch; }
.qa a { color: color-mix(in srgb, var(--accent) 60%, white); text-underline-offset: 3px; }

/* ── Final CTA ── */

.final { padding-bottom: clamp(90px, 12vw, 150px); }
.final-inner {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  max-width: 820px;
}
.final h2 { font-size: clamp(36px, 5.4vw, 64px); text-wrap: balance; margin-top: 12px; }
.final .lead { margin: 18px 0 34px; }
.orbit { position: relative; width: 132px; height: 132px; }
.orbit::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--focus-tint) 40%, transparent), transparent);
  filter: blur(14px);
}
.orbit svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.orbit circle { fill: none; stroke-width: 10; }
.orbit .t { stroke: rgba(255, 255, 255, 0.08); }
.orbit .p {
  stroke: var(--focus-tint); stroke-linecap: round;
  stroke-dasharray: 527.8; stroke-dashoffset: 132;
  filter: drop-shadow(0 0 10px var(--focus-tint));
}
.orbit-dot {
  position: absolute; inset: 0;
  animation: orbit 10s linear infinite;
}
.orbit-dot::after {
  content: ""; position: absolute; top: 50%; left: calc(8% - 7px); width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff, 0 0 22px var(--accent);
}
.orbit svg { animation: orbit 10s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.4), rgba(7, 7, 10, 0.9));
  padding: 56px 0 44px;
  font-size: 14px; color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.7fr 1.4fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 30ch; }
.footer-brand .copy { font-size: 13px; }
.footer h3 { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { text-decoration: none; font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-credits p + p { margin-top: 10px; }
.footer-credits a { color: var(--text-secondary); text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--text-primary); }

/* ───────────────────────────  REVEAL  ─────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .wave i, .live-dot, .orbit svg, .orbit-dot { animation: none !important; }
  .reveal.is-in .bars i, .reveal.is-in .hud-goal .p, .reveal.is-in .xp i { animation: none !important; }
  .hero-poster, .hero-video { transform: none; }
  .btn, .round-btn, .scene-btn, .scene-btn img, .tile-bg { transition: none !important; }
}

/* ───────────────────────────  RESPONSIVE  ─────────────────────────── */

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-7 { grid-column: span 2; }
  .tile-5, .tile-4 { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 130px 0 80px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-copy .eyebrow::before { display: none; }
  .cta-row { justify-content: center; }
  .hero-copy .cta-row { justify-content: center; }
  .demo { justify-self: center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.66) 0%, rgba(7, 7, 10, 0.64) 40%, rgba(7, 7, 10, 0.82) 70%, var(--page) 100%);
  }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .mac-art { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .track-nav { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .nav { padding: 10px var(--gutter); }
  .nav-inner { height: 54px; padding: 0 7px 0 16px; gap: 12px; }
  .nav-cta { padding: 8px 14px; font-size: 13.5px; }
  .hero { margin-top: -74px; padding: 112px 0 64px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 48px); }
  .eyebrow { font-size: 11.5px; letter-spacing: .1em; }
  .hero-copy .eyebrow { max-width: 30ch; line-height: 1.5; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { width: 100%; }
  .demo { padding: 18px 16px 16px; }
  .demo-head { justify-content: center; }
  .demo-ring { width: min(100%, 260px); }
  .ring-time { font-size: 54px; }
  .steps, .bento { grid-template-columns: 1fr; }
  .tile-7, .tile-5, .tile-4 { grid-column: auto; }
  .tile { padding: 22px; min-height: 0; }
  .tile-scene { min-height: 300px; }
  .hud-goal { width: 92px; height: 92px; }
  .cal { padding: 14px 12px 12px; }
  .cal-head, .cal-body { grid-template-columns: 22px repeat(5, minmax(0, 1fr)); gap: 0 4px; }
  .cal-grid { gap: 3px 4px; grid-template-rows: repeat(12, 26px); background-size: 100% 58px; background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 1px, transparent 1px 58px); }
  .ev { padding: 5px 5px; font-size: 10.5px; border-radius: 7px; }
  .ev small { display: none; }
  .scene-card { flex-basis: 74vw; }
  .qa summary { padding: 18px; font-size: 16px; }
  .qa p { padding: 0 18px 18px; }
  .popover { margin: 12px auto 0; }
  .mac-art figcaption { position: static; margin-top: 14px; max-width: none; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ───────────────────────────  NEW TILES  ─────────────────────────── */
.fp { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 24px; }
.fp > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.fp small { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.fp b { font-size: 15px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.guard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 22px; }
.guard-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-primary); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.guard-pill i { width: 8px; height: 8px; border-radius: 50%; background: #3dba8b; box-shadow: 0 0 10px #3dba8b; }
.guard-note { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.layers { display: flex; flex-direction: column; gap: 5px; padding-top: 20px; }
.layers span { padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); }
.layers span:nth-child(2) { margin-left: 12px; opacity: .85; }
.layers span:nth-child(3) { margin-left: 24px; opacity: .7; }
.layers span:nth-child(4) { margin-left: 36px; opacity: .55; }
.source i.canvas { background: radial-gradient(circle, #fff 18%, #e13c2a 20%); }

/* ───────────────────────────  EVENT → TASK  ─────────────────────────── */
.split-copy code, .faq code { padding: 2px 7px; border-radius: 6px; font-size: .9em; font-weight: 700; color: var(--text-primary); background: rgba(255, 255, 255, 0.09); }
.flow { margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 460px; width: 100%; justify-self: center; }
.flow-card { padding: 20px 22px; border-radius: 20px; }
.flow-label { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.flow-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-primary); overflow-wrap: anywhere; }
.flow-title mark { padding: 1px 6px; border-radius: 6px; color: #fff; background: color-mix(in srgb, var(--focus-tint) 75%, transparent); }
.flow-time { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.flow-desc { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.flow-arrow { display: grid; place-items: center; color: var(--text-muted); }
.flow-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-row { display: flex; align-items: center; gap: 12px; }
.flow-row .check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); }
.flow-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.flow-row small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.flow-row small i { width: 8px; height: 8px; border-radius: 50%; background: #9b7ede; }
.flow-pomo { font-size: 13px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.flow figcaption { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-align: center; }

@media (max-width: 640px) {
  .fp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .flow-title mark { background: var(--focus-tint); }
}

/* ═══════════════════════════════════════════════════════════════════════
   SYSTEM LIGHT MODE
   The homepage follows the OS light/dark preference (the early inline script
   and home.js set html[data-theme]) — there is no switch. Light is a true
   light page: the hero and scene photographs are washed out behind a light
   scrim, and all text and controls use the dark-on-light tokens.
   ═══════════════════════════════════════════════════════════════════════ */

:root[data-theme="light"] {
  color-scheme: light;
  /* --page / --surface-1 come from themes.css for the chosen preset's light tone. */
  --page: #faf2ee;
  --surface-1: #fcf8f6;
  --text-primary: #171210;
  --text-secondary: #5b544f;
  --text-muted: #746c66;
  --hairline: rgba(23, 18, 16, 0.10);
  --hairline-strong: rgba(23, 18, 16, 0.17);
  --shadow-card: 0 18px 50px rgba(82, 55, 40, 0.14);
}

/* The aurora stays, but quieter under a light page. */
:root[data-theme="light"] .blob-1 { opacity: .18; }
:root[data-theme="light"] .blob-2 { opacity: .13; }
:root[data-theme="light"] .blob-3 { opacity: .14; }

/* ── glass ── */
:root[data-theme="light"] .glass:not(.demo) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48));
  border-color: rgba(23, 18, 16, 0.08);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .glass:not(.demo)::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 32%);
}
:root[data-theme="light"] .glass-blur:not(.demo) {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.54));
}

/* ── nav ── */
:root[data-theme="light"] .nav-inner {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(23, 18, 16, 0.08);
  box-shadow: 0 8px 30px rgba(60, 40, 28, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .nav.is-scrolled .nav-inner {
  background: rgba(255, 253, 251, 0.9);
  border-color: rgba(23, 18, 16, 0.10);
  box-shadow: 0 14px 40px rgba(60, 40, 28, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
:root[data-theme="light"] .nav-links a:hover { background: rgba(23, 18, 16, 0.06); }
:root[data-theme="light"] .nav-links a.is-current { background: rgba(23, 18, 16, 0.09); }

/* ── controls ── */
:root[data-theme="light"] kbd,
:root[data-theme="light"] code,
:root[data-theme="light"] .btn:not(.btn-primary),
:root[data-theme="light"] .round-btn,
:root[data-theme="light"] .pt,
:root[data-theme="light"] .pop-links span:first-child {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 18, 16, 0.12);
  color: var(--text-primary);
}
:root[data-theme="light"] .btn:not(.btn-primary):hover,
:root[data-theme="light"] .round-btn:hover { background: #fff; }
:root[data-theme="light"] kbd,
:root[data-theme="light"] code { background: rgba(23, 18, 16, 0.06); border-color: rgba(23, 18, 16, 0.10); }
:root[data-theme="light"] .split-copy code,
:root[data-theme="light"] .faq code { background: rgba(23, 18, 16, 0.08); }

/* ── text accents that mix with white in the dark theme ── */
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .step-num,
:root[data-theme="light"] .tile-icon,
:root[data-theme="light"] .tile-link,
:root[data-theme="light"] .qa a,
:root[data-theme="light"] .csv span:nth-child(odd),
:root[data-theme="light"] .pop-ring span {
  color: color-mix(in srgb, var(--accent) 72%, #1c100a);
}
:root[data-theme="light"] .grad {
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 88%, #7d1d00) 0%,
    color-mix(in srgb, var(--accent) 62%, #b8461a) 45%, color-mix(in srgb, var(--focus-tint) 88%, #7d1d00) 100%);
  -webkit-background-clip: text; background-clip: text;
}
:root[data-theme="light"] .swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(23, 18, 16, 0.35), 0 6px 18px -4px var(--f);
}

/* ── quiet fills on the light page ── */
:root[data-theme="light"] .tile:hover { border-color: rgba(23, 18, 16, 0.17); }
:root[data-theme="light"] .mini-tasks li,
:root[data-theme="light"] .insight,
:root[data-theme="light"] .source,
:root[data-theme="light"] .csv span,
:root[data-theme="light"] .menubar,
:root[data-theme="light"] .mac-bar,
:root[data-theme="light"] .fp > div,
:root[data-theme="light"] .guard-pill,
:root[data-theme="light"] .layers span,
:root[data-theme="light"] .qa {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(23, 18, 16, 0.09);
}
:root[data-theme="light"] .mini-tasks li.is-active {
  background: color-mix(in srgb, var(--focus-tint) 12%, rgba(255, 255, 255, 0.55));
}
:root[data-theme="light"] .insight em,
:root[data-theme="light"] .example,
:root[data-theme="light"] .qa summary::after,
:root[data-theme="light"] .mb-item.is-open {
  background: rgba(23, 18, 16, 0.07);
}
:root[data-theme="light"] .qa[open] {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(23, 18, 16, 0.14);
}
:root[data-theme="light"] .qa summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23171210' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .qa[open] summary::after {
  background-color: color-mix(in srgb, var(--accent) 24%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* hairlines, ticks and tracks */
:root[data-theme="light"] .mini-tasks .check,
:root[data-theme="light"] .week span,
:root[data-theme="light"] .flow-row .check { border-color: rgba(23, 18, 16, 0.26); }
:root[data-theme="light"] .pips i,
:root[data-theme="light"] .xp,
:root[data-theme="light"] .hud-goal .t,
:root[data-theme="light"] .orbit .t,
:root[data-theme="light"] .pop-ring .t,
:root[data-theme="light"] .mb-item .t { stroke: rgba(23, 18, 16, 0.12); }
:root[data-theme="light"] .pips i,
:root[data-theme="light"] .xp { background: rgba(23, 18, 16, 0.10); }
:root[data-theme="light"] .cal-grid {
  background-image: repeating-linear-gradient(180deg, rgba(23, 18, 16, 0.08) 0 1px, transparent 1px 68px);
}
:root[data-theme="light"] .ev.import {
  background: repeating-linear-gradient(135deg, rgba(23, 18, 16, 0.05) 0 6px, rgba(23, 18, 16, 0.025) 6px 12px);
  border-color: rgba(23, 18, 16, 0.2);
}
:root[data-theme="light"] .flow-desc { border-top-color: rgba(23, 18, 16, 0.1); }
:root[data-theme="light"] .source i.ics { background: rgba(23, 18, 16, 0.5); }

/* ── footer ── */
:root[data-theme="light"] .footer {
  background: linear-gradient(180deg, rgba(250, 242, 238, 0.4), rgba(250, 242, 238, 0.96));
}

/* ═══════════════════════════════════════════════════════════════════════
   TRUE LIGHT: the hero video and the scene photograph become faint, washed
   textures behind a light scrim. Every word and control on the page is then
   dark-on-light — no dark islands left in system light mode.
   ═══════════════════════════════════════════════════════════════════════ */
:root[data-theme="light"] .hero { color: var(--text-primary); }
:root[data-theme="light"] .hero-media { opacity: .2; }
:root[data-theme="light"] .hero-scrim {
  background:
    radial-gradient(120% 90% at 78% 40%, transparent 0%, rgba(250, 242, 238, 0.45) 55%, rgba(250, 242, 238, 0.92) 100%),
    linear-gradient(90deg, rgba(250, 242, 238, 0.96) 0%, rgba(250, 242, 238, 0.82) 42%, rgba(250, 242, 238, 0.52) 100%),
    linear-gradient(180deg, rgba(250, 242, 238, 0.8) 0%, transparent 22%, transparent 62%, var(--page) 100%);
}
:root[data-theme="light"] .hero h1 { text-shadow: none; }
:root[data-theme="light"] .hero-lead { color: var(--text-secondary); }
:root[data-theme="light"] .hero .resume-pill {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 18, 16, 0.12);
}
:root[data-theme="light"] .tile-scene { color: var(--text-primary); }
:root[data-theme="light"] .tile-scene .tile-bg { opacity: .16; }
:root[data-theme="light"] .tile-scene::after {
  background: linear-gradient(180deg, rgba(250, 242, 238, 0.3), rgba(250, 242, 238, 0.9) 78%);
}
:root[data-theme="light"] .tile-scene:hover .tile-bg { opacity: .26; }
:root[data-theme="light"] .tile-scene > p { color: var(--text-secondary); }
:root[data-theme="light"] .tile-scene .tile-icon { color: color-mix(in srgb, var(--accent) 72%, #1c100a); }
:root[data-theme="light"] .scene-btn {
  color: var(--text-primary);
  background: var(--surface-1);
  border-color: rgba(23, 18, 16, 0.10);
}
:root[data-theme="light"] .scene-btn img { opacity: .16; }
:root[data-theme="light"] .scene-btn::after {
  background: linear-gradient(180deg, rgba(250, 242, 238, 0.32), rgba(250, 242, 238, 0.92) 78%);
}
:root[data-theme="light"] .scene-btn:hover { border-color: rgba(23, 18, 16, 0.22); }
:root[data-theme="light"] .scene-btn:hover img { opacity: .26; }
:root[data-theme="light"] .scene-btn[aria-pressed="true"] { border-color: #171210; }
:root[data-theme="light"] .scene-mood {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-secondary);
}

/* ── light mode, done properly ───────────────────────────────────────────
   The old light treatment turned the photographs into almost-white textures
   and left the live demo using dark-theme paint on a light page, which made
   every colour look washed out. Here the images keep their contrast and the
   demo becomes a real, saturated light card (the graphic tints, not the dim
   dark-theme tints, drive its ring). */
:root[data-theme="light"] .hero-media { opacity: .72; }
:root[data-theme="light"] .hero-scrim {
  background:
    radial-gradient(120% 90% at 78% 40%, transparent 0%, rgba(250, 242, 238, 0.14) 56%, rgba(250, 242, 238, 0.62) 100%),
    linear-gradient(90deg, rgba(250, 242, 238, 0.93) 0%, rgba(250, 242, 238, 0.66) 38%, rgba(250, 242, 238, 0.16) 100%),
    linear-gradient(180deg, rgba(250, 242, 238, 0.42) 0%, transparent 24%, transparent 68%, var(--page) 100%);
}
:root[data-theme="light"] .tile-scene .tile-bg { opacity: .62; }
:root[data-theme="light"] .tile-scene:hover .tile-bg { opacity: .88; }
:root[data-theme="light"] .tile-scene::after {
  background: linear-gradient(180deg, rgba(250, 242, 238, 0.08), rgba(250, 242, 238, 0.6) 82%);
}
:root[data-theme="light"] .scene-btn img { opacity: .68; }
:root[data-theme="light"] .scene-btn:hover img { opacity: .94; }
:root[data-theme="light"] .scene-btn::after {
  background: linear-gradient(180deg, rgba(250, 242, 238, 0.08), rgba(250, 242, 238, 0.62) 82%);
}
:root[data-theme="light"] .scene-dot img { opacity: .85; }

:root[data-theme="light"] .demo {
  --ring: var(--focus-graphic, var(--focus-tint));
  color: var(--text-primary);
  background:
    radial-gradient(115% 85% at 88% 0%, color-mix(in srgb, var(--ring) 30%, transparent), transparent 58%),
    radial-gradient(100% 80% at 0% 100%, color-mix(in srgb, var(--break-tint) 22%, transparent), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border-color: rgba(23, 18, 16, 0.12);
  box-shadow: 0 30px 70px -28px rgba(82, 55, 40, 0.4),
    0 0 60px -32px color-mix(in srgb, var(--ring) 65%, transparent),
    inset 0 1px 0 #fff;
}
:root[data-theme="light"] .demo[data-mode="shortBreak"] { --ring: var(--break-graphic, var(--break-tint)); }
:root[data-theme="light"] .demo[data-mode="longBreak"] { --ring: var(--longbreak-graphic, var(--longbreak-tint)); }
:root[data-theme="light"] .demo::after {
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--ring) 82%, transparent),
    rgba(23, 18, 16, 0.05) 38%,
    rgba(23, 18, 16, 0.04) 62%,
    color-mix(in srgb, var(--ring) 55%, transparent));
}
:root[data-theme="light"] .demo-badge { color: var(--text-secondary); }
:root[data-theme="light"] .mode-chips {
  background: rgba(23, 18, 16, 0.06);
  border-color: rgba(23, 18, 16, 0.08);
}
:root[data-theme="light"] .mode-chip { color: var(--text-muted); }
:root[data-theme="light"] .mode-chip:hover { color: var(--text-primary); }
:root[data-theme="light"] .mode-chip.is-active {
  color: #fff;
  background: var(--ring);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ring) 45%, transparent);
}
:root[data-theme="light"] .demo-ring::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ring) 44%, transparent), transparent);
  opacity: .85;
}
:root[data-theme="light"] .demo-ring::after { border-color: color-mix(in srgb, var(--ring) 40%, transparent); }
:root[data-theme="light"] .ring-track { stroke: rgba(23, 18, 16, 0.11); }
:root[data-theme="light"] .ring-arc {
  stroke: var(--ring);
  filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--ring) 45%, transparent));
}
:root[data-theme="light"] .ring-head {
  fill: var(--ring);
  filter: drop-shadow(0 1px 3px rgba(23, 18, 16, 0.25));
}
:root[data-theme="light"] .ring-mode {
  color: color-mix(in srgb, var(--ring) 88%, #171210);
}
:root[data-theme="light"] .ring-time {
  background: linear-gradient(180deg, #171210 28%, color-mix(in srgb, var(--ring) 78%, #171210));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .ring-round { color: var(--text-secondary); }
:root[data-theme="light"] .demo-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 60%), var(--ring);
  border-color: color-mix(in srgb, var(--ring) 75%, #171210);
  color: #fff;
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--ring) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
:root[data-theme="light"] .demo-toggle:hover {
  background: var(--ring);
  filter: brightness(1.06);
  color: #fff;
}
:root[data-theme="light"] .demo-continue { color: color-mix(in srgb, var(--ring) 85%, #171210); }
:root[data-theme="light"] .scene-switch-label { color: var(--text-secondary); }

/* Scene photos, readable but no longer dimmed into mush. The old scrim covered most of the
   image and the light theme's white caption text disappeared on the pale card. Keep the photo
   at full strength and use a short gradient only behind the caption. */
.tile-scene::after {
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.06) 34%, rgba(8, 8, 12, 0.32) 68%, rgba(8, 8, 12, 0.78) 100%);
}
.scene-btn::after {
  background: linear-gradient(180deg, transparent 38%, rgba(6, 6, 9, 0.16) 62%, rgba(6, 6, 9, 0.8) 100%);
}
:root[data-theme="light"] .tile-scene .tile-bg { opacity: .92; }
:root[data-theme="light"] .tile-scene:hover .tile-bg { opacity: 1; }
:root[data-theme="light"] .tile-scene::after {
  background: linear-gradient(180deg, transparent 30%, rgba(250, 242, 238, 0.16) 64%, rgba(250, 242, 238, 0.72) 100%);
}
:root[data-theme="light"] .scene-btn img { opacity: 1; }
:root[data-theme="light"] .scene-btn:hover img { opacity: 1; transform: scale(1.04); }
:root[data-theme="light"] .scene-btn::after {
  background: linear-gradient(180deg, transparent 34%, rgba(250, 242, 238, 0.14) 62%, rgba(250, 242, 238, 0.76) 100%);
}
:root[data-theme="light"] .scene-mood {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 18, 16, 0.08);
}
:root[data-theme="light"] .scene-hint { color: var(--text-secondary); }
:root[data-theme="light"] .scene-badge {
  background: rgba(23, 18, 16, 0.6);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
:root[data-theme="light"] .scene-dot { opacity: .9; }
:root[data-theme="light"] .scene-dot img { opacity: 1; }
