:root {
  --paper: #f4efe5;
  --paper-soft: #e8e0d2;
  --paper-raised: #fffaf1;
  --ink: #102c34;
  --ink-soft: #52656a;
  --navy: #0b2630;
  --navy-raised: #12343e;
  --navy-rule: #31515a;
  --cream: #fff8e9;
  --cream-muted: #c7d0cb;
  --teal: #1d6e6b;
  --teal-bright: #69d1c2;
  --teal-pale: #c5e3dc;
  --cta: #1d6e6b;
  --cta-hover: #175d5b;
  --cta-ink: #fffdf5;
  --amber: #c96f31;
  --amber-pale: #f0d7bd;
  --success: #247155;
  --warning: #a85222;
  --focus-ring: #075b60;
  --rule: rgba(16, 44, 52, 0.22);
  --rule-strong: rgba(16, 44, 52, 0.54);
  --shadow: 0 1.5rem 4rem rgba(18, 39, 43, 0.14);
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-body: 1rem;
  --text-lead: clamp(1.08rem, 1.4vw, 1.3rem);
  --text-title: clamp(2rem, 5vw, 4.75rem);
  --text-section: clamp(2rem, 3.8vw, 3.65rem);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;
  --radius-sm: 0.35rem;
  --radius-md: 0.75rem;
  --dur-fast: 160ms;
  --dur-normal: 360ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #102a31;
    --paper-soft: #18373d;
    --paper-raised: #1b3b42;
    --ink: #f7f0e4;
    --ink-soft: #bdcbc8;
    --teal: #74d4c6;
    --teal-pale: #254e50;
    --cta: #74d4c6;
    --cta-hover: #8de1d5;
    --cta-ink: #0b2630;
    --amber-pale: #57371f;
    --success: #80d5ac;
    --warning: #f0aa75;
    --focus-ring: #a4f0e5;
    --rule: rgba(238, 244, 235, 0.18);
    --rule-strong: rgba(238, 244, 235, 0.45);
    --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.32);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: min(20rem, 100%);
  overflow-x: clip;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 4rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

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

p,
h1,
h2,
h3,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 0.2rem solid var(--focus-ring);
  outline-offset: 0.25rem;
}

.section-dark :focus-visible,
.section-ink :focus-visible,
.decision-receipt :focus-visible,
.wellbeing-boundary :focus-visible,
.final-cta :focus-visible {
  outline-color: #a4f0e5;
}

.harbor-contract :focus-visible {
  outline-color: #075b60;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  transform: translateY(-180%);
  background: var(--cream);
  color: var(--navy);
  font-weight: 750;
  box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.field-strip {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.35rem 1rem;
  background: var(--amber);
  color: #071c23;
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 2.5vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.field-strip span:nth-child(4),
.field-strip span:nth-child(5) {
  display: none;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(100%, 96rem);
  margin-inline: auto;
  padding: 1rem;
  border-bottom: 1px solid var(--rule-strong);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-height: 3rem;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  box-shadow: 0 0.35rem 1rem rgba(8, 35, 41, 0.18);
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.brand small {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.035em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.35rem 0.1rem;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-nav .nav-cta {
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}

/* Keep the first mobile viewport focused; every section remains available by scrolling. */
.site-nav a:nth-child(3),
.site-nav a:nth-child(4),
.site-nav a:nth-child(5),
.site-nav a:nth-child(6) {
  display: none;
}

main {
  overflow: hidden;
}

main:focus {
  outline: none;
}

.spine-section {
  position: relative;
  width: min(100%, 96rem);
  margin-inline: auto;
  padding: var(--space-7) 1rem var(--space-7) 3.6rem;
}

.spine-section * {
  min-width: 0;
}

.spine-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.45rem;
  width: 1px;
  background: var(--rule-strong);
  content: "";
}

.spine-marker {
  position: absolute;
  z-index: 2;
  top: 4.55rem;
  left: 0.54rem;
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
}

.section-dark {
  background: var(--navy);
  color: var(--cream);
}

.section-dark::before,
.section-ink::before {
  background: var(--navy-rule);
}

.section-dark .spine-marker,
.section-ink .spine-marker {
  border-color: var(--navy-rule);
  background: var(--navy);
  color: var(--cream);
}

.section-ink {
  background: #102e35;
  color: #fff8e9;
}

.section-ink .spine-marker {
  background: #102e35;
}

.eyebrow,
.micro-label,
.index-label {
  margin-bottom: 0.85rem;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.section-ink .eyebrow {
  color: var(--teal-bright);
}

.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  min-height: min(52rem, calc(100svh - 5rem));
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--teal);
  font-weight: 520;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.lede {
  max-width: 61ch;
  margin-bottom: var(--space-5);
  color: var(--ink-soft);
  font-size: var(--text-lead);
}

.hero-actions,
.final-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.platform-boundary {
  display: grid;
  margin: var(--space-4) 0 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.platform-boundary div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.platform-boundary div:last-child {
  border-bottom: 0;
}

.platform-boundary dt {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-boundary dd {
  margin-left: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 680;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.button:hover {
  transform: translateY(-0.12rem);
}

.button-primary {
  background: var(--cta);
  color: var(--cta-ink);
  box-shadow: 0.3rem 0.3rem 0 var(--ink);
}

.button-primary:hover {
  background: var(--cta-hover);
}

.button-text {
  border-bottom-color: var(--rule-strong);
  color: var(--ink);
}

.button-light {
  border-color: rgba(255, 248, 233, 0.55);
  color: #fff8e9;
}

.boundary-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  max-width: 42rem;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.boundary-note p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.boundary-note strong {
  display: block;
  color: var(--ink);
}

.boundary-icon {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid var(--warning);
  color: var(--warning);
  font-family: var(--font-mono);
  font-weight: 900;
}

.decision-receipt {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--navy-rule);
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0.65rem 0.65rem 0 var(--amber), var(--shadow);
}

.decision-receipt::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-bottom: 1px solid var(--navy-rule);
  border-left: 1px solid var(--navy-rule);
  background:
    linear-gradient(135deg, transparent 48%, var(--navy-rule) 49%, var(--navy-rule) 51%, transparent 52%);
  content: "";
}

.receipt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-right: 3.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-rule);
}

.receipt-head h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 560;
}

.decision-receipt .micro-label {
  margin-bottom: 0.2rem;
  color: var(--teal-bright);
}

.status-key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--navy-rule);
  color: var(--cream-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.status-key > span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--teal-bright);
}

.query-block {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--navy-rule);
}

.query-block p:last-child {
  max-width: 33ch;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
  border-bottom: 1px solid var(--navy-rule);
}

