/* BDO USA landing page styles.
   Brand tokens from brand-pack.json. Institutional, measured, red-accent.
*/

:root {
  --bdo-red: #D02927;
  --bdo-red-deep: #98002E;
  --bdo-blue: #21409A;
  --ink: #1A1A1A;
  --body: #333333;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --line-strong: #1A1A1A;
  --surface: #FFFFFF;
  --surface-alt: #F4F4F4;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-sub: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-med: 0 4px 12px rgba(0,0,0,0.08);
  --fs-body: 17px;
  --fs-body-mobile: 16px;
  --lh-body: 1.55;
  --section-gap: 96px;
  --font-sans: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--bdo-red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--bdo-red-deep); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--bdo-red); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

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

/* Header
------------------------------------------------------------ */
.site-header {
  padding: 28px 0 0 0;
  background: var(--surface);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
}
.logo-link { display: inline-flex; line-height: 0; }
.logo {
  height: 44px;
  width: auto;
  display: block;
}
.header-meta {
  text-align: right;
  font-size: 13px;
  line-height: 1.3;
}
.header-meta-label {
  display: block;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 2px;
}
.header-meta-value {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.header-rule {
  height: 4px;
  background: var(--bdo-red);
  width: 100%;
}

/* Eyebrows
------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--bdo-red);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow-dark { color: #fff; }
.eyebrow-dot-light { background: #fff; }

/* Hero
------------------------------------------------------------ */
.hero {
  padding: 72px 0 64px 0;
  border-bottom: 1px solid var(--line);
}
.headline {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  max-width: 22ch;
  margin-bottom: 24px;
  color: var(--ink);
}
.sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 56px;
  line-height: 1.5;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: none; padding-right: 0; }
.fact:first-child { }
.fact + .fact { padding-left: 24px; }
.fact-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.fact-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Section scaffolding
------------------------------------------------------------ */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }

.two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.col-label {
  position: sticky;
  top: 32px;
}
.col-label-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--bdo-red);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.col-label-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.col-body { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.col-body p { margin-bottom: 20px; }
.lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
}

/* Layer grid (60/30/10)
------------------------------------------------------------ */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 32px;
  border-top: 3px solid var(--ink);
}
.layer {
  background: var(--surface);
  padding: 28px 24px 28px 24px;
}
.layer-pct {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.layer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.layer-detail {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.layer-accent .layer-pct { color: var(--bdo-red); }
.layer-accent { background: #faf2f2; }

/* Pull quote
------------------------------------------------------------ */
.pullquote {
  margin: 0 0 24px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--bdo-red);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}
.proof-footnote {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}

/* Paper card
------------------------------------------------------------ */
.paper-card {
  background: var(--surface-alt);
  border-left: 4px solid var(--bdo-red);
  padding: 28px 28px 24px 28px;
  margin-top: 16px;
}
.paper-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.paper-meta {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}
.paper-desc { font-size: 16px; color: var(--body); margin-bottom: 16px; }
.paper-links { display: flex; flex-direction: column; gap: 8px; }
.paper-link {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
  color: var(--bdo-red);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  align-self: flex-start;
}
.paper-link:hover { color: var(--bdo-red-deep); text-decoration: none; border-bottom-color: var(--bdo-red-deep); }

/* Partner note
------------------------------------------------------------ */
.partner-note {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
}

/* CTA
------------------------------------------------------------ */
.section-cta {
  background: var(--ink);
  border-bottom: none;
  padding: 80px 0;
  color: #eaeaea;
}
.cta-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-title {
  font-size: clamp(26px, 3vw, 36px);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 22ch;
}
.cta-sub {
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.6;
  max-width: 48ch;
}
.cta-right { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--bdo-red);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background .15s ease, transform .15s ease;
  min-width: 260px;
  border-bottom: 3px solid var(--bdo-red-deep);
}
.cta-button:hover {
  background: var(--bdo-red-deep);
  color: #fff;
  text-decoration: none;
}
.cta-button-label {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.cta-button-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cta-fineprint { font-size: 14px; color: #b8b8b8; }
.cta-fineprint .inline-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5); }
.cta-fineprint .inline-link:hover { border-bottom-color: #fff; text-decoration: none; color: #fff; }

/* Closing line
------------------------------------------------------------ */
.section-closing {
  padding: 80px 0;
  background: var(--surface);
}
.closing-line {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 500;
  max-width: 32ch;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 32px;
}
.closing-line::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--bdo-red);
  margin: 0 auto 28px auto;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Footer
------------------------------------------------------------ */
.site-footer {
  background: var(--surface-alt);
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-prepared {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.footer-link {
  color: var(--ink);
  border-bottom: 1px solid var(--bdo-red);
  padding-bottom: 1px;
}
.footer-link:hover { color: var(--bdo-red); text-decoration: none; }
.footer-sub { font-size: 12px; }
.footer-meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Responsive
------------------------------------------------------------ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .col-label { position: static; }
  .col-label-text { font-size: 18px; }
  .cta-card { grid-template-columns: 1fr; gap: 32px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: none; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 16px; }
  .fact + .fact { padding-left: 0; }
  .fact:nth-child(even) { padding-left: 16px; }
}

@media (max-width: 640px) {
  body { font-size: var(--fs-body-mobile); }
  .container { padding: 0 20px; }
  .header-row { padding-bottom: 18px; gap: 12px; }
  .logo { height: 36px; }
  .header-meta { font-size: 11px; }
  .header-meta-value { font-size: 12px; }
  .hero { padding: 48px 0 40px 0; }
  .headline { font-size: 30px; line-height: 1.1; }
  .sub { font-size: 16px; margin-bottom: 36px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .fact-num { font-size: 24px; }
  .fact-label { font-size: 12px; }
  .section { padding: 56px 0; }
  .lede { font-size: 18px; }
  .col-body { font-size: 16px; }
  .layer-grid { grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
  .layer { border-bottom: 1px solid var(--line); }
  .layer-pct { font-size: 28px; }
  .pullquote { font-size: 18px; padding-left: 18px; border-left-width: 3px; }
  .paper-card { padding: 20px; }
  .paper-title { font-size: 17px; }
  .section-cta { padding: 56px 0; }
  .cta-title { font-size: 22px; }
  .cta-button { min-width: 0; width: 100%; padding: 18px 22px; }
  .cta-button-label { font-size: 16px; }
  .section-closing { padding: 56px 0; }
  .closing-line { font-size: 20px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .headline { font-size: 26px; }
  .hero-facts { grid-template-columns: 1fr; }
  .fact { border-right: none !important; padding: 16px 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer { background: #fff; }
  .section-cta { background: #fff; color: #000; }
  .cta-title, .eyebrow-dark, .cta-sub, .cta-fineprint { color: #000 !important; }
}
