:root {
  color-scheme: light;
  --ink: #111820;
  --ink-2: #283746;
  --muted: #657384;
  --quiet: #eef2f5;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d7dee4;
  --night: #071017;
  --night-2: #0d1b24;
  --teal: #168c80;
  --teal-2: #63d4c5;
  --blue: #2c6f9e;
  --amber: #b87a28;
  --red: #b94d49;
  --green: #4f8e58;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(17, 24, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: rgba(7, 16, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark span {
  display: block;
  border-radius: 2px;
  background: var(--teal-2);
}

.brand-mark span:nth-child(1) {
  height: 64%;
  align-self: end;
}

.brand-mark span:nth-child(2) {
  height: 100%;
}

.brand-mark span:nth-child(3) {
  height: 42%;
  align-self: end;
  background: #f0b253;
}

.brand-text {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  max-width: 330px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 28px);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("assets/revenue-recovery-command-centre.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 23, 0.92), rgba(7, 16, 23, 0.8) 42%, rgba(7, 16, 23, 0.93)),
    linear-gradient(90deg, rgba(7, 16, 23, 0.96), rgba(7, 16, 23, 0.58), rgba(7, 16, 23, 0.96));
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 160px;
  background: linear-gradient(0deg, var(--paper), rgba(247, 248, 246, 0));
  content: "";
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 1360px;
  min-height: 96vh;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 54px);
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  padding: 132px clamp(20px, 5vw, 72px) 96px;
}

