/* ===================================================================
   FinPeak shared stylesheet
   Pattern library ported from finpeak.app (structure only).
   Fresh palette: warm paper + ink + single slate-indigo accent.
   =================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all .2s ease; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

:root {
  --paper:     #F6F4EF;
  --paper-2:   #FFFFFF;
  --paper-warm:#EDE8DE;
  --ink:       #12151A;
  --ink-2:     #1D2128;
  --muted:     #5C6068;
  --muted-2:   #8A8F98;
  --rule:      #DCD6C8;
  --accent:       oklch(0.48 0.09 240);   /* slate-indigo */
  --accent-soft:  oklch(0.92 0.03 240);
  --accent-deep:  oklch(0.34 0.08 245);
  --accent-bright:oklch(0.62 0.11 235);
  --positive:     oklch(0.58 0.10 150);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter Tight', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(18,21,26,0.06);
  --shadow-md: 0 10px 30px -12px rgba(18,21,26,0.18);
  --shadow-lg: 0 22px 60px -24px rgba(18,21,26,0.28);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.navbar.scrolled {
  background: rgba(246,244,239,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
  padding: 12px 0;
}
.navbar-container {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.navbar-logo {
  font-family: var(--font-body);
  font-size: 19px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 15px; font-weight: 600;
}
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-link {
  color: var(--muted); font-size: 14px; font-weight: 500;
  position: relative; padding: 6px 0;
}
.navbar-link.active, .navbar-link:hover { color: var(--ink); }
.navbar-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
}
.navbar-cta {
  background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.navbar-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.mobile-menu-btn { display: none; font-size: 22px; color: var(--ink); }
@media (max-width: 880px) {
  .navbar-links { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--paper);
  padding: 160px 32px 100px;
  overflow: hidden;
}
.hero-inner { max-width: 1240px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero-tagline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.hero-tagline::before { content: ""; width: 20px; height: 1px; background: var(--muted); }
.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 400; letter-spacing: -0.035em; line-height: 1.0;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 18ch;
}
.hero-headline em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero-subheadline {
  font-size: 19px; line-height: 1.5;
  color: var(--muted); max-width: 62ch; margin-bottom: 20px;
}
.hero-subheadline.lead { color: var(--ink); font-weight: 400; }
.hero-cta-container { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-meta {
  display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-glyph {
  position: absolute; right: -160px; top: 18%;
  width: 560px; height: 560px;
  background: radial-gradient(circle at 40% 40%, var(--accent-soft) 0%, transparent 65%);
  z-index: 1; pointer-events: none;
  border-radius: 50%;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 70%);
  opacity: 0.5; z-index: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: transform .2s, background .2s, color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow {
  width: 12px; height: 12px; display: inline-block;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ===== SECTIONS ===== */
.section { position: relative; padding: 120px 32px; }
.section-wrap { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-bottom: 64px; align-items: end;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.section-label::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.section-title {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--ink);
}
.section-title em {
  font-family: var(--font-display); font-style: italic; color: var(--accent);
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 17px; color: var(--muted); line-height: 1.55;
  max-width: 54ch; padding-top: 20px;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 80px 24px; }
}

/* ===== SERVICE SELECTOR (home hero secondary) ===== */
.selector-band {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px 32px;
}
.selector-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.selector-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex; flex-direction: column; min-height: 280px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.selector-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.selector-card .tag {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.selector-card h3 {
  font-family: var(--font-body);
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 14px;
}
.selector-card p {
  font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: auto;
}
.selector-card .see-scope {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.selector-card .see-scope::after {
  content: "→"; transition: transform .2s ease;
}
.selector-card:hover .see-scope::after { transform: translateX(4px); }
@media (max-width: 900px) { .selector-grid { grid-template-columns: 1fr; } }

/* ===== LIFECYCLE CAROUSEL ===== */
.lifecycle { background: var(--paper); }
.phase-rail {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 36px;
}
.phase-label {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.phase-label.is-current { color: var(--accent); border-bottom-color: var(--accent); }
.phase-label .count { color: var(--muted-2); }

.stage-rail {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 8px; padding: 36px 0 24px;
  position: relative;
}
.stage-node {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; cursor: pointer;
  padding: 4px; background: transparent;
}
.node-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper-2);
  border: 1.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--muted);
  transition: all .25s ease;
  position: relative;
}
.stage-node[data-status="inactive"] .node-circle {
  border-style: dashed; background: transparent;
  color: var(--muted-2);
}
.stage-node[data-status="partial"] .node-circle {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
}
.stage-node[data-status="active"] .node-circle {
  border-color: var(--ink);
  color: var(--ink);
}
.stage-node.selected .node-circle {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}
.stage-node:hover .node-circle { transform: scale(1.05); }
.node-title {
  font-size: 11.5px; font-weight: 500; text-align: center;
  line-height: 1.3; color: var(--muted);
  max-width: 92px;
}
.stage-node[data-status="active"] .node-title,
.stage-node[data-status="partial"] .node-title { color: var(--ink); }
.stage-node[data-status="inactive"] .node-title { color: var(--muted-2); }
.stage-node.selected .node-title { color: var(--ink); font-weight: 600; }

/* connector line */
.stage-rail::before {
  content: ""; position: absolute;
  left: 5%; right: 5%; top: 64px;
  height: 1px; background: var(--rule); z-index: 0;
}

/* detail panel */
.stage-detail {
  margin-top: 32px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 40px 44px;
  display: none;
  animation: slideDown .3s ease;
}
.stage-detail.visible { display: block; }
@keyframes slideDown { from { opacity:0; transform: translateY(-8px);} to {opacity:1;transform:translateY(0);} }

.stage-detail-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 24px; margin-bottom: 20px;
}
.stage-detail-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 64px; line-height: 0.9; color: var(--accent);
}
.stage-detail-title {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em; line-height: 1.1;
}
.stage-detail-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.stage-detail-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stage-detail-desc {
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
  max-width: 90ch; margin-bottom: 18px;
}
.stage-detail-note {
  display: inline-block;
  font-size: 13.5px; color: var(--accent);
  padding: 10px 14px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  margin-bottom: 24px;
  max-width: 80ch;
}
.stage-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.stage-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; font-weight: 500;
}
.stage-col ul { display: flex; flex-direction: column; gap: 10px; }
.stage-col li {
  display: grid; grid-template-columns: 14px 1fr; gap: 10px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
}
.stage-col li::before {
  content: "→"; color: var(--muted-2); font-weight: 500;
}
.stage-col.deliverables li::before { content: "✓"; color: var(--accent); }
.islamic-tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.1em;
  padding: 2px 6px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  color: var(--ink); border-radius: 3px;
  margin-left: 6px; vertical-align: middle;
}
@media (max-width: 1100px) {
  .stage-rail { grid-template-columns: repeat(5, 1fr); gap: 20px 12px; }
  .stage-rail::before { display: none; }
  .phase-rail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stage-rail { grid-template-columns: repeat(3, 1fr); }
  .stage-cols { grid-template-columns: 1fr; gap: 28px; }
  .stage-detail { padding: 28px 24px; }
}

