/* EasyQuote DMS - site stylesheet.
   Recreates the WordPress/Divi look with one small file. Rules for page authors:
   - no style="" attributes and no inline <style>/<script> (the CSP forbids them);
   - pick a component below before inventing a new one; add new ones at the end of the
     matching section, using the same naming (block__element--modifier). */

/* ---------- Fonts (self-hosted, Latin subset; renamed when the file changes) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-300-600-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-700-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Syne";
  src: url("../fonts/syne-400-600-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Marvel";
  src: url("../fonts/marvel-700-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Metric-matched fallbacks: text keeps its size while web fonts load (no layout shift). */
@font-face {
  font-family: "Montserrat Fallback"; src: local("Arial");
  size-adjust: 112.8%; ascent-override: 85.8%; descent-override: 22.3%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback"; src: local("Arial");
  size-adjust: 107%; ascent-override: 90.5%; descent-override: 22.6%; line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --cyan: #00adef;
  --cyan-hover: #0096d0;
  --navy: #11293c;
  --navy-2: #09507b;
  --nav: #18486a;
  --ink: #0e0c19;
  --text: #3c3a47;
  --muted: #5d5b66;
  --grey: #f2f2f2;
  --line: #e2e2e2;
  --white: #fff;
  --pill-blue: #0d73f9;
  --pill-cyan: #1dcbee;
  --pill-yellow: #febf32;
  --pill-green: #1f8657;

  /* Buttons use a deeper brand blue so white text passes WCAG AA (4.9:1); the bright cyan stays
     for accents. Decided by Tim, 22 Oct 2026 (option B). */
  --btn-bg: #0077b6;
  --btn-bg-hover: #00639a;

  --font-head: "Montserrat", "Montserrat Fallback", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", Helvetica, Arial, sans-serif;
  --font-card: "Syne", "Montserrat", Helvetica, Arial, sans-serif;
  --font-nav: "Marvel", "Arial Narrow", Arial, sans-serif;

  --container: 1080px;
  --gutter: 16px;
  --radius: 6px;
  --shadow: 0 24px 72px -12px rgba(0, 0, 0, .12);
  --section-y: clamp(40px, 5vw, 72px);
  --header-h: 112px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.75 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; height: auto; }
img { display: block; }
picture { display: block; }
a { color: var(--navy-2); text-underline-offset: .15em; }
a:hover { color: var(--cyan-hover); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.15rem); font-weight: 300; }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
h4 { font-size: 1.125rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--cyan); color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--navy); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.lead { font-size: 1.0625rem; }
.rounded { border-radius: var(--radius); }
.shadow-card { border-radius: var(--radius); box-shadow: var(--shadow); }
.text-navy { color: var(--navy); }
.text-white, .text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--white); }
.icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.icon-xl { font-size: 84px; margin: 0 auto 18px; display: block; }
.title-syne { font-family: var(--font-card); }

.eyebrow {
  margin: 0 0 .9em;
  color: var(--navy-2);
  font: 500 .9375rem/1.4 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow--plain { color: var(--text); font-size: 1.25rem; font-weight: 500; letter-spacing: .08em; }
.eyebrow--light { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .5em 1.55em;
  border: 2px solid transparent; border-radius: 100px;
  background: var(--btn-bg); color: var(--white);
  font: 700 17px/1.4 var(--font-body); letter-spacing: 2px; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--btn-bg-hover); color: var(--white); transform: translateY(-1px); }
