/* ─────────────────────────────────────────────
   Unusual Software — site stylesheet
   Confession Booth design system (ADHD Dump), web edition.
   Dark-only, warm ink-black. Playfair Display + DM Mono.
   ───────────────────────────────────────────── */

:root {
  /* Surfaces — warm near-black ramp */
  --bg: #0F0D0B;
  --surface: #1A1714;
  --surface-2: #221E1B;

  /* Ink */
  --ivory: #F5F0E8;
  --muted: #8C8680;
  --error: #C0392B;

  /* Hairlines */
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(245, 240, 232, 0.22);
  --focus-ring: rgba(245, 240, 232, 0.25);

  /* Type */
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii + depth */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-pill: 16px;
  --shadow-keycap: 0 4px 0 rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-keycap-hover: 0 5px 0 rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-keycap-pressed: 0 1px 0 rgba(0, 0, 0, 0.55);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --gutter: 28px;
  --shell: 1120px;
  --prose: 680px;
  --nav-h: 62px;

  /* Mind-map node types */
  --node-person: #9B8FD0;   --node-person-bg: #231F2E;   --node-person-border: #3A3455;
  --node-task: #6AAB7E;     --node-task-bg: #1B2620;     --node-task-border: #2C4436;
  --node-project: #6E90C8;  --node-project-bg: #1A2130;  --node-project-border: #2F3B55;
  --node-concept: #5FAAA4;  --node-concept-bg: #162625;  --node-concept-border: #284442;
  --node-place: #B08850;    --node-place-bg: #26211A;    --node-place-border: #463C28;
  --node-event: #C06868;    --node-event-bg: #261A1A;    --node-event-border: #4A2C2C;
  --node-emotion: #B06A98;  --node-emotion-bg: #251A26;  --node-emotion-border: #422840;
  --node-note: #8C8680;     --node-note-bg: #221E1B;     --node-note-border: #2C2825;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* `clip` where available: `hidden` would promote body to a scroll
   container, which breaks position:sticky and window.scrollY. */
body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.25);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { border-bottom-color: var(--ivory); color: var(--ivory); }

::selection { background: var(--ivory); color: var(--bg); }

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

/* ---------- Keyframes ---------- */
@keyframes cbBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Layout ---------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose { max-width: var(--prose); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ivory);
  z-index: 60;
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(15, 13, 11, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  border-bottom: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  padding: 4px 0;
  white-space: nowrap;
}
.brand span { color: var(--muted); }
.brand:hover span { color: var(--ivory); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a {
  border-bottom: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ivory); background: var(--surface); }
.nav-links a[aria-current='page'] { color: var(--ivory); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  padding: 0 34px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: var(--surface-2);
  border-color: rgba(245, 240, 232, 0.18);
  color: var(--ivory);
}

/* The keycap — the one dimensional flourish in the system. */
.btn-primary {
  height: 64px;
  padding: 0 40px;
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: var(--shadow-keycap);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}
.btn-primary:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-keycap-hover);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-keycap-pressed);
}
.btn-primary[disabled] {
  background: var(--surface-2);
  border-color: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  transform: none;
  cursor: default;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  cursor: grab;
  touch-action: pan-y;
}
.hero-canvas.is-dragging { cursor: grabbing; }
.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  padding: 0 var(--gutter);
  text-align: center;
  pointer-events: none;
}
.rule-accent {
  width: 32px;
  height: 1px;
  background: var(--ivory);
  margin: 0 auto 30px;
  opacity: 0.6;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 10.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.hero-tagline {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0 0 34px;
}
.hero-type {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  height: 70px;
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.hero-type span:first-child { white-space: pre-wrap; }
.caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--ivory);
  transform: translateY(2px);
  animation: cbBlink 1.05s step-end infinite;
  flex: none;
}
.dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 6px);
  gap: 10px;
  width: max-content;
  margin: 0 auto 38px;
  opacity: 0.18;
}
.dot-grid span {
  width: 6px;
  height: 6px;
  background: var(--ivory);
  border-radius: 50%;
}
.hero-cta {
  display: flex;
  justify-content: center;
  pointer-events: auto;
}
.hero-cta .btn-primary { border-bottom: 1px solid var(--ivory); }
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  animation: cbFloat 3.4s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--rule); padding: 96px 0; }
.section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
}