.receipt-grid div {
  min-width: 0;
  padding: 0.8rem 0.5rem 0.8rem 0;
}

.receipt-grid dt,
.route-readout dt {
  color: var(--cream-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receipt-grid dd,
.route-readout dd {
  margin-left: 0;
  font-size: 0.8rem;
  font-weight: 730;
}

.answer-preview {
  padding: 1.25rem 0;
}

.answer-preview > p:nth-child(2) {
  color: var(--cream);
}

.citation-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.citation-line span {
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--navy-rule);
  color: var(--cream-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.citation-line .verified-mark {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.decision-receipt footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--navy-rule);
  color: var(--cream-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.purpose-band {
  display: grid;
  gap: 0.5rem;
  padding: 2rem max(1rem, calc((100% - 86rem) / 2));
  background: var(--amber);
  color: #071c23;
}

.purpose-band p {
  margin-bottom: 0;
}

.purpose-band p:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 850;
  text-transform: uppercase;
}

.purpose-band p:last-child {
  max-width: 39ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.65rem);
  font-weight: 570;
  line-height: 1.12;
}

.section-intro {
  max-width: 55rem;
  margin-bottom: var(--space-6);
}

.section-intro h2,
.safety-heading h2,
.demo-heading h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-intro > p:last-child,
.split-intro > p,
.demo-heading > p {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--text-lead);
}

.section-dark .split-intro > p,
.section-ink .split-intro > p {
  color: var(--cream-muted);
}

.age-layout {
  display: grid;
  gap: var(--space-5);
}

.age-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}

.age-stop {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.85rem;
  width: 100%;
  min-height: 4.75rem;
  align-items: center;
  padding: 0.75rem 0.4rem;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.age-stop::after {
  position: absolute;
  right: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--rule-strong);
  content: "";
  transition: background-color var(--dur-fast) var(--ease-out);
}

.age-stop:hover,
.age-stop.is-selected {
  background: color-mix(in srgb, var(--teal-pale) 42%, transparent);
}

.age-stop.is-selected::after {
  border-color: var(--teal);
  background: var(--teal);
}

.age-number {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
}

.age-number.age-range {
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
}

.age-stop strong,
.age-stop small {
  display: block;
}