.btn--dark { background: var(--navy-2); border: 3px solid var(--cyan); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--navy); }
.btn--outline { background: transparent; border-color: var(--white); }
.btn--submit {
  background: var(--navy); font-family: var(--font-head); font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; padding-inline: 1.1em;
}
.btn--submit:hover, .btn--submit:focus-visible { background: var(--navy-2); }
.btn__icon { color: var(--cyan); font-size: 1.1em; }
.btn__spinner { display: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: .9; }
.btn[aria-busy="true"] .btn__icon { display: none; }
.btn[aria-busy="true"] .btn__spinner {
  display: inline-block; width: 1.1em; height: 1.1em;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-header__brand { display: block; flex: none; }
.site-header__logo { width: 110px; height: auto; }
.nav-toggle { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav__list > li { position: relative; display: flex; align-items: center; }
.site-nav a {
  display: block; padding: 10px 11px;
  color: rgba(0, 0, 0, .6);
  font: 700 17px/1.2 var(--font-nav); letter-spacing: 1px; text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav__parent.is-active > a { color: var(--cyan); }
.site-nav__sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 32px; margin-left: -8px; padding: 0;
  border: 0; background: none; color: rgba(0, 0, 0, .6); font-size: 12px; cursor: pointer;
}
.site-nav__sub {
  position: absolute; top: 100%; left: 0; z-index: 10;
  min-width: 270px; margin: 0; padding: 14px 0;
  list-style: none; background: var(--white);
  border-top: 3px solid var(--cyan); box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav__sub a { padding: 8px 20px; font-size: 16px; }
.site-nav__parent:hover > .site-nav__sub,
.site-nav__parent:focus-within > .site-nav__sub,
.site-nav__parent.is-open > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__login a {
  margin-left: 10px; padding: 7px 14px;
  border-radius: 5px; background: var(--navy); color: var(--white);
}
.site-nav__login a:hover { background: var(--navy-2); color: var(--white); }

@media (max-width: 1180px) {
  .site-nav a { padding-inline: 7px; font-size: 16px; }
}
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .site-header__logo { width: 82px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: var(--radius);
    background: none; color: var(--navy); font-size: 26px; cursor: pointer;
  }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--white); border-top: 3px solid var(--cyan);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; padding: 8px 5%; }
  .site-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .site-nav__list > li > a { flex: 1; padding: 12px 4px; font-size: 18px; }
  .site-nav__sub-toggle { width: 48px; height: 48px; margin: 0; font-size: 16px; }
  .site-nav__sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .site-nav__sub {
    position: static; flex-basis: 100%; display: none;
    min-width: 0; padding: 0 0 8px 16px; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .site-nav__parent.is-open > .site-nav__sub { display: block; }
  .site-nav__parent:hover > .site-nav__sub { display: none; }
  .site-nav__parent.is-open:hover > .site-nav__sub { display: block; }
  .site-nav__login { border-bottom: 0 !important; padding: 12px 0; }
  .site-nav__login a { margin: 0; display: inline-block; }
}

/* ---------- Sections & grids ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(28px, 3.5vw, 48px); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); }
.grid { display: grid; gap: 36px 5.5%; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.align-center { align-items: center; }
.align-start { align-items: start; }
@media (max-width: 980px) {
  .cols-3, .cols-4, .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Photo backgrounds: a real <img> (lazy, AVIF/WebP) behind the content, never CSS url(). */
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.bg-media, .bg-media img, .cta-band__bg, .cta-band__bg img, .hero-home__bg, .hero-home__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.bg-media { z-index: -2; }
.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.overlay-dark::after { background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .8)); }
.overlay-darker::after { background: rgba(0, 0, 0, .75); }
.overlay-light::after { background: rgba(255, 255, 255, .72); }
.overlay-blue::after { background: linear-gradient(90deg, rgba(43, 135, 218, .63), rgba(41, 196, 169, .24)); }
.overlay-navy::after { background: linear-gradient(180deg, rgba(17, 41, 60, .75), rgba(17, 41, 60, .9)); }

/* ---------- Home hero ---------- */
.hero-home { position: relative; isolation: isolate; overflow: hidden; }
.hero-home__media { position: absolute; inset: 0 0 0 calc(50% + 90px); z-index: -1; }
.hero-home__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .9)); }
.hero-home__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5.5%; align-items: center; min-height: 760px; padding-block: 64px; }
.hero-home__text { text-align: center; }
.hero-home__text > p:not(.eyebrow):not(.center) { text-align: left; }
.hero-home__title { font-size: clamp(2.4rem, 1.2rem + 3.9vw, 4.5rem); }
.hero-home__figure img { width: 100%; max-width: 510px; margin-inline: auto; }
@media (max-width: 980px) {
  .hero-home__media { inset: auto 0 0 0; height: 46%; }
  .hero-home__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 40px 0; }
  .hero-home__figure img { max-width: 420px; }
  .hero-home__figure { padding-bottom: 40px; }
}

