/* MetricBooks — premium B2B SaaS landing */
:root {
  --navy-950: #0A1628;
  --navy-900: #0E1E36;
  --navy-800: #14294A;
  --navy-700: #1C3460;
  --navy-600: #2A4877;
  --navy-500: #3B5C92;
  --navy-300: #6B82A8;
  --navy-200: #A6B6CE;

  --teal-700: #0F766E;
  --teal-600: #0E8A80;
  --teal-500: #12A89B;
  --teal-400: #2DC4B6;
  --teal-300: #6FDDD2;
  --teal-100: #DBF5F1;
  --teal-50:  #EDFAF8;

  --gray-50:  #F7F9FC;
  --gray-100: #F0F3F8;
  --gray-150: #E6EBF2;
  --gray-200: #D9E0EA;
  --gray-300: #C2CCDA;
  --gray-400: #94A2B5;
  --gray-500: #6B7891;
  --gray-700: #3F4A5F;
  --gray-900: #1A2233;

  --white: #FFFFFF;
  --amber-500: #E6A623;
  --rose-500:  #DC4A6B;
  --green-500: #15B47C;

  --shadow-xs: 0 1px 2px rgba(15, 28, 56, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 28, 56, 0.06), 0 1px 2px rgba(15, 28, 56, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 28, 56, 0.08), 0 2px 4px rgba(15, 28, 56, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 28, 56, 0.14), 0 6px 16px rgba(15, 28, 56, 0.06);
  --shadow-xl: 0 40px 80px rgba(10, 22, 40, 0.18), 0 10px 24px rgba(10, 22, 40, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;

  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ───────── NAV ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(217,224,234,0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-signin { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.nav-signin:hover { color: var(--navy-900); }

/* ───── Language pill (EN / ES) ───── */
.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--gray-100);
  border: 1px solid var(--gray-150);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--gray-500);
  transition: color .15s ease, background .15s ease;
}
.lang-pill a:hover { color: var(--navy-900); }
.lang-pill a.active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}
@media (max-width: 720px) {
  .lang-pill { font-size: 11px; }
  .lang-pill a { min-width: 24px; height: 20px; padding: 0 6px; }
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-teal {
  background: linear-gradient(180deg, var(--teal-500) 0%, var(--teal-600) 100%);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 14px rgba(18, 168, 155, 0.25);
}
.btn-teal:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 22px rgba(18, 168, 155, 0.35); }

.btn-ghost {
  background: white;
  color: var(--navy-900);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--gray-300); background: var(--gray-50); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 9px; }

/* ───────── SECTIONS ───────── */
section { padding: 120px 0; position: relative; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--teal-100);
}
.section-eyebrow.gray {
  color: var(--gray-700);
  background: var(--gray-100);
  border-color: var(--gray-150);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--navy-950);
  margin: 18px 0 16px;
  text-wrap: balance;
}
.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray-700);
  max-width: 640px;
  text-wrap: pretty;
}
.section-head { margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ───────── HERO ───────── */
.hero {
  padding: 80px 0 80px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(45, 196, 182, 0.12) 0%, rgba(45, 196, 182, 0) 60%),
    linear-gradient(180deg, #FAFCFE 0%, #FFFFFF 70%);
  border-bottom: 1px solid var(--gray-150);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 28, 56, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 56, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; padding-top: 32px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-700);
  background: white;
  border: 1px solid var(--gray-200);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 28px;
}
.hero-badge .pill {
  background: var(--navy-900);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--navy-950);
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--teal-500) 0%, var(--teal-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.hero-meta {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--gray-500);
}
.hero-meta .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); margin-right: 8px; box-shadow: 0 0 0 4px rgba(21,180,124,0.15); }

/* Hero data-flow visual */
.flow-wrap {
  margin-top: 72px;
  position: relative;
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(247,249,252,0.7) 100%);
  border: 1px solid var(--gray-150);
  box-shadow: var(--shadow-lg);
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}
.flow-card {
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-card-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--gray-100);
}
.flow-card-head .logo {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: white;
}
.flow-card-head .name { font-weight: 600; font-size: 14px; color: var(--navy-900); }
.flow-card-head .meta { font-size: 11.5px; color: var(--gray-500); margin-left: auto; display:flex; align-items:center; gap:6px; }
.flow-card-head .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.6;transform:scale(.8);} 50%{opacity:1;transform:scale(1.1);} }

