:root {
  color-scheme: light dark;
  --canvas: #f8f8f8;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #f1f1ef;
  --ink: #252525;
  --ink-secondary: #686866;
  --ink-subtle: #8b8b88;
  --hairline: rgba(37, 37, 37, 0.09);
  --hairline-strong: rgba(37, 37, 37, 0.16);
  --specular-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --header-bg: rgba(248, 248, 248, 0.78);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --grid-line: rgba(37, 37, 37, 0.045);

  --accent: #536117;
  --accent-soft: #edf3d9;
  --accent-ink: #ffffff;
  --accent-pill-bg: #d5ef74;
  --accent-pill-ink: #26320c;

  --cat-invest-bg: #e8f8f1;
  --cat-invest-dot: #267b58;
  --cat-invest-ink: #174c36;
  --cat-produce-bg: #eaf0ff;
  --cat-produce-dot: #3a5fc2;
  --cat-produce-ink: #20397d;
  --cat-enjoy-bg: #fff8ce;
  --cat-enjoy-dot: #a67f12;
  --cat-enjoy-ink: #5e4706;
  --cat-maintain-bg: #eef1f5;
  --cat-maintain-dot: #5b6675;
  --cat-maintain-ink: #343d48;
  --cat-waste-bg: #ffeaf0;
  --cat-waste-dot: #b83d62;
  --cat-waste-ink: #6d1f37;

  --dark-canvas: #141414;
  --dark-surface: #1d1d1c;
  --dark-surface-2: #242422;
  --dark-ink: #f4f4f1;
  --dark-ink-sec: #a6a6a2;
  --dark-hairline: rgba(244, 244, 241, 0.1);
  --dark-lime: #d5ef74;

  --radius-card: 20px;
  --radius-bento: 24px;
  --radius-monolith: 28px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -18px rgba(37, 37, 37, 0.14);
  --shadow-bento-hover: 0 4px 12px rgba(0, 0, 0, 0.05), 0 24px 48px -20px rgba(37, 37, 37, 0.18);
  --shadow-device: 0 32px 64px -24px rgba(20, 20, 20, 0.28), 0 8px 20px -8px rgba(20, 20, 20, 0.12);
  --shadow-glass: 0 10px 28px -10px rgba(20, 20, 20, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --canvas: #171717;
  --surface: #1f1f1e;
  --surface-elevated: #242422;
  --surface-muted: #292927;
  --ink: #f1f1f1;
  --ink-secondary: #a8a8a6;
  --ink-subtle: #7f7f7c;
  --hairline: rgba(241, 241, 241, 0.085);
  --hairline-strong: rgba(241, 241, 241, 0.16);
  --specular-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --header-bg: rgba(23, 23, 23, 0.78);
  --glass-bg: rgba(34, 34, 32, 0.78);
  --grid-line: rgba(255, 255, 255, 0.045);

  --accent: #d5ef74;
  --accent-soft: #2e341e;
  --accent-ink: #26320c;
  --accent-pill-bg: #d5ef74;
  --accent-pill-ink: #26320c;

  --cat-invest-bg: #20362b;
  --cat-invest-dot: #65c99c;
  --cat-invest-ink: #bfead5;
  --cat-produce-bg: #222d43;
  --cat-produce-dot: #7ea4ff;
  --cat-produce-ink: #cad9ff;
  --cat-enjoy-bg: #37331e;
  --cat-enjoy-dot: #f2cf5b;
  --cat-enjoy-ink: #f9eac0;
  --cat-maintain-bg: #2b3037;
  --cat-maintain-dot: #9aa6b8;
  --cat-maintain-ink: #d4dce6;
  --cat-waste-bg: #3c2630;
  --cat-waste-dot: #ec7e9f;
  --cat-waste-ink: #f8cad8;

  --dark-canvas: #0f0f0f;
  --dark-surface: #181817;
  --dark-surface-2: #20201e;
  --dark-hairline: rgba(244, 244, 241, 0.09);

  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.2), 0 18px 40px -20px rgba(0, 0, 0, 0.65);
  --shadow-bento-hover: 0 8px 20px rgba(0, 0, 0, 0.35), 0 28px 56px -22px rgba(0, 0, 0, 0.8);
  --shadow-device: 0 36px 72px -24px rgba(0, 0, 0, 0.85), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 12px 32px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.66;
  overflow-x: clip;
}

