@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --cv4-ink: #101921;
  --cv4-copy: #3e4d56;
  --cv4-muted: #6a7880;
  --cv4-white: #ffffff;
  --cv4-aqua: #00c8c7;
  --cv4-teal: #0a9d98;
  --cv4-deep: #071c23;
  --cv4-deep-2: #0a3037;
  --cv4-pale: #eefdfe;
  --cv4-line: #d9e1e4;

  --cv4-hero-image: url("https://clairvocars.com/wp-content/uploads/dealer-demo-hero-1.webp");
  --cv4-cta-image: url("https://clairvocars.com/wp-content/uploads/dealer-demo-footer-1.webp");
}

/* Full-width breakout from the WordPress content column */
#clairvo-demo-v4 {
  position: relative;
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: -82px !important;
  margin-bottom: -82px !important;
  overflow: hidden;
  background: #fff;
  color: var(--cv4-ink);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#clairvo-demo-v4,
#clairvo-demo-v4 * {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body { margin: 0; }

#clairvo-demo-v4 img,
#clairvo-demo-v4 svg {
  display: block;
  max-width: 100%;
}

#clairvo-demo-v4 h1,
#clairvo-demo-v4 h2,
#clairvo-demo-v4 h3,
#clairvo-demo-v4 p {
  margin-top: 0;
}

.cv4-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* HERO -------------------------------------------------------- */
.cv4-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #0a252d;
  color: #fff;
}

.cv4-hero__bg,
.cv4-hero__overlay {
  position: absolute;
  inset: 0;
}

.cv4-hero__bg {
  background-image: var(--cv4-hero-image);
  background-size: cover;
  background-position: center center;
  transform: scale(1.015);
}

.cv4-hero__overlay {
  background:
    linear-gradient(90deg, rgba(5,27,34,.70) 0%, rgba(5,27,34,.36) 46%, rgba(5,27,34,.08) 72%, rgba(5,27,34,.18) 100%),
    linear-gradient(180deg, rgba(3,22,28,.12) 0%, rgba(3,22,28,.12) 52%, rgba(3,22,28,.48) 100%);
}

.cv4-hero__inner {
  position: relative;
  z-index: 2;
  padding: 22px 0 32px;
}

.cv4-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.cv4-logo {
  width: 135px;
  height: auto;
}


.cv4-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 64px;
  align-items: start;
}

.cv4-hero__copy {
  max-width: 600px;
  padding-top: 5px;
}

.cv4-hero h1,
.cv4-acquisition h2,
.cv4-process h2,
.cv4-why h2,
.cv4-final-cta h2 {
  font-family: "Barlow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
}

.cv4-hero h1 {
  margin-bottom: 20px;
  color: #ffffff !important;
  font-size: clamp(54px, 5.0vw, 72px);
  line-height: .96;
}

.cv4-hero h1 span {
  color: var(--cv4-aqua);
}

.cv4-hero__lead {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255,255,255,.94);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.48;
}

.cv4-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 560px);
}

.cv4-hero-stat {
  padding: 0 28px;
  border-left: 1px solid rgba(255,255,255,.16);
}

.cv4-hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.cv4-icon-circle {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #e6f9f8;
  color: var(--cv4-teal);
}

.cv4-icon-circle--dark {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(0,200,199,.22);
  background: rgba(5,38,45,.46);
  color: var(--cv4-aqua);
}

.cv4-icon-circle svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv4-hero-stat strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 31px;
  line-height: 1;
}

.cv4-hero-stat span {
  display: block;
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.26;
}

/* FORM -------------------------------------------------------- */
.cv4-form-card {
  padding: 18px 14px 12px;
  border: 1px solid rgba(17,26,34,.15);
  border-radius: 9px;
  background: rgba(255,255,255,.99);
  color: var(--cv4-ink);
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
}

.cv4-form-card__head {
  margin-bottom: 4px;
}

