/* LBP site — redesign #1143. Static, self-hosted, system fonts only. Direction: quiet lab-notebook editorial —
   paper ground, ink type, hairline rules instead of boxed cards, one accent. Dark is reserved for contact + footer. */
:root {
  --ink: #0B2540;
  --text: #2B3A4A;
  --muted: #4F6070;
  --accent: #0870B0;
  --accent-ink: #065A8E;
  --mint: #3ED3E0;
  --teal: #0B7480;
  --paper: #F5F7F6;
  --paper-2: #EAF0EF;
  --card: #FFFFFF;
  --line: #D3DCDF;
  --line-strong: #9FB0B8;
  --chip: #E3F1F5;
  --r: 8px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 18px/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .hero .lead, .card p, .prose p, .prose li { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.grid > *, .feature > *, .steps > *, .anno, .card { min-width: 0; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r);
  z-index: 100;
}
.skip:focus { left: 12px; }

/* Header */
.top {
  background: rgba(245, 247, 246, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top .wrap {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -.005em;
  flex-shrink: 0;
  line-height: 1.3;
}
.brand:hover { color: var(--ink); }
.brand img { flex: none; width: 56px; height: 48px; }
.brand small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.nav {
  display: none;
  align-items: center;
  gap: 4px 20px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 0;
  background: linear-gradient(var(--teal), var(--teal)) 0 calc(100% - 4px) / 0 2px no-repeat;
  transition: background-size .28s var(--ease), color .15s;
}
.nav a[aria-current="page"] { color: var(--accent-ink); background-size: 100% 2px; }
.lang {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.lang a { color: var(--muted); font-weight: 600; }
.lang a[aria-current="true"] { color: var(--ink); }
.top .top-cta { display: inline-flex; }
@media (min-width: 1040px) {
  .nav { display: flex; }

}
@media (min-width: 1040px) and (max-width: 1239px) { .top .top-cta, .brand small { display: none; } .nav { gap: 4px 16px; } }
@media (hover: hover) {
  .nav a:hover { background-size: 100% 2px; color: var(--ink); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active { transform: scale(.97); }
.btn.ghost, .btn.outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn.ghost:hover, .btn.outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.top-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Hero — light, asymmetric: headline left, standfirst + actions right (stacked on small screens) */
.hero {
  background: var(--paper);
  color: var(--text);
  padding: 40px 0 44px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  right: max(-80px, calc(50% - 760px));
  top: 50%;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%230B7480' stroke-width='.35'%3E%3Cpath d='M50 6 94 90H6Z'/%3E%3Cpath d='M50 24 78 78H22Z'/%3E%3Cpath d='M50 42 62 66H38Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .16;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0 56px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal); flex: none; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  max-width: 19ch;
  color: var(--ink);
}
.hero .lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--text);
  max-width: 52ch;
  margin: 0 0 24px;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.cta.center { justify-content: center; }
.cta.spaced { margin: 28px 0; }
.stack-gap { margin-top: 28px; }
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero .eyebrow { grid-column: 1 / -1; }
  .hero h1 { grid-column: 1; grid-row: 2 / span 2; margin-bottom: 0; }
  .hero .lead { grid-column: 2; grid-row: 2; align-self: end; margin-bottom: 24px; }
  .hero .cta { grid-column: 2; grid-row: 3; align-self: start; }
  .hero-home { padding: 112px 0 96px; }
  .hero-home h1 { font-size: clamp(44px, 5.2vw, 72px); max-width: 17ch; }
}
.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}
.standards li::before { content: "✓"; color: var(--teal); margin-right: 6px; }

/* Breadcrumb */
.crumb {
  font-size: 14px;
  color: var(--muted);
  padding: 18px 24px 0;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  background: var(--paper);
  max-width: none;
}
.crumb { padding-left: max(24px, calc((100% - 1160px) / 2 + 24px)); padding-right: 24px; }
.crumb li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumb [aria-current="page"] { color: var(--ink); }
.crumb + .hero { border-top: 0; }
.crumb + .hero { padding-top: 28px; }

/* Sections */
section { padding: 52px 0; }
.page-hero + section { padding-top: 44px; }
@media (min-width: 720px) { section { padding: 80px 0; } .page-hero + section { padding-top: 64px; } .hero { padding: 64px 0 64px; } }
@media (min-width: 1100px) { section { padding: 88px 0; } .hero { padding: 80px 0 80px; } }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }
h2 {
  font-size: clamp(27px, 3.3vw, 42px);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 20px;
}
h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.intro { max-width: 65ch; margin: 0 0 20px; color: var(--muted); }
.prose { max-width: 68ch; }
.wrap.prose { max-width: 1160px; }
.wrap.prose > * { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin-top: 1.7em; font-size: clamp(24px, 2.6vw, 32px); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin-bottom: .5em; padding-left: .2em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.alt { background: var(--paper-2); }
.tight { padding: 40px 0; }
section > .wrap > h2 { max-width: 24ch; }

/* Cards: ruled columns, not boxes */
.grid { display: grid; gap: 36px 48px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .grid.three { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  padding: 18px 0 0;
  position: relative;
}
.card h2, .card h3 { font-family: var(--serif); font-size: 22px; line-height: 1.3; letter-spacing: 0; margin: 0 0 8px; font-weight: 500; }
.card p { margin: 0 0 14px; }
.card .more {
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
}
.card .more::after { content: "→"; margin-left: .35em; display: inline-block; transition: transform .2s var(--ease); }
@media (hover: hover) { .card .more:hover::after { transform: translateX(4px); } .card .more:hover { text-decoration: underline; } }
.card.flagship {
  background: var(--ink);
  color: #D5E1EA;
  border-top-color: var(--mint);
  border-radius: 0 0 var(--r) var(--r);
  padding: 20px 22px 18px;
}
.card.flagship h3 { color: #fff; }
.card.flagship a { color: var(--mint); }
.card.flagship a:hover { color: #fff; }
.card-flag {
  margin: 0 0 12px !important;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--mint);
  border-radius: 4px;
  padding: 3px 10px;
}
.icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--chip);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--chip);
  color: var(--accent-ink);
}

/* AI highlight flagship */
.ai-flag {
  background: var(--ink);
  color: #D5E1EA;
  border-radius: var(--r);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.ai-flag h2 { color: #fff; margin-bottom: 8px; }
.ai-flag .eyebrow { margin-bottom: 8px; color: var(--mint); }
.ai-flag .eyebrow::before { background: var(--mint); }
.ai-flag p { max-width: 62ch; margin: 0 0 16px; }
.ai-flag .btn { margin-right: 10px; margin-bottom: 8px; }
.ai-points { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0 0 16px; }
@media (min-width: 720px) {
  .ai-points { grid-template-columns: 1fr 1fr; }
  .ai-flag { padding: 40px; }
}
.ai-points li { border-top: 1px solid rgba(255,255,255,.24); padding: 12px 0 0; font-size: 16px; }
.ai-points strong { display: block; color: var(--mint); margin-bottom: 4px; }

/* Feature deep-dive with annotation */
.feature { display: grid; gap: 32px; align-items: start; margin: 8px 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; }
  .anno { position: sticky; top: 104px; }
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.anno {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--teal);
  border-radius: 0 0 var(--r) var(--r);
  padding: 20px;
}
.anno h3 { font-size: 21px; }
.anno svg { display: block; width: 100%; max-width: 100%; height: auto; margin-top: 12px; }
.anno-figures { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.anno-figures li { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.anno-figures strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--accent-ink); min-width: 4.5ch; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 16px;
  min-width: 560px;
}
table.compare th, table.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-family: var(--sans);
}
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 600; color: var(--ink); width: 22%; }
table.compare tbody tr:nth-child(even) { background: var(--paper); }

