/* SA Legal Intelligence — design-partner landing page.
   Fonts are self-hosted: no third-party request leaves the reader's browser. */

@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-caslon-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  --paper: #f8f6f1;
  --paper-deep: #efebe3;
  --ink: #151310;
  --muted: #69635a;
  --line: #d8d2c8;
  --red: #a60c12;
  --red-dark: #7d080d;
  --white: #fffdfa;
  --green: #2f6d46;
  --amber: #8a5a14;
  --shadow: 0 18px 55px rgba(34, 27, 20, 0.09);
  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
code { font-family: var(--mono); font-size: .85em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; padding: 10px 14px;
  background: var(--ink); color: var(--white); z-index: 50; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  min-height: 84px; padding: 14px clamp(20px, 4vw, 72px);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 210, 200, 0.7);
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-primary { font-family: var(--serif); font-size: 20px; letter-spacing: .075em; }
.brand-secondary { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 13px; color: #302d28; }
.nav a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; cursor: pointer; }

.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 0 21px; border: 1px solid transparent; text-decoration: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-dark); box-shadow: 0 8px 24px rgba(166, 12, 18, .16); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.text-link { font-weight: 600; font-size: 14px; text-underline-offset: 4px; }

.section-shell { width: min(1360px, calc(100% - 64px)); margin-inline: auto; min-width: 0; }
/* Grid and flex children default to min-width:auto, so an image with a large intrinsic width
   would widen its track past the viewport on phones. Every layout child opts out. */
.hero > *, .split > *, .proof-strip .section-shell > *, .facts, .fact > *, .rings, .ring > *,
.steps, .steps li, .capture-wide > *, .capture-image, .pilot-columns, .pilot-columns article,
.pilot-band-inner > *,
.pilot-steps, .pilot-steps article, .fit-list li > *, .people, .pilot-form, .pilot-form > *,
.context-note > *, .footer > *, .hero-visual figure, .capture-frame, .table-wrap { min-width: 0; }
body { overflow-x: hidden; }
.section-number { color: var(--red); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
h1, h2, h3 { font-weight: 400; margin: 0 0 18px; }
h1 { font-family: var(--serif); font-size: clamp(44px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }
h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(17px, 1.3vw, 20px); color: #2c2822; max-width: 60ch; }
.small { font-size: 13px; color: var(--muted); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  gap: clamp(40px, 6vw, 100px); align-items: center; padding-block: clamp(56px, 8vw, 110px);
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual figure { margin: 0; }
.capture-frame {
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden;
}
.capture-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.capture-topbar .tag { color: var(--amber); font-weight: 600; }
.capture-frame img { width: 100%; }
figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Captures with numbered callouts */
.capture { margin: 0; }
.capture-image { position: relative; }
.callout-badge {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 600;
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--white);
  transform: translate(-50%, -50%);
}
/* Positions live here, not in style attributes: the page's CSP forbids inline styles. */
.callout-badge.at-1 { left: 4%; top: 20%; }
.callout-badge.at-2 { left: 4%; top: 31%; }
.callout-badge.at-3 { left: 4%; top: 44%; }
.callout-badge.at-w1 { left: 4%; top: 40%; }
.callout-badge.at-w2 { left: 4%; top: 64%; }
.callouts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.callouts li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; color: #2c2822; }
.callouts li span {
  width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 600; display: grid; place-items: center; margin-top: 2px;
}
.capture-wide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(56px, 7vw, 100px); }
.capture-side h2 { margin-top: 6px; }
.capture-side p { color: #2c2822; }

/* Steps */
.steps-section { padding-block: clamp(72px, 9vw, 120px); }
.section-intro { max-width: 60ch; margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); padding: 26px 22px 24px; position: relative; }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--serif); font-size: 18px; margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; color: #2c2822; }

/* Three-step variant and taller step cards */
.steps-three { grid-template-columns: repeat(3, 1fr); }
.steps-tall { grid-template-columns: 1fr 1fr; }