.cv4-form-card__head h2 {
  margin-bottom: 1px;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.cv4-form-card__head p {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 600;
}

.cv4-hubspot {
  min-height: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.cv4-hubspot .hs-form-html,
.cv4-hubspot .hs-form,
.cv4-hubspot form {
  margin: 0 !important;
  padding-top: 0 !important;
  font-family: "Manrope", Arial, sans-serif !important;
}

.cv4-hubspot .hs-form-field {
  margin-bottom: 10px !important;
}

.cv4-hubspot .hs-form-field > label,
.cv4-hubspot label {
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--cv4-ink) !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.cv4-hubspot .hs-form-required,
.cv4-hubspot .hs-form__required {
  color: #e02d25 !important;
}

.cv4-hubspot input[type="text"],
.cv4-hubspot input[type="email"],
.cv4-hubspot input[type="tel"],
.cv4-hubspot input[type="url"],
.cv4-hubspot input[type="number"],
.cv4-hubspot select,
.cv4-hubspot textarea {
  width: 100% !important;
  min-height: 40px !important;
  padding: 8px 9px !important;
  border: 1px solid #9da6ab !important;
  border-radius: 3px !important;
  background: #f7fafc !important;
  box-shadow: none !important;
  color: var(--cv4-ink) !important;
  font: 500 14px/1.2 "Manrope", Arial, sans-serif !important;
}

.cv4-hubspot input:focus,
.cv4-hubspot select:focus,
.cv4-hubspot textarea:focus {
  outline: none !important;
  border-color: var(--cv4-teal) !important;
  box-shadow: 0 0 0 3px rgba(10,157,152,.12) !important;
}

.cv4-hubspot .hs-button,
.cv4-hubspot input[type="submit"],
.cv4-hubspot button[type="submit"] {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 5px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--cv4-teal) !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer !important;
  font: 800 14px/1 "Manrope", Arial, sans-serif !important;
}

.cv4-hubspot .hs-button:hover,
.cv4-hubspot input[type="submit"]:hover,
.cv4-hubspot button[type="submit"]:hover {
  background: #07827e !important;
}

.cv4-hubspot .hs-error-msg,
.cv4-hubspot .hs-error-msgs label {
  color: #b42318 !important;
  font-size: 10px !important;
}

.cv4-form-card__secure {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #637078;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}

.cv4-form-card__secure svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* COMMON SECTION HEAD ---------------------------------------- */
.cv4-section-head {
  max-width: 780px;
}

.cv4-section-head h2 {
  margin-bottom: 7px;
  font-size: clamp(36px, 3.2vw, 48px);
  line-height: 1;
}

.cv4-section-head p {
  margin-bottom: 0;
  color: var(--cv4-copy);
  font-size: 15px;
  line-height: 1.5;
}

.cv4-section-head--center {
  margin: 0 auto 38px;
  text-align: center;
}

.cv4-section-head--left {
  margin-bottom: 32px;
}

/* ACQUISITION ----------------------------------------------- */
.cv4-acquisition {
  padding: 58px 0 64px;
  background: #fff;
}

.cv4-acquisition__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cv4-feature {
  padding: 0 34px;
  border-left: 1px solid var(--cv4-line);
  text-align: center;
}

.cv4-feature:first-child {
  border-left: 0;
}

.cv4-feature .cv4-icon-circle {
  margin: 0 auto 14px;
}

.cv4-feature h3 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 800;
}

.cv4-feature p {
  margin-bottom: 0;
  color: var(--cv4-copy);
  font-size: 13px;
  line-height: 1.46;
}

/* PROCESS ---------------------------------------------------- */
.cv4-process {
  padding: 58px 0 62px;
  background:
    linear-gradient(90deg, rgba(0,200,199,.035), transparent 40%, rgba(0,200,199,.035)),
    #edfafa;
}

.cv4-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cv4-step {
  position: relative;
  text-align: center;
}

.cv4-step__art {
  display: flex;
  height: 120px;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 10px;
}

.cv4-step__art img {
  max-height: 116px;
  width: auto;
}

.cv4-step__arrow {
  position: absolute;
  top: 70px;
  right: -25px;
  color: #0d7273;
  font-size: 28px;
  font-weight: 700;
}

.cv4-step h3 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 800;
}

.cv4-step p {
  max-width: 230px;
  margin: 0 auto;
  color: var(--cv4-copy);
  font-size: 12px;
  line-height: 1.45;
}

/* WHY -------------------------------------------------------- */
.cv4-why {
  padding: 54px 0 46px;
  background: #fff;
}

.cv4-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 38px;
}

.cv4-why-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: start;
}

.cv4-why-card .cv4-icon-circle {
  width: 54px;
  height: 54px;
}

.cv4-why-card .cv4-icon-circle svg {
  width: 26px;
  height: 26px;
}

.cv4-why-card h3 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 800;
}