.age-stop small {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.persona-receipt {
  align-self: start;
  padding: 1.35rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  box-shadow: 0.55rem 0.55rem 0 var(--teal-pale);
}

.persona-age {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.persona-age span {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.persona-age strong {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 4.25rem;
  line-height: 0.9;
}

.persona-receipt dl {
  margin-bottom: 0;
}

.persona-receipt dl div {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.persona-receipt dt {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.persona-receipt dd {
  margin-left: 0;
  font-weight: 680;
}

.persona-foot {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.iphone {
  background: var(--paper-soft);
}

.iphone .spine-marker {
  background: var(--paper-soft);
}

.iphone-layout {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

.setup-column {
  min-width: 0;
}

.setup-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
}

.setup-stage {
  display: grid;
  min-width: 0;
  min-height: 4.5rem;
  place-items: center;
  align-content: center;
  gap: 0.18rem;
  padding: 0.55rem 0.25rem;
  border: 0;
  border-right: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: clamp(0.7rem, 2.8vw, 0.82rem);
  font-weight: 780;
  line-height: 1.25;
  cursor: pointer;
}

.setup-stage:last-child {
  border-right: 0;
}

.setup-stage span {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.setup-stage:hover,
.setup-stage.is-active {
  background: var(--teal-pale);
  color: var(--ink);
}

.setup-stage.is-active {
  box-shadow: inset 0 -0.28rem 0 var(--teal);
}

.setup-stage.is-active span {
  color: var(--teal);
}

.ios-stage-receipt {
  min-height: 27rem;
  padding: 1.3rem;
  border: 1px solid var(--navy-rule);
  border-top: 0;
  background: var(--navy);
  color: var(--cream);
}

.ios-stage-receipt .micro-label {
  margin-bottom: 0.4rem;
  color: var(--teal-bright);
}

.ios-stage-receipt h3 {
  max-width: 20ch;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 550;
  line-height: 1.08;
}

.ios-stage-receipt > p:nth-child(3) {
  color: var(--cream-muted);
}

.ios-stage-receipt dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--navy-rule);
}

.ios-stage-receipt dl div {
  min-width: 0;
  padding: 0.8rem 0.5rem 0.7rem 0;
  border-bottom: 1px solid var(--navy-rule);
}

.ios-stage-receipt dl div:last-child {
  grid-column: 1 / -1;
}

.ios-stage-receipt dt,
.run-receipt dt {
  color: var(--cream-muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ios-stage-receipt dd,
.run-receipt dd {
  margin-left: 0;
  font-size: 0.78rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.byte-ledger {
  margin: 0;
  border: 1px solid var(--rule-strong);
  border-top: 0;
  background: var(--paper-raised);
}

.byte-ledger > div {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.byte-ledger > div:last-child {
  border-bottom: 0;
}

.byte-ledger dt {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.byte-ledger dd {
  display: grid;
  margin-left: 0;
}

.byte-ledger strong {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: clamp(0.88rem, 3vw, 1.05rem);
  overflow-wrap: anywhere;
}

.byte-ledger span {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.setup-captures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
}

.phone-capture,
.proof-capture {
  min-width: 0;
  margin: 0;
}

.phone-capture img,
.proof-capture img {
  width: 100%;
  height: auto;
  border: 0.38rem solid var(--navy);
  border-radius: clamp(1.1rem, 4vw, 2.1rem);
  background: #eef0f7;
  box-shadow: 0.4rem 0.55rem 0 var(--amber), var(--shadow);
}

.phone-capture-back {
  padding-top: 2.5rem;
}

.phone-capture figcaption,
.proof-capture figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 2.2vw, 0.72rem);
  line-height: 1.45;
}

.capture-note {
  grid-column: 1 / -1;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.setup-contract {
  display: grid;
  gap: 0;
  margin: var(--space-6) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.setup-contract li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.setup-contract li > span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.setup-contract strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.setup-contract p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.iphone-run {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-7) -1rem 0 -3.6rem;
  padding: var(--space-6) 1rem var(--space-6) 3.6rem;
  background: var(--navy);
  color: var(--cream);
}

.run-intro .eyebrow {
  color: var(--teal-bright);
}

.run-intro h3 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 540;
  line-height: 1.05;
}

.run-intro > p:last-of-type {
  max-width: 55ch;
  color: var(--cream-muted);
}

.run-receipt {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--navy-rule);
}

.run-receipt div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--navy-rule);
}

.ios-proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 0.8rem;
  align-items: start;
  min-width: 0;
}

.iphone-run .proof-capture img {
  border-color: var(--cream);
  box-shadow: 0.3rem 0.4rem 0 var(--teal-bright);
}

.iphone-run .proof-capture figcaption {
  color: var(--cream-muted);
}

.proof-capture-result {
  grid-column: 1 / -1;
  width: min(100%, 17rem);
  justify-self: center;
}

.product-flow-strip {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.product-flow-strip .proof-capture {
  width: 100%;
  max-width: 23rem;
  justify-self: center;
}

.mini-app-screen {
  width: 100%;
  min-height: 30rem;
  padding: 1.1rem;
  border: 0.38rem solid var(--cream);
  border-radius: clamp(1.1rem, 4vw, 2.1rem);
  background:
    radial-gradient(circle at 20% 10%, rgba(29, 110, 107, 0.14), transparent 32%),
    #f5f6fb;
  color: #142a32;
  box-shadow: 0.3rem 0.4rem 0 var(--teal-bright);
}

.mini-app-screen > div {
  display: flex;
  min-height: 27rem;
  flex-direction: column;
}

.mini-app-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin-bottom: 2.4rem;
  font-size: 0.72rem;
}

.mini-app-bar strong {
  justify-self: center;
  font-size: 0.9rem;
}

.mini-app-bar span:last-child {
  justify-self: end;
}

.mini-safety {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #b92b32;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.mini-app-kicker {
  margin-bottom: 0.5rem;
  color: #166d6a;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.mini-app-title {
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.5vw, 2rem);
  font-weight: 650;
  line-height: 1.08;
}

.mini-app-copy {
  margin-bottom: 1.2rem;
  color: #52656a;
  font-size: 0.88rem;
  line-height: 1.5;
}

.mini-app-action {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: #176f6d;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

.mini-app-note {
  margin: 0.85rem 0 0;
  color: #617176;
  font-size: 0.74rem;
  font-weight: 650;
}

.mini-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  margin-top: auto;
  padding: 0.72rem 0.55rem;
  border: 1px solid rgba(20, 42, 50, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.8rem 2rem rgba(20, 42, 50, 0.12);
  color: #344a50;
  font-size: 0.7rem;
  text-align: center;
}

.mini-tabs strong {
  color: #146b68;
}

.preference-screen {
  background:
    radial-gradient(circle at 90% 16%, rgba(201, 111, 49, 0.15), transparent 35%),
    #f5f6fb;
}

.mini-setting {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(20, 42, 50, 0.16);
  color: #52656a;
  font-size: 0.78rem;
}

.mini-setting strong {
  color: #142a32;
}

.ios-scope-boundary {
  display: grid;
  gap: 1rem;
  margin-top: var(--space-6);
  padding: 1.25rem;
  border: 1px solid var(--rule-strong);
  border-left: 0.45rem solid var(--amber);
  background: var(--paper-raised);
}

.ios-scope-boundary > span {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border: 1px solid var(--rule-strong);
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 850;
}

.ios-scope-boundary .micro-label {
  margin-bottom: 0.35rem;
  color: var(--warning);
}

.ios-scope-boundary h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 550;
  line-height: 1.1;
}

.ios-scope-boundary p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.ios-scope-boundary .button {
  align-self: center;
}

.route-lab {
  display: grid;
  gap: var(--space-5);
}

.route-controls {
  align-self: start;
}

.section-dark .route-controls > .micro-label {
  color: var(--teal-bright);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.route-button {
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--navy-rule);
  background: transparent;
  color: var(--cream-muted);
  font-size: var(--text-sm);
  font-weight: 720;
  cursor: pointer;
}

.route-button:hover,
.route-button.is-active {
  border-color: var(--teal-bright);
  background: rgba(105, 209, 194, 0.12);
  color: var(--cream);
}

.route-readout {
  min-height: 22rem;
  padding: 1.25rem;
  border: 1px solid var(--navy-rule);
  background: var(--navy-raised);
}

.route-readout > p:first-child {
  margin-bottom: 0.3rem;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-readout h3 {
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 560;
  line-height: 1.12;
}

.route-readout > p:nth-child(3) {
  color: var(--cream-muted);
}

.route-readout dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--navy-rule);
}

.route-readout dl div:last-child {
  grid-column: 1 / -1;
}

.pipeline-map {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-map::before {
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 1rem;
  width: 1px;
  background: var(--navy-rule);
  content: "";
}

.pipeline-map li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--navy-rule);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.pipeline-map li:first-child {
  border-top: 1px solid var(--navy-rule);
}

.pipeline-map li.is-muted {
  opacity: 0.68;
}

.pipeline-map li.is-emphasized {
  transform: translateX(0.3rem);
}

.stage-index {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--navy-rule);
  background: var(--navy);
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.pipeline-map strong,
.pipeline-map small {
  display: block;
}

.pipeline-map strong {
  font-size: 0.95rem;
}

.pipeline-map small {
  color: var(--cream-muted);
  font-size: 0.77rem;
  line-height: 1.4;
}

.stage-state {
  display: none;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: right;
}

.model-strip {
  display: grid;
  gap: 0;
  margin-top: var(--space-6);
  border: 1px solid var(--navy-rule);
}

.model-strip > div,
.model-strip > a {
  padding: 0.85rem;
  border-bottom: 1px solid var(--navy-rule);
}

.model-strip > *:last-child {
  border-bottom: 0;
}

.model-strip span,
.model-strip strong {
  display: block;
}

.model-strip span {
  color: var(--cream-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.model-strip strong {
  font-size: 0.82rem;
}

.model-strip a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  color: var(--teal-bright);
  font-size: var(--text-sm);
  font-weight: 750;
}

.evidence-ledger {
  border-top: 1px solid var(--rule-strong);
}

.benchmark-scope {
  max-width: 76rem;
  margin: calc(var(--space-5) * -1) 0 var(--space-5);
  padding: 1rem 1.1rem;
  border-left: 0.3rem solid var(--amber);
  background: color-mix(in srgb, var(--amber-pale) 55%, transparent);
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.benchmark-scope strong {
  color: var(--ink);
}

.comparison-frame {
  margin-bottom: var(--space-5);
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
}

.model-comparison {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.model-comparison caption {
  padding: 0.9rem;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 750;
  text-align: left;
}

.model-comparison th,
.model-comparison td {
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.model-comparison th:last-child,
.model-comparison td:last-child {
  border-right: 0;
}

.model-comparison tbody tr:last-child > * {
  border-bottom: 0;
}

.model-comparison thead th {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2.1vw, 0.72rem);
  line-height: 1.35;
}

.model-comparison tbody th {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: clamp(0.67rem, 2.2vw, 0.78rem);
}

.model-comparison td {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.2vw, 1.6rem);
  font-weight: 650;
  line-height: 1.1;
}

.comparison-frame > p {
  margin-bottom: 0;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.comparison-frame > .comparison-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.comparison-artifacts a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--teal);
  font-weight: 800;
}

.ledger-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 6rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.ledger-row p {
  margin-bottom: 0;
}

.ledger-row strong,
.ledger-row small {
  display: block;
}

.ledger-row small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.ledger-symbol {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.ledger-pass .ledger-symbol {
  color: var(--success);
}

.ledger-open .ledger-symbol {
  color: var(--warning);
}

.ledger-value {
  text-align: right;
}

.ledger-value strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  font-weight: 550;
  line-height: 1;
}

.ledger-status {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.ledger-pass .ledger-status {
  color: var(--success);
}

.ledger-open .ledger-status {
  color: var(--warning);
}

.closed-gate {
  display: grid;
  gap: 1.25rem;
  margin-top: var(--space-6);
  padding: 1.25rem;
  border: 1px solid var(--navy-rule);
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0.5rem 0.5rem 0 var(--amber);
}

.gate-mark {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--amber);
}

.gate-mark::before,
.gate-mark::after {
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 1px;
  background: var(--amber);
  content: "";
}

.gate-mark::before {
  transform: rotate(45deg);
}

.gate-mark::after {
  transform: rotate(-45deg);
}

.closed-gate .micro-label {
  margin-bottom: 0.35rem;
  color: #e89a62;
}

.closed-gate h3 {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 550;
  line-height: 1.1;
}

.closed-gate p:last-child {
  margin-bottom: 0;
  color: var(--cream-muted);
}

.safety {
  background: var(--amber-pale);
}

.safety .spine-marker {
  background: var(--amber-pale);
}

.safety-heading {
  max-width: 66rem;
  margin-bottom: var(--space-6);
}

.safety-heading .eyebrow {
  color: var(--ink);
}

.safety-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--rule-strong);
  background: var(--rule-strong);
}

.safety-grid article {
  padding: 1.25rem;
  background: var(--paper-raised);
}

.safety-grid h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 550;
  line-height: 1.15;
}

