/* ==================================================================
   PLAYERS CARS LTD — CAR FINANCE LEAD FUNNEL
   Single stylesheet. No framework, no build step, no web fonts.
   ==================================================================

   >>> BRAND PALETTE — change everything from here <<<
   Pulled from the Players Cars logo. Change these and the whole page
   follows.
   ------------------------------------------------------------------ */
:root {

  /* --- Brand ------------------------------------------------------ */
  --brand-ink:          #141414;  /* deep base — hero, dark sections   */
  --brand-ink-2:        #1F1F1F;  /* raised surface on dark            */
  --brand-accent:       #5E8022;  /* primary accent — buttons, links   */
  --brand-accent-hover: #4C6A1B;  /* darker green — hover + on white   */
  --brand-accent-soft:  #EEF3E1;  /* pale green — CTA band, tint       */
  --brand-on-accent:    #FFFFFF;  /* text sitting on the accent        */

  /* Brightened accent for green sitting ON the dark ink. #5E8022 on
     #141414 is only 4.0:1 and reads muddy; this is 8.0:1. Derived from
     the logo's lighter swoosh green — not a fourth brand colour. */
  --brand-accent-bright: #8CB93F;

  /* --- Neutrals --------------------------------------------------- */
  --text:        #101419;
  --text-muted:  #5A6472;
  --text-invert: #FFFFFF;
  --text-invert-muted: #A9B2BF;
  --bg:          #FFFFFF;
  --bg-tint:     #F5F6F8;
  --border:      #E3E7EC;
  --border-dark: rgba(255,255,255,.14);

  /* --- Utility ---------------------------------------------------- */
  --whatsapp:       #25D366;
  --whatsapp-hover: #1FB755;
  --star:           #FBBC05;

  /* --- Shape & rhythm --------------------------------------------- */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --wrap:      1120px;
  --pad-x:     20px;
  --shadow:    0 1px 2px rgba(16,20,25,.06), 0 8px 24px rgba(16,20,25,.08);
  --shadow-lg: 0 18px 50px rgba(16,20,25,.16);

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Anchor targets clear the top edge nicely */
section[id] { scroll-margin-top: 16px; }

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  font-size: clamp(15px, 3.6vw, 17px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

.btn--primary {
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  box-shadow: 0 6px 18px rgba(140,185,63,.32);
}
.btn--primary:hover { background: var(--brand-accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-invert);
  border-color: rgba(255,255,255,.42);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Ghost button on a light background */
.section .btn--ghost,
.band .btn--ghost {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}
.section .btn--ghost:hover,
.band .btn--ghost:hover { border-color: var(--text); }

.btn--wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,211,102,.28);
}
.btn--wa:hover { background: var(--whatsapp-hover); }

.btn--lg { min-height: 58px; font-size: clamp(16px, 3.8vw, 18px); }

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 0;
}
.cta-row--stack { grid-template-columns: 1fr; gap: 12px; }
.cta-row--left  { justify-items: stretch; }

@media (min-width: 640px) {
  .cta-row       { gap: 14px; justify-content: center; }
  .cta-row .btn  { padding-inline: 30px; }
  .cta-row--stack { grid-template-columns: repeat(3, auto); justify-content: center; }
  .cta-row--left  { justify-content: flex-start; grid-template-columns: auto auto; }
}

/* ==================================================================
   STICKY WHATSAPP BUTTON
   ================================================================== */
.wa-sticky {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
  transition: transform .15s ease, background-color .16s ease;
}
.wa-sticky:hover { background: var(--whatsapp-hover); transform: scale(1.05); }
.wa-sticky .icon { width: 32px; height: 32px; fill: #fff; }

@media (min-width: 900px) {
  .wa-sticky { right: 24px; bottom: 24px; width: 64px; height: 64px; }
  .wa-sticky .icon { width: 36px; height: 36px; }
}

/* ==================================================================
   IMAGE PLACEHOLDERS
   Delete-safe: every .ph disappears the moment a real <img> replaces it.
   ================================================================== */
.ph {
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #C9D0D9;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg,
      rgba(16,20,25,.028) 0 8px,
      transparent 8px 16px),
    #EEF1F5;
  color: var(--text-muted);
}
.ph__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 6px;
}
.ph__label em { font-style: normal; font-weight: 500; text-transform: none; opacity: .7; }

