/* Truely homepage — editorial broadsheet masthead. Pairs with style.css.
   No glowing blobs, no gradient-text, no animated colour shifts. Inks
   on paper, thin rules between sections, one accent. */

/* =========================================================== HERO
   Big Fraunces masthead. Eyebrow, italic break, and a quiet inline
   CTA hint. The hero is left-aligned (FT-style) on desktop, still
   readable on mobile. */
.hero--rich {
  position: relative;
  padding: 44px 24px 72px;
  overflow: hidden;
  text-align: left;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .hero--rich { padding: 32px 18px 48px; }
}
.hero--rich .inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
}

/* Decorative SVG blobs/grids from the previous design — collapsed. */
.hero-bg, .hero-blob, .hero-grid { display: none; }

.hero--rich h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.8vw, 76px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  padding-bottom: 0.05em;
  margin: 0 0 18px;
  color: var(--ink);
  font-feature-settings: "ss01", "kern";
  max-width: 920px;
}
.hero--rich h1 em {
  font-style: italic;
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  padding-bottom: 0;
}

.hero--rich .tagline {
  /* v3: roman not italic. The homepage tagline runs three lines on
     mobile; italic body that long reads as a magazine standfirst from
     1995. Italic is reserved for the H1 inline accent and short
     editorial flourishes. */
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 0 22px;
  line-height: 1.6;
}
.hero--rich .coverage-pill { margin-bottom: 18px; }

/* Search lives at the start of the masthead column (left-aligned). */
.hero--rich .search-card {
  margin-left: 0; margin-right: 0;
  max-width: 640px;
}

.hero-cta-hint {
  margin-top: 12px;
  font-family: var(--font-display); font-style: italic;
  font-size: 14.5px; color: var(--ink-soft);
}
.hero-cta-hint a {
  color: var(--accent);
  margin: 0 4px;
  font-feature-settings: "tnum", "lnum";
  letter-spacing: 0.04em;
  font-style: normal;
}
.hero-cta-hint a:hover { color: var(--accent-deep); }

/* Recent searches row */
.recent-row {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 14px; flex-wrap: wrap;
}
.recent-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.recent-list { display: flex; gap: 6px; flex-wrap: wrap; }
.recent-pill {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500; color: var(--ink);
  font-feature-settings: "tnum", "lnum"; letter-spacing: 0.06em;
  text-decoration: none;
  background-image: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.recent-pill:hover {
  border-color: var(--accent); color: var(--accent);
}
.recent-clear {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
  background-image: none;
}
.recent-clear:hover {
  color: var(--accent); border-color: var(--accent);
}

/* =========================================================== HERO STATS
   The four-up "addresses indexed / sales loaded / crimes / sources"
   strip. Dropped behind the masthead as a quiet attribution band. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
  max-width: 1100px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
}
/* Mobile: 2x2 grid (4 stats / 2 rows). The numbers are abbreviated to
   compact form ("5.3M", "11M") in home.js for mobile viewports, so the
   wrap that drove the v4 single-column fallback is gone — each cell
   fits its number on one line. 1px hairlines between cells. */
@media (max-width: 768px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
  }
  .hero-stat {
    padding: 16px;
    margin: 0;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    /* Override desktop's rule that strips the right-border on the last
       child — on mobile every cell sits inside a 2x2 frame. */
  }
  /* v2 (May 2026): bumped specificity from .hero-stat:last-child to
     .hero-stats .hero-stat:last-child so this mobile override beats the
     desktop `.hero-stat:last-child { border-right: none; }` rule which
     sits later in source order and was winning the cascade. Without
     this, the bottom-right cell of the 2x2 grid lost its right border
     and the box opened on the right edge. */
  .hero-stats .hero-stat:last-child { border-right: 1px solid var(--rule); }
  .hero-stat .num {
    font-family: var(--font-sans);
    font-size: clamp(24px, 7vw, 32px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }
  .hero-stat .lbl {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1.3;
  }
}
.hero-stat {
  text-align: left;
  padding: 18px 24px 6px 0;
  border-right: 1px solid var(--rule);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em; line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}
.hero-stat .lbl {
  font-family: var(--font-sans);
  font-size: 11px; color: var(--ink-soft);
  margin-top: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* =========================================================== TRUST STRIP
   "Every figure comes directly from" — a quiet horizontal masthead
   listing the public-record sources. Inline text, thin rules, no pills. */
.trust-strip {
  padding: 44px 24px 48px;
  background: var(--paper-tinted);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .trust-strip { padding: 32px 18px 36px; }
}
.trust-strip .trust-eyebrow { margin-bottom: 14px; }
.trust-strip .trust-tagline { margin-top: 18px; }
.trust-inner { max-width: 1100px; margin: 0 auto; text-align: left; }
.trust-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 22px;
  display: inline-flex; align-items: center;
}
.trust-eyebrow::before, .trust-eyebrow::after { display: none; }
.trust-logos {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 19px; color: var(--ink);
  line-height: 1.6;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400; color: var(--ink);
  letter-spacing: -0.005em;
  background-image: none;
}
.trust-pill + .trust-pill {
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}
.trust-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
/* Class hooks kept so existing markup compiles, but now everything is
   one accent — no rainbow of colours. */
.trust-pill .dot.blue,
.trust-pill .dot.amber,
.trust-pill .dot.red,
.trust-pill .dot.teal,
.trust-pill .dot.navy,
.trust-pill .dot.plum,
.trust-pill .dot.slate { background: var(--accent); }

.trust-strip .trust-tagline {
  margin: 30px 0 0; max-width: 720px;
  font-family: var(--font-display); font-style: italic;
  font-size: 16px; color: var(--ink-soft); line-height: 1.6;
}

/* =========================================================== WHAT YOU UNLOCK
   No more "card grid". An editorial list — eight short pieces, divided
   by thin rules. Each piece has a section numeral + Fraunces h3 + lede. */
.unlock-strip {
  padding: 56px 24px 48px;
  background: var(--paper);
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.unlock-inner { max-width: 1100px; margin: 0 auto; }
.unlock-strip .section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px;
}
.unlock-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
  color: var(--ink);
  max-width: 720px;
}
.unlock-sub {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-soft);
  max-width: 720px; margin: 0 0 32px;
  font-size: 16px; line-height: 1.55;
}

