/* Read Loud — styles.css */

:root {
  --bg: #141414;
  --surface: #1b1b1b;
  --border: #2a2a2a;
  --muted: #262626;
  --placeholder: #3a3a3a;
  --placeholder-2: #6e6a60;
  --accent: #f9dd00;
  --text: #f4f1ea;
  --text-2: #c4bfb4;
  --text-3: #b6b1a6;
  --on-yellow: #141414;
  --pad-x: 64px;
  --max: 1440px;
  --display: 'Archivo', sans-serif;
  --body: 'Hanken Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* guard against accidental h-scroll */
  padding-bottom: 72px;
  /* clears the fixed sticky CTA bar */
}

body.no-sticky {
  padding-bottom: 0;
}

::selection {
  background: var(--accent);
  color: var(--on-yellow);
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

/* hard edges everywhere — radius 0 is intentional */
button, a, .card {
  border-radius: 0;
}

/* ---------- sticky nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  background: rgba(20, 20, 20, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.tick {
  width: 14px;
  height: 25px;
  background: var(--accent);
  display: inline-block;
  transform: skewX(-12deg);
}

.nav-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
}

.nav-cobrand {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* logo slots: drop an <img> inside each (see markup). It auto-fits to height. */
.nav-logo-slot {
  display: flex;
  align-items: center;
  height: 28px;
}

.nav-logo-slot img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ---------- hamburger + mobile menu ---------- */
.hamburger {
  display: none;
  /* desktop: hidden, shown under 900px */
  width: 44px;
  height: 44px;
  /* full 44px tap target */
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger .bars {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.hamburger .bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.hamburger .bars i:nth-child(1) {
  top: 0;
}

.hamburger .bars i:nth-child(2) {
  top: 6px;
}

.hamburger .bars i:nth-child(3) {
  top: 12px;
}

/* open state -> X */
.hamburger[aria-expanded="true"] .bars i:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .bars i:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .bars i:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  /* desktop: never shown */
  position: sticky;
  top: 65px;
  z-index: 29;
  background: rgba(20, 20, 20, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--pad-x) 20px;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  /* generous tap targets */
  border-bottom: 1px solid var(--border);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu a:active {
  color: var(--accent);
}

.mobile-menu-cobrand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
}

/* author-level rule so [hidden] wins over .mobile-menu{display:block} in the media query */
.mobile-menu[hidden] {
  display: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .12s ease;
}

.nav-links a:not(.btn-nav-cta):hover, .nav-links a:not(.btn-nav-cta):focus-visible {
  color: #f4f1ea;
}

.nav-links a.btn-nav-cta {
  background: var(--accent);
  color: #000;
  padding: 11px 24px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}

/* shared yellow / dark button hover */
.btn-yellow:hover, .btn-yellow:focus-visible, .btn-nav-cta:hover, .btn-nav-cta:focus-visible {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.btn-dark:hover, .btn-dark:focus-visible {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.on-yellow :focus-visible {
  outline-color: var(--on-yellow);
}

/* ---------- hero ---------- */
.hero {
  padding: 64px var(--pad-x) 56px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.eyebrow .rule {
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 84px);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 540px;
  margin: 0;
}

.source-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--placeholder-2);
  max-width: 540px;
  margin: 22px 0 0;
}

/* primary CTA card */
.give-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 40px;
  scroll-margin-top: 90px;
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.card-eyebrow .sq {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
}

.card-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.give-card p {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0 0 26px;
}

.btn-yellow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 20px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: transform .12s ease, filter .12s ease;
}

/* ---------- yellow stat band ---------- */
.band {
  background: var(--accent);
  color: var(--on-yellow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  scroll-margin-top: 80px;
}

.band .cell {
  padding: 38px 32px;
  border-right: 1px solid rgba(20, 20, 20, .18);
}

.band .cell:last-child {
  border-right: none;
}

.band .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.03em;
}

.band .lbl {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 10px;
}

/* ---------- sections ---------- */
.section {
  padding: 72px var(--pad-x);
  scroll-margin-top: 80px;
}

.section h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0;
}