.qb-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
}
.qb-row .v { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-900); }

.mb-center { padding: 22px 18px; align-items: center; text-align: center; }
.mb-logo-big {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  margin: 0 auto 10px;
  box-shadow: 0 12px 30px rgba(14, 41, 74, 0.25);
  position: relative;
}
.mb-pipeline {
  display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px;
}
.mb-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--gray-700);
  padding: 8px 10px; border-radius: 8px; background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.mb-step .check {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-500); color: white;
  display: grid; place-items: center; font-size: 10px;
}

.pbi-chart { background: var(--gray-50); border-radius: 10px; padding: 12px; }
.pbi-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.pbi-bar { flex: 1; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); border-radius: 3px 3px 0 0; }
.pbi-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px; }
.pbi-stat .lbl { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.pbi-stat .val { font-size: 16px; font-weight: 600; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.pbi-stat .delta { font-size: 11px; color: var(--green-500); font-weight: 600; }

/* Connector arrows in hero flow */
.flow-connector {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 2px;
  background-image: linear-gradient(90deg, var(--teal-400) 50%, transparent 50%);
  background-size: 10px 2px;
  z-index: 0;
}
.flow-connector::after {
  content: ''; position: absolute; right: -1px; top: -4px;
  width: 0; height: 0;
  border-left: 8px solid var(--teal-500);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.flow-packet {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(45,196,182,0.2);
  top: -3px;
}

.hero-logos {
  display: flex; gap: 40px; justify-content: center; align-items: center;
  margin-top: 56px; flex-wrap: wrap;
  opacity: 0.85;
}
.hero-logos .lbl {
  font-size: 12px; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.hero-logos .logo-row { display:flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.hero-logos .logo-row span {
  font-weight: 700; font-size: 16px; color: var(--gray-400); letter-spacing: -0.01em;
}

/* ───────── PAIN ───────── */
.pain { background: var(--gray-50); border-top: 1px solid var(--gray-150); border-bottom: 1px solid var(--gray-150); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card {
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pain-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFE9EC 0%, #FFD5DB 100%);
  color: var(--rose-500);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.pain-card h3 {
  font-size: 18px; font-weight: 600; color: var(--navy-900);
  margin: 0 0 10px; letter-spacing: -0.01em;
}
.pain-card p { font-size: 14.5px; line-height: 1.55; color: var(--gray-700); margin: 0; }
.pain-card .visual {
  margin-top: 22px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-700);
  min-height: 90px;
  position: relative;
  overflow: hidden;
}

/* ───────── HOW IT WORKS ───────── */
.how { background: white; }
.how-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 12px;
}
.how-step {
  position: relative;
  padding: 28px 24px 24px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-150);
  box-shadow: var(--shadow-xs);
  margin: 0 8px;
  z-index: 1;
}
.how-step:hover { box-shadow: var(--shadow-md); }
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy-900);
  color: white;
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.how-step.active .how-num { background: var(--teal-600); }
.how-step h4 {
  font-size: 17px; font-weight: 600; color: var(--navy-950);
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.how-step p { font-size: 14px; line-height: 1.55; color: var(--gray-700); margin: 0 0 18px; }
.how-step .preview {
  margin-top: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--navy-700);
  min-height: 84px;
}
.how-line {
  position: absolute;
  top: 46px;
  left: 0; right: 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--gray-200) 50%, transparent 50%);
  background-size: 8px 2px;
  z-index: 0;
}

/* ───────── FEATURES ───────── */
.features { background: var(--gray-50); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feat-card {
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.feat-card .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--teal-100);
}
.feat-card h4 { font-size: 16px; font-weight: 600; color: var(--navy-950); margin: 0 0 6px; letter-spacing: -0.01em; }
.feat-card p { font-size: 14px; line-height: 1.55; color: var(--gray-700); margin: 0; }

.feat-wide { grid-column: span 6; }
.feat-half { grid-column: span 3; }
.feat-third { grid-column: span 4; }
.feat-quarter { grid-column: span 3; }
.feat-tall  { grid-column: span 4; }

/* Visual treatments inside feature cards */
.feat-models {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px;
}
.feat-models .chip {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gray-50);
  color: var(--navy-700);
  border: 1px solid var(--gray-150);
}
.feat-oauth-card {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #F2F8F7, #E8F4F2);
  border: 1px solid var(--teal-100);
  display: flex; align-items: center; gap: 12px;
}
.feat-oauth-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 5px rgba(21,180,124,0.15); }
.feat-oauth-text { font-size: 13px; font-weight: 500; color: var(--navy-900); }
.feat-oauth-text small { display: block; color: var(--gray-500); font-size: 11.5px; margin-top: 2px; font-weight: 400; }