.safety-grid article > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.safety-primary {
  background: var(--navy) !important;
  color: var(--cream);
}

.safety-primary .index-label {
  color: var(--teal-bright);
}

.safety-primary > p:nth-of-type(2) {
  color: var(--cream-muted);
}

.plain-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--navy-rule);
  list-style: none;
}

.plain-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.45rem;
  color: var(--cream-muted);
  font-size: var(--text-sm);
}

.plain-list span {
  color: var(--teal-bright);
}

.document-links {
  display: grid;
  margin-top: var(--space-5);
  border-top: 1px solid var(--rule-strong);
}

.document-links a {
  display: grid;
  min-height: 4.5rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule-strong);
  text-decoration: none;
}

.document-links a:hover strong {
  text-decoration: underline;
}

.document-links span {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.wellbeing {
  background: var(--paper-raised);
}

.wellbeing .spine-marker {
  background: var(--paper-raised);
}

.wellbeing-definition {
  display: grid;
  gap: 1.25rem;
  margin-bottom: var(--space-5);
  padding: 1.25rem;
  border: 1px solid var(--rule-strong);
  border-top: 0.4rem solid var(--teal);
  background: var(--paper);
}

.wellbeing-definition blockquote {
  margin: 0;
}

.wellbeing-definition blockquote p {
  max-width: 28ch;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  font-weight: 520;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.wellbeing-definition blockquote footer {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.wellbeing-sources {
  display: grid;
  align-content: end;
  border-top: 1px solid var(--rule);
}

.wellbeing-sources a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--rule);
  color: var(--teal);
  font-size: var(--text-sm);
  font-weight: 780;
  text-decoration: none;
}

.wellbeing-sources a:hover {
  text-decoration: underline;
}

.wellbeing-actions {
  display: grid;
  gap: 1px;
  border: 1px solid var(--rule-strong);
  background: var(--rule-strong);
}

.wellbeing-actions article {
  min-width: 0;
  padding: 1.25rem;
  background: var(--paper-raised);
}

.wellbeing-verb {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  margin-bottom: 1.8rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wellbeing-actions h3,
.support-routes h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 550;
  line-height: 1.12;
}

.wellbeing-actions p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.support-routes {
  display: grid;
  gap: 1px;
  margin-top: var(--space-5);
  border: 1px solid var(--rule-strong);
  background: var(--rule-strong);
}

.support-routes-heading,
.support-route {
  min-width: 0;
  padding: 1.25rem;
  background: var(--paper);
}

.support-routes-heading .micro-label {
  color: var(--teal);
}

.support-route {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.support-route > span {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 900;
}

.support-route-medical {
  color: var(--warning);
}

.support-route-crisis {
  color: var(--teal);
}

.support-route strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.support-route p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.support-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.support-route-actions a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
}

.support-route-actions a:hover {
  border-color: var(--teal);
  text-decoration: underline;
}

.wellbeing-boundary {
  display: grid;
  gap: 0.8rem;
  margin-top: var(--space-5);
  padding: 1rem;
  border-left: 0.4rem solid var(--amber);
  background: var(--navy);
  color: var(--cream);
}

.wellbeing-boundary > span {
  width: fit-content;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.wellbeing-boundary p {
  max-width: 70ch;
  margin-bottom: 0;
  color: var(--cream-muted);
}

.wellbeing-boundary a {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  color: var(--teal-bright);
  font-size: var(--text-sm);
  font-weight: 800;
}

.experience-index {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--navy-rule);
  list-style: none;
}

.experience-index li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--navy-rule);
}

.experience-index li > span {
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.experience-index h3 {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 540;
}

.experience-index p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--cream-muted);
}

.experience-index small {
  display: none;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-align: right;
  text-transform: uppercase;
}

.difference-grid {
  display: grid;
  gap: 0;
  margin-top: var(--space-6);
  border-top: 1px solid var(--navy-rule);
  border-left: 1px solid var(--navy-rule);
}

.difference-grid article {
  min-width: 0;
  padding: 1.35rem;
  border-right: 1px solid var(--navy-rule);
  border-bottom: 1px solid var(--navy-rule);
}

.difference-grid .index-label {
  margin-bottom: 1.5rem;
  color: var(--teal-bright);
}

.difference-grid h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 540;
  line-height: 1.12;
}

.difference-grid p:last-child {
  margin-bottom: 0;
  color: var(--cream-muted);
  font-size: var(--text-sm);
}

.harbor-contract {
  display: grid;
  gap: 1.25rem;
  margin-top: var(--space-6);
  padding: 1rem;
  border-left: 0.45rem solid var(--amber);
  background: var(--cream);
  color: var(--navy);
}

