:root {
  color-scheme: light;
  --ink: #0b0b0d;
  --paper: #f6f1e8;
  --white: #fffdf8;
  --yellow: #ffd84d;
  --mint: #45f0bd;
  --blue: #6c8cff;
  --coral: #ff5c72;
  --orange: #ff8a3d;
  --purple: #b58cff;
  --gray: #d7d1c8;
  --muted: #58585f;
  --border: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
  --radius: 4px;
  --max: 1240px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(11,11,13,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,13,.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: var(--border);
  background: var(--white);
  font-weight: 900;
}

.skip-link:focus { transform: none; }

.announcement {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: var(--border);
  background: var(--yellow);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.announcement-links { display: flex; gap: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 12px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: var(--border);
  background: rgba(246, 241, 232, .96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: var(--border);
  background: var(--mint);
  box-shadow: var(--shadow-small);
  font-family: var(--mono);
  font-weight: 1000;
  letter-spacing: -.08em;
}

.brand-copy { display: grid; line-height: 1.02; }
.brand-copy strong { font-size: .9rem; text-transform: uppercase; }
.brand-copy span { font-family: var(--mono); font-size: .76rem; }

.desktop-nav { display: flex; justify-content: center; gap: 8px; }

.nav-link {
  padding: 8px 10px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--yellow);
  box-shadow: inset 0 -3px 0 var(--ink);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.button:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button:active { transform: translate(4px, 4px); box-shadow: none; }
.button-small { min-height: 40px; padding: 8px 12px; font-size: .76rem; }
.button-primary { background: var(--yellow); }
.button-secondary { background: var(--mint); }
.button-blue { background: var(--blue); }
.button-coral { background: var(--coral); }
.button-ghost { box-shadow: none; background: transparent; }
.button-dark {
  border-color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--paper);
  color: var(--paper);
}

.button[aria-disabled="true"],
.button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

main { overflow: clip; }
.container { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }

.section { padding: 94px 0; border-bottom: var(--border); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-yellow { background: var(--yellow); }
.section-mint { background: var(--mint); }
.section-blue { background: var(--blue); }
.section-coral { background: var(--coral); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: var(--border);
  background: var(--yellow);
  box-shadow: var(--shadow-small);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-dark .section-kicker { color: var(--ink); }

.section-heading {
  max-width: 930px;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: .94;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-dark .section-intro { color: #c8c2b9; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: 760px;
  border-bottom: var(--border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px max(32px, calc((100vw - var(--max)) / 2)) 72px max(18px, calc((100vw - var(--max)) / 2));
  border-right: var(--border);
  background: var(--paper);
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  font-size: clamp(3.4rem, 7.5vw, 7.5rem);
  line-height: .84;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

.hero h1 span {
  display: inline-block;
  padding: 0 .06em .04em;
  background: var(--yellow);
  box-shadow: inset 0 -.18em 0 var(--mint);
}

.hero-answer {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 650;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.proof-item {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 800;
}

.proof-item::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  background: var(--mint);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 50px 28px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px),
    var(--ink);
  color: var(--paper);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border: var(--border);
}

.hero-visual::before {
  top: 28px;
  right: 24px;
  width: 90px;
  height: 90px;
  background: var(--coral);
  transform: rotate(8deg);
}

.hero-visual::after {
  bottom: 24px;
  left: 26px;
  width: 60px;
  height: 60px;
  background: var(--blue);
  transform: rotate(-11deg);
}

.assembly-card {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  border: 4px solid var(--paper);
  background: #111116;
  box-shadow: 14px 14px 0 var(--yellow);
}

.assembly-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 3px solid var(--paper);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.assembly-status { color: var(--mint); }
.assembly-body { padding: 15px; }

.intake-chaos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #5f5f69;
}

.file-chip {
  padding: 7px 9px;
  border: 2px solid var(--paper);
  background: #262630;
  font-family: var(--mono);
  font-size: .7rem;
  transform: rotate(var(--tilt, 0deg));
}

.file-chip.bad { border-color: var(--coral); color: #ffd8dd; }
.folder-stack { display: grid; gap: 7px; margin-top: 15px; }

.folder-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid var(--paper);
  background: #191920;
  font-family: var(--mono);
  font-size: .72rem;
  transition: transform .16s ease, background .16s ease;
}

.folder-row:hover { transform: translateX(6px); background: #272731; }

.folder-icon {
  width: 22px;
  height: 15px;
  border: 2px solid var(--paper);
  background: var(--yellow);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 8px;
  border: 2px solid currentColor;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-ready { color: var(--mint); }
.status-blocker { color: var(--coral); }
.status-fix { color: var(--yellow); }
.status-provisional { color: var(--blue); }

.assembly-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 15px; }
.assembly-meter span { height: 9px; border: 2px solid var(--paper); background: var(--mint); }
.assembly-meter span:last-child { background: transparent; }

.summary-band { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: var(--border); }
.summary-card { min-height: 210px; padding: 28px; border-right: var(--border); }
.summary-card:last-child { border-right: 0; }
.summary-card:nth-child(1) { background: var(--yellow); }
.summary-card:nth-child(2) { background: var(--mint); }
.summary-card:nth-child(3) { background: var(--blue); }
.summary-card:nth-child(4) { background: var(--coral); }
.summary-number { font-family: var(--mono); font-size: .78rem; font-weight: 1000; }
.summary-card h2 { margin: 38px 0 10px; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.summary-card p { margin: 0; font-weight: 650; }

.failure-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.failure-node {
  position: relative;
  min-height: 175px;
  padding: 20px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.failure-node::before {
  content: attr(data-index);
  position: absolute;
  top: -14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: var(--border);
  background: var(--coral);
  font-family: var(--mono);
  font-weight: 1000;
}

.failure-node h3 { margin: 20px 0 8px; font-size: 1.05rem; text-transform: uppercase; }
.failure-node p { margin: 0; color: var(--muted); font-size: .9rem; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--border);
  box-shadow: var(--shadow);
}

.process-step { min-height: 250px; padding: 26px; border-right: var(--border); background: var(--white); }
.process-step:last-child { border-right: 0; }
.process-step:nth-child(2) { background: var(--yellow); }
.process-step:nth-child(3) { background: var(--mint); }
.process-step:nth-child(4) { background: var(--blue); }
.step-number { font-family: var(--mono); font-size: 3rem; font-weight: 1000; line-height: 1; }
.process-step h3 { margin: 42px 0 10px; font-size: 1.18rem; line-height: 1.05; text-transform: uppercase; }
.process-step p { margin: 0; font-size: .93rem; font-weight: 600; }

.note-box {
  margin-top: 28px;
  padding: 18px 20px;
  border: var(--border);
  background: var(--yellow);
  box-shadow: var(--shadow-small);
  font-weight: 750;
}

.action-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

.action-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 22px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.action-card:nth-child(3n+1) { background: var(--yellow); }
.action-card:nth-child(3n+2) { background: var(--mint); }
.action-card:nth-child(3n) { background: var(--blue); }
.action-card.action-featured { grid-column: span 8; min-height: 300px; background: var(--coral); }
.action-id { font-family: var(--mono); font-size: .72rem; font-weight: 1000; word-break: break-word; }
.action-card h3 { margin: 32px 0 10px; font-size: 1.42rem; line-height: 1; text-transform: uppercase; }
.action-card p { margin: 0; font-weight: 650; }
.action-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }

.meta-tag {
  display: inline-flex;
  padding: 4px 7px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-card .button { margin-top: auto; align-self: flex-start; }

.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.priority-card {
  min-height: 290px;
  padding: 24px;
  border: 4px solid var(--paper);
  box-shadow: 8px 8px 0 var(--paper);
}

.priority-card.blocker { background: var(--coral); color: var(--ink); }
.priority-card.fix { background: var(--yellow); color: var(--ink); }
.priority-card.improve { background: var(--mint); color: var(--ink); }
.priority-card h3 { margin: 40px 0 12px; font-size: 1.8rem; line-height: .95; text-transform: uppercase; }
.priority-card p { margin: 0; font-weight: 700; }

.business-selector { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.business-tabs { display: grid; gap: 8px; align-content: start; }

.business-tab {
  width: 100%;
  padding: 13px 14px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow-small);
  text-align: left;
  font-weight: 1000;
  text-transform: uppercase;
}

.business-tab[aria-selected="true"] { transform: translate(4px, 4px); background: var(--yellow); box-shadow: none; }

.business-panel {
  min-height: 430px;
  padding: 30px;
  border: var(--border);
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--paper);
}

.business-panel h3 { margin: 0 0 14px; color: var(--yellow); font-size: 2.4rem; text-transform: uppercase; }
.business-panel ul { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }

.business-panel li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 2px solid var(--paper);
  background: #1c1c23;
}

.business-panel li::before { content: "+"; color: var(--mint); font-family: var(--mono); font-weight: 1000; }

.demo-shell { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; }
.demo-input, .demo-output { border: var(--border); box-shadow: var(--shadow); }
.demo-input { padding: 22px; background: var(--paper); }
.demo-output { overflow: hidden; background: var(--ink); color: var(--paper); }

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: var(--border);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.code-block, pre {
  overflow: auto;
  margin: 0;
  padding: 18px;
  background: #111116;
  color: #f6f1e8;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.demo-results { display: grid; gap: 10px; padding: 18px; }

.result-line {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 10px;
  border: 2px solid var(--paper);
  background: #1c1c23;
  font-size: .86rem;
}

.result-line strong { color: var(--mint); font-family: var(--mono); text-transform: uppercase; }

.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.trust-card {
  padding: 26px;
  border: var(--border);
  box-shadow: var(--shadow);
}

.trust-card.dont { background: var(--coral); }
.trust-card.use { background: var(--mint); }
.trust-card h3 { margin: 0 0 18px; font-size: 2rem; text-transform: uppercase; }

.check-list, .cross-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.check-list li, .cross-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-weight: 700; }
.check-list li::before { content: "✓"; font-family: var(--mono); font-weight: 1000; }
.cross-list li::before { content: "×"; font-family: var(--mono); font-weight: 1000; }

.split-card { display: grid; grid-template-columns: 1fr 1fr; border: var(--border); box-shadow: var(--shadow); }
.split-card > div { padding: 32px; }
.split-card > div:first-child { border-right: var(--border); background: var(--mint); }
.split-card > div:last-child { background: var(--coral); }
.split-card h3 { margin: 0 0 18px; font-size: 2rem; text-transform: uppercase; }

.classification-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border);
  box-shadow: var(--shadow);
}

.classification { min-height: 240px; padding: 24px; border-right: var(--border); }
.classification:last-child { border-right: 0; }
.classification:nth-child(1) { background: var(--mint); color: var(--ink); }
.classification:nth-child(2) { background: var(--coral); color: var(--ink); }
.classification:nth-child(3) { background: var(--blue); color: var(--ink); }
.classification h3 { margin: 38px 0 12px; font-size: 1.35rem; line-height: 1; text-transform: uppercase; }

.download-grid, .resource-grid, .content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.resource-card:nth-child(4n+1) { background: var(--yellow); }
.resource-card:nth-child(4n+2) { background: var(--mint); }
.resource-card:nth-child(4n+3) { background: var(--blue); }
.resource-card:nth-child(4n) { background: var(--coral); }
.resource-card h3 { margin: 30px 0 10px; font-size: 1.25rem; line-height: 1; text-transform: uppercase; }
.resource-card p { margin: 0 0 18px; }
.resource-card .button, .resource-card .resource-status { margin-top: auto; align-self: flex-start; }

.resource-status {
  display: inline-flex;
  padding: 7px 9px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: var(--border); background: var(--white); box-shadow: var(--shadow-small); }
.faq-list summary { cursor: pointer; padding: 18px 20px; font-weight: 1000; text-transform: uppercase; }
.faq-list details[open] summary { border-bottom: var(--border); background: var(--yellow); }
.faq-answer { padding: 20px; }

.final-cta { padding: 90px 0; border-bottom: var(--border); background: var(--yellow); }

.final-cta-box {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 30px;
  padding: 38px;
  border: 5px solid var(--ink);
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--ink);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .88;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.final-cta-actions { display: grid; gap: 12px; }
.final-cta small { display: block; margin-top: 16px; font-weight: 750; }

.inner-hero {
  padding: 86px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: var(--border);
  background: var(--yellow);
}

.inner-hero h1 {
  max-width: 980px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .88;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.inner-hero .lede { max-width: 830px; margin: 0; font-size: 1.18rem; font-weight: 680; }

.page-section {
  padding: 76px max(18px, calc((100vw - var(--max)) / 2));
  border-bottom: var(--border);
}

.page-section-dark { background: var(--ink); color: var(--paper); }

.page-section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .95;
  text-transform: uppercase;
}

.page-section > p { max-width: 800px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.three-column { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.info-box {
  padding: 24px;
  border: var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.info-box.yellow { background: var(--yellow); }
.info-box.mint { background: var(--mint); }
.info-box.blue { background: var(--blue); }
.info-box.coral { background: var(--coral); }
.info-box h3 { margin: 0 0 12px; text-transform: uppercase; }

.timeline { display: grid; gap: 0; border: var(--border); box-shadow: var(--shadow); }

.timeline-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: var(--border);
  background: var(--white);
}

.timeline-step:last-child { border-bottom: 0; }

.timeline-index {
  display: grid;
  place-items: center;
  border-right: var(--border);
  background: var(--yellow);
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 1000;
}

.timeline-copy { padding: 22px; }
.timeline-copy h3 { margin: 0 0 6px; text-transform: uppercase; }

.privacy-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  border: var(--border);
  background: var(--yellow);
  box-shadow: var(--shadow-small);
  color: var(--ink);
}

.privacy-banner-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: var(--border);
  background: var(--coral);
  font-family: var(--mono);
  font-weight: 1000;
}

.privacy-banner strong { display: block; margin-bottom: 4px; text-transform: uppercase; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: calc(100vh - 120px);
  border-bottom: var(--border);
}

.tool-form-panel, .tool-output-panel { padding: 34px; }
.tool-form-panel { border-right: var(--border); background: var(--paper); }
.tool-output-panel { background: var(--ink); color: var(--paper); }

.tool-heading {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .9;
  text-transform: uppercase;
}

.tool-intro { margin: 0 0 22px; max-width: 680px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  font-family: var(--mono);
  font-size: .82rem;
}

.field textarea.code-editor { min-height: 360px; }
.form-help { margin: 0; color: var(--muted); font-size: .78rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.request-meter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 900;
}

.request-meter.is-over { background: var(--coral); }

.output-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.output-toolbar h2 { margin: 0; text-transform: uppercase; }
.output-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.output-status {
  display: inline-flex;
  padding: 7px 9px;
  border: 2px solid var(--paper);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.output-status.pending { color: var(--yellow); }
.output-status.success { color: var(--mint); }
.output-status.error { color: var(--coral); }
.output-summary { display: grid; gap: 10px; margin-bottom: 16px; }

.output-card {
  padding: 14px;
  border: 2px solid var(--paper);
  background: #1a1a20;
  color: var(--paper);
}

.output-card h3 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: .82rem;
  text-transform: uppercase;
}

.output-card p { margin: 0; }
.output-json { min-height: 520px; max-height: 760px; border: 3px solid var(--paper); background: #0d0d11; }

.output-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}

.output-table th, .output-table td {
  padding: 9px;
  border: 2px solid var(--paper);
  text-align: left;
  vertical-align: top;
}

.output-table th {
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  text-transform: uppercase;
}

.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }

.tab-button {
  padding: 8px 10px;
  border: 2px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tab-button[aria-selected="true"] { background: var(--yellow); color: var(--ink); }

.site-footer {
  padding: 58px max(18px, calc((100vw - var(--max)) / 2)) 24px;
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr 1fr;
  gap: 34px;
}

.footer-brand .brand-mark { color: var(--ink); }
.footer-positioning { max-width: 380px; color: #bcb7ae; }

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid a { color: var(--paper); }
.footer-cta .button { color: var(--ink); }
.footer-cta small { color: #bcb7ae; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 2px solid #3a3a42;
  color: #a9a39a;
  font-family: var(--mono);
  font-size: .72rem;
}

@media (max-width: 1080px) {
  .desktop-nav, .header-actions { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .mobile-nav { display: block; position: relative; }

  .mobile-nav summary {
    cursor: pointer;
    padding: 10px 12px;
    border: var(--border);
    background: var(--yellow);
    box-shadow: var(--shadow-small);
    font-family: var(--mono);
    font-weight: 1000;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker { display: none; }

  .mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 100;
    display: grid;
    width: 250px;
    border: var(--border);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .mobile-nav nav a {
    padding: 13px;
    border-bottom: 2px solid var(--ink);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-nav nav a:last-child { border-bottom: 0; background: var(--yellow); }

  .hero { grid-template-columns: 1fr; }
  .hero-copy {
    border-right: 0;
    border-bottom: var(--border);
    padding-inline: max(18px, calc((100vw - 900px) / 2));
  }
  .hero-visual { min-height: 680px; }
  .summary-band { grid-template-columns: repeat(2, 1fr); }
  .summary-card:nth-child(2) { border-right: 0; }
  .summary-card:nth-child(-n+2) { border-bottom: var(--border); }
  .failure-map { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: var(--border); }
  .action-card { grid-column: span 6; }
  .action-card.action-featured { grid-column: span 12; }
  .download-grid, .resource-grid, .content-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .announcement { display: block; text-align: center; }
  .announcement-links { display: none; }
  .section { padding: 70px 0; }

  .summary-band,
  .failure-map,
  .priority-grid,
  .classification-track,
  .process-grid,
  .trust-grid,
  .split-card,
  .two-column,
  .three-column,
  .demo-shell,
  .business-selector,
  .final-cta-box,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .summary-card:nth-child(2),
  .summary-card:last-child,
  .process-step,
  .process-step:nth-child(2),
  .classification,
  .split-card > div:first-child,
  .tool-form-panel {
    border-right: 0;
  }

  .summary-card:not(:last-child),
  .process-step:not(:last-child),
  .classification:not(:last-child),
  .split-card > div:first-child,
  .tool-form-panel {
    border-bottom: var(--border);
  }

  .action-card, .action-card.action-featured { grid-column: span 12; }
  .business-tabs { grid-template-columns: repeat(2, 1fr); }
  .final-cta-box { align-items: start; }
  .tool-output-panel { min-height: 760px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 590px) {
  .site-header { min-height: 68px; padding-inline: 12px; }
  .brand-copy { display: none; }
  .hero-copy { padding: 52px 18px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero-visual { min-height: 620px; padding-inline: 14px; }
  .proof-strip, .form-grid, .download-grid, .resource-grid, .content-grid, .business-tabs, .footer-grid { grid-template-columns: 1fr; }
  .section-heading, .inner-hero h1 { font-size: clamp(2.6rem, 14vw, 4.5rem); }
  .action-grid { display: block; }
  .action-card { margin-bottom: 18px; }
  .result-line { grid-template-columns: 1fr; }
  .tool-form-panel, .tool-output-panel { padding: 24px 16px; }
  .footer-bottom { display: grid; }
}

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