/* ==========================================================================
   ClearFrame — design tokens
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.woff2") format("woff2");
}

:root {
  /* brand */
  --primary: #4a6fa5;
  --primary-dark: #3c5c8a;
  --primary-tint: #eef2f8;
  --success: #2fa36b;
  --success-text: #258255;
  --success-bg-solid: #278658;
  --success-tint: #eaf6f0;
  --high: #d64541;
  --high-text: #c03e3a;
  --high-bg-solid: #d24440;
  --high-tint: #fbebea;
  --moderate: #e8873a;
  --moderate-text: #a25e28;
  --moderate-bg-solid: #ac642b;
  --moderate-tint: #fdf1e6;
  --low: #e4b93c;
  --low-text: #886f24;
  --low-bg-solid: #8d7325;
  --low-tint: #fbf6e3;

  /* neutrals */
  --ink: #1a1a1a;
  --muted: #707070;
  --muted-2: #70706b;
  --surface: #fafafa;
  --surface-2: #f4f5f7;
  --border: #ebebeb;
  --white: #ffffff;

  /* system */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 6px 20px rgba(26, 26, 26, 0.07);
  --shadow-lg: 0 20px 60px rgba(26, 26, 26, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 11 13'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
  --container: 1180px;
  --header-h: 68px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--primary); color: var(--white); }

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

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

