/* FieldLedger marketing site, themed to match the FieldLedger app */

:root {
  --navy: #0B1F3A;
  --navy-950: #071528;
  --navy-800: #12294A;
  --navy-700: #1B3558;
  --primary: #1E6FFF;
  --primary-600: #1659D6;
  --primary-50: #EEF5FF;
  --primary-100: #DCE9FF;
  --teal: #00C2A8;
  --teal-600: #00A88F;
  --teal-50: #E6FAF7;
  --amber: #F59E0B;
  --amber-700: #B45309;
  --amber-50: #FFF7E8;
  --red: #DC2626;
  --red-50: #FEF2F2;

  --ink: #0B1F3A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --white: #FFFFFF;

  --on-dark: #C7D3E6;
  --on-dark-muted: #94A8C6;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --shadow: 0 10px 24px -12px rgba(11, 31, 58, .22), 0 4px 8px -4px rgba(11, 31, 58, .08);
  --shadow-lg: 0 32px 64px -24px rgba(4, 12, 28, .6), 0 12px 24px -12px rgba(4, 12, 28, .35);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --container: 1200px;
  --header-h: 68px;

  --app-bg:
    radial-gradient(80% 50% at 100% -20%, rgba(30, 111, 255, .1), transparent),
    radial-gradient(60% 40% at 0 100%, rgba(0, 194, 168, .08), transparent);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--slate-100);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--primary-600); text-underline-offset: 3px; }
a:hover { color: var(--primary); }

table, .math-rows dd { font-variant-numeric: tabular-nums lining-nums; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: #7FB0FF; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  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: -100px;
  z-index: 200;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .925rem; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 1.025rem; }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px -8px rgba(30, 111, 255, .6); }
.btn-primary:hover { background: var(--primary-600); color: var(--white); }

.btn-outline-light { border-color: rgba(255, 255, 255, .22); color: var(--white); background: rgba(255, 255, 255, .05); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: var(--white); }

.btn-ghost { color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); }

.btn-ghost-dark { color: var(--ink); background: var(--white); border-color: var(--slate-300); }
.btn-ghost-dark:hover { background: var(--slate-100); color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, .94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .66rem; color: var(--on-dark-muted); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* Navy panels with the app's blurred blue/teal glow */
.glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy);
  color: var(--on-dark);
}
.glow::before,
.glow::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow::before { width: 520px; height: 520px; top: -180px; right: -120px; background: rgba(30, 111, 255, .32); }
.glow::after { width: 440px; height: 440px; bottom: -200px; left: -140px; background: rgba(0, 194, 168, .2); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--teal); }
.eyebrow--dark { color: #8FC0FF; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--on-dark);
  max-width: 34em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas--center { justify-content: center; }
.hero-note { margin-top: 18px; font-size: .975rem; color: var(--on-dark-muted); }

.hero-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem;
  line-height: 1.45;
  color: var(--on-dark);
}
.hero-points .icon { color: var(--teal); width: 20px; height: 20px; margin-top: 1px; }
.hero-points b { display: block; color: var(--white); font-weight: 600; }

.hero-visual { margin: 0; }

/* Screenshot frames */
.shot {
  margin: 0;
  min-width: 0;
}
.shot-frame {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}
.shot-dots { display: flex; gap: 6px; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.shot-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 11.5px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-url .icon { width: 11px; height: 11px; color: var(--teal-600); }
.shot-frame img { width: 100%; height: auto; }
.shot--hero .shot-frame {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
}
.shot--hero .shot-bar { background: #E9EEF5; }
.shot--paper .shot-frame { background: #F7F6F0; }
.shot-stack { display: grid; gap: 24px; min-width: 0; }
.shot-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }

/* Captions */
.caption {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--slate-500);
}
.caption--dark { color: var(--on-dark-muted); }

/* Trust strip */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.trust-by { color: var(--slate-600); }
.trust-by strong { color: var(--ink); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--ink);
  font-weight: 500;
  font-size: .875rem;
}
.badges .icon { color: var(--teal-600); }

