/* Sprint E (2026-05-26) — landing page stylesheet. Loaded only on /. */

.bpl-landing {
  background: var(--bpl-bg);
  color: var(--bpl-text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--bpl-font-sans);
}

/* Header */
.lnd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--bpl-border);
  background: var(--bpl-card);
  flex-wrap: wrap;
  gap: 16px;
}
.lnd-brand { text-decoration: none; color: var(--bpl-text); }
.lnd-mark {
  font-family: var(--bpl-font-serif, var(--bpl-font-sans));
  font-size: 18px;
  font-weight: 600;
  color: var(--bpl-blue);
}
.lnd-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.lnd-nav a {
  color: var(--bpl-text-muted);
  text-decoration: none;
  font-size: 14px;
}
.lnd-nav a:hover { color: var(--bpl-text); }

/* Visually-hidden helper (accessible label for icon-only buttons). */
.bpl-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ─── Sign-in dropdown (icon trigger in header right) ───────────
 * Replaces the in-hero 3-card chooser. Button is a 34×34 icon
 * square that matches the theme-toggle dimensions so the two
 * sit flush. Menu is an absolutely-positioned card anchored to
 * the button's right edge. */
.lnd-signin {
  position: relative;
  display: inline-flex;
}
.lnd-signin-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  border: 1px solid var(--bpl-border, rgba(0,0,0,0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease;
}
.lnd-signin-btn:hover,
.lnd-signin-btn--open {
  background: var(--bpl-card-hover, rgba(0,0,0,0.04));
  border-color: var(--bpl-border-strong, rgba(0,0,0,0.24));
}
.lnd-signin-btn .ph { display: block; }

.lnd-signin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--bpl-card, #fff);
  border: 1px solid var(--bpl-border, rgba(0,0,0,0.12));
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 8px;
  z-index: 1000;
}
.lnd-signin-menu[hidden] { display: none; }

.lnd-signin-heading {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bpl-text-muted);
  padding: 6px 10px 8px;
  font-weight: 600;
}
.lnd-signin-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--bpl-text);
  transition: background 120ms ease;
}
.lnd-signin-item:hover,
.lnd-signin-item:focus-visible {
  background: var(--bpl-card-hover, rgba(0,0,0,0.04));
  outline: none;
}
.lnd-signin-icon {
  font-size: 22px;
  color: var(--bpl-blue, var(--accent));
  flex-shrink: 0;
  margin-top: 1px;
}
.lnd-signin-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lnd-signin-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--bpl-text);
}
.lnd-signin-text small {
  font-size: 12px;
  color: var(--bpl-text-muted);
  line-height: 1.4;
}
.lnd-signin-cta {
  font-size: 12px;
  font-style: normal;
  color: var(--bpl-blue, var(--accent));
  margin-top: 2px;
}
.lnd-signin-item--admin .lnd-signin-icon { color: var(--accent); }

/* Theme-toggle slot sits at the rightmost position. The button itself
 * is created by theme.js; we just give it enough room. */
.lnd-theme-slot {
  display: inline-flex;
  align-items: center;
}
.lnd-theme-slot .bpl-theme-toggle {
  /* Strip the floating-mode shadow if anything inherits it. */
  position: static;
  box-shadow: none;
}

