:root {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #0C1E33;
  --muted: #4A5B6E;
  --accent: #0079F0;
  --navy: #082445;
  --line: #D5DEE8;
  --font: "Avenir Next", "Segoe UI", sans-serif;
  --radius: 8px;
  --space: 16px;
  --max: 1120px;
}

.lfci-blueprint,
.lfci-blueprint * { box-sizing: border-box; }
.lfci-blueprint {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  font-size: 17px;
}
.lfci-blueprint a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lfci-blueprint a:hover { color: var(--navy); }
.lfci-blueprint img { max-width: 100%; height: auto; }
.lfci-skip {
  position: absolute; left: -999px; top: 0;
}
.lfci-skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; }

.lfci-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.lfci-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.lfci-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.lfci-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  flex: 0 0 auto;
}
.lfci-header .lfci-brand__logo {
  height: 36px; width: auto; max-width: min(220px, 48vw);
  display: block;
}
.lfci-brand__name { font-weight: 700; font-size: 15px; line-height: 1.15; letter-spacing: -0.01em; }
.lfci-brand__sub {
  display: block; font-weight: 600; font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.25;
  max-width: 8.5rem;
}
.lfci-nav { display: flex; align-items: center; gap: 22px; }
.lfci-nav a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.lfci-nav a:hover { color: var(--accent); }
.lfci-nav-toggle { display: none; }
.lfci-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff !important;
  text-decoration: none !important;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px; font-weight: 700;
  line-height: 1.2; border: 0; white-space: nowrap;
}
.lfci-btn:hover { background: #066ad4; color: #fff !important; }
.lfci-btn--ghost {
  background: transparent; color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
}
.lfci-btn--ghost:hover { border-color: #fff; }
.lfci-btn--on-light.lfci-btn--ghost {
  color: var(--accent) !important; border-color: var(--accent);
}

/* Breadcrumb */
.lfci-crumbs {
  padding: 14px 0 0;
  font-size: 13px; color: var(--muted);
}
.lfci-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.lfci-crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line); }
.lfci-crumbs a { color: var(--muted); text-decoration: none; }
.lfci-crumbs a:hover { color: var(--accent); }

/* Hero */
.lfci-hero {
  background: linear-gradient(105deg, #082445 0%, #0a3a6e 58%, #0b4f96 100%);
  color: #fff;
  padding: 48px 0 56px;
}
.lfci-hero .lfci-wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center;
}
.lfci-hero .lfci-crumbs {
  grid-column: 1 / -1;
  color: rgba(255,255,255,.78);
  padding-top: 0;
}
.lfci-hero .lfci-crumbs a { color: rgba(255,255,255,.78); }
.lfci-hero .lfci-crumbs a:hover { color: #fff; }
.lfci-hero .lfci-crumbs li:not(:last-child)::after { color: rgba(255,255,255,.35); }
.lfci-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.4vw, 3.05rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.lfci-hero p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.86);
  font-size: 17px;
  line-height: 1.45;
  max-width: 42ch;
}
.lfci-diagram {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.lfci-diagram svg { width: 100%; height: auto; display: block; }
.lfci-diagram figcaption {
  margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: 0.04em;
}

/* Sections */
.lfci-section { padding: 72px 0; }
.lfci-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.lfci-lede {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 62ch;
}
.lfci-prose p { margin: 0 0 16px; max-width: 66ch; }
.lfci-prose p:last-child { margin-bottom: 0; }

.lfci-callout {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0 0;
  max-width: 66ch;
}
.lfci-callout strong { display: block; margin-bottom: 6px; }

/* Timeline */
.lfci-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.lfci-timeline li {
  position: relative;
  padding: 0 0 40px 36px;
}
.lfci-timeline li:last-child { padding-bottom: 0; }
.lfci-timeline li::before {
  content: "";
  position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
}
.lfci-time {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.lfci-timeline h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.2; }
.lfci-timeline p { margin: 0; color: var(--muted); max-width: 62ch; }

/* Matrix */
.lfci-table-wrap { overflow-x: auto; margin: 8px 0 36px; }
.lfci-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  font-size: 15px;
}
.lfci-table th, .lfci-table td {
  border: 1px solid var(--line);
  padding: 14px 16px; text-align: left; vertical-align: top;
}
.lfci-table th {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
}
.lfci-table td:first-child { font-weight: 700; width: 22%; }

