/* Landing page (src/web/pages/index.tsx). Classes lh-*; the hero reuses landing-hero-* from the landing shell. */
:root {
  --lh-navy: #0f172a;
  --lh-ink: #1e293b;
  --lh-blue: #2e5a87;
  --lh-blue-2: #3b82f6;
  --lh-sky: #6fa1c5;
  --lh-slate: #475569;
  --lh-muted: #64748b;
  --lh-line: #e2e8f0;
  --lh-soft: #f1f5f9;
  --lh-bg: #f8fafc;
  --lh-green: #16a34a;
  --lh-amber: #d97706;
  --lh-radius: 16px;
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body { font-size: 14px; }
.lh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lh-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.lh-tick { width: 16px; height: 16px; flex: 0 0 auto; color: var(--lh-green); }
.lh-btn-icon { width: 18px; height: 18px; }

/* Header wordmark next to the logo */
.public-header .brand-wordmark strong { font-family: 'Montserrat', sans-serif; font-size: 15px; letter-spacing: .01em; color: var(--lh-navy); }
.public-header .brand-wordmark small { font-size: 10px; }

/* ---------- Hero ---------- */
.lh-hero { padding: 72px 32px 80px; }
.lh-hero .landing-hero-inner { align-items: center; gap: 56px; }
.lh-hero .landing-hero-content { flex: 1 1 600px; max-width: 640px; }
.lh-hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; margin-top: 18px; }
.lh-hero-sub { font-size: 16px; line-height: 1.65; max-width: 600px; }
.lh-hero .landing-hero-actions .btn-primary, .lh-hero .landing-hero-actions .btn-secondary { font-size: 15px; padding: 14px 28px; }
.lh-hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 22px; padding: 0; }
.lh-hero-points li { display: inline-flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 14px; font-weight: 500; }
.lh-hero-points .lh-tick { color: #4ade80; }
.lh-hero-links { margin: 0; color: #94a3b8; font-size: 13px; }
.lh-hero-links a { color: #bfdbfe; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(191,219,254,.35); }
.lh-hero-links a:hover { color: #fff; }

.lh-preview {
  flex: 1 1 460px; max-width: 520px; color: #e2e8f0;
  background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.lh-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lh-preview-title { display: flex; align-items: center; gap: 10px; }
.lh-preview-title strong { display: block; color: #fff; font-size: 15px; }
.lh-preview-title small { color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.lh-preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.lh-chip { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(59,130,246,.18); color: #93c5fd; border: 1px solid rgba(147,197,253,.25); }
.lh-chip-green { background: rgba(34,197,94,.15); color: #86efac; border-color: rgba(134,239,172,.25); }
.lh-chip-amber { background: rgba(245,158,11,.15); color: #fcd34d; border-color: rgba(252,211,77,.25); }
.lh-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.lh-kpi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.lh-kpi span { font-size: 11.5px; color: #94a3b8; }
.lh-kpi b { font-family: 'Montserrat', sans-serif; font-size: 24px; color: #fff; line-height: 1.2; }
.lh-kpi em { font-style: normal; font-size: 11.5px; color: #93c5fd; }
.lh-kpi em.ok { color: #86efac; }
.lh-kpi em.warn { color: #fcd34d; }
.lh-req { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.lh-req-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.lh-req-top strong { display: block; color: #fff; font-size: 13.5px; }
.lh-req-top small { color: #94a3b8; font-size: 12px; }
.lh-pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lh-pipeline li { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.lh-pipeline b { display: block; font-size: 16px; color: #cbd5e1; }
.lh-pipeline span { font-size: 10.5px; color: #94a3b8; }
.lh-pipeline li.done { background: rgba(46,90,135,.35); border-color: rgba(111,161,197,.35); }
.lh-pipeline li.done b { color: #fff; }
.lh-pipeline li.now { background: rgba(59,130,246,.3); border-color: rgba(147,197,253,.55); }
.lh-pipeline li.now b { color: #fff; }
.lh-crew { display: grid; gap: 8px; }
.lh-crew-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.lh-crew-row > div { flex: 1; min-width: 0; }
.lh-crew-row strong { display: block; color: #fff; font-size: 13.5px; }
.lh-crew-row small { color: #94a3b8; font-size: 12px; }
.lh-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #2e5a87; color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.lh-avatar-2 { background: #0f766e; }

/* ---------- Capability strip ---------- */
.lh-strip { background: #fff; border-bottom: 1px solid var(--lh-line); }
.lh-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.lh-strip-grid > div { padding: 26px 20px; border-left: 1px solid var(--lh-line); display: grid; gap: 4px; }
.lh-strip-grid > div:first-child { border-left: 0; }
.lh-strip-grid b { font-family: 'Montserrat', sans-serif; font-size: 24px; color: var(--lh-blue); }
.lh-strip-grid span { color: var(--lh-slate); font-size: 13.5px; line-height: 1.45; }

/* ---------- Sections ---------- */
.lh-section { padding: 88px 0; background: var(--lh-bg); }
.lh-section-alt { background: #fff; }
.lh-section-dark { background: linear-gradient(160deg, #0b1324 0%, #13284a 60%, #0f172a 100%); color: #e2e8f0; }
.lh-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.lh-label { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lh-blue); }
.lh-head h2, .lh-mobile-text h2, .lh-cta h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; letter-spacing: -.015em; color: var(--lh-navy); margin: 0 0 14px; }
.lh-head p { margin: 0; color: var(--lh-slate); font-size: 16px; line-height: 1.65; }
.lh-head-light .lh-label { color: #93c5fd; }
.lh-head-light h2 { color: #fff; }
.lh-head-light p { color: #cbd5e1; }

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

/* Why */
.lh-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lh-why-card { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 24px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.lh-why-card p { margin: 6px 0 16px; color: var(--lh-slate); line-height: 1.6; }
.lh-why-card p:last-child { margin-bottom: 0; color: var(--lh-ink); font-weight: 500; }
.lh-why-before, .lh-why-after { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.lh-why-before { background: #fef2f2; color: #b91c1c; }
.lh-why-after { background: #ecfdf5; color: #047857; }

/* Role cards */
.lh-card { background: var(--lh-bg); border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 26px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.lh-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(15,23,42,.25); border-color: #cbd5e1; }
.lh-card h3 { margin: 16px 0 8px; font-size: 18px; color: var(--lh-navy); }
.lh-card p { margin: 0 0 16px; color: var(--lh-slate); line-height: 1.6; }
.lh-card-icon, .lh-module-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #e0ecf8; color: var(--lh-blue); }
.lh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lh-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--lh-ink); font-size: 13.5px; line-height: 1.45; }
.lh-list .lh-tick { margin-top: 2px; }
.lh-list-lg li { font-size: 15px; }

/* Modules */
.lh-group { margin-top: 44px; }
.lh-group-1 { margin-top: 0; }
.lh-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--lh-line); padding-bottom: 12px; margin-bottom: 20px; }
.lh-group-head h3 { margin: 0; font-size: 19px; color: var(--lh-navy); }
.lh-group-head p { margin: 0; color: var(--lh-muted); }
.lh-module { background: #fff; border: 1px solid var(--lh-line); border-radius: 14px; padding: 22px; transition: border-color .18s, box-shadow .18s; }
.lh-module:hover { border-color: #bfd3e8; box-shadow: 0 12px 28px -18px rgba(46,90,135,.45); }
.lh-module h4 { margin: 14px 0 6px; font-size: 15.5px; color: var(--lh-navy); }
.lh-module p { margin: 0; color: var(--lh-slate); font-size: 13.5px; line-height: 1.6; }
.lh-group-2 .lh-module-icon { background: #dcfce7; color: #15803d; }
.lh-group-3 .lh-module-icon { background: #e0e7ff; color: #4338ca; }
.lh-group-4 .lh-module-icon { background: #ffedd5; color: #c2410c; }

/* Workflow */
.lh-flow { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.lh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: none; }
.lh-steps li { display: flex; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 18px; }
.lh-step-num { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #2e5a87); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lh-steps h4 { margin: 4px 0 6px; color: #fff; font-size: 15px; }
.lh-steps p { margin: 0; color: #cbd5e1; font-size: 13.5px; line-height: 1.55; }
.lh-flow-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.lh-flow-media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.lh-flow-badge { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.95); color: var(--lh-navy); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.lh-flow-badge strong { display: block; font-size: 14.5px; }
.lh-flow-badge small { color: var(--lh-muted); font-size: 12.5px; }
.lh-flow-badge-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #dcfce7; color: var(--lh-green); display: inline-flex; align-items: center; justify-content: center; }
.lh-flow-badge-icon svg { width: 20px; height: 20px; }

/* Compliance & security */
.lh-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.lh-panel { background: #fff; border: 1px solid var(--lh-line); border-radius: 18px; padding: 28px; }
.lh-panel h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 19px; color: var(--lh-navy); }
.lh-icon-inline { color: var(--lh-blue); }
.lh-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lh-feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.lh-feature-list li > svg { width: 38px; height: 38px; flex: 0 0 38px; padding: 9px; border-radius: 10px; background: #eef4fb; color: var(--lh-blue); }
.lh-feature-list strong { display: block; color: var(--lh-navy); font-size: 14.5px; margin-bottom: 2px; }
.lh-feature-list span { color: var(--lh-slate); font-size: 13.5px; line-height: 1.55; }

/* Mobile & offline */
.lh-mobile { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lh-mobile-text p { color: var(--lh-slate); font-size: 16px; line-height: 1.65; margin: 0 0 20px; }
.lh-mobile-cards { display: grid; gap: 14px; }
.lh-mini { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: var(--lh-bg); border: 1px solid var(--lh-line); border-radius: 14px; padding: 16px 18px; }
.lh-mini-icon { grid-row: 1 / span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #e0ecf8; color: var(--lh-blue); }
.lh-mini-icon.lh-amber { background: #fef3c7; color: var(--lh-amber); }
.lh-mini-icon.lh-green { background: #dcfce7; color: var(--lh-green); }
.lh-mini strong { color: var(--lh-navy); font-size: 14.5px; }
.lh-mini span { color: var(--lh-muted); font-size: 13px; }
.lh-mini:nth-child(2) { margin-left: 28px; }
.lh-mini:nth-child(3) { margin-left: 56px; }

/* FAQ */
.lh-faq-wrap { max-width: 860px; }
.lh-faq { display: grid; gap: 12px; }
.lh-faq details { background: #fff; border: 1px solid var(--lh-line); border-radius: 14px; padding: 0 20px; }
.lh-faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 600; font-size: 15.5px; color: var(--lh-navy); }
.lh-faq summary::-webkit-details-marker { display: none; }
.lh-faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--lh-blue); }
.lh-faq details[open] summary::after { content: '–'; }
.lh-faq details p { margin: 0 0 18px; color: var(--lh-slate); line-height: 1.65; }

/* CTA */
.lh-cta { background: linear-gradient(120deg, #2e5a87 0%, #1e3a5f 100%); padding: 64px 0; }
.lh-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lh-cta h2 { color: #fff; margin-bottom: 8px; }
.lh-cta p { margin: 0; color: #dbeafe; font-size: 16px; }
.lh-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
.lh-btn-light { background: #fff; color: var(--lh-blue); }
.lh-btn-light:hover { background: #eff6ff; }
.lh-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.lh-btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Footer */
.lh-footer { background: var(--lh-navy); color: #94a3b8; padding: 64px 0 28px; }
.lh-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #1e293b; }
.lh-footer-logo { height: 40px; width: auto; content: normal; }
.lh-footer-brand strong { display: block; color: #fff; font-size: 15px; margin: 16px 0 8px; }
.lh-footer-brand p { margin: 0; max-width: 460px; line-height: 1.65; }
.lh-footer-col h4 { margin: 0 0 14px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.lh-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lh-footer-col a { color: #94a3b8; text-decoration: none; }
.lh-footer-col a:hover { color: #fff; }
.lh-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }
.lh-footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lh-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lh-flow { grid-template-columns: 1fr; }
  .lh-flow-media { max-width: 560px; }
}
@media (max-width: 900px) {
  .lh-grid-3, .lh-why { grid-template-columns: repeat(2, 1fr); }
  .lh-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .lh-strip-grid > div:nth-child(3) { border-left: 0; }
  .lh-strip-grid > div:nth-child(n+3) { border-top: 1px solid var(--lh-line); }
  .lh-two, .lh-mobile { grid-template-columns: 1fr; }
  .lh-footer-top { grid-template-columns: 1fr 1fr; }
  .lh-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lh-hero { padding: 44px 18px 52px; }
  .lh-section { padding: 60px 0; }
  .lh-wrap { padding: 0 18px; }
  .lh-grid-3, .lh-grid-4, .lh-why, .lh-steps { grid-template-columns: 1fr; }
  .lh-strip-grid { grid-template-columns: 1fr; }
  .lh-strip-grid > div { border-left: 0; border-top: 1px solid var(--lh-line); padding: 18px 4px; }
  .lh-strip-grid > div:first-child { border-top: 0; }
  .lh-preview { padding: 16px; text-align: left; }
  .lh-hero-points { justify-content: center; }
  .lh-pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .lh-pipeline span { font-size: 9.5px; }
  .lh-mini:nth-child(2), .lh-mini:nth-child(3) { margin-left: 0; }
  .lh-cta-inner { flex-direction: column; align-items: flex-start; }
  .lh-footer-top { grid-template-columns: 1fr; }
  .public-header .brand-wordmark small { display: none; }
}
@media (max-width: 420px) {
  .public-header .brand-wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lh-card, .lh-module { transition: none; }
}