@media (max-width: 480px) {
  .lnd-signin-menu { min-width: 240px; }
}
.lnd-cta-link { color: var(--bpl-blue); font-weight: 500; }
.lnd-cta-btn {
  padding: 8px 16px;
  background: var(--bpl-blue);
  color: #FFFFFF;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}
.lnd-cta-btn:hover { background: var(--bpl-blue-dark, #0b3469); }
.lnd-cta-btn--lg { padding: 12px 24px; font-size: 16px; border-radius: 10px; }

/* Hero */
.lnd-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 32px 48px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .lnd-hero { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
}

/* Solo-column hero — used now that the role chooser lives in the
 * header sign-in dropdown. Centered, tighter max-width, no grid.
 * Tight bottom padding so the chip row flows directly into the
 * next section (the "Why BrowserPsyLab" compare table) without an
 * empty gap. */
.lnd-hero.lnd-hero--solo {
  display: block;
  max-width: 820px;
  text-align: center;
  padding: 56px 32px 18px;
}
.lnd-hero--solo h1 {
  font-family: var(--bpl-font-serif, var(--bpl-font-sans));
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--bpl-text);
}
.lnd-hero--solo .lnd-hero-sub {
  margin: 0 auto 20px;
  max-width: 680px;
}
@media (max-width: 880px) {
  .lnd-hero.lnd-hero--solo { padding: 48px 20px; }
}

/* ─── Protocol pipeline (icon flow) ──────────────────────────
 * Visualises the "consent → certificate single session" pitch.
 * Each step = circular icon bubble + tiny label. Caret arrows
 * between steps. On narrow screens the arrows hide and steps
 * wrap as a grid so it stays readable. */
.lnd-pipeline {
  list-style: none;
  padding: 0;
  margin: 32px auto 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  max-width: 920px;
}
.lnd-pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  padding: 4px 2px;
}
.lnd-pipe-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bpl-blue-light, rgba(46, 109, 164, 0.10));
  color: var(--bpl-blue, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1.5px solid rgba(46, 109, 164, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}
.lnd-pipe-step:hover .lnd-pipe-bubble {
  transform: translateY(-2px);
  background: rgba(46, 109, 164, 0.18);
}
.lnd-pipe-step--end .lnd-pipe-bubble {
  background: var(--bpl-gold, #c9a14a);
  color: #fff;
  border-color: var(--bpl-gold-hover, #b48e3c);
}
.lnd-pipe-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--bpl-text);
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
}
/* Arrow chevrons removed in favor of a thin animated connector +
 * stagger fade-in on the bubbles themselves. */
.lnd-pipe-arrow { display: none; }

/* Stagger-in: each step uses --n to delay its fade/slide. The line
 * connecting steps is a pseudo-element on .lnd-pipeline that fills
 * left→right after the bubbles have settled. */
.lnd-pipe-step {
  opacity: 0;
  transform: translateY(8px);
  animation: lnd-pipe-in 0.5s ease forwards;
  animation-delay: calc(var(--n, 0) * 90ms + 120ms);
}
@keyframes lnd-pipe-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lnd-pipe-step { opacity: 1; transform: none; animation: none; }
}

/* A subtle hover lift to give the bubbles a sense of life. */
.lnd-pipe-bubble {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lnd-pipe-step:hover .lnd-pipe-bubble {
  transform: translateY(-3px) scale(1.04);
  background: rgba(46, 109, 164, 0.18);
  box-shadow: 0 6px 16px rgba(46, 109, 164, 0.18);
}

/* Connector line: a fine gradient stroke behind the bubbles, fades in
 * after the steps drop. Drawn with a pseudo on .lnd-pipeline so it
 * naturally spans the whole row without needing one element per gap. */
.lnd-pipeline {
  position: relative;
}
.lnd-pipeline::before {
  content: "";
  position: absolute;
  top: 28px; /* center of 56px bubble */
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0,
    rgba(46, 109, 164, 0.35) 12%,
    rgba(46, 109, 164, 0.35) 88%,
    transparent 100%);
  z-index: -1;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  animation: lnd-line-in 0.7s ease 700ms forwards;
}
@keyframes lnd-line-in {
  to { opacity: 1; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lnd-pipeline::before { opacity: 1; transform: scaleX(1); animation: none; }
}

@media (max-width: 720px) {
  .lnd-pipeline { gap: 10px 6px; }
  .lnd-pipeline::before { display: none; }
  .lnd-pipe-step { min-width: 72px; }
  .lnd-pipe-bubble { width: 48px; height: 48px; font-size: 24px; }
}

/* ─── Feature chips (trust / quality row) ────────────────── */
.lnd-feature-chips {
  list-style: none;
  padding: 0;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
}
.lnd-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bpl-card, #fff);
  border: 1px solid var(--bpl-border, rgba(0,0,0,0.12));
  font-size: 13px;
  font-weight: 600;
  color: var(--bpl-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lnd-feature-chip:hover {
  background: var(--bpl-card-hover, rgba(0,0,0,0.04));
  border-color: var(--bpl-border-strong, rgba(0,0,0,0.24));
}
.lnd-feature-chip .ph {
  font-size: 16px;
  color: var(--bpl-blue, var(--accent));
}
.lnd-hero-text h1 {
  font-family: var(--bpl-font-serif, var(--bpl-font-sans));
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px 0;
  color: var(--bpl-text);
}
.lnd-hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--bpl-text-muted);
  margin: 0 0 24px 0;
  max-width: 540px;
}
.lnd-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.lnd-link {
  color: var(--bpl-text-muted);
  text-decoration: underline;
  font-size: 14px;
}
.lnd-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sections */
.lnd-section-title {
  font-family: var(--bpl-font-serif, var(--bpl-font-sans));
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  margin: 0 0 24px 0;
}