.ph--car  { aspect-ratio: 16 / 10; }
.ph--shot { aspect-ratio: 4 / 3; }

/* ==================================================================
   1. HERO
   ================================================================== */
.hero {
  position: relative;
  color: var(--text-invert);
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(140,185,63,.22), transparent 60%),
    radial-gradient(700px 420px at 8% 4%, rgba(140,185,63,.10), transparent 62%),
    var(--brand-ink);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
}
.hero__inner {
  padding-block: 30px 46px;
  text-align: center;
}
/* Reversed logo sits straight on the dark hero — no plate. Stacked
   lockup, three lines deep, so it needs a little height to stay
   legible; capped so it never dominates the hero. */
.hero__logo {
  height: 52px;
  width: auto;
  margin: 0 auto 26px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.05);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-accent-soft);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #35D07F;
  box-shadow: 0 0 0 3px rgba(53,208,127,.22);
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(31px, 8.2vw, 56px);
  letter-spacing: -.03em;
}
.hero__title .hl {
  color: var(--brand-accent-bright);
  white-space: nowrap;
}
.hero__sub {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(16px, 4.2vw, 20px);
  color: var(--text-invert-muted);
}
.hero__sub strong { color: #fff; font-weight: 700; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-invert-muted);
}
.trust-strip li { display: flex; align-items: center; gap: 7px; }
.tick { width: 17px; height: 17px; flex: none; fill: var(--brand-accent-bright); }

@media (min-width: 768px) {
  .hero__inner { padding-block: 44px 68px; }
  .hero__logo  { height: 68px; }
  .hero__sub   { max-width: 42ch; }
  .cta-row     { display: flex; }
  .cta-row .btn { flex: 0 1 auto; }
}

/* ==================================================================
   SECTION SHELL
   ================================================================== */
.section { padding-block: 56px; }
.section--tint { background: var(--bg-tint); }
.section--dark {
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(140,185,63,.16), transparent 62%),
    var(--brand-ink);
  color: var(--text-invert);
}
.section--dark h2 { color: #fff; }

.section__head { max-width: 42rem; margin: 0 auto 32px; text-align: center; }
.section__head h2 { font-size: clamp(25px, 6.2vw, 40px); }

.kicker {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-accent-hover);
}
.kicker--light { color: var(--brand-accent-bright); }

.lede { color: var(--text-muted); font-size: clamp(16px, 4vw, 18px); }
.lede--center { margin-inline: auto; }
.lede--light  { color: var(--text-invert-muted); }

.fineprint {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 768px) { .section { padding-block: 80px; } }

/* ==================================================================
   2. WHO IS WILSON
   ================================================================== */
.wilson { display: grid; gap: 28px; }

/* Portrait on phones too — a 3:2 landscape band could only ever show a
   head-and-shoulders sliver of a half-length photo. 4:5 here keeps him
   head-to-torso without eating the whole screen before the copy. */
.wilson__media img,
.wilson__media .ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}
.wilson__media img {
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-lg);
}

.wilson__copy h2 { font-size: clamp(25px, 6.2vw, 38px); }

.points { display: grid; gap: 16px; margin-top: 22px; }
.points li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}
.points li strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.points li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--brand-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M7.6 14.3 3.9 10.6l1.4-1.4 2.3 2.3 7-7 1.4 1.4z'/></svg>") center / 19px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M7.6 14.3 3.9 10.6l1.4-1.4 2.3 2.3 7-7 1.4 1.4z'/></svg>") center / 19px no-repeat;
}

