:root {
  --bg: #111216;
  --panel: #15161a;
  --panel-2: #1a1c20;
  --panel-3: #202226;
  --ink: #f4f4ee;
  --muted: #9ea09a;
  --quiet: #6d706c;
  --line: #2b2e33;
  --line-strong: #3a3e45;
  --lime: #d6ff5c;
  --lime-soft: rgba(214, 255, 92, 0.14);
  --amber: #f3bf57;
  --red: #e35f45;
  --cyan: #76d7d1;
  --receipt: #f2f0e7;
  --receipt-ink: #191a1f;
  --radius: 8px;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "IBM Plex Sans", "Aptos", "Helvetica Neue", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.5;
  font-synthesis-weight: none;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.07), transparent 30%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

a {
  color: var(--lime);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

code {
  padding: 0.08rem 0.28rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #101116;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.92em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.8rem;
  background: var(--lime);
  color: #111;
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

.audit-bench,
.console-rule,
.site-header,
.calibration-strip,
.site-footer,
main {
  width: min(1220px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.audit-bench {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-bench i,
.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0.35rem;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(214, 255, 92, 0.75);
}

.console-rule {
  margin-top: 22px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.console-rule::after {
  display: inline-block;
  width: min(58vw, 760px);
  margin-left: 0.7rem;
  border-top: 1px dashed var(--line-strong);
  content: "";
  transform: translateY(-0.25rem);
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 14px;
  padding: 16px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px 10px 0 0;
  background: rgba(21, 22, 26, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--lime);
  background: #111216;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.05rem;
}

.site-nav a {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: lowercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--lime);
}

.calibration-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 10px 22px 16px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  border-radius: 0 0 10px 10px;
  background: rgba(21, 22, 26, 0.92);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calibration-strip span {
  max-width: 100%;
  padding: 0.24rem 0.52rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  margin-top: 0;
  margin-bottom: 64px;
  padding: 0 0 24px;
}

.hero,
.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  align-items: stretch;
  padding: 24px 30px 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.035) 1px, transparent 1px),
    var(--panel);
  background-size: 32px 32px;
}

.tool-hero {
  grid-template-columns: minmax(300px, 0.68fr) minmax(480px, 1.32fr);
  border-top: 1px solid var(--line-strong);
  border-radius: 10px;
}

.hero > *,
.tool-hero > *,
.tool-surface > * {
  min-width: 0;
}

.hero-copy,
.tool-intro,
.content-page {
  position: relative;
  overflow: hidden;
  padding: 34px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
}

.tool-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.035) 1px, transparent 1px),
    rgba(15, 16, 20, 0.72);
  background-size: 32px 32px;
}

.content-page {
  margin-top: 22px;
  border-color: var(--line-strong);
  background: var(--panel);
}

.hero-copy::after,
.tool-intro::after {
  position: absolute;
  right: 12px;
  bottom: -8px;
  color: rgba(214, 255, 92, 0.04);
  content: "v5";
  font-family: var(--mono);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
}

.eyebrow,
.section-kicker {
  display: block;
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "-- ";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 3.25rem;
}

.tool-intro h1,
.content-page h1 {
  font-size: 3.65rem;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.lead {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.microcopy,
.field-help,
.site-footer p {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stats,
.intent-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.intent-stack {
  display: grid;
}

.hero-stats span,
.intent-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.42rem 0.58rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-stats strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 1.02rem;
}

.intent-stack span::after {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  box-shadow: 0 0 16px rgba(214, 255, 92, 0.55);
}

.ledger-panel,
.tool-surface,
.spec-card,
.tool-card,
.content-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 18, 22, 0.72);
  box-shadow: var(--shadow);
}

.ledger-panel {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  align-self: center;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #14151a;
  background-size: 26px 26px;
}

.ledger-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dial-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.dial-readout > div {
  display: grid;
  gap: 0.55rem;
  min-height: 96px;
  padding: 0.9rem 0.95rem;
}

.dial-readout > div + div {
  border-left: 1px solid var(--line);
}