/* Steps */
.lnd-steps {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px;
}
.lnd-step-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .lnd-step-grid { grid-template-columns: 1fr; }
}
.lnd-step {
  background: var(--bpl-card);
  border: 1px solid var(--bpl-border);
  border-radius: 12px;
  padding: 24px 22px;
}
.lnd-step h3 { margin: 12px 0 6px 0; font-size: 18px; }
.lnd-step p { color: var(--bpl-text-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.lnd-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bpl-blue);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* Numbers */
.lnd-numbers {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
}
.lnd-numbers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 700px) {
  .lnd-numbers-row { grid-template-columns: 1fr; }
}
.lnd-number-value {
  font-family: var(--bpl-font-serif, var(--bpl-font-sans));
  font-size: clamp(40px, 6vw, 64px);
  color: var(--bpl-blue);
  line-height: 1.1;
}
.lnd-number-label {
  font-size: 13px;
  color: var(--bpl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Comparison — high-contrast table. Bolted-on shadow + thicker borders
 * + strong navy BPL column + colour-coded cell values so the section
 * reads as "a real comparison table" not "five lines of text".  */
.lnd-compare {
  /* Narrowed 2026-06-04 — the 1100px shell read too wide on desktop;
     880 keeps the table readable side-to-side without hugging the
     viewport edges. Mobile collapse below still kicks in at <=760px. */
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 32px 48px;
}
.lnd-section-lede {
  text-align: center;
  font-size: 15.5px;
  color: var(--bpl-text-muted);
  max-width: 720px;
  margin: -4px auto 32px;
  line-height: 1.55;
}
.lnd-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--bpl-border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  background: var(--bpl-card);
}
.lnd-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bpl-card);
}
/* Header row — deep navy stripe so the column names read instantly. */
.lnd-table thead th {
  text-align: center;
  padding: 16px 18px;
  border-bottom: 2px solid var(--accent);
  color: var(--bpl-card);
  background: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}
