/* ============================================================
   TUNATRUTH SUPPORT — COMPONENTS
   Mobile-first: the hero+donate panel is written to fit inside a
   single phone viewport without scrolling wherever practical.
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--text-link); }

.tt-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---- real logo images (replace earlier fabricated CSS wordmarks) ---- */
.tt-logo { display: block; width: auto; }
.tt-logo--ipnlf.tt-logo--xs { height: 18px; }
.tt-logo--ipnlf.tt-logo--sm { height: 26px; }
.tt-logo--tunatruth.tt-logo--xs { height: 22px; }
.tt-logo--tunatruth.tt-logo--sm { height: 34px; }
.tt-logo--tunatruth.tt-logo--lg { width: clamp(220px, 46vw, 420px); height: auto; }

/* IPNLF's real logo is dark navy on transparent, made for light
   backgrounds — this chip gives it a light patch to sit on wherever it
   needs to appear over a dark surface (footer, confirmation page). */
.tt-logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--ipnlf-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* ---- header ----
   Light surface (not the cinematic dark used elsewhere) so IPNLF's real
   logo — dark navy on transparent, designed for light backgrounds —
   reads properly rather than disappearing into a dark bar. */
.tt-header {
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-subtle);
}
.tt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.tt-lockup { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.tt-lockup__joiner {
  font-family: var(--font-text);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-overline);
}
.tt-header__link {
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.tt-header__link:hover { border-bottom-color: currentColor; }

/* ---- hero + donate (above the fold) ---- */
.tt-hero {
  background-color: var(--surface-dark);
  /* Dark scrim (heavier over the identity/logo side) over the real
     documentary still, so the logo and support line stay legible
     regardless of how bright the sky is behind them. */
  background-image:
    linear-gradient(120deg, rgba(6,14,16,0.90) 0%, rgba(6,14,16,0.78) 35%, rgba(6,14,16,0.45) 65%, rgba(6,14,16,0.25) 100%),
    url("../img/hero-photo.jpg");
  background-size: cover;
  background-position: center 30%;
  padding: var(--space-6) 0 var(--space-7);
}
.tt-hero__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
/* Tighten the above-the-fold block on small phones so the CTA (and
   ideally the trust line under it) clears the viewport without
   scrolling, even once browser chrome eats into real usable height. */
@media (max-width: 480px) {
  .tt-hero { padding: var(--space-3) 0 var(--space-4); }
  .tt-hero__grid { gap: var(--space-3); }
  .tt-hero__eyebrow { margin-bottom: var(--space-1); font-size: 0.7rem; }
  .tt-hero__title { margin-bottom: var(--space-1); }
  .tt-logo--tunatruth.tt-logo--lg { width: clamp(170px, 58vw, 260px); }
  .tt-hero__support-line { font-size: var(--fs-body); }
  .tt-donate-panel { padding: var(--space-4); }
  .tt-donate-panel__eyebrow { margin-bottom: var(--space-2); }
  .tt-amounts { margin-bottom: var(--space-3); }
  .tt-donate-panel__trust { margin-top: var(--space-2); }
}
@media (min-width: 860px) {
  .tt-hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--space-8); }
}

.tt-hero__eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--text-on-dark-soft);
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: var(--ls-overline);
}
.tt-hero__title { margin: 0 0 var(--space-3); }
.tt-hero__support-line {
  margin: 0;
  max-width: 46ch;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-body-lg);
}

.tt-hero__panel { display: flex; }

.tt-donate-panel {
  width: 100%;
  background: var(--surface-panel);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}
.tt-donate-panel__eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--ipnlf-white);
  font-weight: 700;
  font-size: var(--fs-body);
}
.tt-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.tt-amount {
  font-family: var(--font-text);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-on-dark);
  background: transparent;
  color: var(--ipnlf-white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tt-amount:hover { border-color: var(--ipnlf-gold); }
.tt-amount.is-selected {
  background: var(--ipnlf-gold);
  border-color: var(--ipnlf-gold);
  color: var(--cta-text);
}
.tt-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 800;
  font-size: var(--fs-body-lg);
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: background 0.15s, transform 0.1s;
}
.tt-cta:hover { background: var(--cta-bg-hover); }
.tt-cta:active { transform: translateY(1px); }
.tt-donate-panel__trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  margin: var(--space-3) 0 0;
  font-size: var(--fs-caption);
  color: var(--text-on-dark-soft);
}
.tt-donate-panel__trust svg { color: var(--ipnlf-teal); flex-shrink: 0; }

