/* LexLedger Systems: lexledgersystems.com
   One stylesheet, no JavaScript, no third-party requests. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (packages/theme in the product repo): navy #0B1C2C / #122544, blue #0076CE, emerald #00BD79 */
  --navy-950: #0b1c2c;
  --navy-900: #122544;
  --navy-800: #16305c;
  --navy-700: #2e4a78;
  --navy-600: #3b5b8f;
  --blue: #0076ce;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f6f8fa;
  --white: #ffffff;
  --crimson: #9b1c31;
  --crimson-bg: #f8e5e8;
  --emerald: #047857;
  --emerald-bright: #00bd79;
  --emerald-bg: #dcf5ea;

  --text: var(--navy-950);
  --text-muted: var(--slate-600);
  --border: var(--slate-200);
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1140px;
  --gutter: 24px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy-950); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: var(--radius-sm); }

/* ---------- Header ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.role .more { font-size: 14.5px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--slate-700); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--navy-950); }
.nav .btn { color: var(--white); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--navy-900);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--slate-100); }
.nav-mobile .panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(6, 18, 42, 0.12); padding: 8px; display: grid;
}
.nav-mobile .panel a { padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--navy-900); font-weight: 500; font-size: 15px; }
.nav-mobile .panel a:hover { background: var(--slate-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: var(--radius-sm); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--navy-900); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-950); }
.btn-light:hover { background: var(--slate-100); color: var(--navy-950); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(43, 79, 128, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
}
.hero .container {
  position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px;
  align-items: center; padding-top: 88px; padding-bottom: 96px;
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-500);
}
.hero .eyebrow { color: var(--slate-300); }
.hero h1 { color: var(--white); font-size: clamp(36px, 5.2vw, 58px); font-weight: 700; margin-top: 16px; letter-spacing: -0.03em; }
.hero .lead { color: var(--slate-300); font-size: clamp(17px, 1.6vw, 19.5px); margin-top: 22px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .note { margin-top: 22px; font-size: 14px; color: var(--slate-400); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); flex: none; }

/* Hero image rendered from the LexLedger design kit */
.kit-shot { margin: 0; justify-self: center; width: 100%; max-width: 520px; }
.kit-shot img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--slate-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 12px; }
.section-head p { color: var(--text-muted); font-size: 18px; margin-top: 16px; }

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

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 18px; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); margin-top: 10px; font-size: 15.5px; }
.card .kicker { font-family: var(--mono); font-size: 12px; color: var(--slate-500); margin-bottom: 14px; display: block; }

.problem .card { border-top: 3px solid var(--navy-900); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--navy-900); background: var(--white); border: 1px solid var(--slate-300); border-radius: 999px;
  width: 40px; height: 40px; display: grid; place-items: center;
}
.step::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: -8px; height: 1px; background: var(--slate-300);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 18px; }
.step p { color: var(--text-muted); margin-top: 10px; font-size: 15.5px; }

/* Integrity (dark) */
.dark { background: var(--navy-950); color: var(--slate-300); }
.dark .eyebrow { color: var(--slate-400); }
.dark h2, .dark h3 { color: var(--white); }
.dark .section-head p { color: var(--slate-300); }
.dark .card { background: var(--navy-900); border-color: rgba(255,255,255,.08); }
.dark .card p { color: var(--slate-300); }
.hashline {
  margin-top: 40px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  background: rgba(255,255,255,.03); padding: 18px 20px; display: grid; gap: 8px;
}
.hashline code { font-family: var(--mono); font-size: 13.5px; color: var(--white); word-break: break-all; }
.hashline .label { font-size: 12.5px; color: var(--slate-400); }
.hashline .ok { color: var(--emerald-bright); font-weight: 600; font-size: 13px; }

/* Roles */
.role { display: grid; gap: 10px; align-content: start; }
.role .price { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); }
.role .price.paid { color: var(--navy-700); }

/* CTA band */
.cta-band { background: var(--navy-900); color: var(--white); border-radius: 16px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 34px); }
.cta-band p { color: var(--slate-300); margin-top: 12px; font-size: 17px; max-width: 36em; }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--slate-700); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(-45deg);
}

/* Page header (inner pages) */
.page-head { background: var(--slate-50); border-bottom: 1px solid var(--border); padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 12px; }
.page-head p { color: var(--text-muted); font-size: 18px; margin-top: 16px; max-width: 42em; }

/* Form area */
.notice {
  border: 1px solid #f6d3da; background: var(--crimson-bg); color: #6b1026;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px;
}
.form-frame { width: 100%; min-height: 1100px; border: 0; margin-top: 20px; border-radius: var(--radius); background: var(--white); }

/* Legal pages */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal h2 { font-size: 22px; margin-top: 44px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { color: var(--slate-700); font-size: 16px; }
.legal p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal .meta { color: var(--slate-500); font-size: 14px; }
.legal .toc { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--slate-50); }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
.legal .toc li { margin-bottom: 4px; break-inside: avoid; }

.pt-0 { padding-top: 0; }
.h-card { font-size: 22px; }
.h-section { font-size: clamp(26px, 3vw, 34px); margin-top: 12px; }
.apply { max-width: 820px; margin-top: 64px; }
.apply-lead { color: var(--text-muted); margin-top: 12px; font-size: 17px; }
.apply .notice { margin-top: 20px; }
.apply-foot { color: var(--text-muted); margin-top: 18px; font-size: 15px; }
.page-404 { border-bottom: 0; padding: 120px 0; }

.apply-email { margin-top: 20px; }
.apply-email .checklist { margin-top: 12px; }
.apply-email .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-400); padding: 56px 0 40px; font-size: 14px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .tagline { margin-top: 14px; max-width: 26em; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .nav { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 68px 0; }
  .grid-3, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .legal .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
