/* ==========================================================================
   So You Grow Capital — shared styles

   Brand, from the live site at soyougrowcapital.com:
     blue  #0E7FC4  headings
     mint  #19D6A0  action colour, black text, square corners
     grey  #F2F2F2  section grounds
   Type: Work Sans SemiBold headings, Nunito Sans body.

   Measurements follow mainstream UK bridging lender convention rather than
   landing-page convention — checked against westoneloans.co.uk (h1 36px,
   body 15px/24px, ~1140 container, left aligned) and hope-capital.co.uk
   (h1 54px w400, body 16px/24px, left aligned). Both are restrained, dense
   and contained. No full-bleed colour bands, no centred hero, no big leading.

   Contrast: the brand blue is 4.33:1 on white — large headings only. The brand
   mint is 2.61:1 and never carries text. See notes/NOTES.md.
   ========================================================================== */

:root {
  --blue:      #0E7FC4;
  --blue-dk:   #0A5F94;
  --blue-lo:   #E7F2FA;
  --mint:      #19D6A0;
  --mint-dk:   #12B686;
  --green:     #0B7A57;
  --mint-lo:   #E8FBF5;

  --paper:     #FFFFFF;
  --ground:    #FFFFFF;
  --sunk:      #F2F2F2;
  --ink:       #000000;
  --stone:     #6A6A6A;
  --rule:      #E2E2E2;

  --stop:      #C0392B;
  --stop-lo:   #FBEDEB;
  --warn:      #8A6420;
  --warn-lo:   #FBF3E4;

  --head: "Work Sans", Arial, Helvetica, sans-serif;
  --body: "Nunito Sans", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --measure: 38rem;
  --wide: 71.25rem;   /* 1140px — the lender-site convention */
}

* { box-sizing: border-box; }

/* The [hidden] attribute only sets display:none in the UA stylesheet, so ANY
   author `display` rule silently beats it — .pair{display:grid} and
   .q{display:flex} were leaving "hidden" fieldsets fully on screen. */
[hidden] { display: none !important; }

/* Kill the 300ms tap delay on anything interactive */
a, button, label, input, select, .opt { touch-action: manipulation; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue-dk);
  color: #fff;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--ground); }
.masthead-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--blue-dk);
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.15;
  white-space: nowrap;
}
.wordmark img { height: 40px; width: auto; display: block; }
/* Inline stacked lockup (mark + full name). Child combinator so only the outer
   SVG is sized — the nested mark SVG keeps its own width/height attributes. */
.wordmark > svg.brandlock { height: 48px; width: auto; display: block; }

.masthead nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-home-m { display: none; }   /* "Home" (scroll-to-top) — mobile menu only */
/* Hamburger toggle — hidden on desktop, revealed under the 32rem breakpoint. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; padding: 0;
  color: var(--blue-dk); cursor: pointer;
}
/* Three bars that morph to an X when the menu is open. Driven purely by the
   aria-expanded state nav.js already toggles — no extra JS. */
.nav-toggle-box { position: relative; display: block; width: 24px; height: 18px; }
.nav-toggle-bar {
  position: absolute; left: 0; width: 24px; height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 8px; }
.nav-toggle-bar:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle-bar { transition: none; } }
/* Matches .eyebrow — Work Sans, uppercase, letterspaced, brand green.
   :not(.btn) so these never out-specify .btn-primary's own colour. */
.masthead nav a:not(.btn) {
  font-family: var(--head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  padding: 0.6rem 0;          /* hit area — the type itself is only 11px */
  white-space: nowrap;
}
.masthead nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
/* Nav collapses to the hamburger below 60rem — with the fuller menu the inline
   links no longer fit on tablet / small-desktop widths. */
@media (max-width: 60rem) {
  .masthead-in { padding-inline: 1rem; gap: 0.6rem; }
  .masthead nav { gap: 0.8rem; }
  /* Sticky so the hamburger (and the Home item inside it) stays reachable after
     you jump to a section. position: sticky also anchors the absolute dropdown. */
  .masthead { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
  .nav-home-m { display: block; }
  /* Stop the sticky header covering a section when its anchor is tapped. */
  #why, #criteria, #how, #focus { scroll-margin-top: 72px; }
  .nav-toggle { display: inline-flex; }
  /* Section links collapse into a dropdown behind the hamburger. The primary
     CTA (.btn) stays visible in the bar so the call to action never hides. */
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground);
    border-top: 1px solid var(--rule);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 0.25rem 1rem 0.75rem;
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--rule); }
  .nav-links a:last-child { border-bottom: 0; }
  .wordmark img { height: 34px; }
  .wordmark > svg.brandlock { height: 36px; }
}