/* ---- generic sections ---- */
/* 2.625rem is ~12.5% tighter than the space-7 (3rem) this used to be —
   applies to "Behind the film"; "Why your support matters" and "Help
   the film travel further" have their own (tighter still) overrides
   below, per the 2026-09-08 spacing pass. */
.tt-section { padding: 2.625rem 0; }
.tt-section--soft { background: var(--surface-soft); padding: 2.25rem 0; }
.tt-section__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .tt-section__grid { grid-template-columns: repeat(3, 1fr); }
}
.tt-card__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--text-strong);
  letter-spacing: var(--ls-display);
}
.tt-card__body { margin: 0; color: var(--text-muted); }

/* ---- why your support matters ----
   Deliberately lighter than a full .tt-section: one short reassurance
   block, not a third of an information page, so it doesn't compete
   with the hero/donate panel above it. */
.tt-why { padding: 1.75rem 0; } /* ~12.5% tighter than the 2rem (space-6) this used to be */
.tt-why__inner { max-width: var(--container-narrow); }
.tt-why__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--text-strong);
  letter-spacing: var(--ls-display);
}
.tt-why__body { margin: 0 0 var(--space-2); color: var(--text-muted); max-width: 56ch; }
.tt-why__link { font-size: var(--fs-body-sm); font-weight: 600; text-decoration: none; }
.tt-why__link:hover { text-decoration: underline; }

/* ---- share ---- */
.tt-share { text-align: center; max-width: var(--container-narrow); }
.tt-share__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-display);
}
.tt-share__body { margin: 0 0 var(--space-4); color: var(--text-muted); }
.tt-share__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.tt-btn-secondary {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid var(--ipnlf-deep);
  background: transparent;
  color: var(--ipnlf-deep);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  cursor: pointer;
  text-decoration: none;
}
.tt-btn-secondary:hover { background: var(--ipnlf-deep); color: var(--ipnlf-white); }
.tt-share__copied { margin: var(--space-3) 0 0; color: var(--ipnlf-teal-deep); font-size: var(--fs-body-sm); }

/* ---- credibility ----
   Deliberately one quiet register throughout: one body-copy style,
   one understated emphasis style for the award line, one link style.
   No cards, no dividers — calmer and more editorial than a section
   with a different visual treatment per paragraph. */
.tt-credibility { max-width: var(--container-narrow); }
.tt-credibility p {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.tt-credibility__award-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.tt-credibility__award-line strong { color: var(--text-strong); }
.tt-credibility__award-mark {
  height: 18px;
  width: auto;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 3px;
}
.tt-credibility__links { display: flex; gap: var(--space-4); margin-top: var(--space-1); flex-wrap: wrap; font-size: var(--fs-body-sm); }
/* Small label, same typographic language as the hero eyebrow (just
   re-toned for a light background) — not a new decorative pattern. */
.tt-credibility p.tt-credibility__eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-overline);
}

/* ---- footer ---- */
.tt-footer { background: var(--surface-dark); padding: var(--space-6) 0; }
.tt-footer__inner { display: flex; flex-direction: column; gap: var(--space-4); align-items: center; text-align: center; }
.tt-footer__brands { display: flex; align-items: center; gap: var(--space-2); }
.tt-footer__x { color: var(--text-on-dark-soft); }
.tt-footer__links { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
.tt-footer__links a { color: var(--text-on-dark-soft); font-size: var(--fs-body-sm); text-decoration: none; }
.tt-footer__links a:hover { color: var(--ipnlf-white); }
.tt-footer__copy { margin: 0; color: var(--text-on-dark-soft); font-size: var(--fs-caption); }

/* ---- focus visibility (accessibility) ---- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ipnlf-gold);
  outline-offset: 2px;
}

/* ---- confirmation page (thank-you.html) ---- */
.tt-confirm {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-dark);
  padding: var(--space-6) var(--space-5);
}
.tt-confirm__panel {
  max-width: 480px;
  text-align: center;
  background: var(--surface-panel);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
}
.tt-confirm__icon { color: var(--ipnlf-teal); margin-bottom: var(--space-4); }
.tt-confirm__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  color: var(--ipnlf-white);
  letter-spacing: var(--ls-display);
}
.tt-confirm__body { color: var(--text-on-dark-soft); margin: 0 0 var(--space-5); }
.tt-confirm__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
