/* ============================================================
   UBG Component Library — Layer 2 (c- prefix)
   FROZEN after Phase 2. Pages USE these classes, never redefine.
   Values reference tokens.css only.
   ============================================================ */

/* ---------- Base / reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px; font-weight: 400; line-height: 1.75;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.c-container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.c-section { padding: var(--section-pad) 0; }
.c-section--offwhite { background: var(--offwhite); }
.c-section--navy { background: var(--navy); }
.c-section-body { max-width: 620px; }

/* ---------- Typography components ---------- */
.c-h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 5.2vw, 62px); line-height: 1.06;
  letter-spacing: -0.03em; color: var(--white);
}
.c-h1 em, .c-h1 .c-accent { font-style: normal; color: var(--amber); }
.c-h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 4vw, 44px); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--navy);
}
.c-section--navy .c-h2 { color: var(--white); }
.c-h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy);
}
.c-h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; color: var(--navy);
}
.c-eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  line-height: 1; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); display: block; margin-bottom: 14px;
}
.c-body-strong { font-weight: 600; }
.c-section--navy p { color: var(--on-navy-body); }
.c-section--navy .c-body-strong { color: var(--on-navy-strong); font-weight: 600; }

/* ---------- Buttons ---------- */
.c-btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; line-height: 1; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--ease-btn);
}
.c-btn--primary { background: var(--teal); color: var(--white); }
.c-btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }
.c-btn--secondary { background: transparent; color: var(--navy); border-color: var(--rule); }
.c-btn--secondary:hover { background: var(--offwhite); border-color: var(--navy); }
.c-btn--outline-white { background: transparent; color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.38); }
.c-btn--outline-white:hover { background: rgba(255,255,255,0.10); }
.c-btn--white { background: var(--white); color: var(--navy); }
.c-btn--white:hover { background: var(--offwhite); transform: translateY(-1px); }

/* ---------- Navigation ---------- */
.c-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 68px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.c-nav.is-scrolled { border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-nav); }
.c-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.c-nav-logo { display: flex; align-items: center; }
.c-nav-logo-img { height: 40px; width: auto; display: block; }
@media (max-width: 600px) { .c-nav-logo-img { height: 34px; } }
.c-nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.c-nav-links a { font-family: var(--font-body); font-weight: 500; font-size: 13.5px; color: var(--muted); transition: color var(--ease-btn); }
.c-nav-links a:hover, .c-nav-links a.is-active { color: var(--navy); }
.c-nav-cta { font-size: 13px; padding: 9px 18px; }
.c-nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.c-nav-burger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; transition: transform var(--ease-btn), opacity var(--ease-btn); }

/* ---------- Hero ---------- */
.c-hero { background: var(--navy); position: relative; overflow: hidden; padding: 168px 0 110px; }
.c-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--on-navy-border) 1px, transparent 1px), linear-gradient(90deg, var(--on-navy-border) 1px, transparent 1px);
  background-size: 52px 52px; opacity: 0.28; pointer-events: none;
}
.c-hero::after {
  content: ""; position: absolute; top: -180px; right: -180px; width: 700px; height: 700px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 62%); opacity: 0.16; pointer-events: none;
}
.c-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 400px; gap: 72px; align-items: center; }
.c-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15,164,164,0.14); border: 1px solid rgba(15,164,164,0.3);
  border-radius: var(--radius-pill); padding: 7px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 22px;
}
.c-hero-sub { font-size: 16.5px; color: var(--on-navy-body); max-width: 510px; margin: 20px 0 30px; }
.c-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stat card ---------- */
.c-stat-card {
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-card); padding: 30px 28px; display: grid; gap: 22px;
}
.c-stat-num {
  font-family: var(--font-display); font-weight: 900; font-size: 42px;
  line-height: 1; letter-spacing: -0.03em; color: var(--amber);
}
.c-stat-desc { font-size: 11.5px; color: rgba(255,255,255,0.48); line-height: 1.5; margin-top: 6px; }
.c-stat-inline { display: grid; gap: 6px; }

/* Stat treatment on white surfaces */
.c-stat-num--onwhite { color: var(--amber); }
.c-stat-label { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }

/* ---------- Trust bar ---------- */
.c-trust-bar { background: var(--offwhite); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 19px 0; }
.c-trust-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.c-trust-label { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--light); }
.c-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-pill);
  padding: 7px 15px; font-family: var(--font-display); font-weight: 600; font-size: 11.5px; color: var(--navy);
}
.c-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.c-pill--legal { background: var(--teal-pale); border-color: var(--teal); color: var(--teal-dark); }
.c-pill--legal::before { display: none; }

/* ---------- Cards ---------- */
.c-card {
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--teal);
  border-radius: var(--radius-card); padding: 30px 28px;
  transition: transform var(--ease-hover), box-shadow var(--ease-hover);
}
.c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.c-card-tag { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 12px; }
.c-card-icon { width: 46px; height: 46px; border-radius: var(--radius-icon); background: var(--teal-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.c-card-icon svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.6; }
.c-card .c-h3 { font-size: 20px; margin-bottom: 10px; }
.c-card-body { font-size: 14.5px; color: var(--muted); }
.c-card-metrics { border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 16px; display: flex; gap: 28px; }
.c-card-metric-num { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy); line-height: 1.1; }
.c-card-metric-label { font-size: 11.5px; color: var(--muted); }