.harbor-path-diagram {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--navy-rule);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 225, 157, 0.22), transparent 18%),
    linear-gradient(160deg, #153945 0%, #0b2630 64%, #071d25 100%);
  color: var(--cream);
}

.harbor-path-diagram > div {
  position: absolute;
  inset: 0;
}

.harbor-tiles-diagram {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--navy-rule);
  background:
    radial-gradient(circle at 18% 82%, rgba(105, 209, 194, 0.2), transparent 24%),
    linear-gradient(155deg, #173f4a 0%, #0b2630 62%, #071d25 100%);
  color: var(--cream);
}

.harbor-tiles-diagram > div {
  position: absolute;
  inset: 0;
}

.tiles-board {
  position: absolute;
  top: 3.35rem;
  left: 50%;
  display: grid;
  width: min(72%, 15rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  transform: translateX(-50%);
}

.tiles-board > span {
  aspect-ratio: 1;
  border-radius: 0.35rem;
}

.tile-empty {
  border: 1px dashed rgba(255, 248, 233, 0.14);
  background: rgba(255, 248, 233, 0.025);
}

.tile-piece {
  border: 1px solid rgba(255, 248, 233, 0.78);
  box-shadow: inset 0 0 0 0.14rem rgba(7, 29, 37, 0.24), 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}

.tile-piece-a {
  background:
    radial-gradient(circle, rgba(11, 38, 48, 0.5) 0 0.13rem, transparent 0.15rem) 0 0 / 0.72rem 0.72rem,
    #f2b781;
}

.tile-piece-b {
  background: repeating-linear-gradient(45deg, #69d1c2 0 0.32rem, #3d9d95 0.32rem 0.48rem);
}

.tile-piece-c {
  background:
    linear-gradient(90deg, transparent 44%, rgba(11, 38, 48, 0.3) 44% 56%, transparent 56%),
    linear-gradient(transparent 44%, rgba(11, 38, 48, 0.3) 44% 56%, transparent 56%),
    #fff1c9;
}

.tiles-lights {
  position: absolute;
  bottom: 3.1rem;
  left: 1rem;
  display: flex;
  gap: 0.45rem;
}

.tiles-lights span {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: #ffe19d;
  box-shadow: 0 0 0.8rem rgba(255, 225, 157, 0.58);
}

.tiles-controls {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  max-width: calc(100% - 7.5rem);
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.diagram-label,
.diagram-exit {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.diagram-label {
  top: 1rem;
  left: 1rem;
  color: var(--teal-bright);
}

.diagram-exit {
  right: 1rem;
  bottom: 0.8rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(255, 248, 233, 0.55);
  color: var(--cream);
}

.diagram-moon {
  position: absolute;
  top: 2.7rem;
  right: 2.2rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #ffe19d;
  box-shadow: 0 0 2.4rem rgba(255, 225, 157, 0.45);
}

.diagram-water {
  position: absolute;
  right: -10%;
  left: -10%;
  height: 1px;
  background: rgba(105, 209, 194, 0.28);
}

.diagram-water-one {
  top: 70%;
  transform: rotate(-3deg);
}

.diagram-water-two {
  top: 78%;
  transform: rotate(2deg);
}

.diagram-route {
  position: absolute;
  top: 54%;
  right: 17%;
  left: 17%;
  height: 1px;
  border-top: 1px dashed rgba(105, 209, 194, 0.7);
  transform: rotate(-7deg);
  transform-origin: center;
}

.diagram-waypoint {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--teal-bright);
  border-radius: 50%;
  background: #0b2630;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 850;
  box-shadow: 0 0 0 0.35rem rgba(105, 209, 194, 0.08);
}

.diagram-waypoint-one {
  top: 58%;
  left: 27%;
}

.diagram-waypoint-two {
  top: 49%;
  left: 48%;
}

.diagram-waypoint-three {
  top: 40%;
  left: 60%;
}

.diagram-lantern {
  position: absolute;
  z-index: 3;
  top: 63%;
  left: 10%;
  width: 2.1rem;
  height: 2.6rem;
  border: 2px solid var(--cream);
  border-radius: 0.3rem;
}

.diagram-lantern::before {
  position: absolute;
  top: -0.7rem;
  left: 0.35rem;
  width: 1.05rem;
  height: 0.7rem;
  border: 2px solid var(--cream);
  border-bottom: 0;
  border-radius: 0.6rem 0.6rem 0 0;
  content: "";
}

.diagram-lantern i {
  position: absolute;
  inset: 0.45rem;
  background: #ffe19d;
  box-shadow: 0 0 1.3rem rgba(255, 225, 157, 0.6);
}

.diagram-home {
  position: absolute;
  z-index: 3;
  top: 31%;
  right: 7%;
  width: 3.25rem;
  height: 2.65rem;
  border: 2px solid var(--cream);
  border-top: 0;
}

.diagram-home::before {
  position: absolute;
  top: -1.5rem;
  left: 0.3rem;
  width: 2rem;
  height: 2rem;
  border-top: 2px solid var(--cream);
  border-left: 2px solid var(--cream);
  transform: rotate(45deg);
  content: "";
}

.diagram-home i {
  position: absolute;
  right: 0.55rem;
  bottom: 0.5rem;
  width: 0.75rem;
  height: 1.2rem;
  background: #ffe19d;
  box-shadow: 0 0 1.2rem rgba(255, 225, 157, 0.65);
}

.harbor-copy {
  align-self: center;
  padding: 0.3rem;
}

.harbor-contract .micro-label {
  margin-bottom: 0.35rem;
  color: var(--teal);
}

.harbor-contract h3 {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 560;
  line-height: 1.1;
}

.harbor-copy > p {
  color: #42585e;
}

.harbor-contract .button {
  width: fit-content;
  margin-top: 0.2rem;
}

.harbor-rules {
  display: grid;
  gap: 0.45rem;
  margin: 1.1rem 0;
  padding: 0;
  list-style: none;
}

.harbor-rules li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.45rem;
  color: var(--navy);
  font-size: var(--text-sm);
  font-weight: 760;
}

.harbor-rules li::before {
  color: var(--teal);
  content: "→";
}

.harbor-caveat {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(11, 38, 48, 0.2);
  font-size: var(--text-sm);
}

.game-accessibility-links {
  font-size: var(--text-sm);
}

.game-accessibility-links a,
.game-evidence-note a {
  font-weight: 760;
  text-decoration-thickness: 0.1rem;
  text-underline-offset: 0.18rem;
}

.game-evidence-note {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--navy-rule);
  border-top: 0.35rem solid var(--teal-bright);
  background: var(--cream);
  color: var(--navy);
}

.game-evidence-note h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 560;
  line-height: 1.1;
}

