/* Murphy Social · Dealer VSL page · visual system from the Sept 2026 brief */

/* Poppins, self-hosted (SIL Open Font License, see assets/fonts) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #22242e;            /* page background */
  --panel: #2a2c38;         /* cards and panels */
  --grad-a: #9b6bf2;        /* gradient start */
  --grad-b: #f2766b;        /* gradient end */
  --grad: linear-gradient(90deg, var(--grad-a) 0%, var(--grad-b) 100%);
  --text: #f3f2f7;          /* headings and body */
  --muted: #a9abb8;         /* secondary text */
  --accent-soft: #c1a6f8;   /* eyebrows and focus rings: lighter tint of the gradient start, passes 4.5:1 on panels */
  --line: rgba(243, 242, 247, 0.1);
  --radius: 10px;
  --container: 1080px;
  --gutter: 20px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth scroll only for in-page link clicks, never for scroll restoration on reload. */
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(155, 107, 242, 0.45); color: var(--text); }
html { accent-color: var(--grad-a); }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.hero .sub, .book .sub, .case-big-note, .book-note { text-wrap: pretty; }
/* One sentence per line on wide screens; natural wrapping on small ones. */
.line-break { display: none; }
@media (min-width: 1000px) { .line-break { display: block; } }
.closing-line { text-wrap: balance; }
h2.label { font-weight: 500; letter-spacing: 0.14em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 44px 0; }
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Buttons: 500 weight, gradient only in hero and final section */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
/* Keyboard focus ring in the brand accent, on top of the dark background */
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; border-radius: 8px; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-gradient { background: var(--grad); color: #fff; border: 0; padding: 1px 25px; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(155, 107, 242, 0.6); }
.btn-ghost:hover { border-color: var(--grad-a); background: rgba(155, 107, 242, 0.08); }

/* 01 Hero · content height so the video shows without scrolling on a laptop */
.hero { padding: 28px 0 8px; text-align: center; }
.hero .container { max-width: 920px; position: relative; }
/* Line the roundel up with the video frame, which sits in the wider 1080px column */
.hero .monogram { margin-left: calc((min(100vw, var(--container)) - min(100vw, 920px)) / -2); }
.monogram {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  margin-bottom: 28px; text-decoration: none;
}
.monogram img { width: 24px; height: 24px; object-fit: contain; }
.monogram-fallback { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--text); }
.qualifier {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grad-b);
  margin-bottom: 20px;
}
.hero h1 {
  text-wrap: initial;
  font-size: clamp(32px, 4.8vw, 50px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero .sub { font-size: 17px; color: var(--muted); max-width: 65ch; margin: 0 auto 24px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sub-cta { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.15s ease;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue svg { animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* 02 Video · 24 to 32px above and below */
.video { padding: 16px 0 32px; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(155, 107, 242, 0.08);
}
.player iframe, .player video { background: #000; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.first-frame {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
/* Custom video controls (SproutVideo's own are hidden so they don't dim the picture) */
.vc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 22px 12px 10px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.45)); color: #fff; transition: opacity 0.2s ease; }
.vc[hidden], .vc-btn[hidden] { display: none; }
.vc.is-idle { opacity: 0; pointer-events: none; }
.vc.is-idle:focus-within { opacity: 1; pointer-events: auto; } /* keyboard focus keeps the controls visible */
.vc-btn { -webkit-tap-highlight-color: transparent; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vc-btn:hover { background: rgba(255,255,255,0.12); }
.vc-btn:focus-visible, .vc-bar:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 2px; }
.vc .i-play, .vc.is-paused .i-pause, .vc .i-muted, .vc.is-muted .i-vol { display: none; }
.vc.is-paused .i-play, .vc.is-muted .i-muted { display: block; }
.vc-bar { -webkit-tap-highlight-color: transparent; position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; }
.vc-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255,255,255,0.3); }
.vc-fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); }
.vc-fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; }
.vc-time { flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: 0.9; }
@media (max-width: 420px) { .vc-time { display: none; } .vc { gap: 6px; padding: 18px 8px 6px; } }
/* Fill-the-screen mode for phones without element full screen (iPhone) */
html.has-fill, html.has-fill body { overflow: hidden; }
.player.is-fill { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #000; touch-action: none; }
@media (orientation: portrait) {
  .player.is-fill { inset: 0 auto auto 100vw; width: 100vh; width: 100dvh; height: 100vw; transform: rotate(90deg); transform-origin: top left; }
}
.tap-toggle { -webkit-tap-highlight-color: transparent; outline: none; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tap-toggle[hidden] { display: none; }
.tap-toggle.is-pass { pointer-events: none; } /* taps go through to the player */
.tap-toggle .play { opacity: 0; transition: opacity 0.15s ease; }
.tap-toggle.is-paused .play { opacity: 1; }
.first-frame .dur { position: absolute; right: 14px; bottom: 14px; padding: 3px 9px; border-radius: 6px; background: rgba(20, 21, 28, 0.78); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .first-frame .dur { right: auto; left: 8px; bottom: 8px; font-size: 12.5px; padding: 2px 7px; } }
.first-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.first-frame.is-loading .play, .first-frame.is-waiting .play { animation: play-pulse 0.9s ease-in-out infinite; }
.first-frame.is-loading .play svg, .first-frame.is-waiting .play svg { opacity: 0; }
.first-frame.is-loading .play::after, .first-frame.is-waiting .play::after { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes play-pulse { 50% { transform: scale(0.94); } }
.first-frame.is-hidden { display: none; } /* instant cut: the cover is a different shot, so a fade would blend two images */
.poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 36, 46, 0) 50%, rgba(34, 36, 46, 0.7) 100%);
}
.poster-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
  padding-bottom: 28px; color: var(--muted); font-size: 13.5px;
  background: radial-gradient(70% 90% at 50% 100%, rgba(155, 107, 242, 0.18), transparent), var(--panel);
}
.poster-fallback-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.play {
  position: relative; z-index: 1;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(155, 107, 242, 0.35);
  transition: transform 0.15s ease;
}
.poster:hover .play { transform: scale(1.06); }
.caption { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* 03 Logos · mono, 75% opacity, two static rows */
.logos { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos .label { text-align: center; }
.logo-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 24px 32px;
}
.logo-row-dealers { gap: 24px 28px; }
.logo-row li { display: flex; align-items: center; justify-content: center; }
.logo-row img { opacity: 0.75; }
.logo-row-oem { margin-bottom: 28px; }
.logo-row-oem img { height: 30px; width: auto; }
.logo-row-dealers img { height: 26px; width: auto; }
.logo-omoda img { height: 22px; }
.logo-redline img { height: 40px; }
.logo-motor-grid img { height: 48px; }
.logo-kent-hpc img { height: 12px; opacity: 0.9; }
.logo-your-best-car img { height: 9px; }
.logo-mole-valley img { height: 30px; }
.logo-williams img { height: 34px; }
.wordmark { font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--text); opacity: 0.75; }
.logo-row-oem .wordmark { font-size: 19px; }