/* ---------- Inner page hero (text + image) ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5.5%; align-items: center; }
.page-hero__text { text-align: center; }
.page-hero__text > p:not(.eyebrow):not(.center) { text-align: left; }
.page-hero h1 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.5rem); }
.page-hero__figure img { width: 100%; }
.page-hero--dark { color: var(--white); }
.page-hero--dark h1, .page-hero--dark h2, .page-hero--dark p { color: var(--white); }
@media (max-width: 980px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero__figure { max-width: 520px; margin-inline: auto; }
}

/* ---------- Cards ---------- */
.card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.card--outline { border: 1px solid var(--navy-2); }
.card--cyan { border: 2px solid var(--cyan); }
.card--grey { background: var(--grey); box-shadow: none; }
.overlay-card { padding-block: clamp(40px, 4vw, 60px); }
.overlay-card .card { text-align: center; }
.panel { padding: clamp(20px, 2.5vw, 30px); border-radius: var(--radius); background: var(--grey); }

/* ---------- Features (icon + title + text) ---------- */
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; align-content: start; }
.feature__icon { grid-row: span 2; font-size: 44px; color: var(--ink); }
.feature__title { margin: 0 0 .35em; font-size: 1.15rem; line-height: 1.4; }
.feature p { margin: 0; }
.feature--stacked { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.feature--stacked .feature__icon { grid-row: auto; margin-bottom: 12px; color: var(--navy); }
.feature--navy .feature__icon { color: var(--navy-2); }
.feature--card { padding: 22px; border-radius: var(--radius); background: var(--white); }
.feature-list { display: grid; gap: 30px 7%; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (max-width: 767px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }
.benefits { margin-block: 30px 34px; }
.benefits .feature__title { font-size: 1.125rem; }

.check-list { margin: 0 0 1em; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Split (image beside text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5.5%; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__text { text-align: left; }
.split__text h2 { text-align: center; }
.split img { width: 100%; }
@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split--reverse > :first-child { order: 0; }
  .split > picture, .split > .split__media { max-width: 520px; margin-inline: auto; }
}

/* ---------- Product cards (home) ---------- */
.product-cards { margin-top: 30px; padding-inline: 24px; }
.product-card { display: flex; flex-direction: column; align-items: center; }
.product-card picture { margin-bottom: 26px; }
.product-card__title { font-size: 1.2rem; margin-bottom: .8em; }
.product-card p { flex: 1; }
@media (max-width: 980px) { .product-cards { padding-inline: 0; } }

/* ---------- Steps ---------- */
.steps { margin: 40px 0 0; padding: 0; list-style: none; }
.step { text-align: center; }
.step__icon { font-size: 46px; color: var(--navy-2); margin: 0 auto 26px; display: block; }
.step__label { margin: 0 0 .9em; color: var(--ink); font-size: .9375rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.step__title { font-weight: 300; font-size: clamp(1.35rem, 1.1rem + .6vw, 1.6rem); }
.steps--divided .step + .step { border-left: 1px solid var(--line); padding-left: 24px; }
.steps--left .step { text-align: left; }
@media (max-width: 980px) { .steps--divided .step + .step { border-left: 0; padding-left: 0; } }

/* ---------- Stats band ---------- */
.stats__summary { font-size: .9375rem; }
.stats__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; align-items: center; margin-top: 34px; }
.stats__logo { width: 170px; }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.stats__item { display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.stats__item dt { color: #354559; font: 400 1.5rem/1.2 var(--font-head); }
.stats__item dd {
  display: flex; align-items: center; justify-content: center;
  width: min(180px, 100%); height: 80px; margin: 0; border-radius: 100px;
  color: var(--white); font: 600 2rem/1 var(--font-body); font-variant-numeric: tabular-nums;
}
.stats__item--prospects dd { background: var(--pill-blue); }
.stats__item--quotes dd { background: var(--pill-cyan); color: var(--navy); }
.stats__item--otp dd { background: var(--pill-yellow); color: var(--navy); }
.stats__item--sold dd { background: var(--pill-green); }
@media (max-width: 980px) {
  .stats__row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .stats__item dt { font-size: 1.15rem; }
  .stats__item dd { height: 64px; font-size: 1.6rem; }
}

/* ---------- Logos ---------- */
.logo-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 5.5%; align-items: center;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.logo-grid img { width: 100%; max-width: 180px; margin-inline: auto; }
@media (max-width: 980px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.carousel { margin-bottom: 26px; }
.carousel__title { text-align: center; margin-bottom: 30px; }
.carousel__frame { position: relative; display: flex; align-items: center; gap: 8px; }
.carousel__track {
  flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 30px) / 4); gap: 30px;
  margin: 0; padding: 6px 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { display: flex; align-items: center; justify-content: center; min-height: 120px; scroll-snap-align: start; }
.carousel__logo { width: auto; max-width: 100%; max-height: 130px; object-fit: contain; }
.carousel__btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #2ea3f2; font-size: 22px; cursor: pointer;
}
.carousel__btn:hover { background: var(--grey); }
.carousel__btn[hidden] { display: none; }
@media (max-width: 980px) { .carousel__track { grid-auto-columns: calc((100% - 30px) / 2); } }
@media (max-width: 480px) { .carousel__track { grid-auto-columns: 70%; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: max(5vw, 56px); text-align: center; }
.cta-band__bg { z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .75); }
.cta-band__title { color: var(--white); font-weight: 400; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.15; max-width: 920px; margin: 0 auto .5em; }
.cta-band__text { color: var(--white); max-width: 68ch; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 22px; margin: 0; }
.faq__item { border: 2px solid #eee; border-radius: var(--radius); background: var(--white); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  color: var(--ink); font: 500 1.0625rem/1.4 var(--font-card);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; color: var(--cyan); font: 600 1.6rem/1 var(--font-body); }
.faq__item[open] .faq__question::after { content: "\2212"; }
.faq__answer { padding: 0 20px 18px; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { max-width: var(--container); margin-inline: auto; padding: clamp(24px, 4vw, 40px) clamp(18px, 5vw, 60px); border: 1px solid var(--navy-2); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.lead-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .9375rem; font-weight: 500; }
.field__optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--navy); border-radius: 0; background: var(--white); color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0, 173, 239, .35); border-color: var(--cyan); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field .input-validation-error { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .875rem; }
.field__error:empty { display: none; }
.field--trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form { position: relative; }
.lead-form__check { margin-top: 18px; }
.lead-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.lead-form__privacy { margin: 0; color: var(--muted); font-size: .875rem; }
.form-status { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding: 16px 18px; border-radius: var(--radius); }
.form-status p { margin: 0; }
.form-status .icon { font-size: 26px; margin-top: 2px; }
.form-status--ok { background: #e8f6ee; color: #14532d; }
.form-status--ok .icon { color: var(--pill-green); }
.form-status__title { font-weight: 700; }
.form-status--error { background: #fdecea; color: #7a1c14; }
.form-status--error .icon { color: #b3261e; }
.form-status--error ul { margin: 0; padding-left: 1.1em; }
.validation-summary-valid { display: none; }
@media (max-width: 767px) { .lead-form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact tiles (call buttons) ---------- */
.contact-tile { padding: 40px 30px; border-radius: 11px; background: var(--white); text-align: center; box-shadow: var(--shadow); }
.contact-tile .feature__icon { color: var(--navy); }
.contact-tile h3 { margin-top: 12px; }

/* ---------- Prose (policies, long text) ---------- */
.prose { max-width: 75ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }

/* ---------- Error page ---------- */
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0; list-style: none; margin: 1.5em 0 2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding-block: 22px; font-size: 14px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px 30px; align-items: center; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }
.site-footer__credit a { color: #4cc5f5; }
.site-footer__social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 3px; color: var(--white); font-size: 16px;
}
.site-footer__social li:first-child a { background: #3b5998; }
.site-footer__social li:last-child a { background: #007bb6; }
.site-footer__links { margin: 0; padding: 0; list-style: none; text-align: center; font: 500 15px/2 var(--font-head); }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; color: var(--white); }
.site-footer__contact { grid-column: 1 / -1; text-align: center; color: rgba(255, 255, 255, .8); font-style: normal; }
.site-footer__contact a { font-weight: 600; text-decoration: none; }
.site-footer__item--phone { white-space: nowrap; }
.site-footer__item + .site-footer__item::before { content: "\00B7" / ""; margin: 0 .55em; }
@media (max-width: 767px) {
  .site-footer__item { display: block; margin-top: .3em; }
  .site-footer__item + .site-footer__item::before { content: none; }
}
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .btn[aria-busy="true"] .btn__spinner { animation: spin 2s linear infinite !important; }
}

/* >>> pages-a */
/* Solution pages: dealership sales, vehicle quoting, CRM & lead management, mobile sales app. */

/* Spacing between a section title and its body, and before a closing button. */
.section-body { margin-top: 40px; }
.section-action { margin: 40px 0 0; }

/* Larger hero title (the old site set some inner-page H1s at 72px). */
.page-hero .page-hero__title--lg { font-size: clamp(2.4rem, 1.2rem + 3.9vw, 4.5rem); }
.page-hero__grid--3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 980px) { .page-hero__grid--3-2 { grid-template-columns: minmax(0, 1fr); } }

/* Medium heading: smaller section titles and hero taglines (works on h2 or p). */
.heading--md {
  margin: 0 0 .6em; color: var(--ink);
  font: 300 clamp(1.5rem, 1.15rem + 1.2vw, 2.15rem)/1.25 var(--font-head);
}

/* 1/3 + 2/3 columns. */
.cols-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 980px) { .cols-1-2 { grid-template-columns: minmax(0, 1fr); } }
.icon-xl--start { margin-left: 0; }

/* Centred list without bullets. */
.list-centered { margin-bottom: 0; padding: 0; list-style: none; text-align: center; }
.list-centered li { margin-bottom: 1em; }

/* Feature list variants. */
.feature-list--single { grid-template-columns: minmax(0, 1fr); }
.feature-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 4%; }
@media (max-width: 980px) { .feature-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .feature-list--3 { grid-template-columns: minmax(0, 1fr); } }
.feature--icon-top { grid-template-columns: minmax(0, 1fr); }
.feature--icon-top .feature__icon { grid-row: auto; justify-self: center; margin-bottom: 18px; }
.steps--flush { margin-top: 0; }
/* Keep title and text together when a feature is stretched to its row's height. */
.feature-list--3 > .feature, .steps > .feature { align-content: start; }
/* Numbered white step cards (narrower gaps so titles fit on one line). */
.steps--cards { gap: 30px 3%; }
.steps--cards .card { padding: 30px 24px; }
.steps--cards .step__title { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); }

/* Extra photo overlays. */
.overlay-dim::after { background: rgba(0, 0, 0, .5); }
.overlay-fade-left::after { background: linear-gradient(65deg, #000, rgba(0, 0, 0, 0)); }
.overlay-card--roomy { padding-block: clamp(48px, 7vw, 100px); }
.overlay-grey-fade::after { background: linear-gradient(90deg, rgba(242, 242, 242, .9) 40%, rgba(0, 0, 0, .5)); }

/* Photo card: text over a photo that fades to black at the bottom (use with has-bg). */
.photo-card {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  min-height: 480px; padding: 30px; border-radius: var(--radius); text-align: center;
}
.photo-card::after { background: linear-gradient(0deg, #000 15%, rgba(0, 0, 0, 0) 85%); }
.photo-card__title { color: var(--white); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.photo-card p { color: var(--white); font-weight: 500; }
@media (max-width: 767px) { .photo-card { min-height: 400px; padding: 24px 20px; } }

/* Navy app panel: screenshot beside white icon tiles. */
.app-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 5%; align-items: center;
  padding: clamp(20px, 3vw, 36px); border: 2px solid var(--cyan); border-radius: 11px; background: var(--navy-2);
}
.app-panel__shot { width: 100%; border: 2px solid var(--cyan); border-radius: 16px; }
.app-panel__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 0; margin: 0; padding: 0; list-style: none; }
.app-panel__item { flex: 0 0 33.333%; padding-inline: 8px; text-align: center; }
.app-panel__item p { margin: 0; color: var(--white); line-height: 1.5; }
.app-panel__icon { width: 80px; margin: 0 auto 12px; }
@media (max-width: 980px) {
  .app-panel { grid-template-columns: minmax(0, 1fr); }
  .app-panel > picture { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 480px) { .app-panel__item { flex-basis: 50%; } .app-panel__icon { width: 64px; } }

/* Square-bullet list in three columns, filled column by column (6 per column). */
.square-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto);
  grid-auto-flow: column; gap: 26px 5.5%; margin-bottom: 0; padding: 0; list-style: none;
}
.square-list li { display: flex; align-items: flex-start; gap: 22px; color: var(--ink); font: 400 .9375rem/1.45 var(--font-head); }
.square-list .icon { font-size: 22px; color: var(--navy); }
.square-list li:nth-child(n+7):nth-child(-n+12) .icon { color: var(--navy-2); }
@media (max-width: 767px) {
  .square-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; gap: 18px; }
}

/* Inline closing call to action: text left, button right. */
.cta-inline { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px 5.5%; align-items: center; }
.cta-inline__title { margin-bottom: .5em; font-size: 1.15rem; font-weight: 400; line-height: 1.4; }
.cta-inline__action { margin: 0; text-align: center; }
@media (max-width: 767px) { .cta-inline { grid-template-columns: minmax(0, 1fr); text-align: center; } }
/* <<< pages-a */

/* >>> pages-b */
/* Features, Solutions, Integrations, Why EasyQuote and About pages. */
.eyebrow--dark { color: var(--text); }
.title-md { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.15rem); font-weight: 300; }
.text-navy-2 { color: var(--navy-2); }
.spaced-top { margin-top: clamp(24px, 3vw, 44px); }
.media-narrow { max-width: 500px; margin-inline: auto; }

/* Uneven column ratios (2/3 + 1/3 etc.); they collapse to one column like the other grids. */
.grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.grid--2-1-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 980px) {
  .grid--2-1, .grid--1-2, .grid--2-1-1 { grid-template-columns: minmax(0, 1fr); }
}
.feature-list--stack { grid-template-columns: minmax(0, 1fr); }
/* Stacked feature in an equal-height card or column: keep icon, title and text together at the top. */
.feature--top { align-content: start; }

/* Centered page intro on a grey band that ends behind the lower part of a wide screenshot. */
.intro-hero {
  padding-block: clamp(36px, 4vw, 56px) clamp(24px, 4vw, 56px); text-align: center;
  background: linear-gradient(180deg, var(--grey) calc(100% - min(14vw, 190px)), var(--white) 0);
}
.intro-hero__lead { max-width: 800px; margin: 0 auto clamp(28px, 4vw, 56px); color: var(--muted); }
.intro-hero__figure img { width: 100%; }

/* Inner hero with a grey chevron behind the image (integrations). */
.page-hero--slant { position: relative; isolation: isolate; overflow: hidden; }
.page-hero--slant::before {
  content: ""; position: absolute; inset: 0 0 0 auto; z-index: -1; width: 52%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .29), rgba(0, 0, 0, 0));
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 32% 100%, 0 50%);
}
@media (max-width: 980px) { .page-hero--slant::before { display: none; } }