main {
  overflow-x: clip;
}

::selection {
  background-color: var(--accent-pill-bg);
  color: var(--accent-pill-ink);
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

img {
  display: block;
  max-width: 100%;
}

button, input {
  font-family: inherit;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

/* Progressive enhancement hooks reserved for interactive states */

/* Header: Apple Frosted Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 620;
  letter-spacing: -0.022em;
  font-size: 15px;
  min-width: 0;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6.5px;
  border: 1px solid var(--hairline-strong);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 560;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-quick-link {
  display: none;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink);
  padding: 0 11px;
  height: 30px;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  white-space: nowrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s var(--ease-out), background-color 0.18s ease;
}

.pill-btn:hover {
  border-color: var(--ink-subtle);
}

.pill-btn:active {
  transform: scale(0.96);
}

.icon-btn {
  width: 30px;
  padding: 0;
}

/* Typography */
h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 650;
  text-wrap: balance;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 {
  overflow-wrap: break-word;
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 4rem);
  letter-spacing: -0.036em;
  line-height: 1.12;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.2;
  max-width: 34ch;
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  color: var(--ink-secondary);
  max-width: 52ch;
  margin: 16px 0 0;
  line-height: 1.7;
}

.prose {
  max-width: 60ch;
  color: var(--ink-secondary);
  margin: 0;
}

.prose + .prose {
  margin-top: 14px;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.cta-row-centered {
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent-pill-bg);
  color: var(--accent-pill-ink);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid rgba(38, 50, 12, 0.16);
  box-shadow: 0 1px 2px rgba(38, 50, 12, 0.08);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
  box-shadow: 0 8px 20px -10px rgba(83, 97, 23, 0.45);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 540;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--specular-inset);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--ink-subtle);
  transform: translateY(-1px);
}

.btn-dark-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--dark-ink);
  font-weight: 540;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid var(--dark-hairline);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.btn-dark-ghost:hover {
  border-color: rgba(244, 244, 241, 0.28);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* Band Cadence */
.band {
  padding: clamp(64px, 8vw, 108px) 0;
  border-top: 1px solid var(--hairline);
}

.band-surface {
  background-color: var(--surface);
}

.band-header {
  max-width: 64ch;
  margin-bottom: 36px;
}

.band-header-centered {
  max-width: 66ch;
  margin: 0 auto 44px;
  text-align: center;
}

.band-header-centered .section-title {
  margin-left: auto;
  margin-right: auto;
}

.band-header-centered .lead {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   MONUMENTAL HERO (HOME) + AMBIENT LEDGER PAPER + IPHONE
   ========================================================= */
.hero-editorial {
  position: relative;
  padding: clamp(48px, 6.8vw, 88px) 0 clamp(60px, 7.5vw, 96px);
  overflow: clip;
}

.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 62%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 76%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 62%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 76%);
  pointer-events: none;
}

.hero-copy-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-copy-center .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 54ch;
}

.hero-stage {
  position: relative;
  z-index: 2;
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 236px) auto minmax(0, 236px);
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}

.hero-stage > * {
  min-width: 0;
}

/* Floating Glass Spec Callouts beside Hero iPhone */
.hero-callout {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--hairline-strong);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-glass);
}

.callout-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.callout-num {
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
}

.callout-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.callout-mini-bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  background: var(--surface-muted);
  padding: 1px;
  margin-bottom: 10px;
}

.callout-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.callout-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.callout-brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.callout-app-icon {
  width: 34px;
  height: 34px;
  border-radius: 8.5px;
  border: 1px solid var(--hairline-strong);
  flex-shrink: 0;
}