/* ===== WHY FINPEAK ===== */
.why-section {
  background: var(--ink); color: var(--paper);
  padding: 120px 32px;
  position: relative; overflow: hidden;
}
.why-section .section-label { color: var(--accent-bright); }
.why-section .section-label::before { background: var(--accent-bright); }
.why-section .section-title { color: var(--paper); }
.why-section .section-subtitle { color: #9ea2aa; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
.why-card {
  background: #1c1f26;
  border: 1px solid #2a2e36;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform .3s ease, border-color .3s ease;
  position: relative;
}
.why-card:hover {
  border-color: var(--accent-bright); transform: translateY(-4px);
}
.why-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.why-card .icon svg { width: 22px; height: 22px; stroke: var(--accent-bright); fill: none; stroke-width: 1.5; }
.why-card h3 {
  font-family: var(--font-body); font-weight: 500;
  font-size: 18px; margin-bottom: 10px; letter-spacing: -0.01em;
}
.why-card p { font-size: 14px; line-height: 1.6; color: #b4b8c1; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== ABOUT + STATS ===== */
.about-section { background: var(--paper); }
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px;
  align-items: start;
}
.about-content p {
  font-size: 16px; line-height: 1.7; color: var(--ink-2);
  margin-bottom: 16px; max-width: 62ch;
}
.about-credentials {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--accent);
  padding-top: 20px; margin-top: 10px;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px;
  min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-value {
  font-family: var(--font-display); font-style: italic;
  font-size: 52px; font-weight: 400; color: var(--ink);
  line-height: 1;
}
.stat-label {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.4; margin-top: auto; padding-top: 20px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===== DOMICILE SUPPLEMENT ===== */
.domicile-section { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.domicile-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start;
}
.domicile-deliverables {
  background: var(--paper-warm);
  border-radius: 16px; padding: 32px;
}
.domicile-deliverables h4 {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 18px;
}
.domicile-deliverables ul { display: flex; flex-direction: column; gap: 14px; }
.domicile-deliverables li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink-2);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.domicile-deliverables li:last-child { border-bottom: 0; padding-bottom: 0; }
.domicile-deliverables li::before { content: "→"; color: var(--accent); font-weight: 500; }
.domicile-badges {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
}
.domicile-badge {
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  background: var(--paper);
}
.domicile-badge .flag { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
@media (max-width: 900px) { .domicile-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ===== ISLAMIC FINANCE BLOCK ===== */
.islamic-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.islamic-inner {
  max-width: 1240px; margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 64px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
  align-items: start;
}
.islamic-section .section-label { color: var(--positive); }
.islamic-section .section-label::before { background: var(--positive); }
.islamic-features { display: flex; flex-direction: column; gap: 20px; }
.islamic-feature {
  padding: 20px 22px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 12px;
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
}
.islamic-feature::before {
  content: "✓"; color: var(--positive); font-weight: 600; font-size: 15px;
  padding-top: 1px;
}
.islamic-feature p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.islamic-note {
  margin-top: 24px; font-family: var(--font-mono);
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em;
}
@media (max-width: 900px) { .islamic-inner { grid-template-columns: 1fr; padding: 40px 28px; gap: 36px; } }

/* ===== CTA BLOCK ===== */
.cta-section {
  background: var(--ink); color: var(--paper);
  padding: 120px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.08; pointer-events: none;
}
.cta-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 24px;
}
.cta-title em { font-family: var(--font-display); font-style: italic; color: var(--accent-bright); }
.cta-sub {
  font-size: 17px; color: #b4b8c1; line-height: 1.55;
  max-width: 52ch; margin: 0 auto 36px;
}
.cta-actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.cta-section .btn-primary { background: var(--paper); color: var(--ink); }
.cta-section .btn-primary:hover { background: var(--accent-bright); color: var(--ink); }
.cta-section .btn-ghost { border-color: var(--paper); color: var(--paper); }
.cta-section .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ===== FOOTER ===== */
.footer {
  background: #0a0c10;
  color: #b4b8c1;
  padding: 72px 32px 36px;
  border-top: 1px solid #1a1d24;
}
.footer-container { max-width: 1240px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid #1a1d24;
}
.footer-brand-logo { color: var(--paper); }
.footer-tag {
  font-size: 14px; color: #8a8f98; max-width: 30ch; line-height: 1.55;
  margin-top: 16px;
}
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #676c75; font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14.5px; color: #b4b8c1; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: #676c75;
  letter-spacing: 0.02em;
}
.footer-bottom .legal { display: flex; gap: 20px; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ===== PROBLEM GRID (M&A page) ===== */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: 0;
}
.problem-card {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--rule);
  background: var(--paper-2);
}
.problem-card:last-child { border-right: 0; }
.problem-num {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 32px;
  display: flex; justify-content: space-between;
}
.problem-num .tag { color: var(--accent); }
.problem-card h3 {
  font-family: var(--font-body); font-weight: 400;
  font-size: 24px; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 14px;
}
.problem-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.problem-stat {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 5px 10px; border: 1px solid var(--rule);
  border-radius: 4px; color: var(--ink);
}
.problem-closer {
  padding: 40px 36px; border-top: 1px solid var(--rule);
  font-size: 17px; line-height: 1.55; color: var(--ink);
  font-family: var(--font-body); font-weight: 400;
  letter-spacing: -0.005em;
}
.problem-closer em {
  font-family: var(--font-display); font-style: italic; color: var(--accent);
}
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .problem-card:last-child { border-bottom: 0; }
}

