/* BRIA landing — palette tuned for compliance / fintech / NGO due-diligence buyers.
   Navy = authority & trust; teal = safety & soundness; lots of clean white space. */
:root {
  --navy: #0b2545;       /* headings, dark bands */
  --navy-2: #13315c;     /* gradient pair */
  --ink: #0b2545;        /* primary heading ink */
  --text: #46566b;       /* body copy */
  --text-soft: #6b7a90;  /* secondary copy */
  --accent: #0d9488;     /* teal — primary action */
  --accent-dark: #0f766e;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;     /* muted band */
  --border: #e3e9f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.07);
  --max: 1040px;
  --pad-x: 1.5rem;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 0.6rem; }
#problem > h2,
#use-cases > h2,
#how-it-works > h2,
#proof > h2,
#pricing > h2 {
  text-align: center;
  margin-bottom: 1.8rem;
}
.section-intro {
  text-align: center;
  max-width: 72ch;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

/* Problem section — full-width two-column copy on wide screens */
.problem-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  color: var(--text);
  line-height: 1.65;
  text-align: center;
}
.problem-copy p { margin: 0; }

@media (min-width: 760px) {
  .problem-copy {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
    align-items: start;
  }
}
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

/* Shared column — every section's content lines up on the same left/right edges */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--pad-x);
}

/* Full-bleed background bands; inner .wrap keeps the same edges as .section */
.band { width: 100%; }
.band .wrap { padding-top: 4rem; padding-bottom: 4rem; }

.measure { max-width: 64ch; }
.muted-text { color: var(--text-soft); }

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 16px rgba(11, 37, 69, 0.2);
  flex-shrink: 0;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.05;
}
.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  white-space: nowrap;
}
.site-nav nav { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.site-nav nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-nav nav a:hover { color: var(--navy); text-decoration: none; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 44px;
  line-height: 1.45;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.btn-outline { border: 1px solid var(--border); color: var(--navy); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* Hero (dark navy band, left-aligned for a serious B2B tone) */
.band-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #dce6f2;
}
.band-hero .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 700;
  color: #5fd0c6;
  margin: 0 0 1.1rem;
}
.hero h1 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin: 0 0 1.2rem;
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: #c4d2e4;
  max-width: 54ch;
  margin: 0 0 1.5rem;
}
.hero-ai-sell {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1.8rem;
  max-width: 52ch;
  padding-left: 0.9rem;
  border-left: 3px solid #5fd0c6;
}
.hero-ai-sell-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5fd0c6;
  flex-shrink: 0;
}
.hero-ai-sell-lead {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #b9c8dc;
}
.hero-ai-sell-lead strong { color: #e8f0f8; font-weight: 600; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Light-background variant (demo page banner) */
.hero-ai-sell--light {
  margin: 0;
  max-width: 70ch;
  border-left-color: var(--accent);
}
.hero-ai-sell--light .hero-ai-sell-label { color: var(--accent-dark); }
.hero-ai-sell--light .hero-ai-sell-lead { color: var(--text); }
.hero-ai-sell--light .hero-ai-sell-lead strong { color: var(--navy); }

/* Hero API widget (right column) */
.hero-visual {
  display: none; /* hidden on mobile; shown on wide screens below */
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.4);
}

/* Endpoint bar */
.api-endpoint-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy);
  padding: 0.65rem 1rem;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.api-method-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.api-path-text {
  color: #b9cfe8;
  flex: 1;
}
.api-sample-dot {
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Card body */
.api-card-body {
  background: #fff;
  padding: 1.15rem 1.1rem;
}
.api-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.api-company-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.api-conf-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(13, 148, 136, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.api-score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.api-score-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 0.1rem;
}
.api-score-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.api-risk-band {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: #fef3c7;
  color: #92400e;
  margin-bottom: 0.25rem;
}
.api-flags-heading {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.api-flags-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.api-flags-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text);
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}
.api-chev {
  color: var(--text-soft);
  font-size: 1rem;
  flex-shrink: 0;
}
.api-flag-text { flex: 1; }
.api-pts {
  font-weight: 700;
  color: #b91c1c;
  flex-shrink: 0;
}
.api-meta-line {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.api-download-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: 1.8rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(11, 37, 69, 0.1); }
.card p { color: var(--text); margin: 0; }

/* Card icons */
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }

/* Step cards (How it works) — numbered to signal a sequence, vs icon capability cards */
.step-card { position: relative; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cards--steps .step-card h3 { color: var(--navy); }

/* Steps */
.steps { margin-top: 1.4rem; padding-left: 1.3rem; color: var(--text); max-width: 64ch; }
.steps li { margin-bottom: 0.7rem; }
.steps strong { color: var(--navy); }

/* Proof band */
.band-muted { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-grid {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 1.2rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.proof-grid li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.15rem;
  text-align: center;
}
.proof-num { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.proof-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: 0.55rem;
  line-height: 1.5;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.cards--steps .step-card p { line-height: 1.55; }
.proof-links { margin: 0; }

/* Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .btn { margin-top: auto; text-align: center; }
.price { font-size: 1.55rem; font-weight: 800; margin: 0.2rem 0 0.6rem; color: var(--navy); }
.price span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-soft); margin-top: 0.15rem; }
.price-card--featured { border-color: var(--accent); box-shadow: 0 16px 40px rgba(13, 148, 136, 0.16); }
.badge {
  position: absolute;
  top: -0.7rem;
  left: 1.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* Closing CTA band */
.band-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #dce6f2; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #c4d2e4; max-width: 52ch; margin: 0.4rem auto 1.6rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #e8f0f8;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.btn-ghost-cta:hover {
  border-color: rgba(255,255,255,0.75);
  color: #fff;
  text-decoration: none;
}

/* Footer — disclaimer on top; links left + socials bottom-right */
.site-footer { background: var(--navy); color: #9fb2c9; padding: 2.4rem 0; }
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  row-gap: 1.1rem;
}
.disclaimer {
  font-size: 0.88rem;
  color: #9fb2c9;
  margin: 0;
  max-width: 80ch;
  grid-column: 1 / -1;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  align-items: center;
  justify-self: end;
  align-self: end;
  grid-column: 2;
  grid-row: 2;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cdd9e8;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover {
  background: rgba(13, 148, 136, 0.3);
  border-color: #5fd0c6;
  color: #fff;
  text-decoration: none;
}
.footer-social svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-links {
  margin: 0;
  font-size: 0.9rem;
  align-self: end;
  grid-column: 1;
  grid-row: 2;
}
.site-footer a { color: #cdd9e8; }
.site-footer a:hover { color: #fff; }

@media (max-width: 599px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-social {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
  }
}

/* Wider screens: multi-column grids + split hero */
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-visual {
    display: block;
    align-self: center;
  }
  .hero h1 { font-size: clamp(2rem, 2.8vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