/* Stack grid */
.lfci-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lfci-stack article {
  background: var(--surface);
  padding: 22px 20px;
  min-height: 148px;
}
.lfci-stack article:nth-child(1),
.lfci-stack article:nth-child(6) {
  background: var(--navy); color: #fff;
  grid-column: span 2;
}
.lfci-stack article:nth-child(1) p,
.lfci-stack article:nth-child(6) p { color: rgba(255,255,255,.78); }
.lfci-stack h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.2; }
.lfci-stack p { margin: 0; font-size: 14px; color: var(--muted); }

/* Compliance board */
.lfci-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lfci-board article {
  background: var(--surface);
  padding: 28px 24px;
}
.lfci-board article:first-child {
  background: var(--navy); color: #fff;
  grid-row: span 2;
}
.lfci-board article:first-child p { color: rgba(255,255,255,.84); }
.lfci-board h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.2; }
.lfci-board p { margin: 0; color: var(--muted); }

/* Migration */
.lfci-steps { display: grid; gap: 0; }
.lfci-steps article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.lfci-steps article:last-child { border-bottom: 1px solid var(--line); }
.lfci-num {
  font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--accent);
  letter-spacing: -0.04em;
}
.lfci-steps h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.2; }
.lfci-steps p { margin: 0; color: var(--muted); max-width: 62ch; }

/* FAQ */
.lfci-faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.lfci-faq details {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 4px;
}
.lfci-faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem;
  padding: 18px 8px; list-style: none;
}
.lfci-faq summary::-webkit-details-marker { display: none; }
.lfci-faq details p {
  margin: 0 8px 20px; color: var(--muted); max-width: 66ch;
}

/* Footer */
.lfci-footer {
  background: var(--navy); color: rgba(255,255,255,.86);
  padding: 56px 0 28px;
  font-size: 14px;
}
.lfci-footer a { color: #fff; }
.lfci-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.lfci-footer h2 {
  margin: 0 0 14px; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.lfci-footer ul { list-style: none; margin: 0; padding: 0; }
.lfci-footer li { margin: 0 0 8px; }
.lfci-footer p { margin: 0 0 12px; max-width: 36ch; }
.lfci-legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.lfci-legal p { max-width: none; margin: 0 0 8px; }

button.lfci-btn {
  cursor: pointer;
  font-family: inherit;
}

.lfci-hero--contact { padding: 36px 0 40px; }
.lfci-hero--contact .lfci-wrap {
  grid-template-columns: 1fr;
  gap: 20px;
}
.lfci-hero--contact h1 { max-width: 18ch; }

.lfci-form-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.lfci-form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.lfci-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.lfci-form input,
.lfci-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.lfci-form textarea { min-height: 140px; resize: vertical; }
.lfci-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lfci-form .lfci-btn { justify-self: start; }
.lfci-hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.lfci-form-ok,
.lfci-form-err {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  max-width: 62ch;
}
.lfci-form-ok { background: var(--surface); border-left: 4px solid var(--accent); }
.lfci-form-err { background: var(--surface); border-left: 4px solid var(--ink); }
.lfci-studio {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.lfci-studio h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: none;
}
.lfci-studio p { margin: 0 0 14px; color: var(--muted); }
.lfci-studio p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .lfci-nav-toggle { display: block; }
  .lfci-nav-toggle > summary {
    list-style: none; cursor: pointer; font-weight: 700; font-size: 14px;
    padding: 8px 0;
  }
  .lfci-nav-toggle > summary::-webkit-details-marker { display: none; }
  .lfci-nav {
    display: none;
  }
  .lfci-nav-toggle[open] .lfci-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px; gap: 14px;
  }
  .lfci-header { position: relative; }
  .lfci-header__bar { min-height: 64px; }
  .lfci-hero .lfci-wrap,
  .lfci-board,
  .lfci-stack,
  .lfci-footer__grid,
  .lfci-form-grid,
  .lfci-form__row {
    grid-template-columns: 1fr;
  }
  .lfci-stack article:nth-child(1),
  .lfci-stack article:nth-child(6),
  .lfci-board article:first-child {
    grid-column: auto; grid-row: auto;
  }
  .lfci-hero { padding: 36px 0 40px; }
  .lfci-hero h1 { max-width: none; }
  .lfci-section { padding: 52px 0; }
  .lfci-steps article { grid-template-columns: 56px 1fr; gap: 12px; }
  .lfci-header .lfci-btn { display: none; }
  .lfci-nav .lfci-btn { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .lfci-blueprint * { scroll-behavior: auto !important; transition: none !important; }
}