@media (min-width: 860px) {
  .wilson { grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
  /* 3:5 matches the photo exactly, so beside the copy he shows in full —
     head down to below the waist, nothing cropped. */
  .wilson__media img,
  .wilson__media .ph { aspect-ratio: 3 / 5; }
}

/* ==================================================================
   3A. HANDOVER COLLAGE
   True masonry via CSS columns — tiles of different heights flow and
   balance themselves, so the wall never leaves a hole no matter how
   you shuffle the size classes around.
   `tile--big` breaks out to full width as the feature shot.
   ================================================================== */
.collage {
  columns: 2;
  column-gap: 8px;
}

.tile {
  position: relative;
  break-inside: avoid;
  margin: 0 0 8px;
  aspect-ratio: 1 / 1;          /* default: square */
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #EEF1F5;
}
.tile img,
.tile .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile .ph { border-radius: 0; min-height: 0; }

.tile--tall { aspect-ratio: 3 / 4; }   /* portrait */
.tile--wide { aspect-ratio: 5 / 4; }   /* slightly landscape */
.tile--big  {                          /* full-width feature shot */
  column-span: all;
  aspect-ratio: 16 / 10;
  margin-bottom: 8px;
}

@media (min-width: 700px) {
  .collage    { columns: 3; column-gap: 12px; }
  .tile       { margin-bottom: 12px; }
  .tile--big  { aspect-ratio: 16 / 7; margin-bottom: 12px; }
}
/* 4 columns on desktop: with 8 same-shape tiles this lands 2 per column
   and the wall bottoms out flush. (At 3 columns, 8 tiles split 3/3/2 and
   leave a hole in the last row.) */
@media (min-width: 1024px) {
  .collage { columns: 4; }
  .tile--big { aspect-ratio: 21 / 7; }
}

/* ==================================================================
   3B. GOOGLE REVIEW SCREENSHOTS
   ================================================================== */
.reviews { margin-top: 48px; }

.reviews__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.g-logo { width: 30px; height: 30px; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 20px; height: 20px; fill: var(--star); }
.reviews__meta {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.reviews__meta strong { color: var(--text); }

/* On phones the screenshots are a swipeable row — six stacked cards
   would be a very long scroll. Becomes a plain grid on desktop. */
.reviews__grid {
  display: flex;
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* bleed to the screen edges so the row reads as "there's more" */
  margin-inline: calc(var(--pad-x) * -1);
  padding: 4px var(--pad-x) 8px;
}
.reviews__grid::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 78%;
  scroll-snap-align: center;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Each screenshot keeps its own height — the review text is the whole
   point, so nothing gets cropped. The captures vary from 2:1 to almost
   square, which a fixed aspect-ratio crop would have sliced words off. */
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot .ph { border: none; border-radius: 0; }

.swipe-hint {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

@media (min-width: 560px) { .shot { flex-basis: 46%; } }
/* Two columns, not three — with four reviews a 3-wide grid strands the
   last one alone on its own row. 2×2 fills cleanly. */
@media (min-width: 900px) {
  .reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 18px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
  .shot { flex-basis: auto; }
  .swipe-hint { display: none; }
}

/* ==================================================================
   MID-PAGE CTA BAND
   ================================================================== */
.band {
  padding-block: 34px;
  background: var(--brand-accent-soft);
  border-block: 1px solid rgba(16,20,25,.08);
}
.band__inner { text-align: center; }
/* The band sits on pale green, so its text is ink, not on-accent white.
   The primary button keeps the accent green here like everywhere else. */
.band__text {
  margin: 0;
  font-size: clamp(18px, 4.6vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

/* ==================================================================
   4. CARS
   ================================================================== */
.cars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.car {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.car img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.car .ph { border: none; border-radius: 0; }
.car__body { padding: 12px 14px 14px; }
.car__body h3 {
  margin: 0 0 4px;
  font-size: clamp(14.5px, 3.6vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.car__price {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.car__price strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-accent-hover);
}

@media (min-width: 700px) { .cars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ==================================================================
   4b. VIDEO SHOWCASE CAROUSEL
   Vertical 9:16 clips. Native scroll-snap does the swiping; the
   arrows and dots are progressive enhancement on top of it.
   ================================================================== */
.vshow { position: relative; }

.vshow__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Room for the card shadow, which overflow would otherwise clip */
  padding-block: 4px;
  /* Hide the scrollbar — the dots and arrows carry the affordance */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vshow__track::-webkit-scrollbar { display: none; }
.vshow__track:focus-visible { outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  .vshow__track { scroll-behavior: auto; }
}

/* --- Card — same shell as .car so the two sections read as a set --- */
.vcard {
  flex: 0 0 76%;
  max-width: 300px;
  scroll-snap-align: start;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vcard__media {
  position: relative;
  /* Vertical phone footage — never stretched, letterboxed on ink */
  aspect-ratio: 9 / 16;
  background: var(--brand-ink);
}
.vcard__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* --- Play overlay --------------------------------------------- */
.vcard__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 45%, rgba(20,20,20,.55) 100%);
  cursor: pointer;
  transition: opacity .18s ease;
}
.vcard__play::before {
  content: "";
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 6px 18px rgba(20,20,20,.4);
  transition: transform .14s ease, background-color .16s ease;
}
.vcard__play svg {
  position: relative;
  width: 26px; height: 26px;
  margin-left: 3px;              /* optically centres the triangle */
  fill: var(--brand-on-accent);
}
.vcard__play:hover::before { background: var(--brand-accent-hover); transform: scale(1.06); }
.vcard__play:active::before { transform: scale(.97); }

/* After the first play the overlay retires for good and the browser's
   own controls handle play/pause from then on. */
.vcard__media.is-started .vcard__play {
  opacity: 0;
  pointer-events: none;
}

/* --- Arrows — desktop only, touch gets the swipe ---------------- */
.vshow__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, opacity .16s ease;
}
.vshow__arrow .icon { width: 24px; height: 24px; margin: auto; fill: currentColor; }
.vshow__arrow:hover { border-color: var(--text); }
.vshow__arrow:disabled { opacity: .3; cursor: default; }
.vshow__arrow:disabled:hover { border-color: var(--border); }
.vshow__arrow--prev { left: -10px; }
.vshow__arrow--next { right: -10px; }

/* --- Dots ------------------------------------------------------- */
.vshow__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.vshow__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #C7CDD5;
  cursor: pointer;
  transition: background-color .16s ease, width .16s ease;
}
.vshow__dot.is-active { width: 22px; border-radius: var(--radius-pill); background: var(--brand-accent); }

/* --- Section CTA ------------------------------------------------ */
.vshow__cta { margin-top: 26px; text-align: center; }
.vshow__cta .btn { display: flex; width: 100%; }

/* When every card already fits there is nothing to drive, so the
   arrows and dots take themselves off. Class set by the script. */
.vshow.is-static .vshow__arrow,
.vshow.is-static .vshow__dots { display: none; }

@media (min-width: 560px) {
  .vcard { flex-basis: 42%; }
  .vshow__cta .btn { display: inline-flex; width: auto; padding-inline: 30px; }
}

/* Three across, the fourth peeking — the arrows earn their place here */
@media (min-width: 700px) {
  .vshow__track { gap: 16px; }
  .vcard { flex: 0 0 calc((100% - 32px) / 3); max-width: none; }
  .vshow__arrow { display: flex; }
}

/* Wide enough for all four, so the row sits still and the controls go */
@media (min-width: 1024px) {
  .vshow__track { gap: 20px; }
  .vcard { flex-basis: calc((100% - 60px) / 4); }
}

/* ==================================================================
   5 & 6. WIDGET SLOTS (soft search + calendar)
   ================================================================== */
.widget-slot {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
}
.widget-slot--light {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow);
}

/* GoHighLevel calendar: full width on mobile, wider than the other slots on desktop so the
   date picker and time slots sit side by side. form_embed.js sets the iframe height; the
   min-height holds the space while it loads so the page does not jump. */
.widget-slot--calendar { max-width: 880px; padding: 6px; overflow: hidden; }
.widget-slot--calendar iframe { display: block; width: 100%; min-height: 640px; border: 0; }
@media (min-width: 768px) {
  .widget-slot--calendar { padding: 12px; }
}

.widget-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 300px;
  padding: 28px 18px;
  text-align: center;
  border: 2px dashed #C9D0D9;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg,
      rgba(16,20,25,.028) 0 8px,
      transparent 8px 16px),
    #EEF1F5;
  color: var(--text-muted);
}
.widget-ph__icon { width: 34px; height: 34px; fill: #98A3B2; margin-bottom: 2px; }
.widget-ph__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.widget-ph__sub { margin: 0; font-size: 13px; }
.widget-ph__sub code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(16,20,25,.07);
  font-size: 12.5px;
}

/* ==================================================================
   5. SOFT SEARCH FORM
   Sits on the dark section, so fields are light-on-ink.
   ================================================================== */
.widget-slot--form { padding: 18px 16px 20px; }

/* Native date/select pickers follow the dark surface */
.sform { color-scheme: dark; }

.sform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sform__field { min-width: 0; }
.sform__fieldset { margin: 0; padding: 0; border: 0; }

.sform__field label,
.sform__fieldset legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-invert);
}

