/* ═══════════════════════════════════════════════════════════════
   Option A — "Menu Bar Native"
   macOS Sonoma aesthetic. Light/dark adaptive, system font,
   translucent chrome, single green accent from the app icon.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Motion — custom curves; the CSS keyword easings are too weak. */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --bg:      #ffffff;
  --bg-alt:  #f5f5f7;
  --surface: #ffffff;
  --ink:     #1d1d1f;
  --ink-2:   #494950;
  --muted:   #6e6e73;
  --line:    rgba(0, 0, 0, .10);
  --line-2:  rgba(0, 0, 0, .06);
  --accent:  #17915a;
  --accent-2:#1f9d62;
  --alarm:   #d70015;
  --chrome:  rgba(255, 255, 255, .72);
  --shadow:  0 1px 2px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.10);
  --radius:  14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #000000;
    --bg-alt:  #0d0d0f;
    --surface: #1c1c1e;
    --ink:     #f5f5f7;
    --ink-2:   #d6d6da;
    --muted:   #98989d;
    --line:    rgba(255, 255, 255, .14);
    --line-2:  rgba(255, 255, 255, .07);
    --accent:  #4fd88c;
    --accent-2:#3ecf7f;
    --alarm:   #ff453a;
    --chrome:  rgba(20, 20, 22, .70);
    --shadow:  0 1px 2px rgba(0,0,0,.5), 0 16px 50px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0;                      /* body sits near zero tracking */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--ink);
  padding: 12px 18px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ─────────────────────────── layout ─────────────────────────── */

.wrap { width: min(1080px, 90vw); margin: 0 auto; }
.wrap-narrow { width: min(720px, 90vw); }
.center { text-align: center; }

.band { padding: clamp(72px, 11vw, 132px) 0; }
.band-alt { background: var(--bg-alt); }

/* ─────────────────────────── type ─────────────────────────── */

.display {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.04;                      /* tight leading on large text */
  letter-spacing: -0.028em;               /* negative tracking as size grows */
  font-weight: 600;
  margin: 0 0 24px;
}
.display-sm { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 32px; }

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 20px;
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.55; color: var(--ink-2);
  max-width: 60ch; margin: 0 auto 40px;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 600;
  margin: 0 0 18px;
}
.section-lede {
  font-size: 1.08rem; color: var(--muted); max-width: 62ch; margin: 0 0 48px;
  line-height: 1.6;
}
.center .lede, .center .section-lede { margin-left: auto; margin-right: auto; }

.fineprint { color: var(--muted); font-size: .92rem; margin: 28px 0 0; }

/* ─────────────────────────── nav ─────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--chrome);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  width: min(1080px, 90vw); margin: 0 auto;
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.brand-plat { color: var(--muted); font-weight: 400; }

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent-2); color: #fff;
  border: none; border-radius: 980px; text-decoration: none;
  font-weight: 590; letter-spacing: -.01em;
  padding: 13px 26px; font-size: 1rem;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
  will-change: transform;
}
.btn-sm { padding: 7px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }
.btn-glyph { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent); }
}
@media (prefers-color-scheme: dark) {
  .btn { color: #06120c; }
}

/* ─────────────────────────── hero ─────────────────────────── */

.hero { padding: clamp(48px, 8vw, 92px) 0 0; text-align: center; }

/* The live countdown that opens the page. Same thin monospaced face as the
   app's own 42pt timer, scaled up — it is the product, not decoration. */
.kicker { font-size: .86rem; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; }
.kicker [data-elapsed] {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-variant-numeric: tabular-nums; color: var(--ink-2);
}

.mega {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: clamp(4.2rem, 17vw, 13rem);
  font-weight: 100; line-height: .92;
  letter-spacing: -0.05em;                /* large type wants to close up */
  font-variant-numeric: tabular-nums;
  margin: 0; color: var(--ink);
  transition: color 400ms ease;
}
[data-phase="alarm"] .mega { color: var(--alarm); }
[data-phase="away"]  .mega { color: var(--muted); }

.mega-status {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 8px 0 clamp(36px, 5.5vw, 60px);
  transition: color 300ms ease;
}
[data-phase="alarm"] .mega-status { color: var(--alarm); }

.cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.req { color: var(--muted); font-size: .88rem; margin: 0; }

.trust {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  color: var(--muted); font-size: .92rem;
}
.trust li { display: flex; align-items: center; gap: 7px; }

/* ─────────── the macOS stage: menu bar + popover ─────────── */

.shot { margin: 0; }
.shot figcaption {
  text-align: center; color: var(--muted); font-size: .88rem;
  margin-top: 20px;
}

.stage { margin-top: clamp(48px, 7vw, 84px); padding: 0 max(16px, 5vw); }

.desktop {
  position: relative;
  width: min(880px, 100%); margin: 0 auto;
  border-radius: 16px 16px var(--radius) var(--radius);
  background:
    radial-gradient(120% 90% at 20% 0%, #eaf4ee 0%, transparent 60%),
    radial-gradient(110% 80% at 90% 15%, #e3edf6 0%, transparent 55%),
    linear-gradient(160deg, #f4f7f9, #e7edf2);
  padding: 0 0 clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.menubar {
  display: flex; align-items: center; gap: 18px;
  height: 30px; padding: 0 14px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  color: rgba(0, 0, 0, .84);
  font-size: 12.5px; white-space: nowrap;
}
.mb-apple {
  width: 13px; height: 13px; flex: none; opacity: .9;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.54c.02-2.3 1.88-3.4 1.96-3.45-1.07-1.56-2.73-1.78-3.32-1.8-1.41-.14-2.76.83-3.48.83-.72 0-1.83-.81-3-.79-1.55.02-2.97.9-3.77 2.28-1.6 2.79-.41 6.92 1.15 9.19.76 1.11 1.67 2.35 2.86 2.31 1.15-.05 1.58-.74 2.97-.74s1.78.74 3 .72c1.24-.02 2.02-1.13 2.78-2.24.88-1.28 1.24-2.52 1.26-2.59-.03-.01-2.41-.93-2.43-3.68zM14.8 5.8c.63-.77 1.06-1.83.94-2.9-.91.04-2.02.61-2.67 1.37-.58.68-1.09 1.77-.96 2.81 1.02.08 2.06-.52 2.69-1.28z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.54c.02-2.3 1.88-3.4 1.96-3.45-1.07-1.56-2.73-1.78-3.32-1.8-1.41-.14-2.76.83-3.48.83-.72 0-1.83-.81-3-.79-1.55.02-2.97.9-3.77 2.28-1.6 2.79-.41 6.92 1.15 9.19.76 1.11 1.67 2.35 2.86 2.31 1.15-.05 1.58-.74 2.97-.74s1.78.74 3 .72c1.24-.02 2.02-1.13 2.78-2.24.88-1.28 1.24-2.52 1.26-2.59-.03-.01-2.41-.93-2.43-3.68zM14.8 5.8c.63-.77 1.06-1.83.94-2.9-.91.04-2.02.61-2.67 1.37-.58.68-1.09 1.77-.96 2.81 1.02.08 2.06-.52 2.69-1.28z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mb-app { font-weight: 600; }
.mb-spacer { flex: 1; }
.mb-item { opacity: .85; }
.mb-flow {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; margin: 0 -1px; border-radius: 5px;
  background: rgba(31, 157, 98, .14);
  opacity: 1;
}
.mb-clock { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
[data-phase="alarm"] .mb-flow { color: #ff8a80; animation: mbflash 1s steps(2, jump-none) infinite; }
@keyframes mbflash { 50% { opacity: .35; } }

/* popover */
.popover {
  position: relative;
  width: 268px; margin: 22px auto 0;
  background: var(--chrome);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-top-color: rgba(255, 255, 255, .34);   /* light catching the material */
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  padding: 12px;
  color: var(--ink);
}
@media (prefers-color-scheme: light) {
  .popover { background: rgba(250, 250, 252, .86); }
}
.pop-arrow {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: inherit;
  border-left: 1px solid rgba(255, 255, 255, .3);
  border-top: 1px solid rgba(255, 255, 255, .3);
}
.pop-cam {
  height: 132px; border-radius: 8px; display: grid; place-items: center;
  background:
    radial-gradient(80% 70% at 50% 38%, rgba(255, 226, 190, .5), transparent 60%),
    linear-gradient(170deg, #3e5a63, #1c2b31);
  color: rgba(255, 255, 255, .45); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.pop-status {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  margin: 12px 0 2px; font-size: .84rem; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex: none; }
[data-phase="alarm"] .dot { background: var(--alarm); }
[data-phase="away"]  .dot { background: #e6a700; }

.pop-timer {
  font: 200 42px/1.1 ui-monospace, 'SF Mono', Menlo, monospace;
  font-variant-numeric: tabular-nums;
  text-align: center; margin: 4px 0 12px; letter-spacing: -.02em;
}
[data-phase="alarm"] .pop-timer { color: var(--alarm); }

.pop-hold { margin: -4px 0 12px; text-align: center; }
.pop-hold p { margin: 6px 0 0; font-size: .74rem; color: var(--muted); }
.pop-hold-track { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pop-hold-fill {
  height: 100%; background: var(--accent-2);
  transform-origin: left center; transform: scaleX(0);
  transition: transform 900ms linear;
}

.pop-footer { border-top: 1px solid var(--line-2); padding-top: 10px; text-align: center; }
.pop-btn {
  display: block; padding: 6px; border-radius: 7px;
  background: var(--accent-2); color: #fff; font-size: .84rem; font-weight: 590;
}
@media (prefers-color-scheme: dark) { .pop-btn { color: #06120c; } }
.pop-links {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 9px; font-size: .78rem; color: var(--accent);
}

/* ─────────────────────────── steps ─────────────────────────── */

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 40px 44px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: s;
}
.steps li { position: relative; }
.step-n {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-2); color: #fff;
  font-size: .84rem; font-weight: 640; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .step-n { color: #06120c; } }
.steps h3 { font-size: 1.08rem; margin: 0 0 8px; letter-spacing: -.01em; }
.steps p  { margin: 0; color: var(--muted); font-size: .97rem; }

/* ─────────────────────────── hold-to-dismiss demo ─────────────────────────── */

.demo { margin-top: 8px; }
.hold {
  position: relative; display: grid; place-items: center;
  width: 168px; height: 168px; margin: 0 auto;
  border-radius: 50%; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink);
  cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
  box-shadow: var(--shadow);
}
.hold:active { transform: scale(.97); }
.hold-ring { display: none; }
.hold-face { position: relative; z-index: 2; font-size: 58px; line-height: 1; filter: saturate(1.05); }
.hold-fill {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  clip-path: inset(100% 0 0 0);
  /* Release is snappy — the system responding. */
  transition: clip-path 200ms var(--ease-out);
}
/* Press is slow and deliberate — the user deciding. */
.hold.holding .hold-fill { clip-path: inset(0 0 0 0); transition: clip-path 3s linear; }
.hold.done { border-color: var(--accent-2); }
.hold.done .hold-fill { clip-path: inset(0 0 0 0); transition: clip-path 200ms var(--ease-out); }

.demo-label {
  margin: 26px 0 6px; font-size: 1.06rem; font-weight: 590; letter-spacing: -.01em;
  transition: opacity 200ms ease;
}
.demo-sub { color: var(--muted); font-size: .95rem; max-width: 46ch; margin: 0 auto; }

/* ─────────────────────────── theme switcher ─────────────────────────── */

.theme-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px;
}
.theme-tabs button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: .92rem; padding: 9px 17px; border-radius: 980px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.theme-tabs button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .theme-tabs button:hover { color: var(--ink); border-color: var(--ink); }
}
.theme-tabs button[aria-selected="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
}

.theme-stage { display: grid; place-items: center; min-height: 340px; }
.theme-panel {
  grid-area: 1 / 1;
  opacity: 1; transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@starting-style { .theme-panel { opacity: 0; transform: scale(.96); } }

/* Two-column: intro + tabs on the left, live preview on the right */
.themes-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.themes-intro { max-width: 30rem; }
.themes-split .section-lede { margin-bottom: 32px; }
.themes-split .theme-tabs { margin-bottom: 0; }
@media (max-width: 860px) {
  .themes-split { grid-template-columns: 1fr; gap: clamp(24px, 6vw, 40px); }
  .themes-intro { max-width: none; }
}

.pop {
  width: 268px; border-radius: 12px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* 8-bit sprite */
.pop-sprite { text-align: center; }
.sprite { width: 104px; height: 104px; margin: 8px auto 4px; display: block; image-rendering: pixelated; }
.sprite-status {
  font: 600 .78rem/1 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .16em; color: var(--accent); margin: 0 0 2px;
}

/* CRT terminal */
.pop-crt {
  position: relative; overflow: hidden; padding: 0;
  background: #08140a; border-color: #0d3a17;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.crt-head {
  background: #00ff40; color: #08140a;
  font-size: 11px; font-weight: 700; padding: 4px 8px;
}
.crt-body { padding: 10px; font-size: 11px; line-height: 1.55; }
.crt-body p { margin: 0; white-space: pre; }
.crt-rule { color: #009926; font-size: 10px; overflow: hidden; }
.crt-k { color: #009926; }
.crt-v { color: #00ff40; font-weight: 500; }
.crt-dim { color: #009926; }
[data-phase="alarm"] .pop-crt .crt-v { color: #ff9900; }
.crt-cursor { color: #00ff40; animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.crt-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.20) 0 1px, transparent 1px 2px);
}

/* ASCII clock */
.pop-ascii { text-align: center; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.ascii-title { font-size: .72rem; letter-spacing: .28em; color: var(--muted); margin: 2px 0 12px; }
.ascii-clock {
  margin: 0 0 12px; font-size: 11px; line-height: 1.02; letter-spacing: .5px;
  color: var(--ink); white-space: pre; overflow-x: auto;
}
.ascii-status { font-size: .78rem; letter-spacing: .1em; color: var(--accent); margin: 0 0 8px; }
.ascii-dots { font-size: .8rem; color: var(--muted); margin: 0 0 12px; letter-spacing: 1px; }

/* HP bar */
.pop-hp { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.hp-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.hp-lvl { font-weight: 400; color: var(--muted); font-size: 10px; }
.hp-box { background: color-mix(in srgb, var(--muted) 12%, transparent); border-radius: 6px; padding: 10px; margin-top: 12px; }
.hp-row { display: flex; justify-content: space-between; align-items: center; }
.hp-label { font-size: 11px; font-weight: 700; color: var(--accent-2); }
.hearts { font-size: 12px; letter-spacing: 2px; color: var(--accent-2); }
.hp-segs { display: flex; gap: 2px; height: 10px; margin-top: 8px; }
.hp-segs i { flex: 1; border-radius: 1px; background: color-mix(in srgb, var(--muted) 22%, transparent); }
.hp-segs i.on.lo   { background: #34c759; }
.hp-segs i.on.mid  { background: #ffd60a; }
.hp-segs i.on.hi   { background: #ff9f0a; }
.hp-segs i.on.alarm{ background: var(--alarm); }
.hp-times { display: flex; justify-content: space-between; }
.hp-times > div { display: flex; flex-direction: column; gap: 2px; }
.hp-times .right { text-align: right; }
.hp-cap { font-size: 9px; color: var(--muted); }
.hp-num { font-size: 28px; font-weight: 200; font-variant-numeric: tabular-nums; }
.hp-num.dim { color: var(--muted); }
.hp-banner {
  margin: 12px 0 0; text-align: center; font-size: 11px; font-weight: 500;
  padding: 6px; border-radius: 4px;
  color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}

/* ─────────────────────────── stats ─────────────────────────── */

.stats-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 3.4vw, 32px);
  box-shadow: var(--shadow);
}
.stats-cards {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-bottom: 30px;
}
.stat {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-alt);
}
.stat-emoji { font-size: 1.05rem; }
.stat-label { font-size: .78rem; color: var(--muted); }
.stat-val { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.timeline { display: flex; gap: 2px; height: 44px; border-radius: 6px; overflow: hidden; }
.tl { position: relative; border-radius: 2px; }
.tl-sit { background: linear-gradient(180deg, #34c759, #24a148); }
.tl-brk { background: color-mix(in srgb, var(--muted) 26%, transparent); }
.tl-alarm { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--alarm); }
.tl-hours { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; margin-top: 8px; }
.tl-legend { display: flex; gap: 20px; margin-top: 18px; font-size: .82rem; color: var(--muted); }
.tl-legend span { display: flex; align-items: center; gap: 7px; }
.k { width: 11px; height: 11px; border-radius: 3px; }
.k-sit { background: #34c759; }
.k-brk { background: color-mix(in srgb, var(--muted) 40%, transparent); }
.k-alm { background: var(--alarm); }

.events { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line-2); }
.events li {
  display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line-2); font-size: .9rem;
}
.ev-name { font-weight: 500; }
.ev-time, .ev-dur { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.ev-dur { min-width: 44px; text-align: right; }

/* ─────────────────────────── export / ai ─────────────────────────── */

.export-demo { max-width: 480px; margin: 0 auto; text-align: left; }

.export-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 980px;
  background: var(--surface); box-shadow: var(--shadow);
  font-size: .88rem; font-weight: 590; color: var(--ink-2);
}
.export-chip-icon { font-size: 1rem; }

.ai-reply {
  padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow);
}
.ai-reply-head {
  display: flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 640; margin-bottom: 10px;
}
.ai-badge {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-2); color: #fff; font-size: .82rem;
}
@media (prefers-color-scheme: dark) { .ai-badge { color: #06120c; } }
.ai-point + .ai-point { margin-top: 14px; }
.ai-label {
  display: block; font-size: .74rem; font-weight: 640; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.ai-reply p { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.55; }

/* ─────────────────────────── desk + privacy ─────────────────────────── */

.two { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feat {
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.feat h3 { margin: 0 0 9px; font-size: 1.08rem; letter-spacing: -.01em; }
.feat p  { margin: 0; color: var(--muted); font-size: .97rem; }

/* Prerequisite / further-reading box. Sits on the alt tint so it reads as an
   aside to the section rather than another feature card. */
.callout {
  margin-top: 30px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt);
}
.callout h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -.01em; }
.callout p  { margin: 0; color: var(--muted); font-size: .96rem; }

/* Inline links in body copy. The page sets `a { color: inherit }`, so anything
   meant to look clickable has to opt back in. */
.callout a, .fineprint a, .feat p a, .privacy p a, .section-lede a, .lede a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 42%, transparent);
  transition: text-decoration-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .callout a:hover, .fineprint a:hover, .feat p a:hover,
  .privacy p a:hover, .section-lede a:hover, .lede a:hover {
    text-decoration-color: var(--accent);
  }
}

.privacy { display: grid; gap: 34px 44px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.privacy h3 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -.01em; }
.privacy p  { margin: 0; color: var(--muted); font-size: .96rem; }
.privacy em { color: var(--ink-2); font-style: normal; }

/* ─────────────────────────── closer + footer ─────────────────────────── */

.closer { padding: clamp(80px, 12vw, 150px) 0; }
.closer .req { margin-top: 16px; }

.foot { border-top: 1px solid var(--line-2); padding: 30px 0; color: var(--muted); font-size: .88rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.foot a { color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; } }
.sep { opacity: .5; }

/* ─────────────────────────── responsive ─────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .menubar { gap: 10px; font-size: 11px; padding: 0 9px; }
  .menubar .mb-app { display: none; }
  .events li { grid-template-columns: 24px 1fr; row-gap: 2px; }
  .ev-time { grid-column: 2; }
  .ev-dur { display: none; }
  .theme-stage { min-height: 400px; }
}

/* ─────────────────────────── accessibility ─────────────────────────── */

@media (prefers-reduced-transparency: reduce) {
  .nav, .popover, .menubar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { background: var(--bg); }
  .popover { background: var(--surface); }
  .menubar { background: rgba(245, 245, 247, .92); }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(0,0,0,.4); --muted: #3a3a3e; }
  .btn { outline: 1px solid currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  /* Gentler, not zero: keep opacity/colour, drop all movement and loops. */
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
  .btn:active, .hold:active, .theme-tabs button:active { transform: none; }
  .crt-cursor, .mb-flow { animation: none !important; }
  @starting-style { .theme-panel { opacity: 0; transform: none; } }
}
