/* =========================================================================
   Internal Affairs Unit — lightweight public site
   -------------------------------------------------------------------------
   Icons: Font Awesome Free 7.3.1, self-hosted in assets/fontawesome/.
   Icons licensed CC BY 4.0, fonts SIL OFL 1.1, code MIT — see
   assets/fontawesome/LICENSE.txt.

   Colour discipline: amber (--amber) is reserved for the primary call to
   action and nothing else, so it stays the loudest thing on the page.
   ========================================================================= */

/* ----------------------------- tokens ---------------------------------- */
:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #123a6b;
  --navy-600: #1b4d8a;

  --ink:      #0f172a;
  --muted:    #475569;
  --muted-2:  #64748b;

  --surface:  #ffffff;
  --surface-2:#f8fafc;
  --surface-3:#f1f5f9;
  --border:   #e2e8f0;
  --border-2: #cbd5e1;

  --amber:      #f59e0b;
  --amber-dark: #d97706;
  --amber-ink:  #1a1206;

  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .07), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -12px rgba(7, 26, 51, .22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --pad-x:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --wrap:      1180px;
}

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

html {
  scroll-behavior: smooth;
  /* keep the sticky header from covering anchor targets */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 1.4vw, 1.3125rem); }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

ul, ol { margin: 0; padding: 0; }
code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: .9em;
  background: var(--surface-3);
  padding: .1em .4em;
  border-radius: 5px;
}

img, svg, iframe { max-width: 100%; }

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

/* --------------------------- primitives -------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap-narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding-block: var(--section-y); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }

.eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 1rem;
}
.eyebrow-light { color: rgba(255, 255, 255, .72); }

/* available to assistive tech, removed from the visual layout */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--amber);
  color: var(--amber-ink);
  padding: .85rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease,
              border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

/* the single highest-contrast element on the page */
.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
}
.btn-primary:hover { background: #ffb224; color: var(--amber-ink); box-shadow: 0 8px 22px rgba(245, 158, 11, .45); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.btn-outline {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  font-size: .9375rem;
  padding: .7rem 1.15rem;
  min-height: 44px;
}
.btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.0625rem; min-height: 56px; }
.btn-sm { padding: .6rem 1.15rem; font-size: .9375rem; min-height: 42px; }

/* ----------------------------- header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 37, 69, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--navy-600), var(--navy-700));
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 1.05rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; letter-spacing: -.01em; }
.brand-text small { font-size: .75rem; color: rgba(255, 255, 255, .62); }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; }

/* ------------------------------ hero ----------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 520px at 78% -12%, rgba(27, 77, 138, .55), transparent 62%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
}
.hero::after {
  /* subtle institutional texture, purely decorative */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(760px 460px at 72% 8%, #000, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.hero h1 { color: #fff; margin-bottom: 1.5rem; text-wrap: balance; }
.hero h1 .hl { color: var(--amber); }

.hero-lede {
  font-size: clamp(1.0625rem, 1.1vw + .8rem, 1.3125rem);
  color: rgba(255, 255, 255, .82);
  max-width: 660px;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  list-style: none;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}
.trust-row i { color: var(--amber); font-size: .95rem; }

.hero-note {
  margin-top: 2rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  max-width: 620px;
}
.hero-note i { color: rgba(255, 255, 255, .45); margin-right: .35rem; }
.hero-note a { color: rgba(255, 255, 255, .92); }

/* ---------------------------- channels --------------------------------- */
.section-channels { background: var(--surface-2); border-bottom: 1px solid var(--border); }

.channel-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.channel-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy-800);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.15rem;
}

.channel-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .3rem;
}

/* the value is the largest thing in the card — it is what people came for */
.channel-value {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: .75rem;
}
/* inline-block + padding so the tap area clears 44px on a phone — these are
   the primary actions on mobile, not decorative text */
.channel-value a {
  display: inline-block;
  padding: .55rem 0;
  color: var(--navy-800);
  text-decoration: none;
}
.channel-value a:hover { color: var(--navy-600); text-decoration: underline; }

.channel-desc { font-size: .9375rem; color: var(--muted); margin-bottom: 1rem; }

/* pushed to the card foot so the badges line up across a row regardless of
   how long each description runs */
.channel-best {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--navy-700);
  background: var(--surface-3);
  border-radius: 999px;
  padding: .3rem .75rem;
}