.sform__opt {
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-invert-muted);
}

.sform input[type="text"],
.sform input[type="email"],
.sform input[type="date"],
.sform input[type="tel"],
.sform input[type="number"],
.sform select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;            /* 16px stops iOS zooming on focus */
  line-height: 1.3;
  color: var(--text-invert);
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, background-color .16s ease;
  appearance: none;
}
.sform input::placeholder { color: #7F8998; }

/* Honeypot. Declared after the field rules above so it beats them —
   a bare class loses to .sform input[type="text"] on specificity. */
.sform input.sform__gotcha {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.sform input:hover,
.sform select:hover { border-color: rgba(255,255,255,.34); }

.sform input:focus,
.sform select:focus {
  outline: none;
  border-color: var(--brand-accent-bright);
  background: rgba(255,255,255,.1);
}
.sform input:focus-visible,
.sform select:focus-visible { outline: none; }

/* Caret for the selects, since appearance is stripped */
.sform select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A9B2BF'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 22px 22px;
}
.sform select:invalid { color: #7F8998; }
.sform option { color: #101419; background: #fff; }

/* --- £ prefix / "/month" suffix on the money fields -------------- */
.sform__affix { position: relative; }
.sform__affix-pre,
.sform__affix-post {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-invert-muted);
  pointer-events: none;
}
.sform__affix-pre { left: 14px; }
.sform__affix-post { right: 14px; }
.sform__affix input[type="number"] { padding-left: 30px; }
.sform__affix--post input[type="number"] { padding-right: 72px; }
/* Hide the spinner arrows so the figure has the full width */
.sform input[type="number"] { -moz-appearance: textfield; }
.sform input[type="number"]::-webkit-outer-spin-button,
.sform input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Yes / No segmented control --------------------------------- */
.sform__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sform__segopt { position: relative; margin: 0; }
.sform__segopt input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.sform__segopt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-invert);
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, background-color .16s ease;
}
.sform__segopt input:hover + span { border-color: rgba(255,255,255,.34); }
.sform__segopt input:focus-visible + span { border-color: var(--brand-accent-bright); }
.sform__segopt input:checked + span {
  color: var(--brand-on-accent);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* --- Helper + error text ---------------------------------------- */
.sform__help {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-invert-muted);
}