.callout-title {
  font-size: 14px;
  font-weight: 630;
  line-height: 1.25;
}

.callout-sub {
  font-size: 12px;
  color: var(--ink-subtle);
}

/* =========================================================
   REALISTIC TITANIUM IPHONE HARDWARE MOCKUP
   ========================================================= */
.iphone-frame {
  width: min(376px, 100%);
  margin: 0 auto;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(145deg, #3b3b3d 0%, #1c1c1e 48%, #2e2e30 100%);
  box-shadow:
    var(--shadow-device),
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px 2px rgba(0, 0, 0, 0.7);
  position: relative;
}

.iphone-bezel {
  background: #0d0d0e;
  border-radius: 40px;
  padding: 4px;
}

.iphone-screen {
  background: var(--surface);
  color: var(--ink);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.iphone-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 11px 18px 8px;
  font-size: 11px;
  font-weight: 650;
}

.iphone-time {
  justify-self: start;
  letter-spacing: -0.01em;
}

.iphone-island {
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #0d0d0e;
  justify-self: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.iphone-status-icons {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}

.iphone-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 10px;
  border-bottom: 1px solid var(--hairline);
}

.iphone-nav-title {
  font-size: 14px;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.iphone-zoom-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-secondary);
  border: 1px solid var(--hairline);
}

.iphone-zoom-pill.is-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.iphone-body {
  padding: 10px 12px 12px;
  flex: 1 1 auto;
}

/* Inside iPhone: Authentic 3-Day Half-Hour Grid */
.app-days-hdr {
  display: grid;
  grid-template-columns: 38px repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
  font-size: 10.5px;
  color: var(--ink-subtle);
  text-align: center;
  font-weight: 550;
}

.app-day-today {
  color: var(--accent);
  font-weight: 680;
}

.app-grid-3 {
  display: grid;
  grid-template-columns: 38px repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-items: stretch;
}

.app-ruler {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 2px 2px 0;
  font-size: 9.5px;
  color: var(--ink-subtle);
  text-align: right;
  line-height: 1;
}

.app-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-blk {
  border-radius: 8px;
  padding: 5px 5px;
  font-size: 10px;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  position: relative;
}

.app-blk strong {
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-blk small {
  font-size: 9px;
  opacity: 0.78;
}

.app-blk.sz-sm { min-height: 36px; }
.app-blk.sz-md { min-height: 50px; }
.app-blk.sz-lg { min-height: 78px; }
.app-blk.sz-xl { min-height: 92px; }

/* Active drag selection ring matching native TimeMira drag-to-log UX */
.app-blk.is-dragging {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  box-shadow: 0 4px 12px -4px rgba(83, 97, 23, 0.35);
}

.drag-handle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.drag-handle.top { top: -4px; right: 10px; }
.drag-handle.bottom { bottom: -4px; left: 10px; }

/* iPhone Bottom Native Tab Bar */
.iphone-tabbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 10px 6px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.iphone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9.5px;
  color: var(--ink-subtle);
  font-weight: 500;
}

.iphone-tab svg {
  width: 15px;
  height: 15px;
}

.iphone-tab.is-active {
  color: var(--accent);
  font-weight: 650;
}

.iphone-home-bar {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.18;
  margin: 4px auto 7px;
}

/* =========================================================
   APPLE STICKY SCROLL-DRIVEN STAGE (LOG -> OBSERVE -> SHIFT)
   ========================================================= */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.story-layout > * {
  min-width: 0;
}

.story-mobile-tabs {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  margin-bottom: 14px;
}

.story-mobile-caption {
  display: none;
  margin-bottom: 18px;
  font-size: 14.5px;
}