/* ---------- layout ---------- */
.band { padding: 3.25rem 1.5rem; }
.band-sunk { background: var(--sunk); border-block: 1px solid var(--rule); }
.inner { max-width: var(--wide); margin: 0 auto; }
/* ch, not rem: a rem cap gives small text a longer line, because more characters
   fit the same box. Measured in ch the line stays inside the 60-75 target
   whatever the font size.
   .narrow must be a CHILD of .inner, never share an element with it — .inner
   carries margin:0 auto, which would centre the narrow column in the viewport
   instead of aligning it left inside the container. */
.narrow { max-width: 58ch; margin-inline: 0; }
.inner.narrow { max-width: 58ch; margin-inline: auto; }  /* if both land on one node, keep it deliberate */

/* ---------- split: statement left, reasoning right ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1rem 3.5rem;
  align-items: start;
}
.split-lead { display: flex; flex-direction: column; gap: 0.6rem; }
.split-body { display: flex; flex-direction: column; gap: 0.9rem; }
.split-body .muted { max-width: 62ch; }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; gap: 1.25rem; }
}
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  color: var(--blue);
  margin: 0;
  text-wrap: balance;
  line-height: 1.2;
}
h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -0.008em; }
h3 { font-size: 1rem; color: var(--blue-dk); line-height: 1.35; }
p { margin: 0; }
.lede { font-size: 1.05rem; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.eyebrow {
  font-family: var(--head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0;
}
.muted { color: var(--stone); }
.small { font-size: 0.875rem; }
.fine { font-size: 0.8rem; color: var(--stone); line-height: 1.5; max-width: 62ch; }
a { color: var(--blue-dk); text-underline-offset: 2px; }

/* ---------- hero: text left, image right, contained ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;   /* ~57% text / 43% image — more room for the copy */
  gap: 3rem;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 0.9rem; }
/* Desktop hero headline: a <p> so the page keeps a single <h1> (the mobile copy),
   but it still reads as a level-1 heading (role/aria-level) and looks like one. */
.hero-title-d {
  font-family: var(--head); font-weight: 600; color: var(--blue);
  font-size: clamp(1.75rem, 3.4vw, 2.4rem); letter-spacing: -0.012em;
  line-height: 1.2; margin: 0; text-wrap: balance;
}
.hero-art { margin: 0; }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;             /* load-bearing: width/height attrs otherwise beat aspect-ratio */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 38%;
  border: 1px solid var(--rule);
}
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-art { order: -1; }
  .hero-art img { aspect-ratio: 16 / 9; }
}

/* ---------- corporate-only line (FPO art 46) ---------- */
.art46 {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--head);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.art46-icon { flex-shrink: 0; margin-top: 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  font-family: var(--head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  min-height: 44px;          /* Apple HIG / Material minimum tap target */
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: var(--mint-dk); }
.btn-ghost { background: transparent; color: var(--blue-dk); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--blue-dk); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-dk);
  outline-offset: 2px;
}
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
/* Taller hero CTAs for prominence (only the hero pair, not other buttons). */
.hero-copy .btn-row .btn { padding-block: 1rem; }

