/* Builder DNA (dna.wynter.ai) — Editorial tokens mapped from SalesFunnels OKLCH register */
:root {
  --surface: #f8fbfc;
  --surface-alt: #eef4f7;
  --card: #ffffff;
  --ink: #141618;
  --muted: #4b5563;
  --accent: #0f172a;
  --band: #00273c;
  --band-card: #06354f;
  --band-ink: #ffffff;
  --band-muted: #c8dce7;
  --cta: #007eb4;
  --cta-2: #006997;
  --cta-ink: #ffffff;
  --stage-1: #b02b27;
  --stage-1-soft: #f8e2df;
  --stage-2: #8a6100;
  --stage-2-soft: #f5ecd6;
  --stage-3: #007835;
  --stage-3-soft: #dfece1;
  --border: rgba(20, 22, 24, 0.12);
  --border-strong: rgba(20, 22, 24, 0.24);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 29, 39, 0.08), 0 2px 6px rgba(12, 29, 39, 0.06);
  --shadow-md: 0 2px 6px rgba(12, 29, 39, 0.08), 0 12px 28px -8px rgba(12, 29, 39, 0.14);
  --font-display: "Fraunces", Georgia, Cambria, serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--cta-2);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--band);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--band);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation (Racecar / OpenPaw big overhanging slanted sticker logo) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  overflow: visible;
  background: rgba(248, 251, 252, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
  overflow: visible;
}

.brand-link {
  position: relative;
  top: 1.75rem;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  text-decoration: none;
}

.brand-logo-img {
  width: clamp(185px, 21vw, 285px);
  height: auto;
  display: block;
  transform: rotate(-3deg);
  transform-origin: top left;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 350ms ease;
  filter: drop-shadow(0 10px 24px rgba(0, 126, 180, 0.28));
  will-change: transform;
}

.brand-link:hover .brand-logo-img,
.brand-link:focus-visible .brand-logo-img {
  transform: rotate(0deg);
  filter: drop-shadow(0 12px 30px rgba(0, 126, 180, 0.42));
}

.brand-logo-sm {
  width: 155px;
  height: auto;
  transform: rotate(-2deg);
}

.brand-link:hover {
  color: var(--band);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.desktop-nav a:hover {
  background: var(--surface-alt);
  color: var(--band);
}

.desktop-nav a.nav-course {
  margin-left: 6px;
  background: var(--band);
  color: #ffffff;
  padding: 9px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.desktop-nav a.nav-course:hover {
  background: var(--band-card);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 29, 39, 0.5);
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer-panel {
  width: min(320px, 86vw);
  height: 100%;
  background: var(--card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -8px 0 32px rgba(12, 29, 39, 0.22);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.mobile-drawer-links a:hover {
  background: var(--surface-alt);
}

.mobile-drawer-links a.drawer-course {
  margin-top: 8px;
  justify-content: center;
  background: var(--band);
  color: #ffffff;
}

/* Tactile Slightly-3D Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.96875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 90ms ease, filter 140ms ease, background-color 140ms ease;
}

.btn-primary {
  border: 1px solid rgba(0, 39, 60, 0.3);
  background: linear-gradient(180deg, #0b8ac0 0%, var(--cta-2) 100%);
  color: var(--cta-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(0, 39, 60, 0.28),
    0 4px 12px rgba(0, 105, 151, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.04);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #ffffff 0%, #eef3f6 100%);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(20, 22, 24, 0.1),
    0 2px 6px rgba(12, 29, 39, 0.08);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e4ecf0 100%);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-band {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, #10a0de 0%, #007eb4 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -2px 0 rgba(0, 24, 38, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-band:hover {
  filter: brightness(1.06);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-band:active {
  transform: translateY(1px);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* Hero Section */
.hero {
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-meta dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}

.hero-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.hero-visual-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-visual-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-visual-sub {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.legend-chip:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  color: var(--ink);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-s1 { background: var(--stage-1); }
.dot-s2 { background: var(--stage-2); }
.dot-s3 { background: var(--stage-3); }

/* Standard Sections */
section[id] {
  scroll-margin-top: 112px;
}

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

.section-alt {
  background: var(--surface-alt);
}

.section-card-band {
  background: var(--card);
}

.section-head {
  max-width: 68ch;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.62;
}

/* Interactive 3-Stage Chart */
.chart-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.pill-btn:hover {
  background: var(--surface-alt);
}

.pill-btn[aria-pressed="true"] {
  background: var(--band);
  border-color: var(--band);
  color: #ffffff;
}

.pill-btn[data-stage="1"][aria-pressed="true"] {
  background: var(--stage-1);
  border-color: var(--stage-1);
  color: #ffffff;
}

.pill-btn[data-stage="2"][aria-pressed="true"] {
  background: var(--stage-2);
  border-color: var(--stage-2);
  color: #ffffff;
}

.pill-btn[data-stage="3"][aria-pressed="true"] {
  background: var(--stage-3);
  border-color: var(--stage-3);
  color: #ffffff;
}

.pill-btn[aria-pressed="true"] .dot {
  background: #ffffff;
}

.chart-canvas-wrap {
  width: 100%;
  overflow-x: auto;
}

.stage-svg {
  width: 100%;
  min-width: 520px;
  height: auto;
}

.chart-readout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.9375rem;
}

.chart-readout strong {
  color: var(--ink);
}

.chart-readout-note {
  color: var(--muted);
}

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

.stage-card {
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}

.stage-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.stage-card.is-selected {
  border-color: var(--band);
  box-shadow: 0 0 0 2px var(--band), var(--shadow-md);
}

.stage-card[data-stage-card="1"].is-selected {
  border-color: var(--stage-1);
  box-shadow: 0 0 0 2px var(--stage-1), var(--shadow-md);
}

.stage-card[data-stage-card="2"].is-selected {
  border-color: var(--stage-2);
  box-shadow: 0 0 0 2px var(--stage-2), var(--shadow-md);
}

.stage-card[data-stage-card="3"].is-selected {
  border-color: var(--stage-3);
  box-shadow: 0 0 0 2px var(--stage-3), var(--shadow-md);
}

.stage-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stage-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.56;
}

.stage-facts {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.stage-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}

.stage-facts dt {
  color: var(--muted);
  font-weight: 600;
}

.stage-facts dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 5-Layer Living Architecture Explorer */
.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 24px;
  align-items: start;
}

.layer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.layer-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.layer-btn[aria-selected="true"] {
  background: var(--band);
  border-color: var(--band);
  color: #ffffff;
}

.layer-btn-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layer-btn-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.layer-btn-hint {
  font-size: 0.84rem;
  color: var(--muted);
}

.layer-btn[aria-selected="true"] .layer-btn-hint {
  color: var(--band-muted);
}

.layer-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  opacity: 0.78;
  flex-shrink: 0;
}

.layer-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.layer-detail-lead {
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.65;
}

.layer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-box-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.detail-box p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.55;
}