.feat-status {
  margin-top: 16px;
  display: grid; gap: 6px;
}
.feat-status .row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--gray-700);
  padding: 8px 10px; border-radius: 8px; background: var(--gray-50);
}
.feat-status .row .ok { color: var(--green-500); font-weight: 600; }

.feat-bar { height: 4px; border-radius: 999px; background: var(--gray-150); margin-top: 8px; overflow: hidden; }
.feat-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); }

/* ───────── DASHBOARD ───────── */
.dash-section { background: white; padding-bottom: 100px; }
.dash-section .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.dash-frame {
  margin-top: 60px;
  border-radius: var(--radius-2xl);
  background: white;
  border: 1px solid var(--gray-150);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.dash-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-150);
  background: linear-gradient(180deg, #FCFDFE, #F7F9FC);
}
.dash-chrome .lights { display: flex; gap: 6px; }
.dash-chrome .lights span { width: 11px; height: 11px; border-radius: 50%; background: var(--gray-200); }
.dash-chrome .url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: 8px;
  padding: 6px 14px;
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.dash-chrome .badge {
  font-size: 11.5px; font-weight: 600;
  color: var(--teal-700); background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 4px 10px; border-radius: 999px;
}
.dash-body { display: grid; grid-template-columns: 220px 1fr; min-height: 640px; background: var(--gray-50); }
.dash-side {
  background: white;
  border-right: 1px solid var(--gray-150);
  padding: 22px 14px;
}
.dash-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 18px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 14px;
}
.dash-brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--navy-900); display: grid; place-items: center; }
.dash-brand .name { font-weight: 600; font-size: 14px; color: var(--navy-900); letter-spacing: -0.01em; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: 13px; color: var(--gray-700);
  border-radius: 8px;
  font-weight: 500;
}
.dash-nav-item.active { background: var(--navy-900); color: white; }
.dash-nav-item:not(.active):hover { background: var(--gray-50); color: var(--navy-900); }
.dash-nav-section {
  font-size: 10.5px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 16px 10px 6px;
}