/* Taller photo hero with a slanted lower edge (why EasyQuote). */
.page-hero--photo { padding-block: clamp(64px, 10vw, 150px); }
.slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vw), 28% 100%, 0 100%); }

/* Dark card, text at the bottom over a photo that fades to black (integrations). */
.overlay-fade-up::after { background: linear-gradient(0deg, #000 15%, rgba(0, 0, 0, 0) 85%); }
.integration-card {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px;
  padding: 100px clamp(20px, 3vw, 30px) 24px; border: 2px solid var(--cyan); border-radius: 11px;
  background: linear-gradient(160deg, var(--navy-2), #000 75%); text-align: center;
}
.integration-card h3 { font-family: var(--font-card); }
.integration-card p { margin: 0; }
/* <<< pages-b */

/* >>> pages-c */
/* Medium section title (old H3-sized headings that are h2 here) */
/* Feature list as one vertical column (several of them side by side in a grid) */

/* Support page */
.support-list { margin-top: 30px; }
.support-list__title { color: var(--navy); font-weight: 300; font-size: 1.25rem; }
.support-training__icon { color: var(--navy-2); }

/* Contact page */
.contact-tiles { margin-bottom: clamp(32px, 4vw, 48px); }
.contact-problems { margin: 30px 0 0; padding: 0; list-style: none; }
.contact-problems li { margin-bottom: .9em; }

/* Brand-blue multiply overlay for photo backgrounds */
.overlay-brand::after { background: linear-gradient(132deg, var(--nav) 11%, var(--cyan) 66%); mix-blend-mode: multiply; }

/* Easy Quote Websites page */
.websites-hero { padding-block: clamp(56px, 6.5vw, 92px); text-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.websites-hero h1 { margin-bottom: .3em; }
.websites-hero__sub { margin: 0; font-size: 1.5rem; }
.websites-body { padding-block: 0 24px; }
.websites-panel { border-radius: 0; background: rgba(242, 242, 242, .92); }
.websites-panel__title { text-align: center; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: .12em; }
.websites-panel hr { margin: 1.5em 0; border: 0; border-top: 1px solid #8a8a8a; }
.websites-list { margin: 1.5em 0 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.75; }
.websites-list a { overflow-wrap: anywhere; }

/* Policy text whose section titles were small underlined labels on the old site */
.prose--label-headings h2 { margin-top: 1.6em; font-size: 1.125rem; font-weight: 500; letter-spacing: .04em; text-decoration: underline; text-underline-offset: .2em; }

/* "Ready To Get Started?" bar */
.cta-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px;
  padding: 20px 40px 18px; border-radius: 3px;
  background: var(--navy-2); box-shadow: inset 0 0 18px 0 var(--navy);
}
.cta-bar__title { margin: 0; color: var(--white); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem); }
.cta-bar__btn { min-height: 62px; font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); }
@media (max-width: 767px) {
  .cta-bar { justify-content: center; padding: 20px; text-align: center; }
}
/* <<< pages-c */

/* ---------- Solution hub cards (Solutions page): the whole card is the link ---------- */
.solution-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.solution-card {
  position: relative; flex: 0 1 calc((100% - 60px) / 3);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.solution-card:hover, .solution-card:focus-within { transform: translateY(-3px); box-shadow: 0 30px 72px -12px rgba(0, 0, 0, .2); }
.solution-card__icon { font-size: 44px; color: var(--navy-2); margin-bottom: 14px; }
.solution-card__title { font-size: 1.2rem; }
.solution-card__title a { color: var(--ink); text-decoration: none; }
.solution-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.solution-card:hover .solution-card__title a { color: var(--navy-2); text-decoration: underline; }
.solution-card p { margin: 0; font-size: .9375rem; }
@media (max-width: 980px) { .solution-card { flex-basis: calc((100% - 30px) / 2); } }
@media (max-width: 767px) { .solution-card { flex-basis: 100%; } }