/* ===== MODELS (M&A engagement) ===== */
.models-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.model-card {
  background: var(--paper-warm);
  border-radius: 20px;
  padding: 36px 32px 40px;
  display: flex; flex-direction: column;
  min-height: 360px;
  position: relative; overflow: hidden;
}
.model-card.hi {
  background: var(--ink); color: var(--paper);
}
.model-card.hi .model-meta { color: #8a8f98; }
.model-card.hi .model-when { border-top-color: rgba(255,255,255,0.12); color: #b4b8c1; }
.model-card.hi .model-when strong { color: var(--paper); }
.model-meta {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
  display: flex; justify-content: space-between;
}
.model-card h3 {
  font-family: var(--font-body); font-weight: 400;
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 12px;
}
.model-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-bottom: auto; }
.model-card.hi p { color: #b4b8c1; }
.model-when {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
}
.model-when strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .models-grid { grid-template-columns: 1fr; } }

/* ===== BUY-SIDE LIST ===== */
.buy-section { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.buy-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 56px; margin-top: 40px;
}
.buy-item {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  font-size: 15px; line-height: 1.5;
}
.buy-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
.buy-item .k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-top: 3px; letter-spacing: 0.08em; }
@media (max-width: 880px) {
  .buy-list { grid-template-columns: 1fr; }
  .buy-item:nth-last-child(-n+2) { border-bottom: 0; }
  .buy-item:last-child { border-bottom: 1px solid var(--rule); }
}