.cv4-why-card p {
  margin-bottom: 0;
  color: var(--cv4-copy);
  font-size: 12px;
  line-height: 1.44;
}

.cv4-trusted {
  margin-top: 44px;
  text-align: center;
}

.cv4-trusted h2 {
  margin-bottom: 5px;
  font-size: 35px;
}

.cv4-trusted p {
  margin-bottom: 22px;
  color: var(--cv4-copy);
  font-size: 14px;
}

.cv4-trusted img {
  width: min(760px, 100%);
  margin-inline: auto;
}

/* FINAL CTA -------------------------------------------------- */
.cv4-final-cta {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  background: var(--cv4-deep);
  color: #fff;
}

.cv4-final-cta__bg,
.cv4-final-cta__overlay {
  position: absolute;
  inset: 0;
}

.cv4-final-cta__bg {
  background-image: var(--cv4-cta-image);
  background-size: cover;
  background-position: center center;
}

.cv4-final-cta__overlay {
  background:
    linear-gradient(90deg, rgba(3,24,30,.92) 0%, rgba(3,24,30,.74) 52%, rgba(3,24,30,.36) 100%);
}

.cv4-final-cta__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 70px;
  align-items: center;
  min-height: 285px;
  padding: 34px 0;
}

.cv4-final-cta__copy h2 {
  margin-bottom: 12px;
  color: #ffffff !important;
  font-size: 38px;
  line-height: 1;
}

.cv4-final-cta__copy > p {
  max-width: 510px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.5;
}

.cv4-final-cta__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cv4-final-cta__actions > span {
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 600;
}

.cv4-button {
  display: inline-flex;
  min-width: 150px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 4px;
  background: var(--cv4-aqua);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.cv4-button:hover {
  background: var(--cv4-teal);
}

.cv4-final-cta__card {
  display: grid;
  gap: 14px;
  padding: 18px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.87);
  color: var(--cv4-ink);
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
  backdrop-filter: blur(5px);
}

.cv4-final-cta__card div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

.cv4-final-cta__card span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--cv4-aqua);
  color: #fff;
  font-size: 13px;
}

/* FOOTER ----------------------------------------------------- */
.cv4-footer {
  padding: 25px 0 18px;
  background: #04171d;
  color: #fff;
}

.cv4-footer__top {
  display: grid;
  grid-template-columns: 145px 1fr auto;
  gap: 24px;
  align-items: center;
}

.cv4-footer__top img {
  width: 120px;
  height: auto;
}

.cv4-footer__top p {
  max-width: 260px;
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  line-height: 1.45;
}

.cv4-footer__top strong {
  font-size: 10px;
  letter-spacing: .06em;
}

.cv4-footer__legal {
  margin-top: 18px;
  text-align: center;
}

.cv4-footer__legal p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 8px;
  line-height: 1.5;
}

/* TABLET ----------------------------------------------------- */
@media (max-width: 980px) {
  .cv4-hero {
    min-height: 1040px;
  }

  .cv4-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cv4-form-card {
    max-width: 560px;
    margin-inline: auto;
  }

  .cv4-hero__copy {
    max-width: 640px;
  }

  .cv4-acquisition__grid,
  .cv4-process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 0;
  }

  .cv4-feature:nth-child(3) {
    border-left: 0;
  }

  .cv4-step__arrow {
    display: none;
  }

  .cv4-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv4-final-cta__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cv4-final-cta__card {
    max-width: 300px;
  }
}