.dash-main { padding: 24px; display: grid; gap: 18px; align-content: start; grid-template-columns: 1fr; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.dash-header h3 { font-size: 22px; font-weight: 600; color: var(--navy-950); margin: 0; letter-spacing: -0.02em; }
.dash-header .sub { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.dash-controls { display: flex; gap: 8px; }
.dash-pill {
  font-size: 12px; font-weight: 500; color: var(--gray-700);
  background: white; border: 1px solid var(--gray-200);
  padding: 6px 12px; border-radius: 999px;
}
.dash-pill.primary { background: var(--navy-900); color: white; border-color: var(--navy-900); }

.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: 14px;
  padding: 16px 18px;
}
.kpi .lbl { font-size: 12px; color: var(--gray-500); font-weight: 500; }
.kpi .val { font-size: 26px; font-weight: 600; color: var(--navy-950); margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .trend { font-size: 12px; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.kpi .trend.up { color: var(--green-500); }
.kpi .trend.down { color: var(--rose-500); }
.kpi .trend.warn { color: var(--amber-500); }
.kpi .spark { margin-top: 8px; }

.dash-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.card-panel {
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: 14px;
  padding: 18px 18px 14px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h4 { font-size: 14px; font-weight: 600; color: var(--navy-900); margin: 0; }
.panel-head .legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--gray-500); }
.panel-head .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }

.bars-wrap { height: 220px; position: relative; padding: 10px 4px 24px; }
.bars-grid { position: absolute; inset: 10px 4px 24px; }
.bars-grid .gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--gray-150); font-size: 10px; color: var(--gray-400); }
.bars-grid .gridline span { position: absolute; right: 100%; top: -7px; padding-right: 6px; white-space: nowrap; }
.bars-row { display: flex; align-items: flex-end; height: 100%; gap: 14px; padding-left: 30px; position: relative; }
.bar-pair { flex: 1; display: flex; gap: 4px; align-items: flex-end; height: 100%; position: relative; }
.bar-pair .x { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--gray-500); padding-top: 6px; }
.bar-pair .b1 { flex: 1; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); border-radius: 3px 3px 0 0; }
.bar-pair .b2 { flex: 1; background: linear-gradient(180deg, #C8D6EA, #97AFCD); border-radius: 3px 3px 0 0; }

.aging-list { display: grid; gap: 10px; }
.aging-row { display: grid; grid-template-columns: 90px 1fr 80px; align-items: center; gap: 10px; }
.aging-row .lbl { font-size: 12.5px; color: var(--gray-700); }
.aging-row .track { height: 8px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.aging-row .track > i { display: block; height: 100%; }
.aging-row .v { font-size: 12.5px; font-weight: 600; color: var(--navy-900); text-align: right; font-variant-numeric: tabular-nums; }

.cust-table { width: 100%; border-collapse: collapse; }
.cust-table th, .cust-table td {
  padding: 10px 12px; text-align: left;
  font-size: 12.5px;
  border-bottom: 1px solid var(--gray-100);
}
.cust-table th { color: var(--gray-500); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.cust-table td { color: var(--gray-700); }
.cust-table td:first-child { font-weight: 600; color: var(--navy-900); }
.cust-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-900); }

.cash-area { height: 160px; }

/* ───────── SECURITY ───────── */
.security {
  background: var(--navy-950);
  color: white;
  position: relative;
  overflow: hidden;
}
.security::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 80% 20%, rgba(45, 196, 182, 0.18), transparent 60%),
    radial-gradient(50% 60% at 20% 80%, rgba(43, 196, 182, 0.10), transparent 60%);
  pointer-events: none;
}
.security .container { position: relative; }
.security-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-300);
  background: rgba(18, 168, 155, 0.12);
  border: 1px solid rgba(45, 196, 182, 0.25);
  padding: 6px 12px; border-radius: 999px;
}
.security h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.025em;
  font-weight: 600;
  color: white;
  margin: 18px 0 16px;
  text-wrap: balance;
}
.security p.lead { font-size: 18px; line-height: 1.55; color: var(--navy-200); max-width: 560px; }

.security-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; margin-top: 60px; }
.sec-list { display: grid; gap: 10px; }
.sec-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: background .2s ease, border-color .2s ease;
}
.sec-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(45,196,182,0.3); }
.sec-item .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(45,196,182,0.14);
  color: var(--teal-300);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(45,196,182,0.2);
}
.sec-item .t { font-weight: 600; font-size: 14.5px; color: white; margin: 2px 0 4px; }
.sec-item .d { font-size: 13px; color: var(--navy-200); margin: 0; line-height: 1.5; }

.sec-visual {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 26px;
  font-family: var(--font-mono);
}
.sec-visual .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-visual .head .t { font-size: 12px; color: var(--navy-200); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-sans); }
.sec-visual .head .lock { color: var(--teal-300); }
.log-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.07);
  font-size: 11.5px; color: var(--navy-200);
  font-variant-numeric: tabular-nums;
  align-items: center;
}
.log-row .ts { color: var(--gray-400); }
.log-row .msg { color: white; }
.log-row .tag {
  font-size: 10px; padding: 2px 8px; border-radius: 6px;
  background: rgba(45,196,182,0.14); color: var(--teal-300); border: 1px solid rgba(45,196,182,0.18);
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.04em;
}
.log-row .tag.warn { background: rgba(230,166,35,0.14); color: var(--amber-500); border-color: rgba(230,166,35,0.2); }

