/* -------------------------------------------------------------------------
   Landing page, below the hero: data sources, research, product, method,
   how it works, limits, footer, and the scroll reveal.

   Split out of index.html's inline <style> once the page grew long. The
   tokens, base rules, header, login panel and hero stay inline there so the
   first screen is styled by the HTML alone; this file loads from <head> as
   one same-origin stylesheet (the landing CSP allows style-src 'self'). It
   uses the tokens defined inline in index.html, so it is not standalone.
   ------------------------------------------------------------------------- */

/* ---------------------------------------------------------------
   Data sources: a logo strip directly under the hero. Google Trends is
   the lead source, so its lockup is set large; YouGov BrandIndex is set
   small with a plain note that it is for Havas staff. One hairline above
   sets the strip apart from the hero without boxing it in.
   --------------------------------------------------------------- */
.sources-strip {
  border-top: 1px solid var(--border);
  padding-block: 28px;
}

.sources-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 48px;
}

.sources-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.sources-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 44px;
}

/* No chip: the assets are genuinely transparent, so the marks composite
   straight onto the #191919 canvas. The wrapper is only an alignment
   box. */
.source-chip {
  display: flex;
  align-items: center;
}

.source-secondary {
  gap: 12px;
}

.source-note {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Sizes are TYPE heights, not box heights. Both assets are trimmed
   tight to their ink, but they are not measuring the same thing: "YouGov BrandIndex"
   has no descender, so its 52px canvas is all type, while Google's
   102px canvas is 79px of type plus 23px of the "g" descender. One
   height for both therefore renders the Trends wordmark visibly SMALLER
   than the YouGov one. .lockup-descender scales it back up by 102/79
   so its type matches the height asked for - the same ratio
   components/layout/SourceLogo.tsx derives from its typeHeight field.
   Trends: 28px of type (28 x 102/79 = 36.2px box). YouGov: 15px, a
   deliberate step down, since it is the secondary, staff-only source.

   This page is dark-only, so it loads the -dark.png reversed lockups
   directly rather than swapping on a theme class the way the app does.
   No filter: brightness(0) invert(1) would flatten both marks to solid
   white, losing Google's four colours and YouGov's coral. The -dark
   artwork lifts only the neutral ink to #edecea and leaves every
   coloured pixel, and the whole alpha channel, exactly as it was. */
.source-chip img {
  height: 15px;
  width: auto;
  object-fit: contain;
}

.source-chip img.lockup-descender {
  height: 36.2px;
}

/* ---------------------------------------------------------------
   Research, part 1: Binet's line as a full-width editorial pull
   quote. Upright and large, with the opening mark hung into the
   margin so the text edge stays aligned with the shell. Sized to hold
   three lines at 1440.
   --------------------------------------------------------------- */
.research-quote {
  padding-block: 96px 88px;
}

.pull-quote blockquote p {
  font-size: clamp(1.25rem, 2.15vw, 1.875rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-indent: -0.42em;
}

/* Keywords in the same face, a weight step up. */
.pull-quote strong {
  font-weight: 600;
}

.pull-quote figcaption {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* Source links across the research sections: muted, underlined, so
   they read as citations rather than calls to action. */
.cite-link {
  text-decoration: underline;
  text-decoration-color: var(--control-edge);
  text-underline-offset: 3px;
  transition: color 150ms, text-decoration-color 150ms;
}

.cite-link:hover {
  color: var(--foreground);
  text-decoration-color: currentColor;
}

/* Every external link opens in a new tab (so a reader keeps their place on
   the page). The arrow says so visually; the alt text after the slash says
   so to screen readers. Browsers without the alt-text syntax fall back to
   the arrow alone. */
a[target="_blank"]::after {
  content: "\2197";
  content: "\2197" / " (opens in a new tab)";
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.85em;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   Research, part 2: the evidence as an asymmetric stat grid. A large
   cell (the IPA's 83%) beside a smaller one (the leading indicator),
   and a bridge line underneath hands over to the method. The large cell is tinted with the accent; the small
   ones stay on the card surface.
   --------------------------------------------------------------- */
.research-evidence {
  padding-bottom: 96px;
}

.section-title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-intro {
  margin-top: 16px;
  max-width: 42rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

.stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
}

.stat-lead {
  padding: 36px;
  border-color: color-mix(in srgb, var(--brand-red) 35%, transparent);
  background-color: color-mix(in srgb, var(--brand-red) 8%, var(--card));
}

.stat-figure {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-lead .stat-figure {
  font-size: clamp(4.5rem, 9vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand-red-text);
}

.stat-text {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.stat-lead .stat-text {
  margin-top: 24px;
  max-width: 30rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--foreground);
}

/* Pinned to the foot of each cell, so the three sources line up
   whatever the length of the text above them. */
.stat-source {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.research-bridge {
  margin-top: 40px;
  max-width: 46rem;
  font-size: 1.0625rem;
  color: var(--foreground);
}

.research-bridge a {
  color: var(--brand-red-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------
   The two lead features, laid out differently on purpose.
   #product (daily data): a photo with the daily-cycle card laid over
   its foot on the left, the copy on the right.
   #method (incrementality): the heading, then a full-bleed photo band,
   with the counterfactual card pulled up over the band's lower edge and
   the facts beside it.
   Both reuse the figure card, the points list and the verdict ladder.
   --------------------------------------------------------------- */
.daily-section {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

.daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  row-gap: 40px;
  align-items: center;
}

.daily-media {
  min-width: 0;
}

.feature-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Overlaps the lower part of the photo (the apricot glow), inset from
   the left, so the brighter sky stays in view above it. */
.daily-figure {
  position: relative;
  margin: -112px 0 0 40px;
}

/* Both cards sit on busy photos (red arrows, gold panels), so the edge is
   a step lighter than the usual hairline and the shadow is deeper. */
.daily-figure .figure-card,
.campaign-figure .figure-card {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}

.campaign-section {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

/* Full-bleed, outside the shell. The mask feathers its top and bottom
   edges into the canvas, so the band has no hard horizontal seams. */
.campaign-band {
  margin-top: 40px;
  height: clamp(260px, 30vw, 420px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent);
}

/* The image is an 8:3 band already. When a narrow viewport crops it,
   keep the left side, where the panels recede and the floor darkens the
   corner the figure card overlaps. */
.campaign-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 60%;
}

.campaign-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  row-gap: 32px;
  align-items: start;
}

/* Pulled up over the band's lower-left corner (the plaza floor), clear of
   the screen on the right. */
.campaign-media {
  min-width: 0;
}

.campaign-figure {
  position: relative;
  margin-top: -200px;
}

.campaign-copy {
  position: relative;
  min-width: 0;
  margin-top: -200px;
}

.campaign-copy .fact {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}

/* The two facts beside the figure. Each cell reads label, then a key
   phrase as its anchor, then one short body. "The model" carries an
   accent rule; both sit on the card surface. */
.campaign-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* Below the band: three plain definitions side by side, a hairline
   over each, no cards or labels. */
.campaign-defs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 48px;
  margin-top: 40px;
}

.campaign-defs > div {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.campaign-defs dt {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.campaign-defs dd {
  margin-top: 6px;
  max-width: 34rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.campaign-facts dd strong {
  color: var(--brand-red-text);
  font-weight: 600;
}

.fact {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
}

.fact-rule {
  border-left: 3px solid var(--brand-red);
  border-radius: 0 8px 8px 0;
}

.campaign-facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.campaign-facts dd {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.campaign-facts .fact-anchor {
  margin-block: 6px 8px;
  text-wrap: balance;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--foreground);
}

.figure-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
}

.figure-card svg {
  width: 100%;
  height: auto;
}

/* Under the two figures that still scroll sideways on phones: phone
   scrollbars are hidden until touched, so without this the cut-off edge
   reads as a broken drawing. */
.figure-swipe {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.figure-swipe::after {
  content: "92";
}

/* Phones only. Smallest label 12 units (daily) and 14 units (method):
   these widths hold them at 11px. See .figure-scroll in index.html. */
@media (max-width: 767px) {
  .figure-scroll-daily svg {
    min-width: 440px;
  }

  .figure-scroll-method svg {
    min-width: 380px;
  }

  .figure-swipe {
    display: flex;
  }
}


/* Short lead in the foreground, the detail muted after it. Spacing
   separates the points; no rules between them. */
.points {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.points li {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.points strong {
  font-weight: 600;
  color: var(--foreground);
}

/* Verdict ladder: three tiers, strongest on top, told apart by how
   much of the accent each one carries on its left edge. A ladder of
   labels, not a progress bar: there is no track and nothing fills. */
.ladder-lead {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.verdict-ladder {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.verdict-ladder li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--tier-colour);
  border-radius: 0 8px 8px 0;
  background-color: var(--muted);
  font-size: 0.875rem;
}

.verdict-ladder .tier-name {
  font-weight: 600;
}

.verdict-ladder .tier-rule {
  color: var(--muted-foreground);
  white-space: nowrap;
}

.tier-strong {
  --tier-colour: var(--brand-red);
}

.tier-moderate {
  --tier-colour: color-mix(in srgb, var(--brand-red) 50%, var(--muted));
}

.tier-none {
  --tier-colour: var(--control-edge);
}

/* ---------------------------------------------------------------
   YouGov BrandIndex: a contained panel, lighter than the two lead
   features. The YouGov BrandIndex lockup heads the panel (logo only),
   then the copy and the grouped-bars figure side by side.
   --------------------------------------------------------------- */
.yougov-section {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

.yougov-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
}

.yougov-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 28px;
  align-items: center;
  padding: 40px;
}

/* 26px of type: the asset has no descender, so box height is type height.
   Larger than the sources strip's 15px, smaller than a hero mark. */
.yougov-mark {
  height: 26px;
  width: auto;
  margin-bottom: 18px;
}

/* The section's headline says what the data is; the veil says who can
   see it. Big and bold, in the body face. */
.yougov-title {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--foreground);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Four metric boxes, stacked; tight enough that the column stays near the
   copy column's height at 1440. */
.yougov-figures {
  display: grid;
  gap: 8px;
}

.yougov-figure {
  padding: 12px 16px;
  border-radius: 8px;
  background-color: var(--muted);
}

.yougov-figure svg {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------
   Why search, part 2: where AI fits. The journey chart is one 100%
   bar per stage (AI in blue, web search in the Havas red, as in the
   explainer deck), drawn in HTML so its labels keep text size at any
   width. Then one takeaway line, then a big figure beside the app bars.
   --------------------------------------------------------------- */
.ai-search {
  margin-top: 72px;
}

.ai-subtitle {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ai-journey {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
}

.ai-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.ai-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ai-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.ai-swatch-ai {
  background-color: var(--series-1);
}

.ai-swatch-web {
  background-color: var(--brand-red-fill);
}

/* The journey reads top to bottom, from exploring to deciding. */
.ai-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--control-edge);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.ai-stages {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.ai-stage {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.ai-stage strong {
  margin-right: 6px;
  font-weight: 600;
  color: var(--foreground);
}

.ai-split {
  display: flex;
  margin-top: 8px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.ai-seg {
  display: flex;
  align-items: center;
  flex: 0 0 var(--share);
  padding-inline: 10px;
}

.ai-seg-ai {
  background-color: var(--series-1);
}

.ai-seg-web {
  justify-content: flex-end;
  background-color: var(--brand-red-fill);
}

.ai-source {
  margin-top: 20px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* The one red-ruled line in the chapter: what the chart means for
   Share of Search. */
.ai-takeaway {
  margin-top: 24px;
  max-width: 46rem;
  padding-left: 16px;
  border-left: 3px solid var(--brand-red);
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

.ai-takeaway strong {
  color: var(--foreground);
}

.ai-reach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.ai-reach-lead .stat-figure {
  font-size: clamp(3.5rem, 7vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.ai-apps-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Bars with no background track: the value sits at each bar's end. */
.ai-bars {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ai-bars li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  font-size: 0.875rem;
}

.ai-bar-label {
  color: var(--foreground);
}

.ai-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-bar {
  flex: 0 0 var(--share);
  height: 18px;
  border-radius: 2px;
  background-color: var(--series-1);
}

.ai-bar-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

@media (max-width: 767px) {
  .ai-search {
    margin-top: 56px;
  }

  .ai-journey {
    padding: 20px;
  }

  .ai-reach {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------
   YouGov veil: the example charts sit blurred under a frosted cover
   that carries the HAVAS wordmark, so the access rule is visible at a
   glance. The charts are hidden from screen readers (they are made-up
   examples); the cover's text is what gets read.
   --------------------------------------------------------------- */
.yougov-locked {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.yougov-locked .yougov-figures {
  filter: blur(5px) saturate(0.7);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

.yougov-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--control-edge);
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--background) 55%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  text-align: center;
}

.yougov-veil-lock {
  width: 28px;
  height: 28px;
  color: var(--foreground);
}

.yougov-veil-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.yougov-veil-logo {
  height: 26px;
  width: auto;
}

.yougov-veil-note {
  max-width: 18rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------------------------------------------------------------
   How it works: three steps in one horizontal row on a shared
   hairline, a small arrowhead on the line between each step. The
   labels carry the sequence, so there are no step numbers.
   --------------------------------------------------------------- */
.how {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 28px 40px 0 0;
  border-top: 1px solid var(--control-edge);
}

/* Arrowhead sitting on the hairline at the end of each step but the
   last: a rotated corner, so no icon is needed. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 20px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--control-edge);
  border-right: 1px solid var(--control-edge);
  transform: rotate(45deg);
}

/* Real product screenshots above each step: one 16:10 box for all three
   so the row reads level, framed as UI (border, 8px radius, soft shadow).
   Cropped from the top left; the dashboard card, already near 16:10, is
   centred. */
.step-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.step-shot-centre {
  object-position: center;
}

/* The setup dialog is wider than 16:10 and its close and Next buttons sit
   at the right edge, so it is shown whole, letterboxed in the dialog's own
   #181818. */
.step-shot-contain {
  object-fit: contain;
  background-color: #181818;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.step p {
  margin-top: 10px;
  max-width: 22rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* ---------------------------------------------------------------
   Honest limits: two columns, each limit paired on its row with what
   Brand Share Of Search does about it. One hairline under the column heads and space
   between rows; no rule on every row. Each answer carries a thin
   accent edge so the pairing survives the one-column phone layout,
   where the column heads drop out.
   --------------------------------------------------------------- */
.limits-section {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

.limits-head,
.limit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
}

.limits-head {
  margin-top: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
}

.limits {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

.limit-row dt {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.limit-row dt strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
}

.limit-row dd {
  align-self: start;
  padding-left: 16px;
  border-left: 2px solid var(--brand-red);
  font-size: 0.9375rem;
  color: var(--foreground);
}

.limit-row dd a {
  color: var(--brand-red-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------
   FAQ: a short intro column that stays in view on the left, and the
   questions as an accordion on the right. Native <details>, so it opens
   and closes with no JS. Each question is its own quiet surface rather
   than a row between hairlines; the marker is a CSS chevron that turns
   when the item opens.
   --------------------------------------------------------------- */
.faq-section {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  column-gap: 64px;
  row-gap: 32px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 96px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border-radius: 8px;
  background-color: var(--card);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 22px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform 150ms;
}

.faq-item[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq-item summary:hover::after {
  border-color: var(--foreground);
}

/* The figure blue ring: 5.10:1 on the card, where --ring would sit too
   close to the 3:1 floor. */
.faq-item summary:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--brand-red);
}

.faq-answer {
  padding: 0 22px 20px;
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a,
.faq-answer .link-button {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--control-edge);
  text-underline-offset: 3px;
}

.faq-answer a:hover,
.faq-answer .link-button:hover {
  text-decoration-color: currentColor;
}

/* A button that reads as an inline link: it opens the login panel, so it
   is a button, but it sits inside a sentence. */
.link-button {
  padding: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* ---------------------------------------------------------------
   Contact: one centred column, the copy above a single form card.
   Labels sit above their fields and errors below them; nothing uses a
   placeholder as a label. landing/contact-form.ts validates, posts and
   swaps the form for the thank-you note.
   --------------------------------------------------------------- */
.contact-section {
  padding-block: 96px;
  border-top: 1px solid var(--border);
}

.contact-column {
  max-width: 640px;
  margin-inline: auto;
}

.contact-card {
  margin-top: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
}

.contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 20px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.field-optional {
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Border is var(--control-edge): 3.1:1 on the card, over the 3:1 a field's edge
   needs to read as a control. */
.field-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--control-edge);
  border-radius: 6px;
  background-color: var(--input);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
}

textarea.field-input {
  min-height: 140px;
  resize: vertical;
}

.field-input:focus-visible {
  border-radius: 6px;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 1px var(--brand-red);
}

.field-input[aria-invalid="true"] {
  border-color: #f5b5b5;
}

/* #f5b5b5: 9.43:1 on the card. */
.field-error {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #f5b5b5;
}

.field-error:empty {
  display: none;
}

/* .field .consent: has to beat `.field label`, which sets display: block. */
.field .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-red);
}

.consent input:focus-visible {
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--brand-red);
}

.consent a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Honeypot: off-screen rather than display:none, so naive bots still fill
   it in; aria-hidden and tabindex=-1 keep people from reaching it. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.contact-actions .btn[disabled] {
  pointer-events: none;
  opacity: 0.6;
}

.contact-status {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-status[data-tone="error"] {
  color: #f5b5b5;
}

.contact-status:empty {
  display: none;
}

.contact-success h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

.contact-success p {
  margin-top: 8px;
  color: var(--muted-foreground);
}

.contact-success:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-red);
}

.contact-noscript {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------------------------------------------------------------
   Footer: a landing-only Sources row, then the credit and legal links.
   --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 20px;
}

/* Credit on the left, legal links on the right; the row wraps once
   the viewport is too narrow to hold both. These rules are mirrored
   in public/legal.css, which dresses the same footer markup on
   /privacy and /tos. */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted-foreground);
  transition: color 150ms;
}

.footer-links a:hover,
.footer-photos:hover,
.footer-credit:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.footer-photos,
.footer-credit {
  color: var(--muted-foreground);
  transition: color 150ms;
}

/* "Built by" + the Havas Middle East lockup (inline SVG). */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.footer-logo {
  flex: none;
  height: 22px;
  width: auto;
}

/* Its own line under the credit, so the photo links wrap as a sentence. */
.footer-photo-line {
  display: block;
  margin-top: 4px;
}

/* Sources row: landing-only. The legal pages share the footer markup
   and public/legal.css, so everything here hangs off .footer-sources,
   which only this page uses. One hairline, on the list itself so it
   lines up with the text, separates it from the credit row. */
.footer-sources-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.footer-sources-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
  margin-top: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.footer-sources-list li {
  color: var(--muted-foreground);
}

.footer-sources-list a {
  color: var(--muted-foreground);
  transition: color 150ms;
}

.footer-sources-list a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   Scroll reveal. landing/reveal.ts adds html.js, then .is-visible to
   each [data-reveal] block as it first enters the viewport. Content
   is hidden only when both are true: JS is running (html.js) and the
   visitor has not asked for reduced motion. Without JS, or with
   reduced motion, every block is simply there. Transform and opacity
   only.
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    transition:
      opacity 560ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.js [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------------------------------------------------------------
   Responsive. Every multi-column section collapses to one column
   under 768px. The gutter and header rules live inline in
   index.html.
   --------------------------------------------------------------- */
@media (max-width: 1023px) {
  /* The features stack here, not at 768: in a half-width tablet column
     the figures would shrink their labels to about 7px. Copy first, then
     the media. */
  .daily-grid,
  .campaign-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Capped so a stacked figure does not blow its labels up past the
     body text. */
  .daily-media,
  .campaign-media {
    max-width: 560px;
  }

  .daily-media {
    order: 2;
  }

  .campaign-figure {
    margin-top: -96px;
    margin-left: 24px;
  }

  .campaign-copy {
    margin-top: 0;
  }

}

@media (max-width: 767px) {
  .research-quote {
    padding-block: 64px 56px;
  }

  .research-evidence {
    padding-bottom: 64px;
  }

  /* The large stat first, then the small one, one column. */
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-lead {
    padding: 28px;
  }

  .daily-section,
  .campaign-section {
    padding-block: 64px;
  }

  .daily-figure {
    margin: -64px 0 0;
  }

  .campaign-figure {
    margin-top: -64px;
    margin-left: 0;
  }

  .campaign-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .campaign-defs {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .figure-card {
    padding: 16px;
  }

  .yougov-section {
    padding-block: 64px;
  }

  .yougov-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }

  /* Steps stack; the hairline runs down the left edge instead and the
     arrowheads drop out. */
  .how {
    padding-block: 64px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .step {
    padding: 0 0 0 20px;
    border-top: 0;
    border-left: 1px solid var(--control-edge);
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .limits-section {
    padding-block: 64px;
  }

  .limits-head {
    display: none;
  }

  .limit-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }

  .limits {
    margin-top: 32px;
  }

  .footer-sources-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-section {
    padding-block: 64px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-intro {
    position: static;
  }

  .faq-item summary {
    padding: 16px 48px 16px 18px;
  }

  .faq-item summary::after {
    top: 22px;
    right: 20px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .contact-section {
    padding-block: 64px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