/* ---------- Home: the app ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.split-lede {
  color: var(--ivory);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
  text-wrap: pretty;
}

/* Node chips (CbNodeChip) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--node-note-bg);
  border: 1px solid var(--node-note-border);
  font-size: 13px;
  color: var(--ivory);
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--node-note);
  flex: none;
}
.chip-project { background: var(--node-project-bg); border-color: var(--node-project-border); }
.chip-project::before { background: var(--node-project); }
.chip-event { background: var(--node-event-bg); border-color: var(--node-event-border); }
.chip-event::before { background: var(--node-event); }
.chip-task { background: var(--node-task-bg); border-color: var(--node-task-border); }
.chip-task::before { background: var(--node-task); }
.chip-person { background: var(--node-person-bg); border-color: var(--node-person-border); }
.chip-person::before { background: var(--node-person); }
.chip-concept { background: var(--node-concept-bg); border-color: var(--node-concept-border); }
.chip-concept::before { background: var(--node-concept); }

/* ---------- Home: steps + phone ---------- */
.steps-section { border-top: 1px solid var(--rule); padding: 96px 0 0; }
.steps-head { margin-bottom: 64px; }
.steps-head .section-title { max-width: 16ch; }
.steps-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.steps-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: calc(50vh - 220px) 0;
}
.step {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: var(--radius-xl);
  padding: 36px 34px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.42;
  transition: background 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
}
.step.is-active {
  border-color: var(--rule-strong);
  background: var(--surface);
  opacity: 1;
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
}
.step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.4s ease;
}
.step.is-active .step-num { color: var(--ivory); }
.step h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0;
  font-weight: 400;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- Phone mock ---------- */
.phone {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: none;
}
.phone-status {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 10px;
  letter-spacing: 0.06em;
  flex: none;
}
.phone-status em { color: var(--muted); font-style: normal; }
.phone-bar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--rule);
  flex: none;
}
.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.phone-title { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.phone-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 6px 12px 6px 10px;
  font-size: 13px;
  font-weight: 500;
  flex: none;
}
.phone-body { position: relative; flex: 1; min-height: 0; }
.phone-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.phone-screen.is-on { opacity: 1; visibility: visible; }

.phone-pad {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 0 28px 20px;
}
.phone-pad .spacer { flex: 1; }
.phone-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -1.28px;
  line-height: 0.9;
  margin: 0 0 12px;
  color: var(--ivory);
}
.phone-word.is-dim { opacity: 0.15; }
.phone-timer {
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.88px;
  line-height: 0.9;
  color: var(--error);
  text-align: center;
  margin: 0 0 12px;
}
.phone-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--ivory);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: var(--shadow-keycap);
}
.phone-cta.is-recording {
  background: var(--error);
  color: var(--ivory);
  transform: translateY(3px);
  box-shadow: var(--shadow-keycap-pressed);
}
.phone-rule { height: 1px; background: var(--rule); margin: 16px 0; }
.phone-hint { font-size: 13px; line-height: 1.65; color: var(--muted); text-align: center; margin: 0; }

.phone-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image: radial-gradient(circle at 0 0, rgba(245, 240, 232, 0.06) 0.5px, transparent 0.6px);
  background-size: 40px 40px;
}
.phone-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-node {
  position: absolute;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-node i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.map-node b {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ivory);
  text-align: center;
}
.map-filters {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.map-filters .focus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-right: 2px;
}
.map-filters .pill {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.map-filters .pill.is-on {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--bg);
}

.phone-nav {
  height: 58px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: none;
  padding-bottom: 2px;
}
.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.35s ease;
}
.phone-tab.is-on { color: var(--ivory); }
.phone-tab svg { stroke: currentColor; }
.phone-tab span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
}
.phone-tab em {
  display: block;
  margin-top: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ivory);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.phone-tab.is-on em { opacity: 1; }