/* Credibility / standards */
.cred-grid { display: grid; gap: 28px 40px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cred-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cred-grid li { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.cred-grid strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Sectors / topics / steps */
.sectors { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 720px) { .sectors { columns: 2; column-gap: 56px; } }
.sectors li {
  break-inside: avoid;
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}
.topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.topics li { border: 1px solid var(--line-strong); border-radius: 4px; padding: 7px 14px; font-size: 16px; color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 36px; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
  .steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
}
.steps li { counter-increment: s; border-top: 1px solid var(--line-strong); padding-top: 14px; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 14px;
}
.steps strong { display: block; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; margin-bottom: 6px; }

/* FAQ */
details { border-top: 1px solid var(--line-strong); padding: 0; margin: 0; }
details:last-of-type { border-bottom: 1px solid var(--line-strong); }
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 0;
  min-height: 48px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--teal);
  font-size: 26px;
  line-height: 1;
  flex: none;
  transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; max-width: 68ch; }

/* Cross-links */
.related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.related a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.related a:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }

/* Contact CTA — one of two dark bands */
.contact { background: var(--ink); color: #D5E1EA; text-align: left; position: relative; }
.contact .wrap { display: grid; gap: 0 56px; }
@media (min-width: 900px) {
  .contact .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; }
  .contact h2 { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .contact p { grid-column: 2; grid-row: 1; }
  .contact .cta { grid-column: 2; grid-row: 2; }
}
.contact h2 { color: #fff; max-width: 18ch; }
.contact p { max-width: 56ch; margin: 0 0 24px; }
.contact a:not(.btn) { color: var(--mint); }
.contact a:not(.btn):hover { color: #fff; }
.contact .cta { justify-content: flex-start; }
.contact .btn { background: #fff; color: var(--ink); border-color: #fff; }
.contact .btn:hover { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.contact .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.contact .btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.ai-flag .btn { background: #fff; color: var(--ink); border-color: #fff; }
.ai-flag .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* Footer */
footer { background: #08192A; color: #A7BAC8; font-size: 16px; padding: 56px 0 28px; }
footer a { color: #C9D8E2; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; margin-bottom: 36px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }
.foot-grid h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: #fff; margin: 0 0 12px; }
.foot-grid p { margin: 0 0 8px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid #1E3547; }

/* 404 */
.err { text-align: left; padding: 64px 0 96px; }
.err h1 { font-size: clamp(56px, 10vw, 120px); line-height: 1; margin: 0 0 12px; font-weight: 500; letter-spacing: -.03em; }
.err p { color: var(--muted); max-width: 40ch; margin: 0 0 24px; }
.page-hero h1 { max-width: 22ch; }

@media (max-width: 599px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .crumb { padding-left: 18px; padding-right: 18px; }
  .brand small { display: none; }
  .brand { font-size: 15px; flex-shrink: 1; min-width: 0; }
  .top .top-cta { padding: 0 14px; flex: none; }
  .brand img { width: 44px; height: 38px; }
  .top .wrap { min-height: 64px; }
  .btn { width: 100%; }
  .top-cta { width: auto; }
  .cta { flex-direction: column; }
  .anno svg { max-width: 100%; }
  footer { padding: 40px 0 24px; }
  .hero, .crumb + .hero { padding-bottom: 36px; }
}

/* Motion — restrained: one hero entrance, press/hover feedback above. Everything is off under reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: rise .6s var(--ease) both; }
  .hero .wrap > :nth-child(2) { animation-delay: .06s; }
  .hero .wrap > :nth-child(3) { animation-delay: .12s; }
  .hero .wrap > :nth-child(4) { animation-delay: .18s; }
  details[open] > :not(summary) { animation: fade .25s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.anno svg text { font-family: var(--sans); }