.story-mobile-tab {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 560;
  padding: 8px 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.story-mobile-tab[aria-selected="true"] {
  background: var(--accent-pill-bg);
  color: var(--accent-pill-ink);
  font-weight: 640;
}

.story-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-step {
  position: relative;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid var(--hairline-strong);
  border-radius: 0 18px 18px 0;
  padding: 26px 24px 26px 26px;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out),
    opacity 0.3s ease;
  opacity: 0.56;
  width: 100%;
  color: inherit;
}

.story-step:hover {
  opacity: 0.85;
}

.story-step.is-active {
  opacity: 1;
  border-left-color: var(--accent);
  background: var(--canvas);
  border-top-color: var(--hairline);
  border-right-color: var(--hairline);
  border-bottom-color: var(--hairline);
  box-shadow: var(--shadow-card);
}

.story-step h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-bottom: 10px;
  color: var(--ink);
}

.story-step p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.story-stage-col {
  position: sticky;
  top: 84px;
}

.stage-screens {
  position: relative;
  min-height: 360px;
}

.stage-screen {
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out), visibility 0.24s;
}

.stage-screen:not(.is-active) {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.99);
  pointer-events: none;
}

.stage-screen.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Stage Screen 0: Quick Tray below slots */
.quick-tray {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.quick-tray-lbl {
  font-size: 10.5px;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-chip {
  font-size: 11px;
  font-weight: 560;
  padding: 5px 9px;
  border-radius: 999px;
}

/* Stage Screen 1: Insights Screen with SVG Donut */
.stage-insight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
}

.donut-box {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.donut-svg {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-center strong {
  font-size: 17px;
  line-height: 1.05;
}

.donut-center span {
  font-size: 9.5px;
  color: var(--ink-subtle);
}

.stage-stat-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.stage-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.stage-stat-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.stage-callout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-pill-ink);
  font-size: 11.5px;
  line-height: 1.5;
}

html[data-theme="dark"] .stage-callout {
  color: var(--ink);
}

/* Stage Screen 2: Shift Comparison */
.shift-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shift-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
}

.shift-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  margin-bottom: 6px;
}

.shift-delta {
  font-size: 11px;
  font-weight: 640;
}

.shift-bar-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shift-track {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.shift-fill {
  height: 100%;
  border-radius: 999px;
}

/* =========================================================
   5 CATEGORIES + COMPACT EXCLUDE + DARK PHILOSOPHY INVITE
   ========================================================= */
.cat-ledger {
  border-top: 1px solid var(--hairline);
}

.cat-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.2s ease;
}

.cat-row:hover {
  background-color: var(--surface);
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
}

.cat-desc {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0;
}

.cat-role {
  font-size: 13px;
  color: var(--ink-subtle);
  white-space: nowrap;
}

.cat-row.is-compound .cat-role {
  color: var(--accent);
  font-weight: 600;
}

.c-invest { background: var(--cat-invest-bg); color: var(--cat-invest-ink); }
.c-produce { background: var(--cat-produce-bg); color: var(--cat-produce-ink); }
.c-enjoy { background: var(--cat-enjoy-bg); color: var(--cat-enjoy-ink); }
.c-maintain { background: var(--cat-maintain-bg); color: var(--cat-maintain-ink); }
.c-waste { background: var(--cat-waste-bg); color: var(--cat-waste-ink); }

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-invest { background: var(--cat-invest-dot); }
.dot-produce { background: var(--cat-produce-dot); }
.dot-enjoy { background: var(--cat-enjoy-dot); }
.dot-maintain { background: var(--cat-maintain-dot); }
.dot-waste { background: var(--cat-waste-dot); }

.compact-exclude-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card), var(--specular-inset);
}

.ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.ledger-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.ledger-hours {
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.ledger-sub {
  font-size: 13px;
  color: var(--ink-secondary);
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--canvas);
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
  max-width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.toggle-control[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.switch-track {
  width: 34px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--hairline-strong);
  position: relative;
  transition: background-color 0.25s var(--ease-out);
  flex-shrink: 0;
}

.toggle-control[aria-pressed="true"] .switch-track {
  background: var(--accent-pill-bg);
}

.switch-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.toggle-control[aria-pressed="true"] .switch-thumb {
  transform: translateX(14px);
  background: var(--accent-pill-ink);
}

.week-bar {
  display: flex;
  width: 100%;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  gap: 2px;
  padding: 2px;
  margin-top: 16px;
}

.bar-seg {
  height: 100%;
  border-radius: 7px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.5s var(--ease-out), opacity 0.3s ease, padding 0.4s ease;
}

.bar-seg.is-collapsed {
  width: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
  margin: 0 -1px;
}

.hero-insight {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

.hero-footnote {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-subtle);
}

/* Featured Dark Philosophy Invitation Banner */
.philosophy-banner-dark {
  margin-top: 22px;
  padding: clamp(24px, 3.5vw, 34px);
  border-radius: var(--radius-bento);
  background: var(--dark-canvas);
  color: var(--dark-ink);
  border: 1px solid var(--dark-hairline);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.philosophy-banner-dark h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: var(--dark-ink);
  margin-bottom: 6px;
}

.philosophy-banner-dark p {
  margin: 0;
  font-size: 14.5px;
  color: var(--dark-ink-sec);
  max-width: 64ch;
}

/* =========================================================
   SCULPTED ASYMMETRIC APPLE BENTO SHOWCASE (#features)
   ========================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-tile {
  grid-column: span 6;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-bento);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: var(--shadow-card), var(--specular-inset);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}

.bento-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-bento-hover), var(--specular-inset);
  border-color: var(--hairline-strong);
}

.bento-tile.span-7 { grid-column: span 7; }
.bento-tile.span-5 { grid-column: span 5; }

.bento-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bento-head h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  margin-bottom: 8px;
}

.bento-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.bento-ui {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 16px;
}

.bento-ui-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.bento-ui-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-subtle);
}

/* Bento Tile 1: Zoomable Multi-Day Grid */
.seg-mini {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: 1px solid var(--hairline);
  gap: 2px;
  flex-shrink: 0;
}

.seg-mini button {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.seg-mini button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.zoom-grid-canvas {
  display: grid;
  gap: 6px;
}

.zoom-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.zoom-col-hdr {
  font-size: 10.5px;
  color: var(--ink-subtle);
  text-align: center;
  font-weight: 600;
}

.zoom-cell {
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 560;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoom-cell.z-tall { padding: 14px 6px; }
.zoom-cell.z-mid { padding: 9px 6px; }

/* Bento Tile 2: iOS Habit Toggles + Quick Chips */
.ios-list {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--canvas);
}

.ios-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12.5px;
}

.ios-row:last-child {
  border-bottom: none;
}

.ios-row-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ios-row-info strong {
  font-weight: 600;
  font-size: 13px;
}

.ios-row-info span {
  font-size: 11px;
  color: var(--ink-subtle);
}

.ios-switch {
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: var(--accent-pill-bg);
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(38, 50, 12, 0.14);
}

.ios-switch::after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-pill-ink);
  position: absolute;
  top: 2px;
  right: 2px;
}

.bento-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.bento-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
}