/* Dark section cards */
.c-card--dark { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.10); border-top-width: 1px; border-radius: var(--radius-card); padding: 26px 24px; }
.c-card--dark:hover { transform: none; box-shadow: none; }
.c-card--dark .c-card-icon { background: rgba(15,164,164,0.20); }
.c-card--dark .c-h4, .c-card--dark .c-h3 { color: var(--white); }
.c-card--dark .c-card-body { color: rgba(255,255,255,0.52); font-size: 13.5px; }
.c-badge-dark { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(15,164,164,0.20); color: var(--teal); border-radius: var(--radius-pill); padding: 5px 12px; }

/* ---------- Process steps ---------- */
.c-step { position: relative; padding-left: 66px; padding-bottom: 38px; }
.c-step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 0; width: 2px; background: linear-gradient(var(--teal), transparent); }
.c-step-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--teal);
}
.c-step .c-h4 { font-size: 17px; margin-bottom: 6px; }
.c-step-body { font-size: 14.5px; color: var(--muted); max-width: 560px; }
.c-step-tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--teal-pale); color: var(--teal-dark); border-radius: var(--radius-pill); padding: 4px 12px; margin-top: 10px; }

/* ---------- Pull quote ---------- */
.c-quote { position: relative; padding: 10px 0 0 0; }
.c-quote-mark { font-family: var(--font-quote); font-size: 96px; line-height: 0.6; color: var(--teal); opacity: 0.30; display: block; margin-bottom: 8px; }
.c-quote-text { font-family: var(--font-quote); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.8vw, 28px); line-height: 1.5; letter-spacing: -0.01em; color: var(--navy); max-width: 760px; }
.c-quote-attr { margin-top: 22px; }
.c-quote-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--navy); }
.c-quote-role { font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.c-cta-band { background: var(--teal); position: relative; overflow: hidden; padding: var(--section-pad) var(--pad-x); text-align: center; }
.c-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 52px 52px; pointer-events: none;
}
.c-cta-band-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.c-cta-band .c-cta-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; color: var(--white); }
.c-cta-band .c-cta-sub { font-size: 16px; color: rgba(255,255,255,0.78); margin: 16px 0 30px; }
.c-cta-band .c-eyebrow { color: rgba(255,255,255,0.70); }
.c-cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Legal code chips ---------- */
.c-chip-legal {
  display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px;
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-pill);
  padding: 7px 16px; color: rgba(255,255,255,0.70); background: transparent;
}

/* ---------- Footer ---------- */
.c-footer { background: var(--footer-bg); color: var(--on-navy-body); padding: 64px 0 40px; }
.c-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.c-footer-col-title { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.c-footer a { font-size: 13.5px; color: rgba(255,255,255,0.62); transition: color var(--ease-btn); display: inline-block; margin-bottom: 9px; }
.c-footer a:hover { color: var(--white); }
.c-footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--white); margin-bottom: 6px; }
.c-footer-brand .c-accent-teal { color: var(--teal); }
.c-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.45); }
.c-footer-legal { border-top: 1px solid rgba(255,255,255,0.10); padding-top: 26px; font-size: 12px; line-height: 1.65; color: var(--on-navy-legal); }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .c-reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--ease-reveal), transform var(--ease-reveal); }
  .c-reveal.is-visible { opacity: 1; transform: none; }
  .c-reveal-d1 { transition-delay: 0.1s; }
  .c-reveal-d2 { transition-delay: 0.2s; }
  .c-reveal-d3 { transition-delay: 0.3s; }
  .c-reveal-d4 { transition-delay: 0.4s; }
}

/* ---------- Generic grids ---------- */
.c-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--card-gap); }
.c-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.c-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); }
.c-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .c-hero-inner, .c-split { grid-template-columns: 1fr; gap: 44px; }
  .c-grid-3, .c-grid-4 { grid-template-columns: 1fr 1fr; }
  .c-footer-grid { grid-template-columns: 1fr 1fr; }
  .c-nav-links { display: none; }
  .c-nav-burger { display: block; }
  .c-nav-links.is-open {
    display: flex; position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-nav);
    padding: 12px var(--pad-x) 20px;
  }
  .c-nav-links.is-open li { width: 100%; }
  .c-nav-links.is-open a { display: block; padding: 12px 0; font-size: 15px; }
}
@media (max-width: 600px) {
  .c-grid-2, .c-grid-3, .c-grid-4 { grid-template-columns: 1fr; }
  .c-footer-grid { grid-template-columns: 1fr; }
  .c-hero { padding: 128px 0 72px; }
  .c-hero-ctas .c-btn { width: 100%; text-align: center; }
}