.unlock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) { .unlock-grid { grid-template-columns: 1fr; } }

.unlock-card {
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 22px 24px 18px 0;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 150px;
  transition: background 0.18s ease;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 721px) {
  .unlock-card:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--rule); }
  .unlock-card:nth-child(even) { padding-left: 40px; }
}
.unlock-card::after { display: none; }
.unlock-card:hover { background: var(--paper-tinted); }

.unlock-icon {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
/* Force every unlock-icon onto the same accent treatment regardless of
   inline backgrounds in the HTML (legacy: each card had its own colour
   pastel). */
.unlock-icon[style] { background: transparent !important; }
.unlock-icon svg { stroke: var(--accent) !important; }
.unlock-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; margin: 0;
  letter-spacing: -0.014em; color: var(--ink);
}
.unlock-card p {
  font-family: var(--font-display);
  font-size: 16px; color: var(--ink-soft);
  margin: 0; line-height: 1.6;
}

/* Mini visualisations on featured cards */
.unlock-mini-bars {
  display: flex; flex-direction: column; gap: 5px;
  margin-top: auto; padding-top: 18px;
}
.unlock-mini-bars span {
  display: block; height: 4px; border-radius: 0;
  width: var(--w);
  background: var(--ink) !important;
  opacity: 0.85;
}
.unlock-mini-rep {
  margin-top: auto; padding-top: 18px;
  display: flex; flex-direction: column; gap: 0;
}
.unlock-mini-rep .rep-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.unlock-mini-rep .rep-row:last-child { border: none; }
.unlock-mini-rep .rep-v {
  font-weight: 500; color: var(--ink); font-size: 12px;
}
.unlock-mini-rep .rep-bar {
  display: block;
  width: var(--w, 60%);
  height: 4px; border-radius: 0;
  background: var(--rule);
  opacity: 0.65;
}

/* =========================================================== CTA TAIL */
.cta-tail {
  padding: 32px 24px 38px;
  text-align: left;
  background: var(--paper-tinted);
  border-top: 1px solid var(--rule);
}
.cta-inner { max-width: 760px; margin: 0 auto; }
.cta-tail h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400; letter-spacing: -0.022em;
  margin: 0 0 8px; color: var(--ink);
}
.cta-tail p {
  font-family: var(--font-display); font-style: italic;
  font-size: 16px; color: var(--ink-soft);
  margin: 0; max-width: 580px;
  line-height: 1.5;
}
.cta-tail .search-card {
  max-width: 580px; margin: 14px 0 0;
}
/* Tail-section sits flush against the footer — kill the footer's default
   top margin when it's directly preceded by the CTA so no double-air. */
.cta-tail + .site-footer { margin-top: 0; }

/* =========================================================== SHOWCASE (sample-report preview)
   A single editorial card showing a real SW18 1PB report extract on
   the homepage. Replaces the earlier asymmetric 8-card grid. */
.showcase { padding: 56px 24px 56px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.showcase-inner { max-width: 1100px; margin: 0 auto; }
.showcase .section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  /* v2 Apr 2026: matches the new section-eyebrow scale on report
     sections (12px/600/0.14em darker color) so the "Here's what a
     Truely report looks like" kicker reads at the same weight as the
     "SNAPSHOT", "CRIME & SAFETY" eyebrows users will see next. */
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 14px;
}
.showcase h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}
.showcase h2 em {
  font-style: italic;
  color: var(--accent);
  font-feature-settings: "tnum", "lnum";
  letter-spacing: 0.01em;
}
.showcase-sub {
  max-width: 640px;
  font-family: var(--font-display); font-style: italic;
  font-size: 17px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.showcase-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 28px 24px;
}
.showcase-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.showcase-byline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--ink-soft);
}
.showcase-byline-sep { color: var(--rule); }
.showcase-pc {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--ink);
  font-feature-settings: "tnum", "lnum";
  margin: 0 4px;
}
.showcase-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--rule);
}
.showcase-tile {
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 110px;
}
.showcase-tile:last-child { border-right: none; }
.showcase-tile .lb-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.showcase-tile .lb-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 36px); font-weight: 400;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum", "lnum";
  margin-top: auto;
}
.showcase-tile .lb-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 12px; color: var(--ink-soft);
  margin-top: 2px;
}
.showcase-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; background-image: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.showcase-cta:hover { background: var(--ink); color: var(--paper); }
.showcase-cta svg { stroke: currentColor; }
@media (max-width: 980px) {
  .showcase-tiles { grid-template-columns: repeat(2, 1fr); }
  .showcase-tile:nth-child(2) { border-right: none; }
  .showcase-tile:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 540px) {
  .showcase { padding: 48px 18px 40px; }
  .showcase-card { padding: 20px 18px 18px; }
  .showcase-tiles { grid-template-columns: 1fr; }
  .showcase-tile { border-right: none; border-bottom: 1px solid var(--rule); }
  .showcase-tile:last-child { border-bottom: none; }
  .showcase-pc { font-size: 26px; }
}