.channel-card-online { border-color: var(--navy-700); background: linear-gradient(180deg, #fff, #f7fafd); }

/* ----------------------------- iframe ---------------------------------- */
.section-file {
  background:
    radial-gradient(900px 460px at 15% 0%, rgba(27, 77, 138, .5), transparent 60%),
    linear-gradient(178deg, var(--navy-900), var(--navy-800));
  color: #fff;
}
.section-file h2 { color: #fff; }
.section-file .section-sub { color: rgba(255, 255, 255, .74); }
.section-file .section-sub strong { color: #fff; }
.section-file code { background: rgba(255, 255, 255, .12); color: #fff; }

.file-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  max-width: none;
}
.file-head > div { max-width: 660px; }
.file-controls { display: flex; flex-wrap: wrap; gap: .75rem; }

.frame-shell {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-direction: column;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1.1rem;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--muted);
  flex: 0 0 auto;
}
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: 0 0 9px; }
.frame-origin { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.frame-origin i { font-size: .7rem; color: #16a34a; }

/* don't keep showing a healthy green indicator over a failure message */
.frame-shell.is-failed .frame-dot { background: #ef4444; }
.frame-shell.is-failed .frame-origin i { color: var(--muted-2); }

.frame-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--navy-800);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .5rem 1rem;
  min-height: 40px;
  font: inherit;
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
}
.frame-close:hover { background: var(--navy-700); }
/* .frame-close sets display, which would otherwise beat the UA [hidden] rule */
.frame-close[hidden] { display: none; }

.frame-status {
  padding: 1rem 1.1rem;
  font-size: .9375rem;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}
.frame-status[hidden] { display: none; }

/* A cross-origin frame cannot report its content height, so this is a fixed
   compromise: tall enough for the longest wizard steps (Your Details, Station
   & Officer) without leaving a lot of dead space on the short first step.
   Anything taller is handled by the full-screen control. */
.frame {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  height: clamp(660px, 80vh, 880px);
  flex: 1 1 auto;
}

.frame-fallback { padding: clamp(2rem, 5vw, 3.5rem); text-align: center; color: var(--ink); }
.frame-fallback[hidden] { display: none; }
.fallback-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fef3c7;
  color: var(--amber-dark);
  font-size: 1.4rem;
}
.frame-fallback p { max-width: 520px; margin-inline: auto; color: var(--muted); }
.frame-fallback h3 { color: var(--ink); }
.fallback-alt { margin-top: 1.5rem; font-size: .9375rem; }

.frame-foot {
  margin-top: 1.5rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  text-align: center;
}
.frame-foot i { color: rgba(255, 255, 255, .45); margin-right: .35rem; }

/* full-screen mode: class-based rather than the Fullscreen API, which is
   unreliable on mobile browsers */
body.frame-open { overflow: hidden; }

.frame-shell.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border-radius: 0;
  border: 0;
  max-width: none;
  height: 100%;
  height: 100dvh;
}
.frame-shell.is-fullscreen .frame { height: auto; flex: 1 1 auto; min-height: 0; }

/* ------------------------------ steps ---------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 800;
  font-size: .9375rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { font-size: .9375rem; color: var(--muted); margin-bottom: 0; }

.steps-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }

/* ----------------------------- impact ---------------------------------- */
.section-impact {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.section-impact h2 { color: #fff; }
.section-impact .section-sub { color: rgba(255, 255, 255, .72); }

.stat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
}
.stat-num {
  display: block;
  font-size: clamp(2.75rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: #fff;
  margin-bottom: .65rem;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: .9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
}

.impact-detail {
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
}
.impact-detail > p { color: rgba(255, 255, 255, .78); }
.impact-detail strong { color: #fff; }

.source-note {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}
.source-note i { margin-right: .35rem; }

/* ------------------------------ about ---------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--ink); }

.about-facts {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.about-facts h3 { margin-bottom: 1.25rem; }
.about-facts dl { margin: 0; }
.about-facts dl > div {
  padding: .85rem 0;
  border-top: 1px solid var(--border);
}
.about-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.about-facts dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .2rem;
}
.about-facts dd { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--ink); }

/* ---------------------------- partners --------------------------------- */
.section-partners {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.partners-intro {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2rem;
}
.partner-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3.5rem;
  margin-bottom: 2rem;
}
.partner-list li { display: flex; flex-direction: column; gap: .15rem; }
.partner-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.partner-desc { font-size: .8125rem; color: var(--muted-2); }
.partners-note {
  max-width: 620px;
  margin-inline: auto;
  font-size: .9375rem;
  color: var(--muted);
}

/* ------------------------------- faq ----------------------------------- */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "\002b";
  margin-left: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--navy-700);
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}
.faq-list details[open] summary::after {
  content: "\2212";
  background: var(--navy-800);
  color: #fff;
}
.faq-list summary:hover { color: var(--navy-600); }
.faq-body { padding-bottom: 1.5rem; color: var(--muted); font-size: 1rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------------------------- final cta -------------------------------- */
.section-final {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.section-final h2 { text-wrap: balance; margin-bottom: 1rem; }
.final-sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
}
.final-alt { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }
.final-alt a { display: inline-block; padding: .4rem .2rem; font-weight: 700; }

/* ------------------------------ footer --------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .68);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .brand-mark { margin-bottom: 1rem; }
.footer-brand strong { color: #fff; font-size: 1.0625rem; }
.footer-legal { font-size: .8125rem; color: rgba(255, 255, 255, .45); margin-top: .75rem; }

.footer-col h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: .45rem; }
.footer-col li { line-height: 1.4; }
.footer-col a {
  display: inline-block;
  padding: .3rem 0;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

.tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  border-radius: 999px;
  padding: .1rem .5rem;
  vertical-align: middle;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .45);
}
.footer-base p { margin: 0; }
.footer-base code { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); }

/* --------------------------- responsive -------------------------------- */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 64px; gap: .75rem; }
  .brand-text small { display: none; }
  .header-cta { padding: .55rem .9rem; font-size: .875rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: .65rem 1.25rem; }
  .trust-row li { font-size: .875rem; }

  .file-head { flex-direction: column; align-items: stretch; }
  .file-controls .btn { flex: 1 1 auto; }
  .frame { height: clamp(620px, 78vh, 820px); }

  .channel-card, .step, .about-facts { padding: 1.35rem; }
  .stat { padding: 1.5rem 1rem; }

  .steps-cta .btn, .section-final .btn { width: 100%; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 380px) {
  .brand-text strong { font-size: .9375rem; }
  .channel-value { font-size: 1.5rem; }
}

/* --------------------------- preferences ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .channel-card:hover { transform: none; }
}

@media print {
  .site-header, .frame-shell, .file-controls, .hero-actions, .steps-cta { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .section-file, .section-impact, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .hero h1 .hl, .section-impact h2, .stat-num { color: #000 !important; }
}