/* 04 Case studies · four across, two by two, stacked */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-feature { grid-column: 1 / -1; }
.case {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; flex-direction: column;
}
/* Line the rows up across cards: tag, figure, note, stats, copy all start on the same line. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
  .case-grid { grid-auto-rows: auto; }
  .case:not(.case-feature) { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; align-content: start; }
  .case:not(.case-feature) .case-big { align-self: end; }
  .case-feature { display: grid; grid-template-columns: 440px minmax(0, 1fr); column-gap: 36px; padding: 28px; align-items: start; }
  .case-feature-figures { display: contents; }
  .case-feature .case-photo { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .case-feature .case-tag, .case-feature .case-big, .case-feature .case-big-note, .case-feature-story { grid-column: 2; }
  .case-feature .case-big-note { max-width: none; margin-bottom: 20px; }
  .case-feature .case-big { font-size: 64px; }
  .case-feature .case-big-note { font-size: 14.5px; max-width: 36ch; }
  .case-feature .stats { margin-bottom: 16px; }
  .case-feature .case-copy { font-size: 14.5px; }
  .case:not(.case-feature) > * { align-self: start; }
  .case-grid .case-copy { margin-top: 0; }
  }
}
.case-photo { width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; object-position: center; border-radius: 8px; margin-bottom: 16px; background: var(--panel); }
.case-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 16px; line-height: 1.5;
}
.case-big { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.case-big-note { font-size: 13.5px; color: var(--muted); margin: 8px 0 14px; line-height: 1.5; }
.stats { border-top: 1px solid var(--line); margin-bottom: 14px; }
.stats > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4;
}
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 500; text-align: right; white-space: nowrap; }
.case-image { margin: 0 0 18px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.case-copy { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 0; text-wrap: pretty; }
.footnote { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* 05 How it works · plain cards, no icons */
.how { border-top: 1px solid var(--line); }
.how h2 {
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2;
  text-align: center; max-width: 720px; margin: 0 auto 28px;
}
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.step-num { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 10px; }
.steps p:not(.step-num) { font-size: 15px; color: var(--muted); max-width: 42ch; text-wrap: pretty; }
.closing-line { margin-top: 24px; text-align: center; font-weight: 500; font-size: 17px; max-width: 65ch; margin-left: auto; margin-right: auto; }