/* ---------- indicative lending criteria cards ---------- */
.crit-strip { padding: 2.25rem 1.5rem; }
.crit-strip .eyebrow { margin-bottom: 1rem; }
.crit-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.crit-card {
  background: var(--blue-dk);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.crit-icon { flex-shrink: 0; width: 46px; height: 46px; }
.crit-icon svg { width: 100%; height: 100%; display: block; }
.crit-body {
  display: flex; flex-direction: column; gap: 0.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 0.9rem;
  min-width: 0;
}
.crit-n {
  font-family: var(--head); font-weight: 600; font-size: 1.25rem;
  color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.crit-l {
  font-family: var(--head); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #DCEBF8; line-height: 1.35;
}
.crit-cat { color: #fff; margin-top: 0.1rem; }
/* 4 across on desktop; 2×2 on narrower desktop/tablet; full-width stacked on phones. */
@media (max-width: 56rem) {
  .crit-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 52rem) {
  .crit-cards { grid-template-columns: 1fr; }
  /* Stacked full-width cards have room — restore the larger stat + icon. */
  .crit-card { padding: 1.15rem 1.3rem; gap: 1.1rem; }
  .crit-icon { width: 52px; height: 52px; }
  .crit-body { padding-left: 1.1rem; }
  .crit-n { font-size: 1.45rem; }
}

/* ---------- criteria grid ---------- */
.criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.criteria div { background: var(--ground); padding: 0.9rem 1rem; }
.criteria dt {
  font-family: var(--head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.25rem;
}
.criteria dd {
  margin: 0;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--blue-dk);
  font-variant-numeric: tabular-nums;
}
/* Force two columns on phones. auto-fit can collapse to a single column when the
   device text-size setting scales the 9.5rem minimum past half the width (seen on
   iPhone) — 1fr 1fr ignores the rem minimum and always gives the 2-col grid. */
@media (max-width: 40rem) {
  .criteria { grid-template-columns: 1fr 1fr; }
  /* Tighten vertical rhythm on phones — the stacked section paddings left too much
     white space above the criteria cards and below them (before "Why us"). */
  .band { padding-top: 2rem; padding-bottom: 2rem; }
  .crit-strip { padding-top: 0.25rem; padding-bottom: 0.5rem; }
}

/* ---------- lending criteria cards ----------
   Two card rows (terms, then fees + security) with a labelled divider between,
   and an Important callout to close. Green icons in a soft circle, navy values. */
.terms-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.terms-grid--6 { grid-template-columns: repeat(6, 1fr); }
.term-card {
  background: #FCFCFC; border: 1px solid #E7EAF0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06);
  padding: 1.5rem 1rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.term-icon {
  width: 52px; height: 52px; border-radius: 50%; background: #E9F1ED;
  color: var(--green); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.term-icon svg { width: 26px; height: 26px; display: block; }
.term-l {
  width: 100%; padding-bottom: 0.7rem; border-bottom: 1px solid #E7EAF0;
  font-family: var(--head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
}
.term-v {
  font-family: var(--head); font-weight: 600; font-size: 1.2rem;
  color: var(--blue-dk); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.terms-divider { display: flex; align-items: center; gap: 1rem; }
.terms-divider::before, .terms-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.terms-divider span {
  font-family: var(--head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
}
.terms-note {
  display: flex; align-items: center; gap: 1.25rem 1.5rem; flex-wrap: wrap;
  background: #EAF2FB;
  border-radius: 12px; padding: 1.25rem 1.5rem;
}
.terms-note-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--blue-dk); color: var(--blue-dk);
  display: flex; align-items: center; justify-content: center;
}
.terms-note-icon svg { width: 24px; height: 24px; display: block; }
.terms-note-text { flex: 1; min-width: 15rem; }
.terms-note-h { font-family: var(--head); font-weight: 600; color: var(--blue-dk); margin: 0 0 0.15rem; }
.terms-note-text p:last-child { color: var(--stone); font-size: 0.9rem; margin: 0; max-width: 60ch; }
.terms-note-cta {
  font-family: var(--head); font-weight: 600; color: var(--blue-dk);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap; flex-shrink: 0;
}
.terms-note-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 64rem) {
  .terms-grid, .terms-grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 40rem) {
  .terms-grid, .terms-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .term-v { font-size: 1.1rem; }
}

/* ---------- what we typically fund ---------- */
.focus-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; align-items: stretch; margin-bottom: 1.5rem; }
.focus-content { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.focus-media { margin: 0; border-radius: 12px; overflow: hidden; }
.focus-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.focus-card {
  background: #FFFFFF; border: 1px solid #E7EAF0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06);
  padding: 1.5rem 1.6rem;
}
.focus-card h3 { margin-bottom: 0.9rem; }
.focus-card--accent {
  background: var(--mint-lo); border-color: rgba(11, 122, 87, 0.18); text-align: center;
}
.focus-icon { display: block; width: 48px; height: 48px; margin: 0 auto 0.9rem; }
.focus-icon svg { width: 100%; height: 100%; display: block; }
.focus-card--accent .small { color: var(--ink); }
.focus-punch { margin-top: 0.9rem; font-family: var(--head); font-weight: 600; color: var(--blue-dk); }
.focus-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 1.75rem; flex-wrap: wrap;
  background: #EAF2FB; border-radius: 12px; padding: 1.4rem 1.75rem;
}
.focus-cta-text h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
@media (max-width: 60rem) {
  /* Image drops below the content as a banner; content goes full-width. */
  .focus-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .focus-media { max-height: 280px; }
}
@media (max-width: 52rem) {
  .focus-grid { grid-template-columns: 1fr; }
}

/* ---------- how we assess opportunities ---------- */
/* Header left-aligned + green eyebrow to match the rest of the site; white background. */
.assess-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.assess-card {
  background: #FCFCFC; border: 1px solid #E7EAF0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06);
  padding: 1.5rem 1rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.assess-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #E1ECF9; color: var(--blue-dk);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.assess-icon svg { width: 30px; height: 30px; display: block; }
.assess-card h3 { margin: 0; }
.assess-card p { margin: 0; }
.assess-callout {
  display: flex; align-items: center; gap: 1.25rem;
  background: #DBE8F8; border-radius: 12px; padding: 1.4rem 1.75rem;
}
.assess-callout-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-dk);
  display: flex; align-items: center; justify-content: center;
}
.assess-callout-icon svg { width: 26px; height: 26px; display: block; }
.assess-callout-lead { font-family: var(--head); font-weight: 600; color: var(--blue-dk); margin: 0 0 0.15rem; }
@media (max-width: 64rem) {
  .assess-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 40rem) {
  .assess-grid { grid-template-columns: repeat(2, 1fr); }
  .assess-callout { flex-direction: column; text-align: center; }
}

/* ---------- recent transactions ---------- */
.txn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.txn-card {
  background: #FFFFFF; border: 1px solid #E7EAF0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.txn-head { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.txn-icon { width: 44px; height: 44px; color: var(--green); flex-shrink: 0; }
.txn-icon svg { width: 100%; height: 100%; display: block; }
.txn-head h3 { font-size: 0.95rem; color: var(--blue-dk); text-transform: uppercase; letter-spacing: 0.03em; margin: 0; }
.txn-loc { color: var(--stone); font-size: 0.9rem; margin: 0.1rem 0 0; }
.txn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.txn-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; }
.txn-stat-ic { width: 30px; height: 30px; color: var(--green); }
.txn-stat-ic svg { width: 100%; height: 100%; display: block; }
.txn-n { font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: var(--blue-dk); line-height: 1.1; }
.txn-l { font-family: var(--head); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); }
.txn-purpose { padding-top: 1.1rem; margin-top: auto; }
.txn-purpose-l { font-family: var(--head); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin: 0 0 0.2rem; }
.txn-purpose-v { font-family: var(--head); font-weight: 600; color: var(--blue-dk); margin: 0; }
.txn-note { font-size: 0.8rem; color: var(--stone); margin-top: 1rem; }
@media (max-width: 56rem) { .txn-grid { grid-template-columns: 1fr; } }

/* ---------- from enquiry to funding (process) ----------
   Structure from the process mockup, rendered in the site palette: navy step
   numbers, green outline icons. Arrow connectors sit in the grid gap and are
   hidden once the grid reflows below the 4-across layout. */
.proc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.proc-step {
  position: relative;
  background: #FCFCFC; border: 1px solid #E7EAF0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06);
  padding: 1.6rem 1.25rem 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.proc-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-dk); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.proc-icon { width: 40px; height: 40px; color: var(--green); }
.proc-icon svg { width: 100%; height: 100%; display: block; }
.proc-step h3 { margin: 0.15rem 0 0; }
.proc-step p { margin: 0; }
/* Arrow between steps — centred in the 1.5rem gap, aligned to card mid-height. */
.proc-step:not(:last-child)::after {
  content: "";
  position: absolute; top: 50%; right: -1.32rem;
  transform: translateY(-50%);
  width: 1.15rem; height: 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
  z-index: 2;
}
.proc-foot {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  border-top: 1px solid var(--rule); padding-top: 1.6rem; text-align: center;
}
.proc-foot-icon { flex-shrink: 0; width: 40px; height: 40px; color: var(--green); }
.proc-foot-icon svg { width: 100%; height: 100%; display: block; }
.proc-foot p {
  font-family: var(--head); font-weight: 600; color: var(--blue-dk);
  max-width: 54ch; margin: 0;
}
@media (max-width: 64rem) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .proc-step:not(:last-child)::after { display: none; }
}
@media (max-width: 40rem) {
  .proc-grid { grid-template-columns: 1fr; }
  .proc-foot { flex-direction: column; gap: 0.6rem; }
}

/* Our focus + recent transactions + homepage FAQ sit on a very light grey ground
   (lighter than band-sunk, which is shared with the criteria section) so the
   white cards stand out. */
#focus, #transactions, #faq { background: #F8F9FB; border-block: 1px solid var(--rule); }

/* ---------- FAQ accordion ----------
   Native <details>/<summary> — no JS, keyboard-usable, works if scripts fail.
   The chevron rotates on [open]; the default disclosure triangle is removed. */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: #FFFFFF; border: 1px solid #E7EAF0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem;
}
.faq-item summary::-webkit-details-marker { display: none; }   /* Safari default triangle */
.faq-q {
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  color: var(--blue-dk); line-height: 1.35;
}
.faq-mark { flex-shrink: 0; width: 22px; height: 22px; color: var(--green); }
.faq-mark svg { width: 100%; height: 100%; display: block; transition: transform 0.2s ease; }
.faq-item[open] .faq-mark svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .faq-mark svg { transition: none; } }
.faq-a { padding: 0 1.35rem 1.2rem; }
.faq-a p { color: var(--stone); max-width: 68ch; }
.faq-a > * + * { margin-top: 0.7rem; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--blue-dk); outline-offset: 2px; border-radius: 12px;
}

