:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --grid: rgba(148, 163, 184, 0.14);
  --navy: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-soft: #eff6ff;
  --card: #ffffff;
  --border: #e2e8f0;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --gold: #f5b800;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 60px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-section: 100px;
  --space-block: 24px;
  --copy-width: 46ch;
  --copy-width-center: 52ch;
  --motion-enter: 24px;
  --motion-duration: 0.6s;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Type scale ── */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "• ";
  opacity: 0.85;
}

h1, .h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0;
  max-width: var(--copy-width);
}

h2, .h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0;
  max-width: var(--copy-width);
}

.h1-accent,
.h2-accent {
  color: var(--accent);
  font-weight: inherit;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: var(--copy-width);
}

.body-sm {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: var(--copy-width);
}

.lead strong { color: var(--navy); font-weight: 600; }

.copy-stack > * + * { margin-top: var(--space-block); }
.copy-stack .lead + .body-sm { margin-top: 14px; }
.copy-stack .btn-row { margin-top: 28px; }
.copy-stack .feature-pills {
  margin-top: 28px;
  max-width: var(--copy-width);
}

.copy-stack .formula-block {
  margin-top: 18px;
  max-width: var(--copy-width);
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-light);
}

.formula {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split--reverse .split-copy { order: 2; }
.split--reverse .split-visual { order: 1; }

.split-copy { min-width: 0; }

.section {
  padding: var(--space-section) 0;
  transition: background-color 0.5s var(--ease);
}

[data-scene]:not([data-scene="hero"]) {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

[data-scene].is-section-visible {
  opacity: 1;
}

.section--tight {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: var(--space-section);
}

.section--alt {
  background: var(--bg-alt);
  background-image: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Split scroll transitions */
[data-scene]:not([data-scene="hero"]) .split-copy,
[data-scene]:not([data-scene="hero"]) .split-visual {
  opacity: 0;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-scene]:not([data-scene="hero"]) .split-copy {
  transform: translateX(-20px);
}

[data-scene]:not([data-scene="hero"]) .split-visual {
  transform: translateX(20px);
  transition-delay: 0.08s;
}

[data-scene]:not([data-scene="hero"]) .split--reverse .split-copy {
  transform: translateX(20px);
}

[data-scene]:not([data-scene="hero"]) .split--reverse .split-visual {
  transform: translateX(-20px);
}

[data-scene].is-section-visible .split-copy,
[data-scene].is-section-visible .split-visual {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger copy inside splits — opacity only, no vertical slide */
[data-scene]:not([data-scene="hero"]) .split .reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.55s var(--ease);
  transition-delay: calc(var(--delay, 0) * 1ms);
}

[data-scene].is-section-visible .split .reveal {
  opacity: 1;
  transform: none;
}

/* Override generic .reveal for split sections */
[data-scene] .split .reveal {
  transform: none;
}

/* Centered sections keep vertical reveal */
[data-scene="privacy"]:not(.is-section-visible) .reveal,
[data-scene="closing"]:not(.is-section-visible) .reveal {
  opacity: 0;
  transform: translateY(var(--motion-enter));
  transition: opacity var(--motion-duration) var(--ease), transform var(--motion-duration) var(--ease);
  transition-delay: calc(var(--delay, 0) * 1ms);
}

[data-scene="privacy"].is-section-visible .reveal,
[data-scene="closing"].is-section-visible .reveal {
  opacity: 1;
  transform: translateY(0);
}

.section-center .h2 {
  max-width: var(--copy-width-center);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.section-center .lead--center {
  max-width: var(--copy-width-center);
  margin-bottom: 8px;
}

.section-center .body-sm--center {
  max-width: var(--copy-width-center);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-nav {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-lg { padding: 14px 24px; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust-line {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted-light);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.card-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: default;
}

.card-body { padding: 20px; }

/* ── Hero ── */
.hero { padding-bottom: var(--space-section); }

.hero.section--tight {
  padding-top: calc(var(--nav-h) + 104px);
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .container {
  padding-left: 24px;
  padding-right: 24px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.hero .split-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
}

.hero .copy-stack > * + * { margin-top: 0; }

.hero-headline-group {
  display: inline-grid;
  justify-items: stretch;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.hero-headline-group h1 {
  max-width: none;
  margin: 0;
  justify-self: center;
}

.hero-tagline {
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-align: center;
}

.hero h1 .h1-accent { white-space: nowrap; }

.hero .btn-row {
  margin-top: 24px;
  justify-content: center;
}

.mockup-start {
  transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.mockup-start.is-pressed {
  transform: scale(0.9);
  background: #e2e8f0;
  box-shadow:
    inset 0 3px 6px rgba(15, 23, 42, 0.14),
    0 0 0 4px rgba(37, 99, 235, 0.22);
}

.mockup-start.is-clicked {
  background: var(--accent-soft);
  border-color: var(--accent-light);
  color: var(--accent);
}

.mockup-actions .btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.mockup-actions .btn:disabled:hover {
  transform: none;
}

.mockup.is-running .mockup-stop {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.mockup.is-running .timer-block--light {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.mockup.is-running .timer-digits--blue {
  animation: hero-timer-pulse 2.4s ease-in-out infinite;
}

.hero-recording {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.mockup-top .hero-recording {
  margin: 0;
}

.hero-recording::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: hero-rec-blink 1.4s ease-in-out infinite;
}

.mockup.is-running .hero-recording {
  display: inline-flex;
}

@keyframes hero-timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

@keyframes hero-rec-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.timer-digits--blue {
  color: var(--accent) !important;
  font-size: 2.75rem !important;
}

.section-center { text-align: center; }

.lead--center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Long game ── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.proof-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  opacity: calc(var(--proof-visible, 0.45));
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.proof-card.is-lit { --proof-visible: 1; transform: translateY(0); }

.proof-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.proof-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.proof-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* ── Daily goals stack ── */
.goals-stack {
  display: grid;
  gap: 16px;
  max-width: 400px;
  margin-left: auto;
}

.calendar-card { padding: 20px; }

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.calendar-stars { color: var(--accent); font-size: 0.875rem; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border-radius: 8px;
  background: #f8fafc;
}

.cal-day--label {
  background: transparent;
  font-weight: 600;
  color: var(--muted-light);
  font-size: 0.6rem;
}

.cal-day--star {
  background: var(--accent-soft);
  font-size: 0.55rem;
}

.cal-day--active {
  background: var(--accent);
  color: #fff;
  font-size: 0.55rem;
}

.progress-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}

.progress-icon { font-size: 1.5rem; }

.progress-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ── Flow ── */
.flow-wrap { margin-bottom: 16px; }

.flow-emoji {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* ── Focus score card ── */
.focus-score-card { padding: 24px; max-width: 380px; margin-left: auto; }

.focus-score-head {
  display: flex;
  justify-content: flex-end;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-light);
  margin-bottom: 8px;
}

.focus-score-date { font-weight: 500; color: var(--muted-light); }

.focus-score-main {
  margin-bottom: 20px;
  line-height: 1;
}

.focus-score-num {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
}

.focus-score-denom {
  font-size: 1.25rem;
  color: var(--muted-light);
  margin-left: 2px;
}

.focus-metric-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.focus-metric-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.focus-metric-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: calc(var(--metric-pct, 0) * 100%);
  transition: width 0.2s linear;
}

.focus-metric-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.75rem;
}

.formula-block {
  display: inline-block;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.8125rem !important;
}

.formula-block span {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Score graph ── */
.score-graph-card {
  padding: 20px;
  max-width: 480px;
  margin-left: auto;
}

.score-target { color: var(--accent); font-size: 0.875rem; }

.score-graph-wrap { margin-bottom: 12px; }

.score-graph {
  width: 100%;
  height: auto;
}

.graph-target {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  opacity: 0.6;
}

.graph-goal-badge {
  fill: var(--navy);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.graph-goal-badge.is-lit {
  opacity: 1;
}

.graph-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--path-length, 520);
  stroke-dashoffset: calc(var(--path-length, 520) * (1 - var(--graph-pct, 0)));
  transition: stroke-dashoffset 0.12s linear;
}

.graph-point {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.graph-point.is-lit {
  opacity: 1;
}

.graph-point-ring {
  fill: var(--card);
  stroke: var(--accent);
  stroke-width: 2;
}

.graph-point-score {
  fill: var(--navy);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
  text-anchor: middle;
}

.score-graph-foot {
  display: flex;
  justify-content: flex-end;
  font-size: 0.8125rem;
  color: var(--muted);
}

.score-gain { color: var(--green); font-weight: 600; }

/* ── Journal form demo ── */
.journal-form-card {
  max-width: 400px;
  margin-left: auto;
  text-align: left;
}

.journal-form-card .card-body {
  text-align: left;
}

.journal-form-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  text-align: left;
}

.journal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
  text-align: left;
}

.journal-label:first-child { margin-top: 0; }

.journal-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: var(--font);
  line-height: 1.45;
  color: var(--navy);
  background: #f8fafc;
  text-align: left;
  box-sizing: border-box;
  margin: 0;
  resize: none;
}

.journal-input::placeholder {
  color: var(--muted-light);
  text-align: left;
}

.journal-input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.journal-input.is-active {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.journal-input--notes {
  min-height: 100px;
}

.journal-save {
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
  justify-content: center;
}

[data-journal-demo].is-journal-done .journal-save:not(:disabled) {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

@keyframes journal-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Privacy tiles ── */
.privacy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
}

.privacy-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  opacity: calc(var(--privacy-visible, 0));
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.privacy-tile.is-lit { --privacy-visible: 1; transform: translateY(0); }

.privacy-tile span { font-size: 1.25rem; }

.privacy-tile p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.privacy-disclaimer {
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--muted-light);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Closing card ── */
.closing {
  padding: var(--space-section) 24px;
}

.closing-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.closing-emojis {
  font-size: 1.75rem;
  letter-spacing: 0.45em;
  margin-bottom: 28px;
}

.closing-card .h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  max-width: var(--copy-width-center);
  margin: 0 auto 16px;
}

.closing-lead {
  max-width: var(--copy-width-center);
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.btn-glow {
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
}

.closing-card .caption {
  margin-top: 18px;
}

/* ── Hero mockup ── */
.mockup {
  max-width: 380px;
  margin-left: auto;
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

.mockup-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
}

.mockup-brand img { width: 22px; height: 22px; }

.mockup-icons {
  display: flex;
  gap: 6px;
}

.mockup-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.9rem;
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 14px;
}

.mockup > .mockup-stats:first-child {
  padding-top: 20px;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  position: relative;
}

.stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.site-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 20px 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.timer-block {
  margin: 0 20px 16px;
  padding: 28px 20px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  text-align: center;
}

.timer-block--light {
  background: #f8fafc;
  border: 1px solid var(--border);
}

.timer-digits {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.recording {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: lowercase;
}

.recording::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.goal-bar-wrap {
  padding: 0 20px 16px;
}

.goal-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.goal-bar {
  height: 6px;
  background: var(--accent-light);
  border-radius: 999px;
  overflow: hidden;
}

.goal-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: calc(var(--goal-pct, 4) * 1%);
  transition: width 0.3s var(--ease);
}

.mockup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 20px;
}

.mockup-actions .btn { width: 100%; }

/* ── Pillars ── */
.pillars-head {
  margin-bottom: 40px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.pillar-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.pillar-icon--blue { background: var(--accent-soft); }
.pillar-icon--green { background: var(--green-soft); }
.pillar-icon--gold { background: #fef9c3; }

.pillar-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.pillar-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.pillars-foot {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Goal card internals ── */
.goal-score-block {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.goal-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.goal-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.goal-edit {
  margin-left: auto;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.slider-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.slider-display {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.slider-display span {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.slider-track {
  position: relative;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  margin: 0 4px 16px;
}

.slider-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 999px;
  width: calc(var(--slider-pct, 0.5) * 100%);
}

.slider-thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--slider-pct, 0.5) * 100%);
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-light);
  padding: 0 2px;
}

/* ── Smart timer ── */
.flow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.flow-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.flow-card strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.flow-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.flow-arrow {
  color: var(--muted-light);
  font-size: 1rem;
}

.sites-card {
  margin-top: 16px;
  padding: 16px;
}

.sites-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.feature-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.feature-pill {
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  text-align: left;
}

/* ── Focus breakdown ── */
.metric-row {
  margin-bottom: 16px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.metric-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.metric-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: calc(var(--metric-pct, 0) * 100%);
}

.metric-bar-fill--empty { width: 0; }

.final-score-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.final-score-box span:first-child {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.final-score-num {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
}

/* ── Focus calculator ── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.info-cards { display: grid; gap: 16px; }

.info-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.info-card--red { border-left-color: var(--red); }
.info-card--green { border-left-color: var(--green); }

.info-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.info-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.calc-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.calc-slider-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.calc-slider-row output {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  min-width: 40px;
  text-align: right;
}

.calc-bar {
  grid-column: 1 / -1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.calc-bar-fill { height: 100%; border-radius: 999px; }
.calc-bar-fill--blue { background: var(--accent); }
.calc-bar-fill--red { background: var(--red); }
.calc-bar-fill--green { background: var(--green); }

.score-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.score-result-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.score-result-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
}

/* ── Privacy grid ── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.privacy-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 1rem;
}

.privacy-item p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
  font-weight: 500;
}

/* ── Scroll reveal (hero + fallback) ── */
.reveal {
  opacity: 0;
  transform: translateY(var(--motion-enter));
  transition: opacity var(--motion-duration) var(--ease), transform var(--motion-duration) var(--ease);
  transition-delay: calc(var(--delay, 0) * 1ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-scene="hero"] .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax="visual"] {
  will-change: transform, opacity;
}

/* ── Privacy page ── */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
}

.page-content h1 { color: var(--navy); }
.page-content h2 { color: var(--accent); font-size: 1.25rem; margin-top: 32px; }
.page-content p, .page-content li { color: var(--muted); }
.page-content .updated { font-size: 0.9rem; margin-bottom: 24px; }

footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8125rem;
  color: var(--muted-light);
  border-top: 1px solid var(--border);
}

footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-scene] { opacity: 1; transition: none; }
  [data-scene] .split-copy,
  [data-scene] .split-visual { opacity: 1; transform: none; transition: none; }
  [data-scene] .split .reveal { opacity: 1; transition: none; }
  .graph-point { opacity: 1; transition: none; }
  .graph-goal-badge { opacity: 1; transition: none; }
  .journal-cursor { display: none !important; animation: none; }
  .graph-line { stroke-dashoffset: 0 !important; transition: none; }
  .mockup.is-running .timer-digits--blue { animation: none; }
  .hero-recording::before { animation: none; }
  [data-parallax="visual"] { transform: none !important; opacity: 1 !important; }
}

@media (max-width: 900px) {
  :root { --space-section: 72px; }

  .split,
  .calc-layout,
  .pillar-grid,
  .privacy-grid,
  .proof-grid,
  .privacy-cards {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split--reverse .split-copy,
  .split--reverse .split-visual { order: unset; }

  .split-visual { order: -1; }

  [data-scene]:not([data-scene="hero"]) .split-copy,
  [data-scene]:not([data-scene="hero"]) .split-visual,
  [data-scene]:not([data-scene="hero"]) .split--reverse .split-copy,
  [data-scene]:not([data-scene="hero"]) .split--reverse .split-visual {
    transform: translateY(16px);
  }

  [data-scene].is-section-visible .split-copy,
  [data-scene].is-section-visible .split-visual {
    transform: translateY(0);
  }

  .hero-center {
    width: 100%;
  }

  .mockup,
  .goals-stack,
  .score-graph-card,
  .journal-form-card,
  .focus-score-card { margin: 0 auto; }

  .feature-pills { grid-template-columns: 1fr; }

  .flow-row { justify-content: flex-start; }

  .closing-card { padding: 40px 24px; }
}