.lnd-table thead th:first-child {
  text-align: left;
  background: var(--accent);
  width: 32%;
  min-width: 240px;
}
/* BPL column header — gold accent so the eye lands here first. */
.lnd-table thead th:nth-child(2) {
  background: var(--bpl-gold, #c9a14a);
  color: var(--bpl-text);
  box-shadow: inset 0 -3px 0 var(--bpl-gold-hover, #b48e3c);
}
/* Row label column. */
.lnd-table tbody th {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bpl-border);
  font-weight: 600;
  color: var(--bpl-text);
  vertical-align: middle;
  background: var(--bpl-card);
  width: 32%;
}
/* Body cells. */
.lnd-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bpl-border);
  border-left: 1px solid var(--bpl-border);
  text-align: center;
  color: var(--bpl-text-muted);
  vertical-align: middle;
  font-weight: 500;
}
.lnd-table tbody tr:last-child th,
.lnd-table tbody tr:last-child td { border-bottom: 0; }
/* BPL column — light navy tint + bold value + left/right gold accent edges. */
.lnd-table tbody td:nth-child(2) {
  background: var(--bpl-blue-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 3px 0 0 var(--bpl-gold, #c9a14a), inset -3px 0 0 var(--bpl-gold, #c9a14a);
  border-left: 0;
}
/* Alternating row stripes for scannability. */
.lnd-table tbody tr:nth-child(even) th,
.lnd-table tbody tr:nth-child(even) td:not(:nth-child(2)) {
  background: rgba(0, 0, 0, 0.018);
}
/* Hover spotlight. */
.lnd-table tbody tr:hover th,
.lnd-table tbody tr:hover td:not(:nth-child(2)) { background: rgba(46, 109, 164, 0.06); }

.lnd-compare-footnote {
  margin: 24px auto 0;
  max-width: 820px;
  text-align: center;
  font-size: 13px;
  color: var(--bpl-text-muted);
  line-height: 1.55;
}
.lnd-compare-footnote a { color: var(--bpl-blue); }

/* Mobile — collapse the wide grid into a per-capability card list so the
 * 5-column comparison stays usable on a phone without needing horizontal
 * scroll. Each tbody row becomes a card; the column header strings get
 * paired with each cell via data-col attributes. */
@media (max-width: 760px) {
  .lnd-compare { padding: 36px 16px; }
  .lnd-table-wrap { border: 0; overflow-x: visible; }
  .lnd-table { min-width: 0; display: block; background: transparent; }
  .lnd-table thead { display: none; }
  .lnd-table tbody { display: block; }
  .lnd-table tbody tr {
    display: block;
    background: var(--bpl-card);
    border: 1px solid var(--bpl-border);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 12px;
  }
  .lnd-table tbody th {
    display: block;
    padding: 0 0 8px;
    margin: 0 0 8px;
    border: 0;
    border-bottom: 1px dashed var(--bpl-border);
    font-weight: 700;
    color: var(--bpl-text);
    font-size: 14.5px;
  }
  .lnd-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: 0;
    text-align: left;
    background: transparent;
    color: var(--bpl-text);
    font-size: 13.5px;
  }
  .lnd-table tbody td::before {
    content: attr(data-col);
    color: var(--bpl-text-muted);
    font-weight: 500;
    margin-right: 12px;
    flex: 1;
  }
  .lnd-table tbody td:nth-child(2) {
    background: var(--bpl-blue-light);
    margin: 4px -14px;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
  }
  .lnd-table tbody tr:hover td,
  .lnd-table tbody tr:hover th { background-color: transparent; }
  .lnd-table tbody tr:hover td:nth-child(2) { background: var(--bpl-blue-light); }
}

/* ─────────────────────────────────────────────────────────────
 * Footer zone (Sprint M — 2026-06-02)
 *
 * The acknowledgement strip + the structured footer share one
 * continuous warm-paper bg (var(--bpl-card)) so they read as a
 * single block rather than two fractured panels. The previous
 * white-on-paper seam is gone. Separation between the funders and
 * the brand row is achieved by vertical whitespace alone (no
 * hairline rule — on paper-stock backgrounds, thin borders look
 * cheap; whitespace reads more refined).
 *
 * Layout: 3-col grid for the bottom block.
 *   col 1 — brand mark, left-aligned
 *   col 2 — address + Contact us, fully centered
 *   col 3 — copyright + cookie links, right-aligned
 *
 * Funder strip: static flex row (no marquee). All logos
 * normalised to 32px tall with a monochrome grey filter so the
 * row reads as one uniform mark instead of six competing brands.
 * Per-funder classes are reserved (.funder-mcgill / .funder-nserc
 * / .funder-sshrc / etc.) for case-by-case overrides if any logo
 * fails to read under the default filter — see audit notes in
 * deploy/ARBUTUS-DEPLOY-LOG.md "Sprint M".
 * ───────────────────────────────────────────────────────────── */

/* Acknowledgement section — sits inside <main> as the last content
 * block, before the footer chrome starts. Uses the page bg (NOT the
 * footer's warm-paper) so there's a visible seam between the funder
 * strip and the footer chrome. Sprint M had them share var(--bpl-card)
 * for a seamless look; reverted per user request (the funder strip and
 * the address/legal block belong to different zones). */
.lnd-acknowledgement {
  padding: 40px 24px 24px;
  text-align: center;
  background: var(--bpl-bg);
}

/* "Acknowledgement" heading — small uppercase label, not a headline. */
.lnd-funders-heading {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bpl-text-muted);
  margin: 0 0 24px;
  font-weight: 600;
}

/* Funder strip — static flex row, wraps to 2 lines on mobile. All
 * logos are normalised to 32px tall via height + width auto; the
 * monochrome grey filter keeps the strip reading as one uniform row
 * instead of six competing color logos. Hover restores the original
 * color so the row still feels alive (and confirms branding to a
 * curious viewer). */
.lnd-footer-funders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.lnd-footer-funders img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.2s ease;
}
.lnd-footer-funders img:hover { filter: none; }

/* Per-funder overrides — populated only if a particular logo washes
 * out under the default filter.
 *
 * NSERC: the logo is a solid red rectangle with a WHITE circular
 * interior, with a red maple leaf inside the white circle. Under
 * grayscale(1) opacity(0.55), the white circle blends straight into
 * the warm-paper bg and the brand identity (maple leaf) loses
 * contrast. Bump opacity to 0.85 (still no color, still uniform with
 * the row) — the rectangle reads as a darker gray block and the
 * white-circle / leaf detail survives. */
.lnd-footer-funders img.funder-nserc {
  filter: grayscale(1) opacity(0.85);
}
/* Hover restore for NSERC — its per-funder rule above wins over the
 * generic `img:hover` (equal specificity, later in source), so the
 * row's "hover → full color" affordance silently breaks for NSERC.
 * This explicit rule beats both via class + pseudo specificity. */
.lnd-footer-funders img.funder-nserc:hover {
  filter: none;
}

/* Structured footer (4-col) — col 1 brand (left), col 2 address
 * (centered), col 3 nav (centered — Today + Contact moved from
 * header), col 4 legal (right). Uses warm-paper var(--bpl-card)
 * background; the acknowledgement strip above uses var(--bpl-bg) so
 * there's a visible seam between the two zones. */
