/* ============================================================
   Lexicore Platform — design system
   Palette: deep navy + warm bronze/gold accent + warm paper bg
   Type: Space Grotesk display headings, system sans body — the
   grotesk is self-hosted (assets/fonts) so there is still no
   external font/asset request at runtime, by design (see privacy
   positioning).
   ============================================================ */

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

:root {
  --navy-950: #081826;
  --navy-900: #0c2338;
  --navy-800: #123049;
  --navy-700: #1a4165;
  --navy-600: #235379;
  --paper: #f8f6f0;
  --paper-dim: #f1ede1;
  --paper-line: #ddd5c1;
  --ink: #1b2430;
  --ink-soft: #4a5563;
  --muted: #6b7686;
  --gold-500: #b8863f;
  --gold-600: #96692c;
  --gold-100: #f3e6cd;
  --green-700: #2f5d4f;
  --green-100: #e2ede8;
  --red-700: #8a3b32;
  --red-100: #f3e2df;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(8, 24, 38, 0.06), 0 1px 1px rgba(8, 24, 38, 0.04);
  --shadow-md: 0 6px 20px rgba(8, 24, 38, 0.08), 0 2px 6px rgba(8, 24, 38, 0.06);
  --shadow-lg: 0 20px 50px rgba(8, 24, 38, 0.16);
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--dark {
  background: var(--navy-950);
  color: #e7ecf2;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: #b9c5d3; }

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

.section--border-top { border-top: 1px solid var(--paper-line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold-100); }

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 24, 38, 0.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
}
.logo__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.logo__tag {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92a1b3;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: #cfd8e3;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold-500);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #fff;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: linear-gradient(155deg, var(--gold-500), var(--gold-600));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { box-shadow: var(--shadow-md); }

.btn--outline-light {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn--outline-dark {
  border-color: var(--navy-800);
  color: var(--navy-900);
}
.btn--outline-dark:hover { background: var(--navy-900); color: #fff; }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------------- Hero ---------------- */

.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(184,134,63,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-900));
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(700px 460px at 82% 8%, #000 0%, transparent 72%);
          mask-image: radial-gradient(700px 460px at 82% 8%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__grid { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: #fff; }

.hero .lead {
  color: #c3cddb;
  font-size: 1.22rem;
  max-width: 52ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #e6ebf1;
}
.pill svg { width: 13px; height: 13px; flex-shrink: 0; }

/* small illustrative "flow" panel used in hero */
.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(4px);
}
.hero-panel__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9fb0c2;
  font-weight: 700;
  margin-bottom: 16px;
}
.flow-item {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.flow-item:first-of-type { border-top: none; }
.flow-item__n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(184,134,63,0.22);
  color: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--display);
}
.flow-item__body b { display: block; font-size: 0.9rem; color: #fff; }
.flow-item__body span { font-size: 0.82rem; color: #a7b3c2; }

/* ---------------- Trust pillars ---------------- */
/* Horizontal rows, not a 3-box icon grid — the icon-card-in-a-row-of-3
   pattern is the single most recognisable "template" tell, so trust
   pillars and problem items both use this row layout instead. */

.pillars {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--paper-line);
}

.pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 0;
  border-bottom: 1px solid var(--paper-line);
}

.pillar__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar__icon svg { width: 24px; height: 24px; stroke: var(--gold-100); }

.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; max-width: 62ch; }

/* ---------------- Problem list ("sound familiar?") ---------------- */

.problem-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.problem-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.problem-item__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 150, 130, 0.55);
  color: #e7a394;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
}

.problem-item p {
  margin: 0;
  font-size: 1.08rem;
  color: #dbe2ea;
  max-width: 62ch;
}
.problem-item b { color: #fff; }

/* ---------------- Big statement / pull line ---------------- */

.statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.statement em {
  font-style: normal;
  color: var(--gold-500);
}
.section--dark .statement { color: #fff; }
.section--dark .statement em { color: #e2c692; }

/* ---------------- Before / after comparison ---------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--paper-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
}

.compare__col {
  background: #fff;
  padding: 32px 30px;
}
.compare__col--before {
  background: var(--paper-dim);
}
.compare__col--after {
  background: var(--navy-950);
  color: #fff;
}

.compare__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.compare__col--before .compare__label { color: #9a5347; }
.compare__col--after .compare__label { color: var(--gold-100); }

.compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.compare__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.4;
}
.compare__col--before .compare__list li { color: var(--ink-soft); }
.compare__col--after .compare__list li { color: #dbe2ea; }

.compare__list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.compare__col--before .compare__list svg { stroke: #b0655a; }
.compare__col--after .compare__list svg { stroke: var(--gold-500); }

/* ---------------- Cards / grids ---------------- */

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

.card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card--link { text-decoration: none; display: block; color: inherit; }
.card--link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card__num {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 10px;
}

.card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }

.card--nav-out {
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------------- Section head ---------------- */

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------------- Journey / steps (How it works) ---------------- */

.journey {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 36px 0;
  border-top: 1px solid var(--paper-line);
}
.step:first-child { border-top: none; padding-top: 0; }

.step__num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}
.step__num::before { content: counter(step); }

.step h3 { margin-bottom: 6px; }
.step__meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: var(--gold-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.step p { color: var(--ink-soft); }

.step__problem {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.92rem;
  color: #9a5347;
  margin: 0 0 10px;
}
.step__problem b { font-weight: 700; }

.step__detail {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--paper-dim);
  border-radius: var(--radius);
  border: 1px solid var(--paper-line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.step__detail b { color: var(--ink); }

/* ---------------- Stats / bar ---------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--navy-900);
}
.section--dark .stat b { color: #fff; }
.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}
.section--dark .stat span { color: #9fb0c2; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(155deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #b9c5d3; margin: 0; }

/* ---------------- Badges (compliance verdicts) ---------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}
.badge--ok { background: var(--green-100); color: var(--green-700); }
.badge--warn { background: var(--gold-100); color: var(--gold-600); }
.badge--flag { background: var(--red-100); color: var(--red-700); }

/* ---------------- Table (practice-area checklists) ---------------- */

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.doc-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--paper-line);
}
.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--paper-line);
  color: var(--ink-soft);
  vertical-align: top;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:first-child { color: var(--ink); font-weight: 600; }

/* ---------------- Practice area tabs/sections ---------------- */

.practice-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.practice-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--paper-line);
  padding: 8px 14px;
  border-radius: 999px;
}
.practice-nav a:hover { border-color: var(--gold-500); color: var(--gold-600); }