/* Pilot band on the product page */
.pilot-band { background: var(--ink); color: var(--white); padding: clamp(48px, 6vw, 80px) 0; }
.pilot-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.pilot-band h2 { color: var(--white); font-size: clamp(26px, 2.8vw, 38px); }
.pilot-band p { color: #cfc9bf; max-width: 64ch; margin: 0; }
.pilot-band .section-number { color: #e9b0b3; }

/* Pilot columns */
.pilot-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.pilot-columns article { background: var(--white); border: 1px solid var(--line); padding: 24px 24px 18px; }
.pilot-columns h3 { font-size: 22px; margin-bottom: 10px; }
.pilot-columns ul { margin: 0; padding-left: 18px; }
.pilot-columns li { margin-bottom: 8px; font-size: 15px; color: #2c2822; }
.gates-title { margin-top: 8px; }

/* Proof strip: three built facts */
.proof-strip { background: var(--ink); color: var(--white); padding: 40px 0; }
.proof-strip .section-shell { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.proof-strip strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.proof-strip span { font-size: 14px; color: #cfc9bf; }

/* Two-column sections */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); padding-block: clamp(72px, 9vw, 130px); }
.split-intro { position: sticky; top: 110px; align-self: start; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.fact-index { font-family: var(--serif); font-size: 26px; color: var(--red); line-height: 1; }
.fact h3 { margin-bottom: 8px; }
.fact p { margin: 0; color: #2c2822; }
.fact code { background: var(--paper-deep); padding: 2px 6px; }

/* Boundaries: what it does not do */
.boundaries { background: var(--paper-deep); }
.boundaries .split { padding-block: clamp(64px, 8vw, 110px); }
.boundary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.boundary-list li { background: var(--white); border-left: 4px solid var(--amber); padding: 18px 20px; }
.boundary-list strong { display: block; margin-bottom: 4px; }

/* Deployment */
.rings { display: grid; gap: 14px; }
.ring { border: 1px solid var(--line); background: var(--white); padding: 20px 22px; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.ring-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); padding-top: 4px; }
.ring h3 { font-size: 20px; margin-bottom: 6px; }
.ring p { margin: 0; font-size: 15px; color: #2c2822; }

/* Pilot */
.pilot-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pilot-steps article { background: var(--white); border: 1px solid var(--line); padding: 26px 24px; }
.pilot-steps span { display: block; color: var(--red); font-size: 12px; letter-spacing: .16em; margin-bottom: 10px; }
.pilot-steps h3 { font-size: 22px; }
.pilot-steps p { margin: 0; font-size: 15px; color: #2c2822; }

.gates { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.gates th, .gates td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gates th { font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Fit */
.fit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fit-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; font-size: 19px; line-height: 1.45; }
.fit-list span { color: var(--red); font-family: var(--serif); font-size: 22px; }

/* Who we are */
.people { display: grid; gap: 18px; }
.people article { border-top: 1px solid var(--line); padding-top: 16px; }
.people strong { display: block; }
.people p { margin: 4px 0 0; font-size: 15px; color: #2c2822; }

/* Form */
.pilot-form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.pilot-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.pilot-form input[type="text"], .pilot-form input[type="email"], .pilot-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); font-weight: 400;
}
.pilot-form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-note { font-weight: 400; font-size: 13px; color: var(--amber); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 14px; line-height: 1.5; }
.consent input { margin-top: 3px; }
.form-status { min-height: 1.5em; font-size: 14px; margin: 0; }
.form-status[data-kind="error"] { color: var(--red); }
.form-status[data-kind="success"] { color: var(--green); }
.form-status[data-kind="pending"] { color: var(--muted); }
.privacy-summary { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }

/* Context note */
.context-note { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; padding-block: 48px; border-top: 1px solid var(--line); font-size: 14px; color: #3a352e; }
.context-note p { max-width: 80ch; }
.source-links { display: grid; gap: 8px; font-size: 13px; white-space: nowrap; }

/* Footer */
.footer { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: start; padding: 40px clamp(20px, 4vw, 72px) 56px; background: var(--paper-deep); font-size: 13px; }
.footer strong { display: block; letter-spacing: .075em; font-family: var(--serif); font-weight: 400; margin-bottom: 4px; }
.footer nav { display: grid; gap: 6px; }
.footer a { text-underline-offset: 3px; }

/* Long-form pages (privacy) */
.prose { max-width: 72ch; padding-block: 56px 96px; }
.prose h2 { font-size: 28px; margin-top: 36px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Reveal motion: opt-in only when JavaScript is present, so nothing is ever hidden without it. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px clamp(20px, 4vw, 72px); border-top: 1px solid var(--line); font-size: 15px; }
  .nav-toggle { display: inline-block; }
  .hero, .split { grid-template-columns: 1fr; }
  .split-intro { position: static; }
  .proof-strip .section-shell { grid-template-columns: 1fr; gap: 18px; }
  .pilot-steps { grid-template-columns: 1fr; }
  .steps, .steps-three { grid-template-columns: 1fr 1fr; }
  .capture-wide { grid-template-columns: 1fr; }
  .pilot-band-inner { grid-template-columns: 1fr; }
  .pilot-columns { grid-template-columns: 1fr; }
  .context-note { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section-shell { width: min(100% - 36px, 1360px); }
  .site-header { min-height: 68px; padding: 10px 18px; gap: 12px; }
  .brand-primary { font-size: 15px; }
  .brand-secondary { display: none; }
  .header-cta { display: none; } /* the hero call to action sits directly below on phones */
  .hero { padding-top: 44px; gap: 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fact { grid-template-columns: 36px 1fr; }
  .ring { grid-template-columns: 1fr; gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .fit-list li { font-size: 17px; }
  .steps, .steps-three { grid-template-columns: 1fr; }
  .source-links { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
