/* LedgerBridge marketing site — design tokens mirrored from
   frontend-main/libs/shared/ui-components/src/lib/theme/tokens.ts */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --disabled: #9ca3af;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --line: #e5e7eb;
  --mint: #0e9478;
  --mint-bright: #50d0a4;
  --mint-soft: #e7f7f1;
  --blue: #3088c8;
  --amber: #b45309;
  --amber-bright: #ffcc65;
  --risk: #dc2626;
  --risk-soft: #fee5e6;
  --panel: #111827;
  --hero-g1: #0f8d77;
  --hero-g2: #2b74ad;
  --shadow-card: 0 1px 0 -1px rgba(0,0,0,.05), 0 1px 2px -1px rgba(0,0,0,.05), 0 2px 4px -2px rgba(0,0,0,.05), 0 3px 6px -3px rgba(0,0,0,.05);
  --shadow-lift: 0 2px 4px rgba(17,24,39,.06), 0 14px 32px rgba(17,24,39,.1);
  --r-btn: 8px;
  --r-card: 24px;
  --r-pill: 100px;
  --font-head: "DM Sans", "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--ink-soft); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,245,247,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: background .2s, box-shadow .2s;
}
.header.scrolled { background: var(--surface); box-shadow: var(--shadow-card); border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand img { width: 176px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
.nav a { display: inline-block; padding: 10px 18px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; background: var(--bg); }
.nav a.active { background: var(--primary); color: #fff; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-pill); font-family: var(--font-body);
  font-size: 16px; font-weight: 500; line-height: 20px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-secondary:hover { background: var(--primary-soft); }
.btn-tertiary { background: var(--bg); color: var(--ink); padding: 8px 16px; font-size: 15px; }
.btn-tertiary:hover { background: var(--line); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f3f5f7; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(128deg, var(--hero-g1), var(--hero-g2));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M60 2 110 28v52L60 106 10 80V28z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
}
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 640px; font-size: 19px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-sub { padding-top: 72px; padding-bottom: 72px; }
.hero-sub h1 { font-size: clamp(30px, 4vw, 44px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-bright); }

/* Trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust div { border-left: 3px solid var(--primary); padding-left: 16px; }
.trust strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.trust span { color: var(--muted); font-size: 14px; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 32px; overflow: hidden;
}
.card.link { transition: transform .15s, box-shadow .15s; color: var(--ink); }
.card.link p { color: var(--ink-soft); }
.card.link .more { color: var(--primary); }
.card.link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); text-decoration: none; }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.icon.mint { background: var(--mint-soft); color: var(--mint); }
.icon.amber { background: #fff4d6; color: var(--amber); }
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.tag.info { background: var(--primary-soft); color: var(--primary); }
.tag.success { background: #dffbed; color: #00b870; }
.tag.warn { background: #fff4d6; color: var(--amber); }
.tag.risk { background: var(--risk-soft); color: #b6121f; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 16px; }

ul.check { list-style: none; padding: 0; margin: 0 0 16px; }
ul.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9478' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Two-column feature rows */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: #fff; background: var(--primary); border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: 14px;
}
.step h4 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Dark panel */
.panel { background: var(--panel); color: #d1d5db; border-radius: var(--r-card); padding: 48px; }
.panel h2, .panel h3 { color: #fff; }
.panel .eyebrow { color: var(--mint-bright); }
.panel .quote { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: #fff; line-height: 1.3; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.table th { background: var(--bg); font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table td.good { color: var(--mint); font-weight: 600; }
.table td.bad { color: var(--risk); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 24px; margin-bottom: 12px; }
summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--primary); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); padding-bottom: 16px; }

/* CTA band */
.cta { background: linear-gradient(128deg, var(--hero-g1), var(--hero-g2)); color: #fff; border-radius: var(--r-card); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.88); }

/* Team */
.person { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.person img { width: 140px; height: 140px; object-fit: cover; border-radius: 20px; }
.person .role { color: var(--primary); font-weight: 600; margin-bottom: 8px; }

/* Insights */
.post-card img, .post-cover { width: 100%; aspect-ratio: 16/9; border-radius: 16px; object-fit: cover; margin-bottom: 18px; background: linear-gradient(128deg, var(--hero-g1), var(--hero-g2)); }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 28px; margin-top: 40px; }
.article h3 { margin-top: 28px; }
.article p, .article li { font-size: 17px; color: var(--ink-soft); }
.article blockquote { border-left: 3px solid var(--primary); margin: 24px 0; padding: 4px 20px; font-family: var(--font-head); font-size: 20px; color: var(--ink); }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-btn);
  font-family: var(--font-body); font-size: 16px; background: var(--surface); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Footer */
.footer { background: var(--panel); color: #9ca3af; padding: 64px 0 32px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #d1d5db; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer .brand-foot img { width: 180px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .9; }
.footer .legal { border-top: 1px solid #1f2937; padding-top: 24px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer .legal a { display: inline; margin: 0 0 0 16px; }

/* Breadcrumb */
.crumbs { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.crumbs a { color: #fff; }

@media (max-width: 960px) {
  .grid-3, .grid-4, .trust, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev > :first-child { order: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .trust, .steps { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lift); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .brand img { width: 148px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .card { padding: 24px; }
  .panel { padding: 28px; }
  .person { grid-template-columns: 1fr; }
  .person img { width: 120px; height: 120px; }
  .form .row { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .footer .legal a { margin: 0 16px 0 0; }
}

/* Article hero: title left, cover image right */
.hero-article { padding-top: 0; padding-bottom: 0; }
.hero-article .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-article h1 { font-size: clamp(28px, 3.2vw, 40px); }
.hero-article .lead { font-size: 17px; }
.hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 44px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.18); }
@media (max-width: 960px) {
  .hero-article .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .hero-image { max-width: 640px; }
}

/* Three-column step grid (collapses with the other grids) */
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .steps.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .steps.cols-3 { grid-template-columns: 1fr; }
  /* wide tables scroll inside their own box instead of widening the page */
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th, .table td { padding: 10px 12px; font-size: 14px; }
  .article { overflow-wrap: anywhere; }
}