.dial-readout span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dial-readout strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 0.95;
}

.dial-readout strong span {
  color: var(--quiet);
  font-size: 1.1rem;
}

.dial-readout > div:nth-child(2) strong {
  color: var(--lime);
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.ledger-row strong {
  color: var(--muted);
}

.terminal-lines {
  display: none;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 30px 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--panel);
}

.tool-card {
  position: relative;
  display: grid;
  min-height: 206px;
  align-content: start;
  overflow: hidden;
  padding: 24px 20px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 255, 92, 0.52);
  background: #181a1f;
}

.tool-card h2,
.tool-card p,
.tool-card .eyebrow,
.tool-card .card-action,
.tool-card .card-number,
.tool-card .tool-card-code {
  position: relative;
  z-index: 1;
}

.tool-card h2 {
  max-width: 260px;
  margin-top: 1.35rem;
  font-size: 1.25rem;
}

.tool-card p {
  max-width: 290px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-number {
  display: block;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1;
}

.tool-card-code {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-surface {
  position: relative;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.03) 1px, transparent 1px),
    #14151a;
  background-size: 28px 28px;
}

.tool-surface-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 14px;
  padding: 0.82rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #101116;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-surface-head span:last-child {
  color: var(--lime);
}

.counter-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: 16px;
}

.field-block {
  display: grid;
  gap: 0.48rem;
}

label,
.toggle-row {
  color: var(--ink);
  font-weight: 850;
}

textarea,
input[type="number"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #101116;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 300px;
  resize: vertical;
  padding: 1rem 1rem 1rem 3.4rem;
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.08) 0 2.35rem, transparent 2.35rem),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(255, 255, 255, 0.045) 30px 31px),
    #101116;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.58;
}

input[type="number"],
input[type="text"] {
  min-height: 44px;
  padding: 0.62rem 0.72rem;
  font-family: var(--mono);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--lime);
}

.result-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(214, 255, 92, 0.32);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.04) 1px, transparent 1px),
    #101116;
  background-size: 24px 24px;
  color: var(--ink);
}

.counter-surface .result-panel::after {
  display: block;
  height: 20px;
  border: 1px solid rgba(214, 255, 92, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--lime) 0 38%, rgba(214, 255, 92, 0.1) 38%),
    repeating-linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.12) 10% 10.5%);
  content: "";
}

.calculator-surface .result-panel {
  color: var(--receipt-ink);
  background:
    radial-gradient(circle at 0 14px, transparent 0 8px, var(--receipt) 8.5px),
    radial-gradient(circle at 100% 14px, transparent 0 8px, var(--receipt) 8.5px),
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(25, 26, 31, 0.09) 28px 29px),
    var(--receipt);
  background-size: 16px 28px, 16px 28px, 100% 100%, 100% 100%;
  background-position: left top, right top, 0 0, 0 0;
}

.notice {
  padding: 0.74rem 0.82rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: #17150f;
  font-size: 0.9rem;
  font-weight: 850;
}

.notice-estimate {
  border-left: 5px solid var(--red);
  background: var(--amber);
}

.notice-ok {
  background: var(--lime);
}

.notice-loading {
  background: var(--cyan);
}

.result-main {
  display: grid;
  gap: 0.25rem;
}

.result-main span,
.metric-grid span,
.spec-card span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-surface .result-main span,
.calculator-surface .metric-grid span {
  color: #5e5c55;
}

.result-main strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.calculator-surface .result-main strong {
  color: var(--receipt-ink);
}

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

.metric-grid > div,
.spec-card > div {
  display: grid;
  gap: 0.28rem;
  min-height: 76px;
  padding: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.calculator-surface .metric-grid > div {
  border-color: rgba(25, 26, 31, 0.18);
  background: rgba(25, 26, 31, 0.035);
}

.metric-grid strong,
.spec-card strong {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 900;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0.62rem 0.86rem;
  background: #14151a;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 255, 92, 0.52);
  background: #191b20;
}

.button-primary {
  border-color: var(--lime);
  background: var(--lime);
  color: #111216;
}

.button-link {
  color: var(--lime);
}

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

.calculator-surface {
  display: grid;
  gap: 16px;
}

.toggle-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.58rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #101116;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--lime);
}

