/* brandbuildersacademy.us — one stylesheet, no framework */
@import url('/fonts/fonts.css');

:root {
  --ink: #16161A;
  --paper: #F5F2ED;
  --dark: #0B0B0D;
  --dark-2: #141418;
  --on-dark: #EDEBE7;
  --on-dark-muted: #A8A6A2;
  --muted: #55534F;
  --accent: #FF3B33;
  --accent-tint: #FF5A52;      /* accent TEXT on dark */
  --accent-deep: #D42B22;      /* accent TEXT on paper */
  --line: rgba(22, 22, 26, 0.12);
  --line-dark: rgba(237, 235, 231, 0.14);
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;         /* belt-and-braces; the QA gate still asserts scrollWidth */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: Archivo, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-tint); margin: 0 0 14px;
}
section.light .eyebrow { color: var(--accent-deep); }
/* The tint background is darker than paper, which drops #D42B22 to 3.98:1 — under AA
   for this 12px small-caps. A slightly deeper red restores it without changing the hue. */
section.tint .eyebrow,
section.tint .card .num,
section.tint .founder .role,
section.tint .list.yes li::before { color: #B8241C; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--dark);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
header.nav.scrolled { border-bottom-color: var(--line-dark); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
header.nav img { height: 26px; width: auto; }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 4px;         /* 44px tap target, zero visual weight */
  color: var(--on-dark-muted);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.nav-link:hover { color: var(--on-dark); }

/* ---------- hero ---------- */
.hero {
  background: var(--dark); color: var(--on-dark);
  padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 5vw, 72px);
}
.hero h1 { font-size: clamp(34px, 8.4vw, 74px); }
.hero h1 .accent { color: var(--accent-tint); }
.hero-sub {
  margin: 16px 0 0;
  font-size: clamp(15px, 3.9vw, 20px);
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 46ch;
}
.hero-media {
  margin-top: clamp(20px, 4.5vw, 40px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  aspect-ratio: 16 / 10;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .hero-media { margin-top: 0; }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 108px) 0; }
section.light { background: var(--paper); }
section.dark { background: var(--dark); color: var(--on-dark); }
section.tint { background: #E9E4DB; }
/* Two adjacent pale sections read as one long slab. A hairline rule restores the
   boundary without adding another background colour. (Measured: tint and paper are
   only 8-11 per channel apart, which is too subtle to separate them on its own.) */
section.tint + section.light,
section.light + section.tint { border-top: 1px solid var(--line); }
section h2 { font-size: clamp(28px, 6.4vw, 46px); }
section .lede {
  margin: 18px 0 0; max-width: 62ch;
  font-size: clamp(16px, 4.2vw, 19px); color: var(--muted);
}
section.dark .lede { color: var(--on-dark-muted); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 18px; margin-top: clamp(28px, 5vw, 48px); }
@media (min-width: 700px)  { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: clamp(20px, 4vw, 28px);
}
section.dark .card { background: var(--dark-2); border-color: var(--line-dark); }
.card h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.2; }
.card p { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); }
section.dark .card p { color: var(--on-dark-muted); }
.card .num {
  display: block; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: .1em; color: var(--accent-deep); margin-bottom: 10px;
}
section.dark .card .num { color: var(--accent-tint); }

/* founders */
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.founder h3 { margin-top: 18px; font-size: 22px; }
.founder .role {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep); margin: 6px 0 0;
}
section.dark .founder .role { color: var(--accent-tint); }

/* for / not-for lists */
.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 30px; margin-top: 13px; font-size: 16px; }
.list li::before {
  position: absolute; left: 0; top: 0;
  font-family: Archivo, sans-serif; font-weight: 800;
}
.list.yes li::before { content: '+'; color: var(--accent-deep); }
.list.no  li::before { content: '\2013'; color: #9A9793; }
section.dark .list.yes li::before { color: var(--accent-tint); }

/* facts strip */
.facts { display: grid; gap: 2px; background: var(--line-dark); border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--dark-2); padding: 26px 22px; }
.fact .big {
  font-family: Archivo, sans-serif; font-weight: 800;
  font-size: clamp(28px, 6vw, 40px); letter-spacing: -0.03em; line-height: 1;
}
.fact .cap { margin-top: 8px; font-size: 13.5px; color: var(--on-dark-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;                    /* 5.33:1. White would be 3.54:1 and fail AA. */
  font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.ghost {
  background: transparent; color: var(--on-dark);
  border: 1px solid var(--line-dark);
}
section.light .btn.ghost { color: var(--ink); border-color: var(--line); }

/* ---------- trustpilot block ---------- */
.tp { text-align: center; }
.tp-stars { display: inline-flex; gap: 5px; margin-bottom: 16px; }
.tp-star {
  width: 32px; height: 32px; border-radius: 4px;
  background: #00B67A;                                  /* Trustpilot green */
  display: inline-grid; place-items: center;
}
.tp-star svg { width: 20px; height: 20px; fill: #fff; }
.tp-note { margin: 16px auto 0; max-width: 44ch; font-size: 14px; color: var(--on-dark-muted); }

/* ---------- footer ---------- */
footer {
  background: var(--dark); color: var(--on-dark-muted);
  padding: clamp(44px, 7vw, 68px) 0 40px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}
footer img { height: 24px; width: auto; margin-bottom: 22px; }
footer .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; }
footer .legal a {
  display: inline-flex; align-items: center;
  min-height: 44px; text-decoration: none; color: var(--on-dark-muted);
}
footer .legal a:hover { color: var(--on-dark); text-decoration: underline; }
footer .fine { margin-top: 22px; font-size: 12.5px; line-height: 1.65; color: #77756F; max-width: 78ch; }
footer .entity { margin-top: 18px; color: var(--on-dark); font-weight: 600; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* legal pages */
.doc { max-width: 760px; padding-top: clamp(40px, 7vw, 72px); padding-bottom: 80px; }
.doc h1 { font-size: clamp(28px, 6vw, 40px); }
.doc h2 { font-size: 20px; margin-top: 34px; }
.doc p, .doc li { font-size: 16px; color: var(--muted); }
.doc a { color: var(--accent-deep); }
.doc .back {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent-deep);
}