.sform__error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #FF8A80;
}
.sform__error:empty { display: none; }

.sform .is-invalid,
.sform__segopt input.is-invalid + span { border-color: #FF8A80; }

.sform__formerror {
  margin: 18px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #FFC9C2;
  background: rgba(255,138,128,.12);
  border: 1px solid rgba(255,138,128,.4);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* --- Previous address, revealed under 3 years ------------------- */
.sform__reveal {
  margin: 18px 0 0;
  padding: 16px 14px 18px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
}
.sform__reveal-title {
  padding: 0;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-invert);
}
.sform__reveal-note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-invert-muted);
}

.sform .assure { margin-top: 22px; }

.sform__submit {
  width: 100%;
  margin-top: 18px;
}
.sform__submit[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* --- Thank-you state -------------------------------------------- */
.thanks {
  padding: 26px 18px 24px;
  text-align: center;
}
.thanks:focus { outline: none; }
.thanks__tick {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  padding: 12px;
  fill: var(--brand-on-accent);
  background: var(--brand-accent);
  border-radius: 50%;
  box-sizing: content-box;
}
.thanks__msg {
  max-width: 30rem;
  margin: 0 auto;
  font-size: clamp(17px, 4.2vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-invert);
}
.thanks__cta {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

@media (min-width: 620px) {
  .widget-slot--form { padding: 26px 24px 28px; }
  .sform__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .sform__field--wide { grid-column: 1 / -1; }
  /* Budget + deposit sit side by side; the deposit label wraps to two
     lines, so both labels reserve two lines to keep the inputs level. */
  .sform__field--pair label { min-height: 3.2em; }
  .sform__seg { max-width: 320px; }
  .sform__submit { width: auto; min-width: 260px; display: flex; margin-inline: auto; }
  .thanks__cta { grid-template-columns: repeat(2, auto); justify-content: center; }
}

.assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 20px 0 0;
}
.assure li {
  padding: 7px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.05);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-invert-muted);
}