/* Bento Tile 3: SVG Donut Period Dashboard */
.bento-donut-layout {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bento-donut-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.bento-donut-svg {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}

.bento-donut-svg circle {
  transition: stroke-dasharray 0.55s var(--ease-out), stroke-dashoffset 0.55s var(--ease-out);
}

.bento-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bento-donut-center strong {
  font-size: 18px;
  line-height: 1.05;
}

.bento-donut-center span {
  font-size: 10px;
  color: var(--ink-subtle);
}

.bento-legend {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bento-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.bento-legend-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.bento-honesty {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--hairline-strong);
  font-size: 11.5px;
  color: var(--ink-subtle);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Bento Tile 4: Light & Dark Dual UI Comparison */
.theme-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-pane {
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.mini-pane-light {
  background: #f8f8f8;
  color: #252525;
  border: 1px solid rgba(37, 37, 37, 0.1);
}

.mini-pane-dark {
  background: #171717;
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-pane-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 620;
  opacity: 0.72;
}

.mini-pane-slot {
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 560;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.mp-l-invest { background: #e8f8f1; color: #174c36; }
.mp-l-produce { background: #eaf0ff; color: #20397d; }
.mp-d-invest { background: #20362b; color: #bfead5; }
.mp-d-produce { background: #222d43; color: #cad9ff; }

.privacy-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.spec-pill {
  font-size: 11.5px;
  font-weight: 550;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink-secondary);
}

/* =========================================================
   MONUMENTAL DARK BUYOUT MONOLITH (#purchase)
   ========================================================= */
.buyout-monolith {
  background: var(--dark-canvas);
  color: var(--dark-ink);
  border: 1px solid var(--dark-hairline);
  border-radius: var(--radius-monolith);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-device);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.buyout-monolith > * {
  min-width: 0;
}

.buyout-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--dark-hairline);
  margin-bottom: 20px;
}

.buyout-monolith .section-title {
  color: var(--dark-ink);
}

.buyout-monolith .prose {
  color: var(--dark-ink-sec);
}

.buyout-points {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--dark-hairline);
}

.buyout-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dark-hairline);
  font-size: 14.5px;
  color: var(--dark-ink);
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.buyout-points .check-icon {
  color: var(--dark-lime);
}

/* =========================================================
   PHILOSOPHY PAGE ELEMENTS
   ========================================================= */
.doc-hero {
  padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline);
}

.doc-hero-centered {
  text-align: center;
}

.doc-hero-centered .hero-title {
  margin-left: auto;
  margin-right: auto;
}

.doc-hero-centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-ledger {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-bento);
  padding: clamp(18px, 2.8vw, 26px);
  box-shadow: var(--shadow-card), var(--specular-inset);
}

.week-grid-7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.day-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.day-hdr {
  font-size: 11px;
  color: var(--ink-subtle);
  text-align: center;
  margin-bottom: 2px;
  font-weight: 600;
}

.s-block {
  border-radius: 7px;
  padding: 5px 3px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 560;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, padding 0.35s ease, margin 0.35s ease;
  max-height: 90px;
}

.s-block.h-sm { min-height: 26px; display: flex; align-items: center; justify-content: center; }
.s-block.h-md { min-height: 40px; display: flex; align-items: center; justify-content: center; }
.s-block.h-lg { min-height: 54px; display: flex; align-items: center; justify-content: center; }
.s-block.h-xl { min-height: 68px; display: flex; align-items: center; justify-content: center; }

.s-block.is-excluded {
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: -2px 0;
  opacity: 0;
}

.meaning-strip {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--cat-maintain-dot);
  box-shadow: var(--shadow-card), var(--specular-inset);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  transition: border-left-color 0.25s ease;
}

.meaning-strip[data-active-cat="enjoy"] { border-left-color: var(--cat-enjoy-dot); }
.meaning-strip[data-active-cat="invest"] { border-left-color: var(--cat-invest-dot); }

.meaning-copy {
  min-width: 0;
  flex: 1 1 320px;
}

.meaning-title {
  font-size: 16.5px;
  font-weight: 660;
  margin-bottom: 4px;
}

.meaning-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.seg-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  gap: 4px;
  flex-wrap: wrap;
}

.seg-tab {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 560;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.seg-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* High-Contrast Dark Climax Band */
.editorial-dark {
  background-color: var(--dark-canvas);
  color: var(--dark-ink);
  padding: clamp(68px, 8.5vw, 116px) 0;
  border-top: 1px solid var(--dark-hairline);
  border-bottom: 1px solid var(--dark-hairline);
}

.editorial-dark .section-title {
  color: var(--dark-ink);
  max-width: 34ch;
}

.dark-quote {
  font-size: clamp(1.1rem, 1.7vw, 1.36rem);
  line-height: 1.62;
  color: var(--dark-ink-sec);
  max-width: 56ch;
  margin: 18px 0 0;
  font-weight: 480;
}

.climax-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin-top: 40px;
  align-items: start;
}