.hero-copy {
  display: grid;
  max-width: 1040px;
  justify-items: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero .eyebrow {
  color: var(--teal-2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 7.4vw, 7.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 3.4vw, 4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 11.5em;
  overflow-wrap: normal;
  text-wrap: balance;
}

h3 {
  font-size: 1.14rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.trust-strip span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  padding: 14px 20px;
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 18px 46px rgba(22, 140, 128, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #11786d;
}

.button-ghost {
  padding: 14px 18px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
}

.briefing-panel {
  position: relative;
  width: min(100%, 940px);
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 16, 23, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.briefing-panel::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  pointer-events: none;
}

.panel-topline,
.briefing-number,
.signal-board,
.pipeline {
  position: relative;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-topline strong {
  color: var(--teal-2);
}

.briefing-number {
  text-align: center;
  padding: 30px 20px 26px;
}

.briefing-number span {
  display: block;
  font-size: clamp(3.25rem, 5.6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.9;
}

.briefing-number small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-board div {
  min-height: 112px;
  padding: 17px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-board div:last-child {
  border-right: 0;
}

.signal-board span {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
}

.signal-board small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.pipeline span {
  position: relative;
  display: block;
  height: 72px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.pipeline span::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--fill, 62%);
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  content: "";
}

.pipeline span:nth-child(2)::after {
  --fill: 44%;
  background: linear-gradient(180deg, #f0b253, var(--amber));
}

.pipeline span:nth-child(3)::after {
  --fill: 78%;
  background: linear-gradient(180deg, #75b87d, var(--green));
}

.pipeline span:nth-child(4)::after {
  --fill: 31%;
  background: linear-gradient(180deg, #d67470, var(--red));
}

.triage-band {
  position: relative;
  z-index: 3;
  display: grid;
  max-width: var(--max);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -54px auto 0;
}

.triage-band article {
  position: relative;
  display: grid;
  min-height: 230px;
  align-content: start;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 252, 0.96)),
    var(--white);
  box-shadow: 0 18px 48px rgba(17, 24, 32, 0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.triage-band article::after {
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  content: "";
}

.triage-band article:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 140, 128, 0.28);
  box-shadow: 0 24px 62px rgba(17, 24, 32, 0.14);
}

.triage-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.triage-card-top > span:first-child {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.triage-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(22, 140, 128, 0.18);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(22, 140, 128, 0.08);
}

.triage-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.triage-band strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.06rem;
  line-height: 1.15;
}

.triage-band p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.confidence-band {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  margin: 18px auto 0;
}

.confidence-copy,
.confidence-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(17, 24, 32, 0.08);
}

.confidence-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(99, 212, 197, 0.18), rgba(255, 255, 255, 0) 48%),
    var(--night);
}

.confidence-copy span,
.confidence-item strong {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.confidence-copy span {
  color: var(--teal-2);
}

.confidence-copy strong {
  max-width: 13em;
  font-size: clamp(1.65rem, 2.35vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
}

.confidence-copy p {
  max-width: 540px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

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

.confidence-item {
  display: grid;
  min-height: 190px;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.confidence-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(22, 140, 128, 0.18);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(22, 140, 128, 0.08);
}

.confidence-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.confidence-item small {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.section {
  padding: clamp(78px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.split-section,
.section-heading,
.calculator-shell,
.audit-grid,
.sprint-board,
.contact-section {
  max-width: var(--max);
  margin: 0 auto;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.86fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.section-copy {
  max-width: 760px;
}

.section-copy h2,
.audit-copy h2,
.contact-copy h2 {
  max-width: 10.8em;
}

.section-copy p,
.calculator-story p,
.audit-copy p,
.contact-copy p {
  max-width: 690px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.leak-console {
  overflow: hidden;
  border: 1px solid #cbd5dc;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-header strong {
  color: var(--white);
}

.leak-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.leak-button {
  min-height: 76px;
  padding: 14px 10px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.leak-button:last-child {
  border-right: 0;
}

.leak-button:hover,
.leak-button:focus-visible,
.leak-button.is-active {
  color: var(--white);
  background: rgba(22, 140, 128, 0.28);
}

.leak-output {
  padding: 26px;
  color: var(--white);
}

.leak-output p {
  min-height: 80px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.leak-output dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.leak-output div {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  background: rgba(255, 255, 255, 0.05);
}

.leak-output dt,
.leak-output dd {
  margin: 0;
  padding: 14px;
}

.leak-output dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leak-output dd {
  color: var(--white);
  font-weight: 800;
}

.calculator-section {
  background: var(--night);
  color: var(--white);
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.7fr) minmax(320px, 0.64fr);
  gap: 14px;
  align-items: stretch;
}

.calculator-story,
.calculator,
.calculator-result {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--night-2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.calculator-story {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: clamp(26px, 5vw, 44px);
}

.calculator-story h2 {
  max-width: 9.8em;
  font-size: clamp(2rem, 2.35vw, 3.15rem);
  line-height: 1.02;
}

.calculator-story .section-kicker {
  color: var(--teal-2);
}

.calculator-story p {
  color: rgba(255, 255, 255, 0.68);
}

.calculator {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 36px);
}

.calculator label {
  display: grid;
  gap: 11px;
}

.calculator label span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
}

.calculator output {
  color: var(--teal-2);
  font-size: 1.05rem;
  font-weight: 900;
}

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

.calculator-result {
  container-type: inline-size;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 36px);
}

.calculator-result span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-result strong {
  display: block;
  max-width: 100%;
  margin: 18px 0 16px;
  color: var(--white);
  font-size: 2.9rem;
  font-size: clamp(2.3rem, 11cqw, 3.15rem);
  font-weight: 900;
  line-height: 0.96;
  white-space: nowrap;
}

.calculator-result p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.control-section {
  background: var(--white);
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.control-flow {
  display: grid;
  max-width: var(--max);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.control-flow article {
  position: relative;
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 32, 0.06);
}

.control-flow article::after {
  display: none;
}

.control-flow article:last-child::after {
  display: none;
}

.control-flow span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(22, 140, 128, 0.08);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.control-flow h3 {
  margin: 64px 0 14px;
}

.control-flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.audit-section {
  background: #e9eef0;
}

.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 0.88fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}

.audit-copy {
  max-width: 720px;
}

.audit-dossier {
  display: grid;
  gap: 14px;
}

.dossier-row {
  display: grid;
  grid-template-columns: 0.32fr 0.56fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 32, 0.05);
}

.dossier-row span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dossier-row strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.dossier-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sprint-section {
  background: var(--paper);
}

.sprint-board {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 14px;
}

.sprint-column {
  display: grid;
  min-height: 250px;
  align-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 32, 0.06);
}

.sprint-column span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sprint-column p {
  margin-bottom: 0;
  color: var(--ink-2);
  font-size: 1.08rem;
  font-weight: 700;
}

.sprint-feature {
  color: var(--white);
  background: linear-gradient(135deg, var(--night), #143d44);
}

.sprint-feature span {
  color: var(--teal-2);
}

.sprint-feature p {
  color: rgba(255, 255, 255, 0.86);
}

.proof-section {
  background: var(--white);
}

.proof-grid {
  display: grid;
  max-width: var(--max);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 auto;
}

.case-study-card,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(17, 24, 32, 0.08);
}

.case-study-card {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(22, 140, 128, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--white);
}

.case-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-topline span,
.testimonial-card span,
.case-path span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-topline strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(22, 140, 128, 0.1);
  font-size: 0.82rem;
}

.case-study-card h3 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 3.35rem);
  line-height: 1;
}

.case-study-card > p {
  max-width: 820px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.04rem;
}

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

.case-metrics div {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.case-metrics strong,
.case-metrics span {
  display: block;
}

.case-metrics strong {
  color: var(--ink);
  font-size: clamp(2.05rem, 3.2vw, 3.2rem);
  line-height: 0.95;
}

.case-metrics span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.case-path div {
  padding: 18px;
  background: var(--white);
}

.case-path p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-weight: 700;
}

.testimonial-stack {
  display: grid;
  gap: 14px;
}

.testimonial-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #f8fbfb;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.42;
}

.testimonial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.testimonial-feature {
  color: var(--white);
  background: linear-gradient(135deg, var(--night), #143d44);
}

.testimonial-feature span {
  color: var(--teal-2);
}

.testimonial-feature blockquote {
  color: var(--white);
  font-size: 1.16rem;
}

.testimonial-feature p {
  color: rgba(255, 255, 255, 0.64);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.7fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.contact-copy {
  max-width: 720px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 22px 70px rgba(17, 24, 32, 0.1);
}

.contact-form label {
  display: grid;
  gap: 9px;
}

.contact-form .consent-field {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid #d9e3e6;
  border-radius: 7px;
  background: #f7fbfb;
}

.contact-form .consent-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.contact-form label span {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
}

.contact-form .consent-field span {
  color: var(--ink-2);
  line-height: 1.42;
}

.contact-form .consent-field a,
.legal-document a,
.footer-links a {
  color: var(--teal);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #c6d0d7;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 140, 128, 0.18);
}

.contact-form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.66);
  background: var(--night);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  padding-top: 4px;
}

.legal-main {
  padding: 124px clamp(18px, 5vw, 72px) 72px;
  background: var(--paper);
}

.legal-hero,
.legal-document {
  max-width: 980px;
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(22, 140, 128, 0.09);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 850px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.96;
}

.legal-hero p {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.legal-document {
  display: grid;
  gap: 16px;
}

.legal-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 42px rgba(17, 24, 32, 0.07);
}

.legal-card h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.legal-card h3 {
  margin: 20px 0 9px;
}

.legal-card p,
.legal-card li {
  color: var(--ink-2);
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.legal-summary div {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.legal-summary strong,
.legal-summary span {
  display: block;
}

.legal-summary strong {
  color: var(--ink);
  font-size: 1.03rem;
}

.legal-summary span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-note {
  border-color: rgba(184, 122, 40, 0.36);
  background: #fff8ec;
}

@media (max-width: 1080px) {
  .site-header {
    position: absolute;
  }

  .hero-layout,
  .split-section,
  .calculator-shell,
  .audit-grid,
  .confidence-band,
  .proof-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
    padding-top: 132px;
  }

  .briefing-panel {
    max-width: 680px;
    align-self: auto;
  }

  .triage-band,
  .confidence-items,
  .control-flow,
  .sprint-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-flow article:nth-child(2)::after {
    display: none;
  }

  .calculator-result {
    min-height: 250px;
  }

  .dossier-row {
    grid-template-columns: 0.38fr 0.62fr;
  }

  .dossier-row p {
    grid-column: 1 / -1;
  }

  .sprint-feature {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 15px 16px;
  }

  .brand small,
  .nav-links {
    display: none;
  }

  .brand strong {
    max-width: 235px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    background-position: 61% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 16, 23, 0.38), rgba(7, 16, 23, 0.94) 48%, rgba(7, 16, 23, 0.99)),
      linear-gradient(90deg, rgba(7, 16, 23, 0.88), rgba(7, 16, 23, 0.2));
  }

  .hero-layout {
    padding: 112px 18px 78px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.1rem);
    line-height: 1.02;
  }

  .calculator-story h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .briefing-number span {
    font-size: clamp(2.8rem, 15vw, 4rem);
  }

  .signal-board,
  .triage-band,
  .confidence-items,
  .legal-summary,
  .leak-buttons,
  .control-flow,
  .sprint-board,
  .case-metrics,
  .case-path {
    grid-template-columns: 1fr;
  }

  .signal-board div,
  .leak-button {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .signal-board div:last-child,
  .leak-button:last-child {
    border-bottom: 0;
  }

  .triage-band {
    margin: -36px 18px 0;
  }

  .confidence-band {
    width: calc(100% - 36px);
    margin-top: 14px;
  }

  .confidence-copy,
  .confidence-item {
    min-height: 0;
  }

  .section {
    padding: 62px 18px;
  }

  .leak-output div {
    grid-template-columns: 1fr;
  }

  .leak-output p {
    min-height: 0;
  }

  .control-flow article {
    min-height: 240px;
  }

  .control-flow article::after {
    display: none;
  }

  .control-flow h3 {
    margin-top: 52px;
  }

  .dossier-row {
    grid-template-columns: 1fr;
  }

  .sprint-column {
    min-height: 220px;
  }

  .sprint-column span {
    margin-bottom: 54px;
  }

  .site-footer {
    display: grid;
  }
}
