/* ==========================================================================
   Unlock Alabama — unlockalabama.org
   Tokens and components follow "Unlock Alabama Brand Kit" v1.0 (assets/).
   Color ratio target: Ink 60 · Cream 30 · Volt 7 · Coral 3. Mint is the
   quiet/eyebrow color. Never more than three accents in one composition.
   ========================================================================== */

:root {
  --ink:      #0A0A0A;
  --ink-soft: #141414;
  --cream:    #F1ECE0;
  --cream-2:  #E8E1D1;
  --line:     #28241D;
  --volt:     #C6D62E;
  --coral:    #DD4B27;
  --mint:     #C7E6E0;

  --cream-72: rgba(241, 236, 224, 0.72);
  --cream-56: rgba(241, 236, 224, 0.56);
  --hair:     rgba(241, 236, 224, 0.16);

  --font-display: "Anton", "Oswald", Impact, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body:    "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap:  1180px;
  --gutter: 20px;
  --tap:    44px;
}

@media (min-width: 700px)  { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

/* No smooth scrolling: the only jump link travels ~9,000px to §08, and
   animating that is several seconds of blur, not a nice transition. */
html {
  -webkit-text-size-adjust: 100%;
}

/* Keep anchor jumps clear of the sticky header. */
[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; }
p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; cursor: pointer; }
button { cursor: pointer; font: inherit; color: inherit; }
button[disabled] { cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utility ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--volt);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-decoration: none;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.volt { color: var(--volt); }

/* ---------- Pill buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 14px 28px;
  border: 2px solid var(--coral);
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* Volt is the hover state. */
.pill:hover  { background: var(--volt); border-color: var(--volt); transform: translateY(-2px); }
.pill:active { transform: translateY(0); }

.pill--sm {
  min-height: var(--tap);
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  text-decoration: none;
}

.brand__mark { width: 36px; height: 36px; border-radius: 8px; }

.brand__word {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

@media (max-width: 460px) {
  .brand__word { font-size: 11px; letter-spacing: 0.1em; }
  .brand { gap: 9px; }
  .brand__mark { width: 32px; height: 32px; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 11vw, 104px) 0 clamp(40px, 8vw, 80px); }

.hero .eyebrow { margin-bottom: 24px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8.6vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__title .volt { display: block; }

.hero__lead {
  margin-top: clamp(24px, 4vw, 36px);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--cream);
  max-width: 34ch;
}

.hero__kicker {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-72);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.stat { padding: 20px 0; }
.stat + .stat { border-top: 1px solid var(--hair); }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.stat__label {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-72);
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .stat { padding: 26px 0; }
  .stat + .stat { border-top: none; }
}

/* ---------- Chapters ---------- */

.chapter {
  padding: clamp(64px, 11vw, 128px) 0;
  border-top: 1px solid var(--hair);
}

.chapter:first-of-type { border-top: none; }

.chapter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.chapter__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--volt);
}

.chapter__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6.4vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: clamp(20px, 3.5vw, 32px);
}

.chapter__body p + p { margin-top: 18px; }

.chapter__body .lead {
  font-size: clamp(1.1rem, 2.2vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
}

.chapter__body p { color: var(--cream-72); max-width: 62ch; }
.chapter__body .lead { color: var(--cream); }

.chapter__body a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(199, 230, 224, 0.4);
  transition: text-decoration-color 0.15s ease;
}
.chapter__body a:hover { text-decoration-color: var(--mint); }

/* Pills are buttons, not prose links — don't inherit the link treatment. */
.chapter__body a.pill,
.chapter__body a.pill:hover { color: var(--ink); text-decoration: none; }

.pull {
  margin-top: 28px !important;
  padding-left: 20px;
  border-left: 3px solid var(--volt);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--cream) !important;
  max-width: 34ch !important;
}

.pull--big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  border-left: none;
  padding-left: 0;
  margin-top: 40px !important;
}

@media (min-width: 900px) {
  .chapter__grid { grid-template-columns: 140px minmax(0, 1fr); gap: 48px; }
  .chapter__num { padding-top: 14px; }
}

/* ---------- Lists ---------- */

.shape-label {
  margin-top: 32px !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint) !important;
}

.shape { margin-top: 16px; }

.shape li {
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 1.0625rem;
  font-weight: 600;
}

.shape li::before {
  content: "\2192";
  color: var(--volt);
  margin-right: 14px;
  font-weight: 700;
}

.built { margin-top: 20px; display: grid; gap: 2px; }

.built li {
  padding: 20px 22px;
  background: var(--ink-soft);
  border-left: 3px solid var(--volt);
  color: var(--cream-72);
  font-size: 1rem;
  line-height: 1.5;
}

