:root {
  color-scheme: light;
  --ink: #15243b;
  --ink-muted: #45576e;
  --ink-soft: #65768b;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --line: #cbd5e2;
  --line-strong: #8fa1b8;
  --blue: #2449df;
  --blue-deep: #1833a3;
  --blue-pale: #e8eefb;
  --signal: #d7ef52;
  --error: #a52b32;
  --radius-sm: 4px;
  --measure: 68ch;
  --page-width: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  width: min(var(--page-width), calc(100% - 4.5rem));
  min-height: 82px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
.main-nav,
.header-action,
.brand-name {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
}

.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: var(--signal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.brand-mark circle {
  fill: var(--signal);
  stroke: none;
}

.brand-name {
  gap: 0.45rem;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.brand-divider {
  color: var(--blue);
  font-weight: 400;
}

.brand-caption,
.panel-label,
.eyebrow,
.step-position,
.section-kicker,
.step-count,
.example-index,
.footer-brand {
  font-family: "Cascadia Code", "Consolas", "Microsoft YaHei", monospace;
}

.brand-caption {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.main-nav {
  gap: clamp(1.1rem, 2.5vw, 2.5rem);
  margin-left: auto;
  margin-right: clamp(1.5rem, 4vw, 4.25rem);
}

.main-nav a,
.header-action {
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
}

.main-nav a {
  color: var(--ink-muted);
  transition: color 180ms ease;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.header-action {
  gap: 0.8rem;
  padding: 0.55rem 0;
  white-space: nowrap;
}

.header-action span {
  color: var(--blue);
  font-size: 1.15rem;
}

.hero {
  display: grid;
  width: min(var(--page-width), calc(100% - 4.5rem));
  min-height: min(770px, calc(100vh - 82px));
  margin-inline: auto;
  padding-block: clamp(3.75rem, 8vh, 6rem);
  align-items: start;
  grid-template-columns: minmax(0, 0.91fr) minmax(470px, 1.09fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  padding-top: 1.45rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.3rem;
  color: var(--ink-muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 10ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.8rem, 5.5vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.14;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--blue);
}

.hero-intro {
  max-width: 39ch;
  margin-bottom: 1.15rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.85;
}

.vision-note {
  display: grid;
  max-width: 43ch;
  margin: 0 0 1.75rem;
  align-items: baseline;
  grid-template-columns: 10px 1fr;
  gap: 0.7rem;
  color: var(--ink-muted);
  font-size: 0.71rem;
  line-height: 1.75;
}

.vision-node {
  width: 9px;
  height: 9px;
  align-self: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
}

.vision-note strong {
  color: var(--ink);
  font-weight: 700;
}

.vision-separator {
  padding-inline: 0.25rem;
  color: var(--blue);
}

.vision-status {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.hero-terms {
  display: grid;
  max-width: 40ch;
  margin-bottom: 1.35rem;
  align-items: start;
  grid-template-columns: 3px 1fr;
  gap: 1rem;
}

.term-line {
  width: 3px;
  height: 100%;
  min-height: 3.3rem;
  background: var(--signal);
}

.hero-terms p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.7;
}

.hero-terms strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.hero-action {
  display: inline-flex;
  min-height: 46px;
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.hero-action:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.hero-action span {
  color: var(--signal);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.text-link span {
  color: var(--blue);
  font-size: 1.2rem;
}

.intake-panel {
  position: relative;
  padding: clamp(1.4rem, 2.5vw, 2.15rem);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.panel-topline {
  display: flex;
  min-height: 2.1rem;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-label {
  color: var(--ink);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.route-track {
  position: relative;
  display: flex;
  margin: 0.45rem 0 1.45rem;
  justify-content: space-between;
}

.route-track::before {
  position: absolute;
  top: 8px;
  right: 7%;
  left: 7%;
  height: 2px;
  background: var(--line);
  content: "";
}

.route-fill {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 7%;
  width: 86%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 460ms var(--ease-out);
}

.route-station {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.3;
}

.route-station::before {
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.route-station.is-current,
.route-station.is-complete {
  color: var(--ink);
  font-weight: 700;
}

.route-station.is-current::before {
  border-color: var(--ink);
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--ink);
}

.route-station.is-complete::before {
  border-color: var(--blue);
  background: var(--blue);
}

.privacy-note {
  display: grid;
  margin: 0 0 1.4rem;
  padding: 0.85rem 0.9rem;
  align-items: start;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  background: var(--blue-pale);
  color: var(--ink);
}

.privacy-symbol {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1.5px solid var(--blue-deep);
  border-radius: 50%;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.privacy-note p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.privacy-note strong {
  color: var(--ink);
  font-weight: 800;
}

.wizard-step[hidden],
.summary-result[hidden],
.transcript[hidden] {
  display: none;
}

.step-position {
  margin-bottom: 0.3rem;
  color: var(--blue-deep);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.wizard-step h2,
.summary-result h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: flex;
  margin-bottom: 0.4rem;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.required-mark,
.optional-mark {
  font-size: 0.65rem;
  font-weight: 500;
}

.required-mark {
  color: var(--blue-deep);
}

.optional-mark {
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.68rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.55;
}

.field textarea {
  min-height: 98px;
  resize: vertical;
}

.field textarea#systems {
  min-height: 72px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #617186;
  opacity: 1;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--error);
  font-size: 0.72rem;
  font-weight: 600;
}

.field-hint {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.55;
}

.step-controls,
.result-controls {
  display: flex;
  min-height: 46px;
  margin-top: 1.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.step-count {
  color: var(--ink-muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.step-count span {
  color: var(--blue);
}

.button-primary,
.button-quiet {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--ink);
  color: var(--surface);
}

.button-primary:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.65;
  border-color: var(--ink);
  background: var(--ink);
}

.button-quiet {
  background: transparent;
  color: var(--ink-muted);
}

.button-quiet:hover {
  background: var(--blue-pale);
  color: var(--ink);
}

.transcript {
  display: grid;
  margin: 0 0 1rem;
  border-top: 1px solid var(--line);
}

.transcript-row {
  display: grid;
  min-height: 38px;
  padding: 0.45rem 0;
  align-items: baseline;
  grid-template-columns: minmax(4.2rem, 0.27fr) minmax(0, 1fr) auto;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.transcript-label {
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 600;
}

.transcript-value {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcript-edit {
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.summary-result h2 {
  margin-bottom: 0.4rem;
}

.result-explanation {
  margin-bottom: 0.8rem;
  color: var(--ink-muted);
  font-size: 0.77rem;
}

.summary-text {
  width: 100%;
  min-height: 250px;
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #f8faff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1.7;
  resize: vertical;
}

.result-controls {
  justify-content: start;
}

.copy-status {
  min-height: 1.5rem;
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.examples-section,
.process-section,
.boundaries-section,
.creation-section,
.fde-note,
.site-footer {
  width: min(var(--page-width), calc(100% - 4.5rem));
  margin-inline: auto;
}

.examples-section {
  display: grid;
  padding-block: clamp(5rem, 10vw, 8rem);
  align-items: start;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(3rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  position: relative;
  padding-left: 1.15rem;
}

.section-heading h2,
.process-intro h2,
.boundary-lead h2,
.creation-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.28;
  text-wrap: balance;
}

.route-marker {
  position: absolute;
  top: 0.35rem;
  bottom: 0.15rem;
  left: 0;
  width: 3px;
  background: var(--blue);
}

.example-list {
  border-top: 1px solid var(--line-strong);
}

.example-row {
  display: grid;
  padding: 1.3rem 0;
  align-items: start;
  grid-template-columns: 32px minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.example-index {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue-deep);
  font-size: 0.64rem;
}

.example-row h3,
.process-stop h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.example-row p,
.process-stop p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.process-section {
  display: grid;
  padding-block: clamp(5rem, 9vw, 7.2rem);
  align-items: start;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(3rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 0.8rem;
  color: var(--blue-deep);
  font-size: 0.71rem;
  font-weight: 600;
}

.process-intro h2 {
  margin-bottom: 1.15rem;
}

.process-intro > p:not(.section-kicker) {
  max-width: var(--measure);
  margin-bottom: 1rem;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.process-stage {
  display: flex;
  margin-top: 1.5rem !important;
  padding: 0.8rem 0;
  align-items: flex-start;
  gap: 0.65rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink) !important;
  font-size: 0.78rem !important;
}

.stage-dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.3rem;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
}

.process-route {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0.25rem 0 0.25rem 0.3rem;
  list-style: none;
}

.process-route::before {
  position: absolute;
  top: 14px;
  bottom: 48px;
  left: 12px;
  border-left: 2px dashed var(--line-strong);
  content: "";
}

.process-stop {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0 0 1.8rem 2.35rem;
}

.stop-node {
  position: absolute;
  z-index: 1;
  top: 0.1rem;
  left: 4px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 800;
}

.process-stop.is-active::before {
  position: absolute;
  top: 1.7rem;
  bottom: 1.8rem;
  left: 0.3rem;
  width: 1px;
  background: var(--signal);
  content: "";
}

.process-stop.is-active .stop-node {
  background: var(--signal);
}

.process-stop.is-pending .stop-node {
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
}

.process-stop .stop-node-end {
  border-color: var(--line-strong);
  color: var(--ink-muted);
}

.stop-head {
  display: flex;
  margin-bottom: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.stop-state {
  padding: 0.15rem 0.42rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.5;
}

.stop-state-live {
  border-color: var(--ink);
  background: var(--signal);
  color: var(--ink);
}

.process-stop p {
  max-width: var(--measure);
}

.process-stop .stop-meta {
  margin-top: 0.45rem;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
}

.boundaries-section {
  display: grid;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.boundary-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  background: var(--signal);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.boundary-lead h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.boundary-copy p,
.boundary-copy li {
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.boundary-copy p:first-child {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.boundary-copy ul {
  display: grid;
  margin: 1.4rem 0 1.5rem;
  padding-left: 1.15rem;
  gap: 0.6rem;
}

.boundary-copy li::marker {
  color: var(--blue);
}

.boundary-next {
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.boundary-next strong {
  color: var(--ink);
}

.fde-note {
  display: grid;
  padding-block: clamp(3.5rem, 7vw, 5.25rem);
  align-items: start;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.4rem;
}

.fde-signal {
  width: 38px;
  height: 38px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.fde-note h2 {
  margin-bottom: 0.6rem;
  font-size: 1.03rem;
  font-weight: 700;
}

.fde-note p {
  max-width: var(--measure);
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.creation-section {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.creation-section summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.creation-section summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.creation-section summary::marker {
  color: var(--blue);
}

.creation-section p {
  margin: 0.4rem 0 0;
  color: var(--ink-muted);
  font-size: 0.74rem;
}

.creation-summary-note {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.site-footer {
  display: flex;
  min-height: 91px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-strong);
}

.footer-brand {
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand span {
  color: var(--blue);
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.site-footer p span {
  margin-left: 0.5rem;
}

.back-top {
  color: var(--ink-muted);
  font-size: 0.7rem;
  text-decoration: none;
}

.back-top:hover {
  color: var(--blue-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .site-header,
  .hero,
  .examples-section,
  .process-section,
  .boundaries-section,
  .fde-note,
  .creation-section,
  .site-footer {
    width: min(100% - 3rem, 780px);
  }

  .site-header {
    min-height: 72px;
  }

  .main-nav {
    gap: 1.1rem;
    margin-right: 1.3rem;
  }

  .main-nav a {
    font-size: 0.76rem;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 3.5rem 4.5rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 2.4rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 6.4vw, 4.4rem);
  }

  .intake-panel {
    padding: 1.3rem;
  }

  .examples-section,
  .process-section {
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  .site-header {
    width: calc(100% - 2rem);
    min-height: 66px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 27px;
  }

  .main-nav {
    max-width: 58vw;
    margin: 0 0 0 auto;
    gap: clamp(0.8rem, 3vw, 1.4rem);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 0.71rem;
  }

  .hero,
  .examples-section,
  .process-section,
  .boundaries-section,
  .fde-note,
  .creation-section,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .hero {
    padding-block: 2.8rem 3.8rem;
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .hero-copy {
    padding-top: 0;
  }

  .eyebrow {
    margin-bottom: 0.9rem;
    font-size: 0.68rem;
  }

  .hero h1 {
    max-width: 13ch;
    margin-bottom: 0.95rem;
    font-size: clamp(2.65rem, 11vw, 4.25rem);
  }

  .hero-intro {
    max-width: 49ch;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
  }

  .vision-note {
    max-width: 54ch;
    margin-bottom: 1.35rem;
    font-size: 0.72rem;
  }

  .vision-status {
    font-size: 0.66rem;
  }

  .hero-terms {
    max-width: 49ch;
    margin-bottom: 1.1rem;
  }

  .hero-terms p {
    font-size: 0.77rem;
  }

  .text-link {
    font-size: 0.77rem;
  }

  .intake-panel {
    padding: clamp(1.05rem, 5vw, 1.5rem);
  }

  .privacy-note p {
    font-size: 0.69rem;
  }

  .wizard-step h2,
  .summary-result h2 {
    font-size: 1.36rem;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .step-controls {
    flex-wrap: wrap;
  }

  .step-count {
    order: 0;
  }

  .step-controls .button-primary {
    order: 1;
    margin-left: auto;
  }

  .step-controls .button-quiet {
    order: 0;
  }

  .examples-section,
  .process-section,
  .boundaries-section {
    padding-block: 3.8rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-heading h2,
  .process-intro h2,
  .boundary-lead h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .example-row {
    grid-template-columns: 28px 1fr;
    gap: 0.55rem 0.75rem;
  }

  .example-row h3 {
    align-self: center;
    font-size: 0.88rem;
  }

  .example-row p {
    grid-column: 2;
    font-size: 0.76rem;
  }

  .process-route {
    margin-left: 0.1rem;
  }

  .boundary-copy p,
  .boundary-copy li {
    font-size: 0.8rem;
  }

  .fde-note {
    padding-block: 3.3rem;
    grid-template-columns: 34px 1fr;
    gap: 1rem;
  }

  .fde-signal {
    width: 30px;
    height: 30px;
  }

  .fde-note p {
    font-size: 0.76rem;
  }

  .creation-section summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
  }

  .site-footer {
    min-height: 100px;
    flex-wrap: wrap;
    padding-block: 1rem;
    gap: 0.2rem 1rem;
  }

  .site-footer p {
    order: 3;
    width: 100%;
    font-size: 0.66rem;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .brand-caption {
    font-size: 0.61rem;
  }

  .main-nav {
    max-width: 56vw;
    gap: 0.78rem;
  }

  .main-nav a {
    font-size: 0.66rem;
  }

  .panel-topline {
    gap: 0.4rem;
  }

  .panel-label {
    font-size: 0.65rem;
  }

  .route-station {
    font-size: 0.6rem;
  }

  .step-controls {
    gap: 0.45rem;
  }

  .step-controls .button-primary,
  .step-controls .button-quiet {
    padding-inline: 0.7rem;
    font-size: 0.7rem;
  }

  .transcript-row {
    grid-template-columns: 3.8rem minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