.advanced-box {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #111216;
}

.advanced-box summary {
  cursor: pointer;
  padding: 0.9rem;
  color: var(--lime);
  font-family: var(--mono);
  font-weight: 900;
  text-transform: uppercase;
}

.advanced-box .calc-grid {
  padding: 0 0.9rem 0.9rem;
}

.content-band {
  margin-top: 24px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.026) 1px, transparent 1px),
    var(--panel);
  background-size: 32px 32px;
}

.split-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.trust-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.trust-grid > div,
.method-grid > article,
.callout {
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.callout {
  border-left: 5px solid var(--red);
  background: rgba(227, 95, 69, 0.08);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #111216;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.84rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
}

thead th {
  background: #101116;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(214, 255, 92, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(214, 255, 92, 0.04) 1px, transparent 1px),
    #14151a;
  background-size: 28px 28px;
}

.spec-card strong {
  color: var(--lime);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-grid span {
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #111216;
  color: var(--muted);
  font-weight: 850;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.source-list {
  margin: 0;
  padding-left: 1.1rem;
}

.content-page h2 {
  margin-top: 2rem;
}

.error-text {
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .tool-intro,
  .ledger-panel,
  .tool-surface,
  .tool-card,
  .content-band {
    animation: rise-in 360ms ease both;
  }

  .tool-card:nth-child(2),
  .content-band:nth-of-type(2) {
    animation-delay: 70ms;
  }

  .tool-card:nth-child(3),
  .content-band:nth-of-type(3) {
    animation-delay: 120ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.35rem;
  }

  .tool-intro h1,
  .content-page h1 {
    font-size: 3rem;
  }

  .hero,
  .tool-hero,
  .counter-surface,
  .tool-card-grid,
  .split-band,
  .trust-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: auto;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .audit-bench,
  .console-rule,
  .site-header,
  .calibration-strip,
  .site-footer,
  main {
    width: min(100% - 20px, 1180px);
  }

  .audit-bench {
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 16px;
  }

  .console-rule::after {
    width: 42vw;
  }

  .site-header,
  .calibration-strip {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand {
    width: 100%;
  }

  .site-nav {
    width: 100%;
    gap: 0.55rem;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 0.55rem);
    padding: 0.58rem 0.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    text-align: center;
  }

  .calibration-strip {
    display: none;
  }

  .hero,
  .tool-hero,
  .tool-card-grid {
    padding: 14px;
  }

  .hero-copy,
  .tool-intro,
  .content-page,
  .content-band {
    padding: 18px;
  }

  .tool-surface {
    padding: 14px;
  }

  .tool-surface-head {
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem 0.72rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  .tool-intro h1,
  .content-page h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1rem;
  }

  .dial-readout,
  .calc-grid,
  .metric-grid,
  .spec-card {
    grid-template-columns: 1fr;
  }

  .dial-readout > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .dial-readout strong,
  .result-main strong {
    font-size: 2.55rem;
  }

  textarea {
    min-height: 140px;
  }

  input[type="number"],
  input[type="text"],
  .toggle-row {
    min-height: 40px;
  }

  .button {
    width: 100%;
  }

.hero-stats,
.intent-stack {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats span,
  .intent-stack span {
    width: 100%;
  }

  .tool-hero {
    display: flex;
    flex-direction: column;
  }

  .tool-hero .tool-surface {
    order: -1;
  }

  .calculator-surface {
    gap: 12px;
  }

  .calculator-surface > .calc-grid {
    display: contents;
  }

  .calculator-surface .result-panel {
    order: 2;
  }

  .calculator-surface .toggle-row {
    order: 3;
  }

  .calculator-surface .slider-row {
    order: 4;
  }

  .calculator-surface .advanced-box {
    order: 5;
  }

  .calculator-surface .error-text {
    order: 6;
  }
}

.hero-home .hero-stats {
  display: none;
}