/* how it works */
#how h2 {
  font-size: 46px;
  margin-bottom: 44px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  border-top: 3px solid var(--accent);
  padding-top: 22px;
}

.step .n {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  color: var(--placeholder);
  margin-bottom: 12px;
}

.step .t {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step .b {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.55;
}

/* where it goes */
.where {
  padding: 0 var(--pad-x) 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.photo {
  aspect-ratio: 16/12;
  background-image: url('yellowglasses-photo.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: var(--muted);
}

.where h2 {
  font-size: 36px;
  margin-bottom: 22px;
}

.where-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 32px;
}

.where-lead strong {
  color: var(--text);
  font-weight: 700;
}

.fact-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.fact {
  max-width: 190px;
}

.fact-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
}

.fact-lbl {
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.35;
  margin-top: 10px;
}

.where-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-3);
}

.where-steps b {
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ws-sep {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: skewX(-12deg);
  flex: none;
}

/* FAQ */
.faq {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px var(--pad-x);
  scroll-margin-top: 80px;
}

.faq h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0 0 30px;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-list .faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
}

.faq-sign {
  color: var(--accent);
  font-size: 24px;
  flex: none;
  line-height: 1;
}

.faq-a {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 820px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.faq-a>div {
  padding: 0 0 24px;
}

/* footer CTA */
.footer-cta {
  background: var(--accent);
  color: var(--on-yellow);
  padding: 64px;
}

.footer-cta h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 60px;
  line-height: .94;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 780px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--on-yellow);
  color: var(--accent);
  padding: 17px 42px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}

.footer-actions .support {
  font-weight: 700;
  font-size: 16px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 2px solid rgba(20, 20, 20, .2);
  padding-top: 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* sticky CTA bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad-x);
  background: var(--accent);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .4);
  transition: transform .3s ease;
}

.sticky-bar.hidden {
  transform: translateY(110%);
}

.sticky-bar .label {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--on-yellow);
}

.btn-bar {
  background: var(--on-yellow);
  color: var(--accent);
  padding: 12px 28px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}

.btn-bar:hover, .btn-bar:focus-visible {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ---------- responsive ---------- */
@media (max-width:900px) {
  :root {
    --pad-x: 24px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-divider, .nav-cobrand {
    display: none;
  }

  .nav-links a:not(.btn-nav-cta) {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .btn-nav-cta {
    padding: 11px 18px;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }

  .band {
    grid-template-columns: repeat(2, 1fr);
  }

  .band .cell {
    padding: 30px 24px;
  }

  .band .cell:nth-child(2) {
    border-right: none;
  }

  .band .cell:nth-child(1), .band .cell:nth-child(2) {
    border-bottom: 1px solid rgba(20, 20, 20, .18);
  }

  .band .num {
    font-size: 44px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .where {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px var(--pad-x);
  }

  .faq {
    padding: 56px var(--pad-x);
  }

  .give-card {
    padding: 28px 24px;
  }

  /* 40px was too tight against the edges */
  .card-title {
    font-size: 28px;
  }

  #how h2 {
    font-size: 36px;
  }

  .where h2 {
    font-size: 30px;
  }

  .faq h2 {
    font-size: 32px;
  }

  .footer-cta h2 {
    font-size: 40px;
  }

  .footer-cta {
    padding: 48px 24px;
  }

  .hero p.lead {
    font-size: 18px;
  }
}

@media (max-width:520px) {
  .band {
    grid-template-columns: 1fr;
  }

  .band .cell {
    border-right: none;
    border-bottom: 1px solid rgba(20, 20, 20, .18);
  }

  .band .cell:last-child {
    border-bottom: none;
  }

  .faq-q {
    font-size: 17px;
    gap: 14px;
  }

  /* sticky bar: drop the label, let the button own the width */
  .sticky-bar {
    padding: 12px 16px;
  }

  .sticky-bar .label {
    display: none;
  }

  .btn-bar {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 15px 20px;
  }

  .footer-actions {
    gap: 16px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

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

  * {
    transition: none !important;
  }
}