/* ===== LEGAL COMPRESSION ===== */
.legal-figure {
  background: var(--paper-warm);
  border-radius: 20px; padding: 44px;
  margin-bottom: 40px;
}
.legal-figure .bar-row { margin-bottom: 24px; }
.legal-figure .bar-row:last-child { margin-bottom: 0; }
.bar-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 10px;
}
.bar {
  height: 42px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center;
  padding: 0 20px;
  font-family: var(--font-mono); font-size: 13px;
}
.bar .range { margin-left: auto; opacity: 0.9; }
.bar.after {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent-deep));
  color: var(--paper);
  width: 52%;
}
.legal-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.legal-col h4 {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 16px;
}
.legal-col ul { display: flex; flex-direction: column; gap: 0; }
.legal-col li {
  padding: 12px 0; font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
}
.legal-col li:last-child { border-bottom: 0; }
.legal-col.produce li::before { content: "•"; color: var(--accent); font-weight: 700; }
.legal-col.counsel li::before { content: "•"; color: var(--ink); font-weight: 700; }
.legal-callout {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--ink); color: var(--paper);
  border-radius: 16px;
  font-size: 17px; line-height: 1.5;
}
.legal-callout em {
  font-family: var(--font-display); font-style: italic; color: var(--accent-bright);
}
@media (max-width: 900px) { .legal-split { grid-template-columns: 1fr; gap: 28px; } }

/* ===== COVERAGE ===== */
.coverage-section { background: var(--paper-warm); }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.coverage-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 16px; margin-top: 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.chip .flag { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.lang-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.lang {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: var(--ink); color: var(--paper);
}
.lang.secondary {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.formalities {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
}
.formalities h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 18px;
}
.formalities ul { display: flex; flex-direction: column; gap: 10px; }
.formalities li {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.formalities li:last-child { border-bottom: 0; padding-bottom: 0; }
.formalities li strong { font-weight: 500; color: var(--ink); }
.coverage-section h4.col-head {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .coverage-grid { grid-template-columns: 1fr; gap: 40px; }
  .coverage-list { grid-template-columns: 1fr; }
}