p { color: var(--muted); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { scroll-margin-top: calc(var(--header-h) + 16px); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* focus states — visible everywhere, no outline suppression */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover { transform: none; }
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(180%) blur(14px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark { width: 26px; height: 16px; flex-shrink: 0; }
.brand-word-accent { color: var(--primary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.site-nav a { position: relative; padding: 4px 0; transition: color 0.15s var(--ease-out); }
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transition: right 0.25s var(--ease-out);
}
.site-nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-size: 19px;
  font-weight: 600;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 20px; width: 100%; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .header-cta .btn-primary.btn-sm { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.1vw, 48px);
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero-heading-tail { display: block; text-wrap: balance; }
.hero-copy .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note {
  font-size: 13.5px;
  color: var(--muted-2);
}

/* One illustrative claim, followed through to an evidence request and edit. */
.hero-descriptor {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-stage { min-width: 0; }
.review-demo {
  border: 1px solid #d6dfeb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: var(--primary-tint);
  color: var(--primary-dark);
}
.demo-header h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: -0.01em; }
.demo-header svg { flex-shrink: 0; }
.demo-example { font-size: 11.5px; font-weight: 500; }
.demo-steps { margin: 0; padding: 0; list-style: none; }
.demo-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
.demo-highlight { position: absolute; inset: 0; z-index: -1; background: var(--primary-tint); opacity: 0; pointer-events: none; }
.demo-number {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.demo-step-content { flex: 1; min-width: 0; }
.demo-step h3 { font-size: 12px; line-height: 1.4; letter-spacing: 0; font-weight: 600; color: var(--primary-dark); margin: 4px 0 8px; }
.demo-step-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-time { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.demo-quote { font-size: 25px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; color: var(--ink); margin-bottom: 5px; }
.demo-step-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 5px; line-height: 1.4; }
.demo-detail { font-size: 13px; line-height: 1.6; color: #5d6570; max-width: 43ch; }
.demo-detail strong { font-weight: 500; color: var(--ink); }
.demo-footer { position: relative; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.demo-footer p { font-size: 11.5px; }
.demo-progress { position: absolute; inset: 0 0 auto; display: flex; gap: 3px; height: 2px; overflow: hidden; }
.demo-progress span { flex: 1; background: var(--primary); transform-origin: left center; }
.demo-play { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; margin-left: auto; color: var(--primary-dark); font-size: 11.5px; font-weight: 600; transition: color 150ms ease; }
.demo-play[hidden] { display: none; }
.demo-play:hover { color: var(--ink); }
.demo-play:active { opacity: 0.75; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy .lede { font-size: 16px; }
  .demo-header, .demo-step, .demo-footer { padding-inline: 20px; }
}
@media (max-width: 760px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stage { width: 100%; max-width: 540px; }
  .hero-copy h1 { font-size: clamp(34px, 7vw, 44px); max-width: 16ch; }
  .hero-copy .lede { max-width: 48ch; }
}
@media (max-width: 390px) {
  .demo-header, .demo-step, .demo-footer { padding-inline: 16px; }
  .demo-step { gap: 12px; }
  .demo-header { gap: 8px; }
  .demo-header h2 { font-size: 14px; gap: 7px; }
  .demo-example { font-size: 10.5px; }
  .demo-quote { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-highlight { opacity: 0 !important; }
  .demo-progress span { transform: none !important; }
  .demo-play { display: none; }
}

.ts {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 3px 9px 3px 7px;
  border-radius: var(--radius-pill);
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
}
.chip-low { background: var(--low-tint); color: var(--low-text); }
.chip-low::before { background: var(--low); }
.chip-moderate { background: var(--moderate-tint); color: var(--moderate-text); }
.chip-moderate::before { background: var(--moderate); }
.chip-high { background: var(--high-tint); color: var(--high-text); }
.chip-high::before { background: var(--high); }


/* ==========================================================================
   Section shell / headings
   ========================================================================== */

.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-border-top { border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 14px;
}
.section-head p { font-size: 16.5px; line-height: 1.6; }
.section-head.center { margin-inline: auto; text-align: center; }

.reveal { opacity: 1; }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.55; }
.step-arrow {
  position: absolute;
  top: 34px; right: -14px;
  width: 24px; height: 24px;
  color: var(--border);
  z-index: 2;
}

@media (max-width: 940px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   What's at stake
   ========================================================================== */

.stake-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.stake-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.stake-ref {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.stake-text { font-size: 16px; line-height: 1.6; color: var(--ink); }
.stake-text a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(74, 111, 165, 0.35);
  text-underline-offset: 3px;
}
.stake-text a:hover { text-decoration-color: var(--primary); }
.stake-closing {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 640px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.stake-closing strong { color: var(--primary); }

@media (max-width: 640px) {
  .stake-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   Sample report
   ========================================================================== */

.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}
.sample-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.sample-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
/* Only the traffic-light dots — must not match .filename, which is also a span. */
.sample-preview-bar span:not(.filename) {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--border);
}
.sample-preview-bar .filename {
  margin-left: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
/* Desktop: a live PDF embed, injected by JS so narrow viewports never fetch it.
   Everywhere else: a rendered PNG/WebP of page 2, which mobile browsers can
   actually display (they refuse to render PDFs in an object/iframe). */
.sample-embed { width: 100%; aspect-ratio: 210 / 250; border: 0; display: block; background: var(--surface); }

.sample-preview-link {
  display: block;
  position: relative;
  background: var(--surface);
}
.sample-preview-link img {
  width: 100%;
  height: auto;
  display: block;
}
.sample-preview-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(26, 26, 26, 0.82);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
@supports (backdrop-filter: blur(1px)) {
  .sample-preview-hint { backdrop-filter: blur(6px); }
}
.sample-preview-hint::after {
  content: "";
  width: 12px; height: 12px;
  flex-shrink: 0;
  background: currentColor;
  /* external-link glyph, drawn as a mask so it inherits the label colour */
  -webkit-mask: var(--icon-external) center / contain no-repeat;
  mask: var(--icon-external) center / contain no-repeat;
}
/* The hint is a touch affordance; on desktop the embed replaces it anyway. */
@media (hover: hover) and (min-width: 941px) {
  .sample-preview-hint { display: none; }
}
.sample-caption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.sample-actions { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.finding-cards { display: flex; flex-direction: column; gap: 16px; }
.finding-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.finding-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.finding-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.finding-body { padding: 16px; }
.finding-quote {
  background: var(--primary-tint);
  border-left: 3px solid var(--primary);
  padding: 10px 13px;
  border-radius: 5px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 10px;
}
.finding-issue { font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }
.finding-cite {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 9px;
}
.finding-cite strong { color: var(--ink); font-weight: 600; }

@media (max-width: 940px) {
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Why it holds up
   ========================================================================== */

.holds-up-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.holds-up-card {
  padding: 6px 0;
}
.holds-up-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}
.holds-up-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.holds-up-card p { font-size: 14.5px; line-height: 1.6; }

@media (max-width: 860px) {
  .holds-up-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   Not legal advice strip
   ========================================================================== */

.legal-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 0;
}
.legal-strip .container {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 880px;
}
.legal-strip svg { flex-shrink: 0; margin-top: 2px; color: var(--muted-2); }
.legal-strip p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.legal-strip strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-section { text-align: center; }
.cta-section .section-head { margin-inline: auto; }
.cta-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.cta-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
}
.cta-form input[type="email"]::placeholder { color: var(--muted-2); }
.cta-form input[type="email"]:focus { border-color: var(--primary); }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--muted-2); }

@media (max-width: 520px) {
  .cta-form { flex-direction: column; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; }
.footer-brand .brand-mark { width: 24px; height: 15px; }
.footer-desc { font-size: 13.5px; color: var(--muted); max-width: 340px; margin-top: 10px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); text-decoration: underline; text-underline-offset: 2px; }
.footer-fine { font-size: 12px; color: var(--muted-2); margin-top: 10px; max-width: 640px; }

@media (max-width: 640px) {
  .footer-top { flex-direction: column; }
}

/* Evidence-led pilot refresh. Existing ClearFrame type, mark and palette retained. */
.finding-body h3 { margin-bottom:14px; line-height:1.3; }
.finding-body > p + p { margin-top:12px; }
.cta-form { flex-wrap:wrap; }
.cta-form label { flex-basis:100%; text-align:left; font-weight:600; }
::selection { background:var(--primary-tint); color:var(--ink); }
input { caret-color:var(--primary-dark); }
a { text-underline-offset:3px; }