.practice-block {
  padding: 64px 0;
  border-top: 1px solid var(--paper-line);
}
.practice-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.practice-block__terms {
  font-size: 0.82rem;
  color: var(--muted);
}
.practice-block__terms b { color: var(--ink); font-weight: 600; }

/* ---------------- Quote / case study ---------------- */

.quote-block {
  background: var(--paper-dim);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--navy-900);
  margin: 26px 0;
}
.quote-block cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.disclosure-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid #e4cb9c;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--gold-600);
  margin: 22px 0;
}
.disclosure-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.disclosure-note p { margin: 0; color: #6e5325; }

/* ---------------- Timeline (case study) ---------------- */

.timeline {
  border-left: 2px solid var(--paper-line);
  margin-left: 8px;
  padding-left: 30px;
}
.timeline__item {
  position: relative;
  padding-bottom: 34px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--paper);
}
.timeline__item b { display: block; color: var(--navy-900); margin-bottom: 4px; }
.timeline__item span.time {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}
.timeline__item p { color: var(--ink-soft); margin: 0; font-size: 0.94rem; }

/* ---------------- Forms ---------------- */

.form-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .req { color: var(--red-700); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd2db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
  border-color: var(--gold-500);
}
.field textarea { min-height: 110px; resize: vertical; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.78rem; }

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid #c6dcd2;
}
.form-msg.is-visible { display: block; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 0.8rem; }
.form-note a { color: var(--gold-600); }
.quote-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Contact info cards ---------------- */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info .card { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .card svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--gold-600); margin-top: 2px; }
.contact-info .card b { display: block; margin-bottom: 3px; color: var(--navy-900); }
.contact-info .card span, .contact-info .card a { color: var(--ink-soft); font-size: 0.92rem; text-decoration: none; }
.contact-info .card a:hover { color: var(--gold-600); }

/* ---------------- Legal content ---------------- */

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

.legal-content {
  max-width: 860px;
}
.legal-content h2 {
  font-size: 1.55rem;
  margin-top: 42px;
}
.legal-content h2:first-of-type { margin-top: 48px; }
.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 1rem;
}
.legal-content ul {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}
.legal-content li { margin-bottom: 8px; }
.legal-content a {
  color: var(--gold-600);
  font-weight: 600;
}

/* ---------------- Role-based routing cards ---------------- */

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.role-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-card__who {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.role-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
  flex-grow: 1;
}

.role-card .btn { align-self: flex-start; }

/* ---------------- Sticky mobile CTA bar ---------------- */

.mobile-cta-bar {
  display: none;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-950);
  color: #9fb0c2;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid p { color: #8a99ac; font-size: 0.88rem; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: #b7c3d1;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #6f7f92;
}

/* ---------------- Utility ---------------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.text-muted { color: var(--muted); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .grid--3, .role-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav { gap: 14px; }
  .grid--2, .grid--3, .role-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .step { grid-template-columns: 1fr; }
  .step__num { margin-bottom: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .practice-block__head { flex-direction: column; align-items: flex-start; }

  .pillar, .problem-item { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; }
  .pillar__icon { width: 40px; height: 40px; border-radius: 10px; }
  .pillar__icon svg { width: 19px; height: 19px; }
  .problem-item__mark { width: 22px; height: 22px; font-size: 0.82rem; }
  .problem-item p { font-size: 1rem; }

  .compare { grid-template-columns: 1fr; }

  .cta-band { padding: 34px 26px; }

  /* Room for the sticky mobile CTA bar so it never covers the footer. */
  body { padding-bottom: 72px; }
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 24, 38, 0.97);
    backdrop-filter: saturate(140%) blur(6px);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -8px 24px rgba(8,24,38,0.25);
  }
  .mobile-cta-bar .btn { width: 100%; padding: 14px 20px; }
}

@media (min-width: 761px) {
  .mobile-cta-bar { display: none !important; }
}

/* Mobile nav panel */
.nav__links.is-open {
  display: flex;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy-950);
  flex-direction: column;
  gap: 0;
  padding: 8px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__links.is-open a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