.layer-boundary {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--stage-3-soft);
  color: #0b4a26;
  font-size: 0.925rem;
  line-height: 1.55;
}

.layer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

/* PACE Mapping Section */
.pace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pace-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.pace-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--band);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

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

.pace-driver {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.open-pieces {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.open-pieces-copy {
  max-width: 54ch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.open-pieces-copy p {
  font-size: 0.95rem;
  color: var(--muted);
}

.open-pieces-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Deep Ocean Band — Copyable AI Audit Prompt */
.band-section {
  padding: 76px 0;
  background: var(--band);
  color: var(--band-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.band-section h2,
.band-section h3 {
  color: #ffffff;
}

.band-section .section-sub {
  color: var(--band-muted);
}

.prompt-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.prompt-head-row .section-head {
  margin-bottom: 0;
}

.prompt-brand-icon {
  width: 96px;
  height: auto;
  flex-shrink: 0;
  transform: rotate(5deg);
  filter: drop-shadow(0 12px 28px rgba(0, 149, 217, 0.45));
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.prompt-brand-icon:hover {
  transform: rotate(0deg);
}

.optin-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.optin-brand-icon {
  width: 58px;
  height: auto;
  flex-shrink: 0;
  transform: rotate(-4deg);
  filter: drop-shadow(0 6px 14px rgba(0, 126, 180, 0.22));
}

.prompt-shell {
  background: var(--band-card);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45);
}

.prompt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.prompt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--band-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.prompt-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.prompt-tab[aria-selected="true"] {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--band);
}

.prompt-pre {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: #021d2d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.885rem;
  line-height: 1.62;
  color: #e9f4fa;
}

.prompt-pre code {
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 0.875rem;
  color: var(--band-muted);
}

.prompt-foot a {
  color: #7dd3fc;
}

.copy-status {
  font-weight: 700;
  color: #86efac;
  min-height: 1.25em;
}

/* Opt-In / Living Updates Card */
.optin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}

.optin-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.optin-copy p {
  color: var(--muted);
}

.optin-list {
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.95rem;
  display: grid;
  gap: 6px;
}

.optin-form {
  display: grid;
  gap: 14px;
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(12, 29, 39, 0.06);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(0, 126, 180, 0.22);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-msg {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-msg.is-error {
  color: var(--stage-1);
}

.form-msg.is-success {
  color: var(--stage-3);
}

.unlocked-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--stage-3-soft);
  border: 1px solid rgba(0, 120, 53, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unlocked-box[hidden] {
  display: none;
}

.unlocked-box p {
  font-size: 0.95rem;
  color: #0b4a26;
}

/* FAQ Section */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--band);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.62;
}

/* Quiet Single-Row Dark Footer (high contrast for wynter.ai logo) */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0d;
  padding: 24px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-right: 132px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

@media (max-width: 768px) {
  .site-footer-inner {
    padding-right: 0;
    padding-bottom: 56px;
  }
}

.footer-signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.footer-signature img {
  height: 25px;
  width: auto;
  display: block;
}

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

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer a:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

/* Legal / 404 Pages */
.prose-page {
  padding: 56px 0 80px;
}

.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prose-stack h2 {
  margin-top: 14px;
  font-size: 1.4rem;
}

.prose-stack p,
.prose-stack li {
  color: var(--muted);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .arch-grid,
  .optin-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .pace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero {
    padding: 72px 0 44px;
  }
  .brand-link {
    top: 0.95rem;
  }
  .brand-logo-img {
    width: clamp(165px, 46vw, 215px);
  }
  .prompt-head-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .prompt-brand-icon {
    width: 72px;
  }
  .section,
  .band-section {
    padding: 52px 0;
  }
  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .layer-detail-grid,
  .pace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart-shell,
  .layer-detail,
  .optin-card,
  .prompt-shell {
    padding: 18px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}
