/* ==========================================================================
   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); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.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; }
}
@media (max-width: 640px) {
  .header-cta .btn-primary.btn-sm { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   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.4vw, 50px);
  margin-bottom: 20px;
}
.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);
}

/* ---- scan demo stage ---- */

.hero-stage {
  position: relative;
}
.scan-demo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 168px 1fr;
  grid-template-rows: auto auto;
  gap: 20px 22px;
}

.scan-frame-col { grid-row: 1 / 3; }

.scan-frame {
  position: relative;
  width: 168px;
  aspect-ratio: 9 / 16;
  background: linear-gradient(165deg, #f6f8fb, #eef1f6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.frame-badge {
  position: absolute;
  top: 10px; left: 10px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.frame-badge::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 3px;
  background: var(--primary);
  opacity: 0.85;
}
.silhouette {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
}
.sil-head {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #d7deea;
  margin: 0 auto 8px;
}
.sil-body {
  width: 78px; height: 64px;
  border-radius: 30px 30px 8px 8px;
  background: #d7deea;
}
.onscreen-super {
  position: absolute;
  left: 12px; right: 12px; bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.super-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.super-line-1 { width: 82%; }
.super-line-2 { width: 55%; }
.scanline {
  position: absolute;
  top: 0; bottom: 0;
  left: -18%;
  width: 18%;
  background: linear-gradient(
    90deg,
    rgba(74, 111, 165, 0) 0%,
    rgba(74, 111, 165, 0.16) 45%,
    rgba(74, 111, 165, 0.4) 50%,
    rgba(74, 111, 165, 0.16) 55%,
    rgba(74, 111, 165, 0) 100%
  );
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 12px;
  padding: 0 2px;
}
.waveform span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.55;
  animation: wf-pulse 1.1s ease-in-out infinite;
}

.scan-track-col { grid-column: 2; grid-row: 1; align-self: end; }
.scan-track-wrap { display: flex; flex-direction: column; gap: 6px; }
.scan-track {
  position: relative;
  height: 14px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  overflow: visible;
}
.scan-playhead {
  position: absolute;
  top: -3px;
  left: 0%;
  width: 2px;
  height: 20px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
}
.scan-seg {
  position: absolute;
  top: 0; height: 100%;
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left center;
}
.scan-seg-1 { left: 13%; width: 5%; background: var(--low); }
.scan-seg-2 { left: 33%; width: 6%; background: var(--moderate); }
.scan-seg-3 { left: 63%; width: 6%; background: var(--moderate); }
.scan-seg-4 { left: 88%; width: 6%; background: var(--high); }
.scan-track-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.scan-cards-col { grid-column: 2; grid-row: 2; }
.scan-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  background: var(--white);
  opacity: 0;
  transform: translateY(10px);
  box-shadow: var(--shadow-sm);
}
.scan-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.scan-card-quote {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 3px;
}
.scan-card-clause {
  font-size: 11.5px;
  color: var(--muted);
}
.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); }

.scan-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--success-tint);
  border: 1px solid #d5ecdf;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  opacity: 0;
  transform: translateY(6px);
}
.scan-summary-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 480px; }
}
@media (max-width: 480px) {
  .scan-demo { grid-template-columns: 128px 1fr; padding: 16px; gap: 14px 16px; }
  .scan-frame { width: 128px; }
}

/* ---------- animation timeline (11.5s loop) ---------- */

.scan-activity { opacity: 0; transition: none; }