/* ---------- lists ---------- */
ul.ticks, ul.crosses { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
ul.ticks li, ul.crosses li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; }
ul.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 0.68rem; height: 0.34rem;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
ul.crosses li::before {
  content: "\00d7";
  position: absolute; left: 0.15rem; top: -0.1em;
  color: var(--stop); font-weight: 700; font-size: 1.1rem;
}

/* ---------- proof grid ----------
   Left rule in blue, not mint: the accent is reserved for CTAs. */
/* Fixed 2-up, not auto-fit: four cards in a three-column track leave an orphan,
   and the resulting 36-char measure is well under the 60-75 desktop target. */
.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
}
@media (max-width: 44rem) {
  .proof { grid-template-columns: 1fr; }
}
.proof > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 3px solid var(--blue);
  padding-left: 1.1rem;
}
/* Content-card and step body copy sits at 0.95rem (~15px) — a touch larger than
   the default .small (0.875rem) — and consistent across sections. Ledes, legal
   fine print, FAQ answers and CTA subtitles keep their own sizes. */
.proof p,
.assess-card p,
.proc-step p,
.focus-card--accent .small,
.steps .small { font-size: 0.95rem; }

/* ---------- steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.steps li { background: var(--ground); padding: 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }

/* ---------- two-col prose ---------- */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}