/* ───────── PRICING ───────── */
.pricing { background: white; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-grid.single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.price-card {
  background: white;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-card.featured {
  border-color: var(--navy-900);
  box-shadow: 0 30px 60px rgba(14, 41, 74, 0.18);
  background: linear-gradient(180deg, #0E1E36 0%, #14294A 100%);
  color: white;
}
.price-card.featured h3 { color: white; }
.price-card.featured .ptag { background: var(--teal-500); color: white; }
.price-card.featured .pdesc { color: var(--navy-200); }
.price-card.featured .pprice { color: white; }
.price-card.featured .pprice .sub { color: var(--navy-200); }
.price-card.featured ul li { color: white; }
.price-card.featured ul li .ck { color: var(--teal-300); background: rgba(45,196,182,0.15); border-color: rgba(45,196,182,0.25); }
.price-card.featured .btn-ghost { background: white; color: var(--navy-900); border: none; }
.ptag {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-700);
}
.price-card h3 { font-size: 22px; font-weight: 600; color: var(--navy-950); margin: 0; letter-spacing: -0.015em; }
.pdesc { font-size: 14px; line-height: 1.55; color: var(--gray-700); margin: 0; min-height: 40px; }
.pprice { font-size: 38px; font-weight: 600; color: var(--navy-950); letter-spacing: -0.02em; }
.pprice .amount-suffix { font-size: 16px; font-weight: 500; color: var(--gray-500); margin-left: 4px; letter-spacing: 0; }
.price-card.featured .pprice .amount-suffix { color: var(--navy-200); }
.pprice .sub { display: block; font-size: 13px; font-weight: 400; color: var(--gray-500); margin-top: 4px; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.price-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--gray-700); line-height: 1.5;
}
.ck {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-100);
  display: grid; place-items: center; font-size: 11px;
  flex-shrink: 0; margin-top: 1px;
}

/* ───────── FINAL CTA ───────── */
.final-cta {
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(45,196,182,0.18), transparent 60%),
    linear-gradient(180deg, #0A1628 0%, #0E1E36 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(60% 60% at 50% 30%, black 0%, transparent 80%);
}
.final-cta .container { position: relative; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 auto 22px;
  max-width: 800px;
  text-wrap: balance;
}
.final-cta .sub {
  font-size: 18px; line-height: 1.55; color: var(--navy-200);
  max-width: 540px; margin: 0 auto 36px;
}
.early-access {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.early-access input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
}
.early-access input::placeholder { color: var(--navy-200); }
.early-access .btn { height: 44px; }

.final-cta .meta {
  font-size: 13px; color: var(--navy-200);
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}

/* ───────── FOOTER ───────── */
footer {
  background: var(--navy-950);
  color: var(--navy-200);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 60px; margin-bottom: 40px; }
.footer-brand { font-size: 13px; line-height: 1.6; color: var(--navy-200); }
.footer-brand .lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .lockup .name { color: white; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.footer-col h5 { font-size: 12px; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col ul a { font-size: 13.5px; color: var(--navy-200); }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12.5px; color: var(--gray-500);
}

/* ───────── responsive minimal ───────── */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  .pain-grid, .price-grid:not(.single), .how-flow, .dash-kpis { grid-template-columns: 1fr 1fr; }
  .feat-wide, .feat-half, .feat-third, .feat-quarter, .feat-tall { grid-column: span 6; }
  .dash-row { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flow-row { grid-template-columns: 1fr; gap: 16px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .pain-grid, .price-grid:not(.single), .how-flow, .dash-kpis { grid-template-columns: 1fr; }
  .feat-wide, .feat-half, .feat-third, .feat-quarter, .feat-tall { grid-column: span 12; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}

/* Legal pages (privacy / terms) */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  color: var(--gray-900);
  font-family: var(--font-sans);
  line-height: 1.65;
}
.legal-header { margin-bottom: 40px; border-bottom: 1px solid var(--gray-150); padding-bottom: 32px; }
.legal-header h1 { font-size: 36px; font-weight: 700; margin: 0 0 8px; color: var(--navy-900); letter-spacing: -0.02em; }
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--teal-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.legal-back:hover { text-decoration: underline; }
.legal-effective { color: var(--gray-500); font-size: 14px; margin: 0; }
.legal-section { margin: 36px 0; }
.legal-section h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; color: var(--navy-900); }
.legal-section p { margin: 8px 0; color: var(--gray-700); }
.legal-section ul { padding-left: 20px; margin: 8px 0; }
.legal-section li { margin: 8px 0; color: var(--gray-700); }
.legal-section a { color: var(--teal-600); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-section code {
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--navy-700);
}
.legal-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-150);
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}
.legal-footer a { color: var(--gray-700); text-decoration: none; }
.legal-footer a:hover { color: var(--teal-600); }