/* Sections */
.section { padding: 96px 0; background: var(--slate-100) var(--app-bg); }
.section--alt { background: var(--white); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.lead { margin-top: 18px; font-size: 1.125rem; color: var(--slate-600); }
.lead--strong { color: var(--ink); font-weight: 500; }

/* Card base */
.card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Icon tiles (app KPI style) */
.tile {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: var(--primary-50);
  color: var(--primary);
  flex: none;
}
.tile svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.tile--teal { background: var(--teal-50); color: var(--teal-600); }

/* Pillars */
.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.pillar { padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar .tile { margin-bottom: 18px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pillar p { color: var(--slate-600); }

/* Module map: mirrors the app sidebar */
.modmap { margin-top: 56px; border-radius: var(--radius-lg); padding: 36px; }
.modmap-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.modmap-head h3 { color: var(--white); font-size: 1.3rem; display: inline-flex; align-items: center; gap: 10px; }
.modmap-head h3 .icon { color: var(--teal); }
.modmap-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.modmap-col {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 18px;
}
.modmap-col h4 {
  font-family: var(--font);
  color: var(--on-dark-muted);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.modmap-col ul { list-style: none; display: grid; gap: 6px; }
.modmap-col li {
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  background: rgba(255, 255, 255, .04);
}
.modmap-grid > li:first-child li:first-child { background: var(--primary); }

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.feature-row + .feature-row { margin-top: 96px; }
.feature-row--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.feature-row--reverse.feature-row--wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature-row--reverse .feature-copy { order: 2; }
.feature-row--reverse .feature-visual { order: 1; }
.feature-copy h3 { font-size: 1.4rem; margin-bottom: 14px; }
.h3-spaced { margin-top: 36px; }
.tagline {
  margin: -4px 0 14px;
  color: var(--slate-600);
  font-weight: 500;
  padding-left: 12px;
  border-left: 3px solid var(--teal);
}
.feature-visual { margin: 0; display: grid; gap: 24px; min-width: 0; }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A88F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.rules { margin-top: 28px; padding: 20px 22px; border-left: 3px solid var(--primary); }
.rules h4 { font-size: 1.05rem; margin-bottom: 6px; }
.rules p { color: var(--slate-600); margin-bottom: 10px; }
.rules ul { padding-left: 20px; display: grid; gap: 6px; }

/* Chips (app status pills) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.5;
}
.chip .icon { width: 12px; height: 12px; }
.chip--pending { background: var(--amber-50); color: var(--amber-700); box-shadow: inset 0 0 0 1px #FCD9A0; }
.chip--approved { background: var(--primary-50); color: var(--primary-600); box-shadow: inset 0 0 0 1px #BFD5FF; }
.chip--paid { background: var(--teal-50); color: var(--teal-600); box-shadow: inset 0 0 0 1px #A5E9DE; }
.chip--rejected { background: var(--red-50); color: var(--red); box-shadow: inset 0 0 0 1px #FBCACA; }
.chip--voided { background: var(--slate-100); color: var(--slate-500); box-shadow: inset 0 0 0 1px var(--slate-300); }

.flow-card { padding: 18px 20px; }
.flow-card h4 { font-size: 1rem; margin-bottom: 12px; }
.flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow li { display: inline-flex; align-items: center; gap: 8px; }
.flow li + li::before { content: "→"; color: var(--slate-500); font-weight: 600; }
.flow .chip { font-size: .9rem; padding: 3px 12px; }
.flow-side { font-size: .9rem; color: var(--slate-600); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.chain { list-style: none; counter-reset: chain; display: grid; gap: 10px; }
.chain li {
  counter-increment: chain;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}
.chain li::before {
  content: counter(chain);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 600;
}
.chain b { display: block; color: var(--ink); font-weight: 600; }
.chain span { color: var(--slate-600); font-size: .925rem; }
.chain-card { padding: 22px; }
.chain-title { font-size: 1.05rem; margin-bottom: 4px; }
.chain-note { font-size: .9rem; color: var(--slate-600); margin-bottom: 14px; }

/* "See the math" panels */
.math { margin: 0; padding: 20px 22px; border-top: 3px solid var(--teal); }
.math-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: 1.02rem; }
.math-rows { margin: 0; display: grid; }
.math-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--slate-200); }
.math-rows dt { color: var(--slate-600); }
.math-rows dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; }
.math-rows .math-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 2px; padding-top: 9px; }
.math-rows .math-total dt, .math-rows .math-total dd { font-weight: 700; color: var(--ink); }
.math-rows .is-good dd { color: var(--teal-600); }
.math .caption { margin-top: 12px; }