.game-evidence-note > p {
  margin-bottom: 0;
  color: #42585e;
  font-size: var(--text-sm);
}

.game-evidence-note .micro-label {
  /* This card stays cream in both color schemes, so use a stable dark teal
     instead of the adaptive --teal token used on dark section surfaces. */
  color: #1d6e6b;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-actions li {
  display: block;
}

/* The wellbeing page reuses older field-guide section classes. These scoped
   overrides keep their text/background pairs intact instead of inheriting
   the light legacy cards underneath a dark section. */
.experience .pattern-grid article {
  background: #173740;
}

.experience .pattern-source {
  color: var(--teal-bright);
}

.experience .pattern-grid article > p:not(.pattern-source) {
  color: var(--cream-muted);
}

.safety.section-dark,
.safety.section-dark .spine-marker {
  background: var(--navy);
}

.safety.section-dark .footer-note {
  color: var(--cream-muted);
}

.safety.section-dark .button-text {
  border-color: var(--navy-rule);
  color: var(--cream);
}

.game-originality {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(11, 38, 48, 0.2);
}

.research {
  background: var(--paper-raised);
}

.research .spine-marker {
  background: var(--paper-raised);
}

.research-ledger {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.research-ledger li {
  display: grid;
  gap: 0.7rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.research-index {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-ledger h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 550;
  line-height: 1.12;
}

.research-ledger p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.research-ledger a {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  align-self: center;
  color: var(--teal);
  font-size: var(--text-sm);
  font-weight: 800;
}

.pattern-reference {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 0.4rem solid var(--teal);
}

.pattern-heading {
  display: grid;
  gap: 0.2rem;
  margin-bottom: var(--space-5);
}

.pattern-heading h3 {
  max-width: 18ch;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 540;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.pattern-heading > p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.pattern-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--rule-strong);
  background: var(--rule-strong);
}

.pattern-grid article {
  min-width: 0;
  padding: 1.25rem;
  background: var(--paper);
}

.pattern-source {
  min-height: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pattern-source a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding-inline: 0.25rem;
  color: var(--teal);
}

.pattern-grid h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 560;
  line-height: 1.1;
}

.pattern-grid article > p:not(.pattern-source) {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.pattern-grid article > p:last-child {
  margin-bottom: 0;
}

.pattern-report {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 0.9rem;
  color: var(--teal);
  font-size: var(--text-sm);
  font-weight: 800;
}

.research-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin-top: var(--space-5);
  padding: 1rem;
  border: 1px solid var(--rule-strong);
  background: var(--amber-pale);
}

.research-boundary > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 900;
}

.research-boundary p {
  margin-bottom: 0;
  color: var(--ink);
}

.research-boundary strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rubric-proof {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}

.rubric-proof article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.6rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.rubric-number {
  grid-row: 1 / span 3;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.rubric-proof h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 560;
}

.rubric-proof p {
  max-width: 63ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.rubric-proof a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 2.75rem;
  align-items: center;
  padding-block: 0.55rem;
  color: var(--teal);
  font-size: var(--text-sm);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.demo {
  padding-bottom: 0;
}

.demo-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--space-6);
}

.demo-heading > p {
  align-self: end;
}

.demo-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 1.6rem;
  list-style: none;
}

.demo-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--rule-strong);
  content: "";
}

.demo-timeline li {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 0 0 2.25rem;
}

.demo-timeline li::before {
  position: absolute;
  top: 0.35rem;
  left: -2.08rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--teal);
  background: var(--paper);
  content: "";
}

.demo-timeline time,
.demo-age {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
}

.demo-timeline time {
  color: var(--teal);
}

.demo-age {
  color: var(--ink-soft);
}

.demo-timeline h3 {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 560;
}