.lnd-footer {
  background: var(--bpl-card);
  padding: 48px 32px 32px;
  margin-top: 0;
}
.lnd-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.lnd-footer-col { min-width: 0; }

/* Col 1 — brand mark, left-aligned */
.lnd-footer-col-brand { text-align: left; }
.lnd-footer-brand { display: inline-flex; text-decoration: none; }
.lnd-footer-logo { height: 40px; width: auto; }

/* Col 2 — address, centered (column position + inner text). */
.lnd-footer-col-addr { text-align: center; }
.lnd-footer-addr {
  font-style: normal;
  font-size: 13px;
  color: var(--bpl-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Col 3 — nav (Today, Contact). Stacked vertically, centered. */
.lnd-footer-col-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.lnd-footer-col-nav .lnd-footer-link {
  text-decoration: none;
  color: var(--bpl-text-muted);
  border-bottom: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lnd-footer-col-nav .lnd-footer-link:hover {
  color: var(--bpl-blue);
  border-bottom-color: var(--bpl-blue);
}

/* Col 4 — copyright + cookie links, right-aligned */
.lnd-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12.5px;
  color: var(--bpl-text-muted);
  text-align: right;
}
.lnd-footer-copy { color: var(--bpl-text-muted); margin: 0; }
.lnd-footer-link {
  color: var(--bpl-text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.18);
}
.lnd-footer-link:hover { color: var(--bpl-blue); }

@media (max-width: 880px) {
  /* Tablet — collapse to 2x2 so cols don't get too narrow. */
  .lnd-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .lnd-acknowledgement { padding: 32px 20px 20px; }
  .lnd-footer-funders { gap: 32px; }
  .lnd-footer { padding: 36px 20px 28px; }
  .lnd-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .lnd-footer-col-brand,
  .lnd-footer-col-addr,
  .lnd-footer-col-nav,
  .lnd-footer-legal { text-align: left; align-items: flex-start; }
}
@media (max-width: 480px) {
  .lnd-footer-funders img { height: 28px; }
  .lnd-footer-funders { gap: 24px; }
}

/* Cookie consent banner — fixed bottom-right card, dismissed by either
 * button. Non-modal so the user can keep reading the page. */
.lnd-cookie-banner {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 2147483645;
  max-width: 420px;
  width: calc(100vw - 36px);
  background: var(--bpl-card);
  border: 1px solid var(--bpl-border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 22px 22px 18px;
  font-size: 13.5px;
  color: var(--bpl-text);
}
.lnd-cookie-banner[hidden] { display: none; }
.lnd-cookie-inner h3 {
  font-family: var(--bpl-font-serif, var(--bpl-font-sans));
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
}
.lnd-cookie-q { font-weight: 600; margin: 12px 0 8px; }
.lnd-cookie-prefs {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.lnd-cookie-prefs li { padding: 5px 0; }
.lnd-cookie-prefs label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.45;
}
.lnd-cookie-prefs input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.lnd-cookie-prefs input[type="checkbox"]:disabled { opacity: 0.7; cursor: default; }
.lnd-cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.lnd-cookie-actions .bpl-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 1px solid var(--bpl-border);
  background: var(--bpl-card);
  color: var(--bpl-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lnd-cookie-actions .bpl-btn:hover { background: rgba(0,0,0,0.04); }
.lnd-cookie-actions .bpl-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lnd-cookie-actions .bpl-btn-primary:hover { background: var(--bpl-blue-hover, var(--accent)); }

@media (max-width: 480px) {
  .lnd-cookie-banner { bottom: 12px; right: 12px; left: 12px; max-width: none; }
}

/* Legacy scroll-reveal class — was opacity:0 by default which made
 * sections permanently invisible when the inline observer script was
 * blocked by CSP. Kept here only so any leftover markup still renders.
 * For new sections use .lnd-reveal-on-scroll below. */
.lnd-reveal { opacity: 1; transform: none; }

/* Visibility-progressive reveal: visible by default (so CSP can't
 * accidentally hide content). When supports + JS is available, the
 * IntersectionObserver in /js/landing-reveal.js adds .is-in for a
 * subtle fade-up. .js-ready is set by that script before flipping any
 * state — without it, the section is just visible immediately. */
.lnd-reveal-on-scroll { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
html.js-ready .lnd-reveal-on-scroll { opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
html.js-ready .lnd-reveal-on-scroll.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js-ready .lnd-reveal-on-scroll { opacity: 1; transform: none; }
}