/* PH band */
.ph-band { padding: 96px 0; }
.ph-band h2 { color: var(--white); }
.ph-band .lead { color: var(--on-dark); }
.ph-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ph-grid li {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.ph-grid .icon { width: 26px; height: 26px; color: var(--teal); margin-bottom: 12px; }
.ph-grid h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 6px; }
.ph-grid p { color: var(--on-dark); }
.ph-footnote { margin: 32px auto 0; max-width: 820px; text-align: center; color: var(--on-dark-muted); font-size: .95rem; }

/* Roles & security */
.roles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.role { padding: 24px; }
.role .tile { margin-bottom: 14px; }
.role h3 { font-size: 1.12rem; margin-bottom: 6px; }
.role p { color: var(--slate-600); }

.security { margin-top: 40px; padding: 32px; }
.security h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 18px; }
.security h3 .icon { color: var(--primary); width: 24px; height: 24px; }
.security-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.security-list li { display: flex; gap: 12px; align-items: flex-start; }
.security-list .icon { color: var(--teal-600); margin-top: .2em; width: 20px; height: 20px; }

/* Reports */
.report-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.report-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.report-list h3 { font-size: 1rem; margin-bottom: 4px; }
.report-list p { color: var(--slate-600); font-size: .95rem; }
.reports-bottom { margin-top: 56px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 26px 24px 24px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--slate-600); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item h3 { font-size: 1.05rem; }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left;
  background: none; border: 0;
  padding: 20px 22px;
  font: inherit; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}
.faq-q .icon { width: 22px; height: 22px; color: var(--primary); transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--slate-600); }
.js .faq-a[hidden] { display: none; }

/* Final CTA */
.final-cta { padding: 96px 0; text-align: center; }
.final-cta h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; max-width: 820px; margin: 0 auto; }
.final-cta p { margin: 16px auto 0; max-width: 620px; font-size: 1.125rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-h { font-family: var(--font); color: var(--white); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
}

/* Demo dialog */
.demo-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  color: var(--slate-700);
}
.demo-dialog::backdrop { background: rgba(7, 21, 40, .65); backdrop-filter: blur(2px); }
.demo-form { padding: 28px; display: grid; gap: 14px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; }
.demo-head h2 { font-size: 1.4rem; }
.demo-intro { color: var(--slate-600); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm); border: 1px solid var(--slate-200);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.icon-btn .icon { width: 20px; height: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 500; color: var(--ink); font-size: .925rem; }
.optional { font-weight: 400; color: var(--slate-500); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--white);
  width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}
.field [aria-invalid="true"] { border-color: var(--red); }
.form-status { font-size: .95rem; color: var(--ink); min-height: 1.4em; }
.form-status.is-error { color: var(--red); }
.demo-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Reveal motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pillar, .btn, .faq-q .icon { transition: none; }
  .pillar:hover { transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 760px; }
  .feature-row, .feature-row--reverse, .feature-row--wide,
  .feature-row--reverse.feature-row--wide { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--reverse .feature-copy, .feature-row--reverse .feature-visual { order: initial; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modmap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px 24px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { display: block; padding: 10px 12px; font-size: 1rem; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { min-height: 46px; }
  .roles, .report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .security-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section, .ph-band, .final-cta { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .section-head { margin-bottom: 40px; }
  .hero-points { grid-template-columns: 1fr; }
  .report-list { grid-template-columns: 1fr; }
  .modmap { padding: 24px; }
  .modmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row + .feature-row { margin-top: 64px; }
  .shot-pair { grid-template-columns: 1fr; }
  .shot-bar { height: 28px; }
  .shot-dots i { width: 8px; height: 8px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .pillars, .roles, .steps, .ph-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .math-rows > div { flex-direction: column; gap: 2px; }
  .math-rows dd { text-align: left; }
  .security { padding: 22px; }
  .brand-sub { display: none; }
}