.climax-grid > * {
  min-width: 0;
}

.dark-panel {
  background: var(--dark-surface);
  border: 1px solid var(--dark-hairline);
  border-radius: var(--radius-bento);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-panel h3 {
  font-size: 18.5px;
  color: var(--dark-ink);
  margin-bottom: 6px;
}

.dark-panel-sub {
  font-size: 14px;
  color: var(--dark-ink-sec);
  margin: 0 0 18px;
}

.split-bar {
  display: flex;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dark-hairline);
  gap: 2px;
  padding: 2px;
  background: var(--dark-canvas);
}

.split-left, .split-right {
  height: 100%;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 620;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 8px;
  transition: width 0.16s ease;
}

.range-wrap {
  margin-top: 18px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dark-ink-sec);
  margin-bottom: 10px;
  gap: 8px;
}

input[type="range"].time-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--dark-lime) 0%,
    var(--dark-lime) var(--slider-pct, 20%),
    rgba(255, 255, 255, 0.12) var(--slider-pct, 20%),
    rgba(255, 255, 255, 0.12) 100%
  );
  outline: none;
  cursor: pointer;
}

input[type="range"].time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dark-lime);
  border: 3px solid var(--dark-canvas);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease;
}

input[type="range"].time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.dark-callout {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-ink);
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--dark-canvas);
  border: 1px solid var(--dark-hairline);
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.stage-pill {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--dark-hairline);
  background: var(--dark-canvas);
  color: var(--dark-ink-sec);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.stage-pill[aria-selected="true"] {
  border-color: var(--dark-lime);
  color: var(--dark-lime);
  background: rgba(213, 239, 116, 0.1);
}

.stage-narrative {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--dark-ink);
  min-height: 46px;
}

.evo-meter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meter-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  color: var(--dark-ink-sec);
}

.meter-track {
  height: 12px;
  border-radius: 999px;
  background: var(--dark-canvas);
  border: 1px solid var(--dark-hairline);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s var(--ease-out);
}

/* Light Trust / End Panel (used on Philosophy end band) */
.trust-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-bento);
  padding: clamp(26px, 4.5vw, 48px);
  box-shadow: var(--shadow-card), var(--specular-inset);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}

.trust-panel > * {
  min-width: 0;
}

.trust-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}

/* Subpages (Support & Privacy) */
.doc-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.doc-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
}

.doc-section h2 {
  font-size: 21px;
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.faq-item h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15px;
  max-width: 65ch;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--cat-invest-bg);
  color: var(--cat-invest-ink);
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card), var(--specular-inset);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Footer */
.site-footer {
  padding: 36px 0 52px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .hero-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
  }

  .hero-stage .iphone-frame {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 920px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-mobile-tabs {
    display: grid;
  }

  .story-mobile-caption {
    display: block;
  }

  .story-steps {
    display: none;
  }

  .story-stage-col {
    position: static;
  }
}

@media (max-width: 880px) {
  .hero-grid,
  .climax-grid,
  .trust-panel,
  .buyout-monolith {
    grid-template-columns: 1fr;
  }

  .bento-tile.span-7,
  .bento-tile.span-5,
  .bento-tile {
    grid-column: span 12;
  }

  .cat-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-links {
    display: none;
  }

  .mobile-quick-link {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow {
    width: calc(100% - 28px);
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .theme-duo {
    grid-template-columns: 1fr;
  }

  .bento-donut-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .week-grid-7 {
    gap: 4px;
  }

  .s-block {
    font-size: 10px;
    padding: 4px 2px;
  }

  .toggle-control {
    width: 100%;
  }

  .meter-row {
    grid-template-columns: 74px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .btn-primary, .btn-secondary, .btn-dark-ghost {
    width: 100%;
  }
}

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

  html.js-motion [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