/* ---------- legal / prose page ---------- */
/* 58ch: a ch in Nunito Sans renders ~1.2x its count in real characters, so this
   lands near the 70-char reading target rather than 68ch's ~95. */
.legal .narrow-legal { max-width: 58ch; margin: 0; }
.legal h1 { margin-bottom: 0.2rem; }
.legal h2 { font-size: 1.2rem; padding-top: 0.4rem; }
.legal p { line-height: 1.65; }
.legal section { scroll-margin-top: 1rem; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
ul.plain li { padding-left: 1.1rem; position: relative; }
ul.plain li::before {
  content: "";
  position: absolute; left: 0; top: 0.65em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
}
/* wide content scrolls inside its own box so the page body never scrolls sideways */
.scroll { overflow-x: auto; }
.legal-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 30rem; }
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule);
}
.legal-table th {
  font-family: var(--head); font-weight: 600; font-size: 0.78rem;
  color: var(--blue-dk); background: var(--sunk);
}
.legal-table td:first-child { font-weight: 600; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--rule);
  background: var(--sunk);
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--stone);
}
footer.site .inner { display: flex; flex-direction: column; gap: 1.5rem; }
/* In three columns each paragraph is already ~45 chars, so the 60ch cap that
   fixed the old full-width stack is no longer needed. */