.under-cta {
  margin: 22px 0 0;
  font-size: 15px;
  text-align: center;
  color: var(--text-muted);
}
.section--dark .under-cta { color: var(--text-invert-muted); }
.under-cta a {
  font-weight: 700;
  color: var(--brand-accent-hover);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.section--dark .under-cta a { color: var(--brand-accent-bright); }

/* ==================================================================
   7. FINAL CTA
   ================================================================== */
.final {
  padding-block: 56px;
  color: var(--text-invert);
  background:
    radial-gradient(800px 460px at 50% 0%, rgba(140,185,63,.20), transparent 62%),
    var(--brand-ink);
}
.final__inner { text-align: center; }
.final__title {
  margin: 0 0 8px;
  font-size: clamp(25px, 6.4vw, 40px);
  color: #fff;
}
.final__sub {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--text-invert-muted);
}

@media (min-width: 768px) { .final { padding-block: 78px; } }

/* ==================================================================
   FOOTER
   ================================================================== */
.footer {
  padding-top: 34px;
  /* bottom padding keeps the sticky WhatsApp button off the legal text */
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  background: #0A0C10;
  color: var(--text-invert-muted);
  font-size: 14px;
  text-align: center;
}
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.footer__social { display: flex; gap: 12px; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  transition: background-color .16s ease, border-color .16s ease;
}
.social:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.social .icon { width: 22px; height: 22px; fill: #fff; }
.social--wa:hover { background: var(--whatsapp); border-color: var(--whatsapp); }

.footer__legal {
  max-width: 62ch;
  margin: 20px auto 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7C8695;
}
/* The Meta disclaimer sits under the finance line and reads quieter: it is
   a trademark notice, not a consumer credit disclosure. */
.footer__legal--meta { margin-top: 10px; color: #6C7583; }

.footer__links {
  max-width: 62ch;
  margin: 16px auto 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.footer__links a {
  color: #A9B2BF;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__links a:hover { color: #fff; }
.footer__links span { margin-inline: 6px; color: #4A525E; }

.footer__copy { margin: 14px 0 0; font-size: 12.5px; color: #6C7583; }

@media (min-width: 700px) {
  .footer__top { flex-direction: row; justify-content: space-between; }
  .footer { text-align: left; }
  .footer__legal { margin-inline: 0; }
  .footer__links { margin-inline: 0; }
}

/* ==================================================================
   LEGAL PAGES (privacy.html, terms.html)
   Plain documents on white, using the same wrap, type scale and
   colours as the funnel. No new tokens.
   ================================================================== */
.legal {
  padding-block: 40px 64px;
  background: var(--bg);
}
.legal__inner { max-width: 74ch; }
.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.legal__updated {
  margin: 0 0 30px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.legal h2 {
  margin: 34px 0 10px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
.legal h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--text);
}
.legal p, .legal li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
}
.legal p { margin: 0 0 14px; }
/* The global reset strips list markers for the funnel's custom lists. Legal
   text needs them back: an unmarked list of your GDPR rights reads as a
   run of disconnected sentences. */
.legal ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal li::marker { color: var(--brand-accent); }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--brand-accent-hover); text-underline-offset: 2px; }
.legal strong { color: var(--text); font-weight: 650; }

/* The one boxed note per page: who to contact, or the headline caveat. */
.legal__note {
  margin: 26px 0;
  padding: 16px 18px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.legal__note p:last-child { margin-bottom: 0; }

/* A quiet way back to the funnel, since these pages have no nav. */
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.legal__back:hover { color: var(--brand-accent-hover); }

.legal__header {
  padding-block: 22px;
  background: var(--brand-ink);
}
.legal__header img { height: 40px; width: auto; object-fit: contain; display: block; }