@keyframes activity-visibility {
  0%, 3% { opacity: 0; }
  4.3% { opacity: 1; }
  60.9% { opacity: 1; }
  64% { opacity: 0; }
  93.9% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes scanline-sweep {
  0%, 3% { transform: translateX(0); }
  60.9% { transform: translateX(660%); }
  100% { transform: translateX(660%); }
}
@keyframes wf-pulse {
  0%, 100% { height: 20%; opacity: 0.35; }
  50% { height: 100%; opacity: 0.7; }
}
@keyframes playhead-move {
  0%, 3% { opacity: 0; left: 0%; }
  4.3% { opacity: 1; left: 0%; }
  13% { left: 15%; }
  26.1% { left: 35%; }
  45.2% { left: 65%; }
  60.9% { left: 90%; opacity: 1; }
  64% { opacity: 0; left: 90%; }
  93.9% { opacity: 0; }
  100% { opacity: 0; left: 0%; }
}
@keyframes seg-pop-1 {
  0%, 13% { opacity: 0; transform: scaleX(0.4); }
  15.7% { opacity: 1; transform: scaleX(1); }
  93.9% { opacity: 1; transform: scaleX(1); }
  97.4%, 100% { opacity: 0; transform: scaleX(0.4); }
}
@keyframes seg-pop-2 {
  0%, 26.1% { opacity: 0; transform: scaleX(0.4); }
  28.7% { opacity: 1; transform: scaleX(1); }
  93.9% { opacity: 1; transform: scaleX(1); }
  97.4%, 100% { opacity: 0; transform: scaleX(0.4); }
}
@keyframes seg-pop-3 {
  0%, 45.2% { opacity: 0; transform: scaleX(0.4); }
  47.8% { opacity: 1; transform: scaleX(1); }
  93.9% { opacity: 1; transform: scaleX(1); }
  97.4%, 100% { opacity: 0; transform: scaleX(0.4); }
}
@keyframes seg-pop-4 {
  0%, 60.9% { opacity: 0; transform: scaleX(0.4); }
  63.5% { opacity: 1; transform: scaleX(1); }
  93.9% { opacity: 1; transform: scaleX(1); }
  97.4%, 100% { opacity: 0; transform: scaleX(0.4); }
}
@keyframes card-in-1 {
  0%, 13% { opacity: 0; transform: translateY(10px); }
  17.4% { opacity: 1; transform: translateY(0); }
  93.9% { opacity: 1; transform: translateY(0); }
  97.4%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes card-in-2 {
  0%, 26.1% { opacity: 0; transform: translateY(10px); }
  30.4% { opacity: 1; transform: translateY(0); }
  93.9% { opacity: 1; transform: translateY(0); }
  97.4%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes card-in-3 {
  0%, 45.2% { opacity: 0; transform: translateY(10px); }
  49.6% { opacity: 1; transform: translateY(0); }
  93.9% { opacity: 1; transform: translateY(0); }
  97.4%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes card-in-4 {
  0%, 60.9% { opacity: 0; transform: translateY(10px); }
  65.2% { opacity: 1; transform: translateY(0); }
  93.9% { opacity: 1; transform: translateY(0); }
  97.4%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes summary-in {
  0%, 69.6% { opacity: 0; transform: translateY(6px); }
  74% { opacity: 1; transform: translateY(0); }
  93.9% { opacity: 1; transform: translateY(0); }
  97.4%, 100% { opacity: 0; transform: translateY(6px); }
}

.js-animate .scan-activity { animation: activity-visibility 11.5s var(--ease-out-soft) infinite; }
.js-animate .scanline { animation: scanline-sweep 11.5s linear infinite; }
.js-animate .scan-playhead { animation: playhead-move 11.5s var(--ease-out-soft) infinite; }
.js-animate .scan-seg-1 { animation: seg-pop-1 11.5s var(--ease-out) infinite; }
.js-animate .scan-seg-2 { animation: seg-pop-2 11.5s var(--ease-out) infinite; }
.js-animate .scan-seg-3 { animation: seg-pop-3 11.5s var(--ease-out) infinite; }
.js-animate .scan-seg-4 { animation: seg-pop-4 11.5s var(--ease-out) infinite; }
.js-animate .card-1 { animation: card-in-1 11.5s var(--ease-out) infinite; }
.js-animate .card-2 { animation: card-in-2 11.5s var(--ease-out) infinite; }
.js-animate .card-3 { animation: card-in-3 11.5s var(--ease-out) infinite; }
.js-animate .card-4 { animation: card-in-4 11.5s var(--ease-out) infinite; }
.js-animate .scan-summary { animation: summary-in 11.5s var(--ease-out) infinite; }

@media (max-width: 480px) {
  .card-2, .card-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scan-activity,
  .scanline,
  .scan-playhead,
  .scan-seg,
  .scan-card,
  .scan-summary {
    animation: none !important;
  }
  .scan-activity { opacity: 0; }
  .scan-playhead { opacity: 0; }
  .scan-seg, .scan-card, .scan-summary {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   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: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   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; 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: 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; }
}