.demo-timeline p {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.final-cta {
  display: grid;
  gap: 1.5rem;
  margin: var(--space-6) -1rem 0 -3.6rem;
  padding: 2rem 1rem 2rem 3.6rem;
  background: var(--navy);
  color: var(--cream);
}

.final-cta .micro-label {
  color: var(--teal-bright);
}

.final-cta h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.final-cta .button-primary {
  box-shadow: 0.3rem 0.3rem 0 var(--amber);
}

.final-cta .button-text {
  border-color: var(--navy-rule);
  color: var(--cream);
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  width: min(100%, 96rem);
  margin-inline: auto;
  padding: 2rem 1rem;
  border-top: 1px solid var(--rule-strong);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  border-radius: 0.55rem;
}

.footer-brand p {
  display: grid;
  margin-bottom: 0;
}

.footer-brand span {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.site-footer nav a {
  min-height: 2.75rem;
  padding-top: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 720;
}

.footer-note {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.reveal-ready .spine-marker {
  transform: scale(0.86);
  transition: transform var(--dur-normal) var(--ease-out);
}

.reveal-ready .spine-section.is-visible .spine-marker {
  transform: scale(1);
}

@media (min-width: 48rem) {
  .field-strip span:nth-child(4),
  .field-strip span:nth-child(5) {
    display: inline;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 2rem;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 0.8rem;
  }

  .site-nav a:nth-child(3),
  .site-nav a:nth-child(4),
  .site-nav a:nth-child(5),
  .site-nav a:nth-child(6) {
    display: inline-flex;
  }

  .spine-section {
    padding: var(--space-8) 2.5rem var(--space-8) 6rem;
  }

  .spine-section::before {
    left: 2.75rem;
  }

  .spine-marker {
    top: 7.05rem;
    left: 1.84rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
    gap: 3.5rem;
  }

  .hero-actions,
  .final-actions {
    flex-direction: row;
    align-items: center;
  }

  .platform-boundary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-boundary div {
    padding: 0.8rem 1rem 0.8rem 0;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }

  .platform-boundary div:last-child {
    padding-right: 0;
    padding-left: 1rem;
    border-right: 0;
  }

  .decision-receipt {
    padding: 1.4rem;
  }

  .purpose-band {
    grid-template-columns: 0.75fr 1.4fr;
    align-items: end;
    gap: 2rem;
    padding-block: 2.75rem;
    padding-inline: max(2.5rem, calc((100% - 84rem) / 2));
  }

  .split-intro,
  .demo-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: 3rem;
    max-width: none;
  }

  .age-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: 3rem;
  }

  .persona-receipt {
    position: sticky;
    top: 2rem;
    padding: 1.7rem;
  }

  .iphone-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(15rem, 0.92fr);
    gap: 2rem;
  }

  .ios-stage-receipt dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ios-stage-receipt dl div:last-child {
    grid-column: auto;
  }

  .setup-contract {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-contract li {
    padding: 1.2rem;
  }

  .setup-contract li:nth-child(odd) {
    border-right: 1px solid var(--rule-strong);
  }

  .iphone-run {
    margin: var(--space-8) -2.5rem 0 -6rem;
    padding: var(--space-7) 2.5rem var(--space-7) 6rem;
  }

  .ios-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-capture-result {
    grid-column: auto;
    width: auto;
  }

  .ios-scope-boundary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 1.5rem;
  }

  .ios-scope-boundary .button {
    grid-column: 2;
    width: min(14rem, 100%);
    justify-self: start;
  }

  .segmented {
    grid-template-columns: repeat(3, 1fr);
  }

  .route-readout dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-readout dl div:last-child {
    grid-column: auto;
  }

  .pipeline-map li {
    grid-template-columns: 2rem minmax(0, 1fr) 5rem;
  }

  .stage-state {
    display: block;
  }

  .model-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(12rem, 1.3fr);
  }

  .model-strip > div,
  .model-strip > a {
    border-right: 1px solid var(--navy-rule);
    border-bottom: 0;
  }

  .model-strip > *:last-child {
    border-right: 0;
  }

  .ledger-row {
    grid-template-columns: 2.5rem minmax(0, 1.5fr) minmax(7rem, 0.45fr) minmax(7rem, 0.45fr);
    gap: 1rem;
    min-height: 6.5rem;
  }

  .ledger-status {
    display: block;
    text-align: right;
  }

  .closed-gate {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
  }

  .closed-gate .button {
    max-width: 13rem;
  }

  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-primary {
    grid-row: span 2;
  }

  .document-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .document-links a {
    padding: 0.9rem 1rem;
    border-right: 1px solid var(--rule-strong);
  }

  .document-links a:last-child {
    border-right: 0;
  }

  .wellbeing-definition {
    grid-template-columns: minmax(0, 1.25fr) minmax(14rem, 0.75fr);
    gap: 2rem;
    padding: 1.6rem;
  }

  .wellbeing-sources {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: 1.5rem;
  }

  .wellbeing-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-routes-heading {
    grid-column: 1 / -1;
  }

  .wellbeing-boundary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem 1.2rem;
    padding: 1.25rem;
  }

  .wellbeing-boundary a {
    grid-column: 2;
  }

  .experience-index li {
    grid-template-columns: 3rem minmax(0, 1fr) 7rem;
    align-items: center;
    min-height: 8rem;
  }

  .experience-index small {
    display: block;
  }

  .difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .harbor-contract {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: 1.75rem;
    padding: 1.6rem;
  }

  .harbor-contract .button {
    width: fit-content;
  }

  .pattern-heading {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.75fr);
    gap: 1rem 3rem;
  }

  .pattern-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-ledger li {
    grid-template-columns: 7.5rem minmax(0, 1fr) 11.5rem;
    gap: 1.5rem;
    align-items: start;
    padding: 1.65rem 0;
  }

  .research-ledger a {
    justify-self: end;
    text-align: right;
  }

  .rubric-proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .rubric-proof article:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid var(--rule-strong);
  }

  .rubric-proof article:nth-child(even) {
    padding-left: 1.5rem;
  }

  .demo-timeline {
    padding-left: 0;
  }

  .demo-timeline::before {
    top: 1.05rem;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }

  .demo-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .demo-timeline li {
    grid-template-rows: 2.5rem auto auto;
    padding: 0 1.2rem 0 0;
  }

  .demo-timeline li::before {
    top: 0.65rem;
    left: 0;
    background: var(--paper);
  }

  .demo-timeline time {
    padding-left: 1.55rem;
  }

  .final-cta {
    grid-template-columns: minmax(0, 1.2fr) auto;
    align-items: end;
    margin: var(--space-8) -2.5rem 0 -6rem;
    padding: 4.5rem max(2.5rem, calc((100vw - 84rem) / 2));
  }

  .final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2.25rem 2.5rem;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .site-header {
    position: sticky;
    top: 0;
  }

  main,
  .spine-section {
    scroll-margin-top: 6.5rem;
  }

  .hero {
    gap: 5rem;
  }

  .decision-receipt {
    transform: rotate(0.7deg);
  }

  .route-lab {
    grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1.25fr);
    gap: 4rem;
  }

  .iphone-layout {
    gap: 4rem;
  }

  .setup-contract {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .setup-contract li,
  .setup-contract li:nth-child(odd) {
    border-right: 1px solid var(--rule-strong);
  }

  .setup-contract li:last-child {
    border-right: 0;
  }

  .iphone-run {
    grid-template-columns: minmax(16rem, 0.55fr) minmax(0, 1.45fr);
    gap: 3.5rem;
    align-items: start;
  }

  .ios-scope-boundary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ios-scope-boundary .button {
    grid-column: auto;
  }

  .route-controls {
    position: sticky;
    top: 7.5rem;
  }

  .safety-grid {
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
  }

  .safety-primary {
    grid-row: span 2;
  }

  .support-routes {
    grid-template-columns: minmax(13rem, 0.72fr) repeat(2, minmax(0, 1fr));
  }

  .support-routes-heading {
    grid-column: auto;
  }

  .safety-item:last-child {
    grid-column: 2 / span 2;
  }

  .harbor-contract {
    grid-template-columns: minmax(22rem, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .harbor-contract .button {
    max-width: 16rem;
  }

  .rubric-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rubric-proof article {
    display: block;
    padding: 1.4rem !important;
    border-right: 1px solid var(--rule-strong);
  }

  .rubric-proof article:last-child {
    border-right: 0;
  }

  .rubric-number {
    display: block;
    margin-bottom: 2.25rem;
  }

  .rubric-proof h3 {
    min-height: 4.4rem;
  }

  .rubric-proof p {
    min-height: 10.5rem;
  }
}

@media (min-width: 80rem) {
  .site-header {
    padding-inline: 3.5rem;
  }

  .spine-section {
    padding-right: 4rem;
    padding-left: 8.5rem;
  }

  .spine-section::before {
    left: 4rem;
  }

  .spine-marker {
    left: 3.09rem;
  }

  .iphone-run {
    margin-left: -8.5rem;
    padding-left: 8.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(25rem, 0.8fr);
  }

  .final-cta {
    margin-left: -8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready .spine-marker {
    transform: none;
  }
}

@media (forced-colors: active) {
  .spine-section::before,
  .pipeline-map::before,
  .demo-timeline::before {
    background: CanvasText;
  }

  .age-stop.is-selected::after,
  .status-key > span {
    background: Highlight;
  }

  .button,
  .decision-receipt,
  .persona-receipt,
  .closed-gate,
  .phone-capture img,
  .proof-capture img,
  .mini-app-screen {
    box-shadow: none;
  }

  .setup-stage[aria-pressed="true"],
  .route-button[aria-pressed="true"] {
    outline: 0.18rem solid Highlight;
    outline-offset: -0.22rem;
  }
}

/* Mental-wellbeing product pivot: focused additions layered onto the field-guide system. */

.calm-receipt {
  max-width: 34rem;
  justify-self: center;
}

.support-chip {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--teal-bright);
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
}

.support-chip:hover {
  background: rgba(105, 209, 194, 0.12);
}

.start-now-block > p:nth-child(2) {
  margin-bottom: 0.25rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.start-now-block > p:nth-child(3) {
  max-width: 38ch;
  margin-bottom: 0.9rem;
  color: var(--cream-muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.mock-action {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--teal-bright);
  color: var(--navy);
  font-weight: 850;
  line-height: 1.2;
}

.need-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 1rem 0;
}

.need-preview span {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--navy-rule);
  color: var(--cream-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.need-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid var(--rule-strong);
  font-family: var(--font-sans);
  font-size: 1.35rem;
}

.need-choice {
  display: grid;
  gap: 0.35rem;
}

.need-choice strong {
  max-width: 16ch;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.02;
  text-align: right;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid var(--navy-rule);
  background: var(--navy-rule);
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--navy-raised);
  color: var(--cream);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.tool-card:hover {
  z-index: 1;
  transform: translateY(-0.18rem);
  background: color-mix(in srgb, var(--navy-raised) 88%, var(--teal-bright));
}

.tool-card-warm {
  border-left: 0.35rem solid var(--amber);
  background: #173740;
}

.tool-card-soft {
  border-left: 0.35rem solid var(--teal-bright);
  background: #12323c;
}

.tool-index {
  margin-bottom: auto;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.tool-card-warm .tool-index {
  color: #f2b781;
}

.tool-card h3 {
  margin: 2.5rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 550;
  line-height: 1.08;
}

.tool-card p {
  margin-bottom: 1.2rem;
  color: var(--cream-muted);
  font-size: var(--text-sm);
}

.tool-card small {
  margin-top: auto;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.age-boundary {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem;
  border-left: 0.35rem solid var(--amber);
  background: var(--navy-raised);
  color: var(--cream-muted);
  font-size: var(--text-sm);
}

.age-boundary strong {
  color: var(--cream);
}

.checkout-strip {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--navy-rule);
}

.checkout-strip p,
.checkout-strip ul {
  margin: 0;
}

.checkout-strip p span,
.checkout-strip p strong {
  display: block;
}

.checkout-strip p span {
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-strip p strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.checkout-strip ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.checkout-strip li {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--navy-rule);
  color: var(--cream-muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.memory-layout {
  display: grid;
  gap: var(--space-5);
}

.memory-receipt {
  align-self: start;
  padding: 1.35rem;
  border: 1px solid var(--navy-rule);
  border-top: 0.4rem solid var(--teal-bright);
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0.55rem 0.55rem 0 var(--amber-pale);
}

.memory-receipt .micro-label {
  color: var(--teal-bright);
}

.memory-receipt h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 550;
  line-height: 1.08;
}

.memory-receipt > p:nth-of-type(2) {
  color: var(--cream-muted);
}

.memory-receipt dl {
  margin-bottom: 0;
  border-top: 1px solid var(--navy-rule);
}

.memory-receipt dl div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--navy-rule);
}

.memory-receipt dt {
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.memory-receipt dd {
  margin-left: 0;
  color: var(--cream-muted);
  font-size: var(--text-sm);
  font-weight: 680;
}

.memory-rules {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.memory-rules li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.memory-rules li > span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 850;
}

.memory-rules strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.memory-rules p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.memory-boundary {
  max-width: none;
}

.model-phone {
  position: relative;
  display: flex;
  width: min(100%, 23rem);
  min-height: 36rem;
  flex-direction: column;
  justify-self: center;
  padding: 1.25rem;
  border: 0.5rem solid var(--navy);
  border-radius: 2.25rem;
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 0.9rem 1rem 0 var(--teal-pale), var(--shadow);
}

.model-phone::before {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 5.5rem;
  height: 1.1rem;
  border-radius: 1rem;
  transform: translateX(-50%);
  background: var(--navy);
  content: "";
}

.model-phone-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin: 0.8rem 0 2.6rem;
  font-size: 0.72rem;
}

.model-phone-top strong {
  font-size: var(--text-sm);
}

.model-phone-top span:last-child {
  justify-self: end;
}

.model-phone h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 550;
  line-height: 1.08;
}

.model-phone > p:not(.mini-app-kicker):not(.mini-app-note) {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.model-question {
  margin: 1rem 0 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: var(--text-sm);
}

.model-phone .mock-action {
  background: var(--cta);
  color: var(--cta-ink);
}

.model-phone .mini-app-note {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.model-phone .mini-tabs {
  margin-top: auto;
}

.model-phone > small {
  display: block;
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: center;
}

.support-intro {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: var(--text-lead);
}

.support-routes-wellbeing {
  margin: 0 0 var(--space-5);
}

.competitor-grid h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 560;
  line-height: 1.1;
}

.hackathon-proof {
  margin-top: var(--space-6);
}

.section-dark .tool-card :focus-visible,
.model-phone :focus-visible,
.memory-receipt :focus-visible {
  outline-color: #a4f0e5;
}

@media (min-width: 48rem) {
  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card-wide {
    grid-column: span 2;
  }

  .checkout-strip {
    grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
    align-items: center;
  }

  .checkout-strip ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .memory-layout {
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
  }

  .memory-receipt {
    position: sticky;
    top: 7.5rem;
  }

  .age-boundary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
  }

  .game-evidence-note {
    grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
    gap: 1rem 2rem;
    align-items: start;
  }

  .game-evidence-note .game-originality {
    grid-column: 2;
  }
}

@media (min-width: 64rem) {
  .toolkit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-card-wide {
    grid-column: span 2;
  }

  .tool-card-warm {
    min-height: 14rem;
  }

  .model-phone {
    transform: rotate(1.25deg);
  }

  .competitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-phone,
  .tool-card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .toolkit-grid,
  .tool-card,
  .checkout-strip,
  .harbor-tiles-diagram,
  .harbor-path-diagram,
  .tile-piece,
  .game-evidence-note,
  .memory-receipt,
  .model-phone,
  .support-chip {
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .need-stop[aria-pressed="true"]::after,
  .setup-stage[aria-pressed="true"],
  .route-button[aria-pressed="true"] {
    outline: 0.18rem solid Highlight;
    outline-offset: 0.15rem;
  }
}