.built li:first-child { border-radius: 14px 14px 0 0; }
.built li:last-child  { border-radius: 0 0 14px 14px; }

.bignum {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  color: var(--volt) !important;
  margin-bottom: 24px;
  max-width: none !important;
}

/* ---------- Before / after builder quotes ---------- */

/* Dark "before" -> cream "after": the shift is visible before you read a word. */
.shift {
  display: grid;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 44px);
}

.shift__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 880px) {
  .shift__pair { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.shift blockquote {
  margin: 0;
  padding: 24px 26px;
  border-radius: 20px;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.shift blockquote p + p { margin-top: 10px; }

.shift__before {
  background: var(--ink-soft);
  border: 1px solid var(--hair);
  color: var(--cream-72);
}

.shift__after {
  background: var(--cream);
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.shift__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.shift__before p { color: var(--cream-72); max-width: none; }
.shift__after  p { color: var(--ink);       max-width: none; }

.shift__before .shift__label { color: var(--cream-56); }
.shift__after  .shift__label { color: rgba(10, 10, 10, 0.62); }

/* ---------- Cream / inverted chapter ---------- */

.chapter--invert {
  background: var(--cream);
  color: var(--ink);
  border-top: none;
}

.chapter--invert .chapter__num  { color: var(--ink); opacity: 0.5; }
.chapter--invert .chapter__body p  { color: rgba(10, 10, 10, 0.72); }
.chapter--invert .chapter__body .lead { color: var(--ink); }
.chapter--invert .pull {
  border-left-color: var(--coral);
  color: var(--ink) !important;
}
.chapter--invert .chapter__body a {
  color: var(--ink);
  text-decoration-color: var(--coral);
}
.chapter--invert .chapter__body a:hover { color: var(--coral); }

/* ---------- Photos ---------- */

.photo {
  margin: clamp(28px, 4vw, 40px) 0 0;
  border: 2px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink-soft);
}

.photo img { width: 100%; }

.photo figcaption {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-56);
  border-top: 1px solid var(--hair);
}

.chapter--invert .photo {
  border-color: var(--ink);
  background: var(--cream-2);
}

.chapter--invert .photo figcaption {
  color: rgba(10, 10, 10, 0.6);
  border-top-color: rgba(10, 10, 10, 0.14);
}

/* Section 04 finale — the bike shot next to the payoff line */

.finale {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(32px, 5vw, 48px);
}

.photo--portrait { margin-top: 0; max-width: 420px; }

.finale .pull--big { margin-top: 0 !important; }

@media (min-width: 860px) {
  .finale {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    align-items: center;
  }
}

/* ---------- Video ---------- */

.video { margin-top: clamp(32px, 5vw, 48px); }

.video__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  line-height: 0;
}

.video__play img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.4s ease;
}
.video__play:hover img { opacity: 1; transform: scale(1.02); }

.video__btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 999px;
  background: var(--coral);
  border: 2px solid var(--ink);
  transition: transform 0.2s ease;
}

.video__btn::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--ink);
}

.video__play:hover .video__btn { transform: translate(-50%, -50%) scale(1.08); }

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__cap {
  margin-top: 8px !important;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video__cap a { display: inline-block; padding: 12px 4px; }

/* ---------- Gallery ---------- */

.gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 16px;
}

/* ---------- What we learned ---------- */

.learned { display: grid; gap: 14px; }

.learned li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  padding: 26px 24px;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 22px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.learned__n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(10, 10, 10, 0.6);
  padding-top: 5px;
}

@media (min-width: 860px) {
  .learned { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA ---------- */

.chapter--cta .terms {
  margin-top: 24px !important;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint) !important;
}

.chapter--cta .cta { margin-top: 32px !important; max-width: none !important; }

/* ---------- Footer ---------- */

.footer {
  padding: clamp(48px, 8vw, 76px) 0 32px;
  border-top: 1px solid var(--hair);
  background: var(--ink);
  text-align: center;
}

/* Partner credits are the anchor. Two equal halves, each lockup centered in its
   own — reads as a symmetric pair rather than two ragged blocks. */
.footer__partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
  padding-bottom: clamp(30px, 5vw, 42px);
}

@media (min-width: 560px) {
  .footer__partners { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.footer__partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: var(--tap);
  text-align: left;
  text-decoration: none;
}

.footer__partners img {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--cream);
  flex: none;
}

.footer__partner-text { display: grid; gap: 2px; }

.footer__partner-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-56);
}

.footer__partner-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
}

.footer__partners a:hover .footer__partner-text strong { color: var(--mint); }

/* Base row — the copyright, centered under a hairline. */
.footer__base {
  display: grid;
  justify-items: center;
  padding-top: clamp(22px, 4vw, 30px);
  border-top: 1px solid var(--hair);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-56);
}