/* 06 Call or book · second and last gradient */
.book { border-top: 1px solid var(--line); text-align: center; }
.book h2 { font-size: clamp(28px, 3.8vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.book .sub { color: var(--muted); max-width: 55ch; margin: 0 auto 28px; }
.book-primary { margin-bottom: 28px; }
.btn-lg { min-height: 56px; padding: 1px 36px; font-size: 16px; }
.book-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.book-form { max-width: 560px; margin: 0 auto; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.book-form .label { margin-bottom: 18px; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-full { grid-column: 1 / -1; }
.lead-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.lead-form input, .lead-form select {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid rgba(243, 242, 247, 0.16);
  border-radius: 8px; padding: 10px 12px; width: 100%;
}
.lead-form select option { color: #111; }
.lead-form input:focus-visible, .lead-form select:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: transparent; border-radius: 8px; }
.lead-form .btn { width: 100%; }
.form-status { font-size: 13px; color: var(--grad-b); }
.lead-form label.is-invalid input, .lead-form label.is-invalid select { border-color: var(--grad-b); }
.field-error { font-size: 12px; color: var(--grad-b); }
.form-done { padding: 12px 0 4px; }
.form-done-title { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.form-done p:not(.form-done-title) { font-size: 14px; color: var(--muted); }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.form-status:empty { display: none; }
.form-privacy { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.form-privacy a, .footer a { color: var(--muted); text-underline-offset: 3px; }
.form-privacy a:hover, .footer a:hover { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.book-phone { margin-top: 24px; font-size: 14px; color: var(--muted); }
.phone-pending { color: var(--text); font-weight: 500; }
.book-phone a { color: var(--text); font-weight: 500; text-decoration: none; display: inline-block; padding: 12px 4px; margin: -12px 0; }
.tbc {
  display: inline-block; vertical-align: middle;
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; background: rgba(242, 118, 107, 0.15); color: #f9a89f;
}

.credit { margin-top: 8px; font-size: 12px; opacity: 0.8; }
.footer { padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); text-align: center; }

/* Sticky mobile CTA (open question in the brief) */
.sticky-cta {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  min-height: 50px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--grad); color: #fff;
  font-weight: 500; text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* Responsive */
@media (max-width: 1000px) {
  .case-feature { display: grid; grid-template-columns: minmax(0, 1fr); }
  .case-feature .case-photo, .case-feature .case-tag, .case-feature .case-big, .case-feature .case-big-note, .case-feature-story { grid-column: 1; grid-row: auto; }
  .case-feature .case-photo { max-width: 440px; margin-bottom: 18px; }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
/* Tablets and landscape phones: keep the Redline photo beside its figures rather than alone on a row. */
@media (min-width: 641px) and (max-width: 1000px) {
  .case-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 24px; align-items: start; }
  .case-feature .case-photo { grid-column: 1; grid-row: 1 / span 4; max-width: none; margin: 0; }
  .case-feature .case-tag, .case-feature .case-big, .case-feature .case-big-note, .case-feature-story { grid-column: 2; }
}
@media (max-width: 640px) {
  .section { padding: 28px 0; }
  .logos { padding: 28px 0; }
  .hero { padding: 16px 0 4px; }
  .video { padding: 12px 0 24px; }
  .monogram { margin-bottom: 22px; width: 34px; height: 34px; }
  .hero h1 { font-size: 30px; margin-bottom: 14px; }
  .hero .sub { font-size: 15.5px; margin-bottom: 20px; }
  .qualifier { margin-bottom: 14px; }
  .sub-cta { margin-top: 12px; }
  .scroll-cue { margin-top: 20px; }
  .case-grid, .steps { grid-template-columns: 1fr; }
  .case-feature { display: flex; flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .book-primary .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  /* Phones: all ten logos in two columns of five */
  .logos .container { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; align-items: center; }
  .logos .label { grid-column: 1 / -1; margin-bottom: 4px; }
  .logo-row { display: contents; }
  .logo-row li { height: 44px; display: flex; align-items: center; justify-content: center; }
  .logo-row img { width: auto; height: auto; max-width: 100%; object-fit: contain; }
  .logo-row-oem img { max-height: 20px; }
  .logo-row-dealers img { max-height: 22px; }
  .logo-redline img, .logo-motor-grid img { max-height: 42px; }
  .logo-williams img { max-height: 30px; }
  .logo-mole-valley img { max-height: 20px; }
  .logo-car-zoo img { max-height: 24px; }
  .logo-your-best-car img { max-height: 9px; }
  .logo-kent-hpc img { max-height: none; height: auto; width: 128px; }
  .play { width: 56px; height: 56px; }
  .play svg { width: 22px; height: 22px; }
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .btn, .play, .sticky-cta { transition: none; }
  .scroll-cue svg { animation: none; }
}

/* Ad landing layout: headline, video, form above the fold */
.hero-short { padding: 22px 0 6px; }
.hero-short .monogram { margin-bottom: 18px; }
.hero-short h1 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin: 0 auto 4px; max-width: 26ch; text-wrap: balance; }
.hero-short + main .video { padding-top: 14px; }

/* Tap for sound (shown over the silent autoplay) */
.sound-on {
  position: absolute; z-index: 3; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px 0 9px; border: 0; border-radius: 999px;
  background: var(--grad); color: #fff; font: 500 12.5px/1 var(--font); cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  animation: sound-pulse 2.2s ease-in-out infinite;
}
.sound-on[hidden] { display: none; }
.sound-on svg { width: 17px; height: 17px; }
/* Bigger invisible tap area than the pill itself, so it's still easy to hit on a phone */
.sound-on::before { content: ""; position: absolute; inset: -8px; }
.sound-on:hover { filter: brightness(1.06); }
@keyframes sound-pulse { 0%, 100% { box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 0 rgba(155,107,242,.55); } 50% { box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 10px rgba(155,107,242,0); } }

/* Video and the form: side by side on laptops, stacked on phones */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hero-short + main .video { padding-bottom: 36px; }
@media (min-width: 1000px) {
  .intro-grid { grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); gap: 20px; align-items: stretch; }
  .intro-grid .lead-card:not(.is-booking) { display: flex; flex-direction: column; justify-content: center; }
  .intro-grid .player { align-self: start; }
  .intro-grid .lead-card.is-booking { grid-column: 1 / -1; max-width: none; }
  .is-booking .cal-inline { height: 1000px; }
  .hero-short h1 { max-width: 40ch; }
}
.lead-card { width: 100%; max-width: 640px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 18px; }
.lead-head .label { margin-bottom: 4px; color: var(--accent-soft); }
.lead-sub { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.lead-steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step[hidden] { display: none; }
.step-q { font-size: 18px; font-weight: 500; color: var(--text); line-height: 1.35; }
.step-n { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lead-steps input {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid rgba(243, 242, 247, 0.18);
  border-radius: 8px; padding: 12px 14px; width: 100%;
}
.lead-steps input:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: transparent; border-radius: 8px; }
.lead-steps input[aria-invalid="true"] { border-color: var(--grad-b); }
.lead-steps .field-error:empty { display: none; }
.step-actions { display: flex; gap: 10px; }
.step-actions .step-next { flex: 1; }
.step-actions .step-back { flex: 0 0 auto; }
.step-actions .btn[hidden] { display: none; }
.lead-done { font-size: 18px; font-weight: 500; margin-bottom: 12px; outline: none; }
.cal-inline { height: 700px; margin: 0 -10px; }
.cal-inline.is-fallback { height: auto; margin: 8px 0; text-align: center; }
.lead-book .book-phone { margin-top: 12px; text-align: center; }
.lead-book[hidden], .lead-head[hidden], .lead-steps[hidden] { display: none; }
@media (max-width: 640px) {
  .hero-short { padding: 14px 0 4px; }
  .hero-short .monogram { margin-bottom: 14px; }
  .hero-short h1 { font-size: 22px; line-height: 1.22; }
  .sound-on { left: 8px; top: 8px; min-height: 28px; font-size: 11.5px; padding: 0 10px 0 7px; gap: 5px; }
  .sound-on svg { width: 15px; height: 15px; }
  .hero-short + main .video { padding-top: 12px; }
  .hero-short + main .video { padding-bottom: 28px; }
  .lead-card { padding: 16px 14px 14px; }
  .lead-sub { margin-bottom: 10px; }
  .step-q { font-size: 17px; }
  .cal-inline { margin: 0 -8px; height: 760px; }
}

/* Confirmation page: SproutVideo's own controls; only the branded cover sits on top until play. */
.bk-player:not(.own-controls) .tap-toggle, .bk-player:not(.own-controls) .vc { display: none !important; } /* confirmation page only */