footer.site p { max-width: 60ch; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2.5rem;
}
@media (max-width: 64rem) {
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
.foot-cols > div { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-h {
  font-family: var(--head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dk);
  margin: 0;
}
@media (max-width: 52rem) {
  .foot-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}
footer.site strong { color: var(--ink); }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.foot-contact { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.foot-contact > a { font-family: var(--head); font-weight: 600; }
.social { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.social img { display: block; }
.social a { display: block; line-height: 0; opacity: 0.9; }
.social a:hover { opacity: 1; }

/* Footer internal-link row on the standalone pages (SEO + wayfinding). */
.foot-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.foot-links a {
  font-family: var(--head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-dk);
  text-decoration: none;
}
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ case study page ============ */
.band-soft { background: #F8F9FB; border-block: 1px solid var(--rule); }

.breadcrumb { font-size: 0.8rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; color: var(--stone); }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--rule); }
.breadcrumb a { font-family: var(--head); font-weight: 600; color: var(--blue-dk); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--stone); }

.cs-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.cs-hero-copy { display: flex; flex-direction: column; gap: 0.9rem; }
.cs-loc { font-family: var(--head); font-weight: 600; color: var(--green); font-size: 0.95rem; margin: 0; }
.cs-facts { font-family: var(--head); font-weight: 600; font-size: 0.85rem; color: var(--stone); letter-spacing: 0.01em; margin: 0.2rem 0 0.3rem; }
.cs-hero-art { margin: 0; border: 1px solid var(--rule); border-radius: 12px; background: #FCFDFE; padding: 1.5rem; }
.cs-hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 52rem) {
  .cs-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-hero-art { order: -1; }
}

.cs-snap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cs-snap .term-card { background: #FFFFFF; }
/* Value fills the space below the label and centres, so short and long (multi-line)
   values sit consistently across all tiles rather than hugging the divider. */
.cs-snap .term-v {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 1.1rem;
}
@media (max-width: 60rem) { .cs-snap { grid-template-columns: repeat(2, 1fr); } }

.cs-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cs-reasons .assess-card { background: #FFFFFF; }
@media (max-width: 60rem) { .cs-reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .cs-reasons { grid-template-columns: 1fr; } }

/* subtle hover lift on the interactive cards */
.cs-snap .term-card, .cs-reasons .assess-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cs-snap .term-card:hover, .cs-reasons .assess-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 34, 69, 0.12); }
@media (prefers-reduced-motion: reduce) {
  .cs-snap .term-card, .cs-reasons .assess-card { transition: none; }
  .cs-snap .term-card:hover, .cs-reasons .assess-card:hover { transform: none; }
}

.cs-table-wrap { max-width: 34rem; border: 1px solid #E7EAF0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06); }
.cs-table { width: 100%; border-collapse: collapse; }
.cs-table tr:not(:last-child) { border-bottom: 1px solid #EEF1F5; }
.cs-table th, .cs-table td { text-align: left; padding: 0.9rem 1.25rem; }
.cs-table th { font-family: var(--head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); width: 46%; background: #FAFBFC; }
.cs-table td { font-family: var(--head); font-weight: 600; color: var(--blue-dk); font-variant-numeric: tabular-nums; }

.cs-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
.cs-cta .btn-row { justify-content: center; margin-top: 0.6rem; }

/* ---------- completed-deals index card grid ---------- */
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.deal-card {
  display: flex; flex-direction: column; gap: 0.1rem;
  background: #FCFCFC; border: 1px solid #E7EAF0; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 34, 69, 0.06);
  padding: 1.5rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 34, 69, 0.12); }
.deal-card:focus-visible { outline: 2px solid var(--blue-dk); outline-offset: 2px; }
.deal-loc { font-family: var(--head); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin: 0; }
.deal-amt { font-family: var(--head); font-weight: 600; font-size: 1.6rem; color: var(--blue); line-height: 1.1; margin: 0.25rem 0 0; }
.deal-title { font-size: 0.95rem; color: var(--blue-dk); margin: 0.25rem 0 0; }
.deal-facts { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; margin-top: 0.7rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.deal-facts span { font-family: var(--head); font-size: 0.72rem; font-weight: 600; color: var(--stone); }
/* Property type (last fact) always drops to its own line below LTV and term. */
.deal-facts span:last-child { flex-basis: 100%; }

/* About page tick lists — two columns for the longer lists. */
.about-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.5rem 2rem; }
.deal-cta { margin-top: auto; padding-top: 1rem; font-family: var(--head); font-weight: 600; font-size: 0.85rem; color: var(--blue-dk); display: inline-flex; align-items: center; gap: 0.4rem; }
.deal-card:hover .deal-cta { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 60rem) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .deal-grid { grid-template-columns: 1fr; } }

/* ---------- cookie consent bar ----------
   Injected by consent.js only when advertising is switched on and the visitor
   has made no choice yet. Fixed to the bottom, brand-matched, keyboard-usable. */
.cc-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--ground);
  border-top: 2px solid var(--blue);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem 1.5rem; flex-wrap: wrap;
}
.cc-text { margin: 0; max-width: 62ch; font-size: 0.9rem; line-height: 1.5; }
.cc-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cc-bar .cc-btn { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
@media (max-width: 32rem) {
  .cc-bar { padding: 0.9rem 1rem; }
  .cc-actions { width: 100%; justify-content: center; }
}

/* ---------- hero: mobile-only variant ----------
   Phones show a tighter hero (pill badges + a shorter two-line heading + tick
   points); desktop keeps the original copy. Both live in the DOM: .hero-d shows
   on desktop only, .hero-m on mobile only, so exactly one <h1> text is visible. */
.hero-m { display: none; }
.hero-pills { list-style: none; margin: 0 0 1rem; padding: 0; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink);
  font-family: var(--head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-pills li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.hero-ticks { list-style: none; margin: 0 0 1.3rem; padding: 0; gap: 0.55rem; }
.hero-ticks li { position: relative; padding-left: 1.8rem; font-size: 1.05rem; line-height: 1.4; font-weight: 700; }
.hero-ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: -0.05em;
  color: var(--green); font-weight: 700; font-size: 1.25em;
}
@media (max-width: 32rem) {
  .hero-d { display: none; }
  /* Mobile heading sits above the image (image is order -1 in the hero grid). */
  .hero-title-m { display: block; order: -2; }
  /* 2-column grid so the dots line up in columns (flex-wrap left them ragged). */
  .hero-pills { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0.55rem 1.4rem; }
  .hero-ticks { display: flex; flex-direction: column; }
  /* Move the business-purposes note below the CTA buttons on mobile. */
  .hero-copy .art46 { order: 1; }
  .hero-copy .fine { order: 2; }
  /* Hero CTAs side by side and equal size on mobile; tighter so both labels fit. */
  .hero-copy .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero-copy .btn-row .btn { padding: 1rem 0.5rem; font-size: 0.82rem; }
}