.msym {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Home: manifesto ---------- */
.manifesto { border-top: 1px solid var(--rule); padding: 110px 0 120px; }
.manifesto h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 34px;
  max-width: 18ch;
  text-wrap: balance;
}
.manifesto p.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 58ch;
  margin: 0 0 48px;
  text-wrap: pretty;
}

/* ---------- Inner pages ---------- */
.page {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px var(--gutter) 130px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 56px;
}
.page-title.tight {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.03;
  margin-bottom: 48px;
  max-width: 20ch;
}

p.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ivory);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  scroll-margin-top: 110px;
}
.prose h3 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 10px;
}
.prose p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ivory);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 18px; }
.prose li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ivory);
  margin-bottom: 10px;
}
.prose li::marker { color: var(--muted); }
.prose > :first-child { margin-top: 0; }

/* Stacked hairline list — the "how we work" / numbered-steps block */
.stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 20px;
}
.stack > li, .stack > div {
  background: var(--surface);
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory);
  list-style: none;
}
.stack.numbered > li {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  font-size: 14px;
}
.stack.numbered > li::before {
  content: attr(data-n);
  font-family: var(--display);
  font-weight: 700;
  color: var(--muted);
  flex: none;
}

/* ---------- Legal pages ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 70vh;
  overflow: auto;
}
.toc:empty { display: none; }
.toc p {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.toc a {
  border-bottom: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  padding: 6px 0;
}
.toc a:hover, .toc a.is-current { color: var(--ivory); }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: start;
}
.field-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  padding: 16px 18px;
  outline: none;
  margin-bottom: 24px;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--focus-ring);
  background: var(--surface-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field textarea { resize: vertical; min-height: 180px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-actions .btn-primary { min-width: 200px; padding: 0 44px; }
.form-status {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  min-height: 14px;
}
.form-status.ok { color: var(--ivory); }
.form-status.err { color: var(--error); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aside-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.note-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.note-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.note-card strong { color: var(--ivory); }
.aside-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 40px;
  text-wrap: pretty;
}
.aside-body:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 44px 0 56px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.footer-links a { border-bottom: none; color: var(--muted); }
.footer-links a:hover { color: var(--ivory); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps-layout { gap: 48px; grid-template-columns: 300px minmax(0, 1fr); }
  .legal-layout { gap: 44px; grid-template-columns: 180px minmax(0, 1fr); }
  .contact-layout { gap: 48px; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split > div:last-child { padding-top: 0 !important; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }

  /* The phone mock is desktop-only: the sticky stage needs the height. */
  .steps-layout { grid-template-columns: 1fr; gap: 0; }
  .steps-stage { display: none; }
  .steps-list { padding: 0 0 96px; }
  .step { opacity: 1; min-height: 0; padding: 30px 26px; }
  .step.is-active { background: var(--surface); }
  .step-num { color: var(--ivory); }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .section, .steps-section { padding-top: 72px; padding-bottom: 72px; }
  .steps-section { padding-bottom: 0; }
  .manifesto { padding: 80px 0 96px; }
  .page { padding-top: 72px; padding-bottom: 96px; }
  .hero { min-height: 88vh; padding: 72px 0 80px; }
  .hero-type { height: 92px; }
  .prose h2 { font-size: 24px; }
  .aside-title { font-size: 22px; }
  .btn { width: 100%; min-width: 0; }
  .btn-row { flex-direction: column; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px; font-size: 10px; letter-spacing: 0.06em; }
  .brand { font-size: 18px; }
  .footer-inner { justify-content: flex-start; }
  .footer-links { gap: 16px; }
}

/* Brand + four links stop fitting on one row here — stack them. */
@media (max-width: 560px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 14px;
    padding-bottom: 10px;
  }
  .nav-links { margin-left: -8px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .toc { top: 128px; }
  .prose h2 { scroll-margin-top: 128px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