/* MOBILE ----------------------------------------------------- */
@media (max-width: 640px) {
  .cv4-wrap {
    width: min(100% - 28px, 1180px);
  }

  .cv4-hero {
    min-height: 1110px;
  }

  .cv4-topbar {
    margin-bottom: 28px;
  }

  .cv4-logo {
    width: 110px;
  }


  .cv4-hero h1 {
    font-size: 48px;
  }

  .cv4-hero__lead {
    font-size: 15px;
  }

  .cv4-hero-stats {
    gap: 0;
  }

  .cv4-hero-stat {
    padding: 0 10px;
  }

  .cv4-hero-stat strong {
    font-size: 25px;
  }

  .cv4-hero-stat span {
    font-size: 9px;
  }

  .cv4-icon-circle--dark {
    width: 44px;
    height: 44px;
  }

  .cv4-form-card {
    padding: 20px 16px 16px;
  }

  .cv4-acquisition,
  .cv4-process,
  .cv4-why {
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .cv4-acquisition__grid,
  .cv4-process__grid,
  .cv4-why__grid {
    grid-template-columns: 1fr;
  }

  .cv4-feature {
    padding: 20px 10px;
    border-left: 0;
    border-top: 1px solid var(--cv4-line);
  }

  .cv4-feature:first-child {
    border-top: 0;
  }

  .cv4-step__art {
    height: 135px;
  }

  .cv4-why-card {
    grid-template-columns: 54px 1fr;
  }

  .cv4-final-cta__copy h2 {
    font-size: 36px;
  }

  .cv4-final-cta__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv4-footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cv4-footer__top p {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* V4.2 feedback fixes */
.cv4-step:nth-child(4) .cv4-step__art img {
  max-height: 112px;
  max-width: 150px;
}

.cv4-trusted .cv4-logo-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  width: min(980px, 100%);
  margin-inline: auto;
}

.cv4-trusted .cv4-logo-grid img {
  width: 100%;
  max-width: 142px;
  height: 62px;
  margin-inline: auto;
  object-fit: contain;
}

.entry-content > #clairvo-demo-v4 {
  margin-top: -82px !important;
  margin-bottom: -82px !important;
}



/* ============================================================
   V4.3 — ANNOTATED FEEDBACK OVERRIDES
   ============================================================ */

/* Fill the WordPress page wrapper edge-to-edge. */
#clairvo-demo-v4 {
  margin-top: -82px !important;
  margin-bottom: -82px !important;
}

/* Hero uses the approved preview scene as the visual source. */
.cv4-hero__bg {
  background-image: var(--cv4-hero-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  transform: none !important;
}

/* Slightly stronger veil keeps any embedded mockup artifacts behind live HTML invisible. */
.cv4-hero__overlay {
  background:
    linear-gradient(90deg, rgba(4,25,32,.58) 0%, rgba(4,25,32,.28) 47%, rgba(4,25,32,.10) 75%, rgba(4,25,32,.20) 100%),
    linear-gradient(180deg, rgba(2,18,24,.08) 0%, rgba(2,18,24,.12) 52%, rgba(2,18,24,.40) 100%) !important;
}

/* HubSpot form should use the card width instead of leaving oversized gutters. */
.cv4-form-card {
  padding-left: 14px !important;
  padding-right: 14px !important;
}
.cv4-hubspot,
.cv4-hubspot .hs-form-html,
.cv4-hubspot .hs-form,
.cv4-hubspot form {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Process assets now have alpha; prevent any artificial tile/background. */
.cv4-step__art,
.cv4-step__art img {
  background: transparent !important;
}
.cv4-step__art img {
  object-fit: contain;
}

/* Individual logos: larger and visually balanced. */
.cv4-trusted .cv4-logo-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  width: min(1000px, 100%) !important;
  gap: 16px !important;
}
.cv4-trusted .cv4-logo-grid img {
  width: 100% !important;
  max-width: 145px !important;
  height: 64px !important;
  object-fit: contain !important;
}

/* Bottom CTA uses the approved preview car-row background. */
.cv4-final-cta__bg {
  background-image: var(--cv4-cta-image) !important;
  background-size: cover !important;
  background-position: center center !important;
}
.cv4-final-cta__overlay {
  background: linear-gradient(90deg, rgba(3,24,30,.88) 0%, rgba(3,24,30,.66) 52%, rgba(3,24,30,.28) 100%) !important;
}

/* Remove leftover space caused by common Blocksy content wrappers. */
.entry-content > #clairvo-demo-v4 {
  margin-top: -82px !important;
  margin-bottom: -82px !important;
}

@media (max-width: 980px) {
  .cv4-hero__bg {
    /* Keep the screenshot's embedded form area off the mobile crop. */
    background-position: 26% center !important;
  }
  .cv4-trusted .cv4-logo-grid {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  }
}

@media (max-width: 640px) {
  #clairvo-demo-v4,
  .entry-content > #clairvo-demo-v4 {
    margin-top: -58px !important;
    margin-bottom: -58px !important;
  }

  .cv4-form-card {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .cv4-trusted .cv4-logo-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 14px 22px !important;
  }
  .cv4-trusted .cv4-logo-grid img {
    max-width: 150px !important;
    height: 62px !important;
  }
}
