/* LeadQuantic
   Style system modeled on belkins.io/appointment-setting:
   uniform light-gray page, white rounded cards with soft diffuse shadows,
   one solid accent color (brand blue in the role of Belkins orange),
   near-black grotesk headlines in sentence case, dark rounded mega-block.
   Solid colors only, no gradients.
   Shape system: buttons/inputs 10px, cards 16px, mega blocks 28px.
   Motion: transform/opacity only, gated behind prefers-reduced-motion. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #f4f5f7;
  --card: #ffffff;
  --dark: #15152e;
  --dark-lift: rgba(255, 255, 255, 0.07);
  --heading: #17181f;
  --ink: #23242e;
  --muted: #4e5261;
  --accent: #1273bf;
  --accent-deep: #0e5f9e;
  --accent-bright: #1e9bf0;
  --accent-tint: #e8f2fb;
  --navy: #1b1660;
  --line: #e2e5ec;
  --input-border: #757d90;
  --error-bg: #fdecec;
  --error-border: #e5a3a3;
  --error-text: #93312f;
  --shadow-card: 0 18px 40px -24px rgba(21, 21, 46, 0.22);
  --font-display: "Archivo", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 2.4vw + 0.9rem, 2.6rem);
  font-weight: 740;
}

.centered {
  text-align: center;
}

.centered h2,
.centered .section-lede {
  margin-left: auto;
  margin-right: auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Buttons: one CTA label, solid accent, Belkins-style rounded rect ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-press), transform 0.2s var(--ease-press);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.6rem;
  box-shadow: 0 12px 24px -12px rgba(12, 10, 46, 0.5);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--heading);
  outline-offset: 3px;
}

.theme-dark .btn-primary:focus-visible {
  outline-color: #fff;
}

.btn .chev {
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.25s var(--ease-press);
}

.btn-primary:hover .chev {
  transform: translateX(3px);
}

.btn-lg {
  font-size: 1.08rem;
  font-weight: 700;
  padding: 1.05rem 2rem;
}

/* Full-width primary CTAs on phones: bigger tap target, no ambiguity */
@media (max-width: 639px) {
  .btn-lg {
    display: flex;
    width: 100%;
  }
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-header {
  font-size: 0.92rem;
  padding: 0.65rem 1.2rem;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .btn-header {
    font-size: 0.84rem;
    padding: 0.6rem 0.85rem;
  }
}

.cta-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.9rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.logo {
  height: 44px;
  width: auto;
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.section-lede {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 0.9rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.75rem;
}

/* ---------- Hero: light, split, solid ---------- */

.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.8rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 1.2rem;
}

.subhead {
  color: var(--muted);
  font-size: clamp(1.02rem, 0.6vw + 0.85rem, 1.18rem);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-media {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 8px;
}

.hero-media img {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

/* ---------- Dark mega block: the guarantee ---------- */

.mega {
  background: var(--dark);
  border-radius: 28px;
  padding: clamp(2.25rem, 4vw, 4rem);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.mega h2 {
  color: #fff;
  margin-bottom: 1.6rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  background: var(--dark-lift);
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  color: #e8ebfa;
  font-size: 1rem;
}

.check-list .tick {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-bright);
}

.mega .fine {
  color: #9ba2c8;
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
}

.mega-photo img {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  height: auto;
}

.mega-photo .mega-logo {
  background: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Problems: three white cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  text-align: left;
}

.num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 680;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- How it works: step panels with item rows ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.step-panel {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  text-align: left;
}

.step-panel h3 {
  font-size: 1.15rem;
  font-weight: 680;
  margin-bottom: 1.1rem;
}

.step-panel .item {
  background: var(--page);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-panel .item + .item {
  margin-top: 0.7rem;
}

/* ---------- Comparison: two plain options vs the featured one ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}

.compare-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}

.compare-card h3 {
  font-size: 1.12rem;
  font-weight: 680;
  margin-bottom: 1.1rem;
}

.con-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.con-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  background: var(--page);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.con-list .cross {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
}

.compare-card.featured {
  background: var(--navy);
}

.compare-card.featured h3 {
  color: #fff;
}

.compare-card.featured .check-list {
  margin-bottom: 0;
}

.compare-card.featured .check-list li {
  font-size: 0.94rem;
}

/* ---------- FAQ: minimal hairline rows with CSS chevron ---------- */

.faq {
  max-width: 800px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--heading);
  padding: 1.3rem 2.5rem 1.3rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.faq details p {
  color: var(--muted);
  padding: 0 0.25rem 1.35rem;
  max-width: 68ch;
}

/* ---------- Lead form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

#lead-form {
  scroll-margin-top: 88px;
}

.next-steps {
  margin-top: 2rem;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.next-steps li {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.2rem;
  color: var(--ink);
}

.next-steps .num-chip {
  margin-bottom: 0;
  flex: none;
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
}

.form-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1.9rem;
}

.field {
  margin-bottom: 1.1rem;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0.78rem 0.85rem;
}

/* Inline validation: flag a field as soon as the user leaves it invalid,
   not only on submit */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error-text);
  box-shadow: 0 0 0 3px rgba(147, 49, 47, 0.15);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 115, 191, 0.22);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.form-error a {
  color: var(--error-text);
  font-weight: 600;
}

.form-fineprint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
}

.form-fineprint a {
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: #a9b0d2;
  padding: 2.5rem 0;
  font-size: 0.92rem;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.site-footer a {
  color: #cfe4fb;
}

/* ---------- Thanks page ---------- */

.thanks-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thanks-body .site-footer {
  margin-top: 0;
}

.thanks-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.thanks-main .container {
  max-width: 640px;
}

.thanks-main h1 {
  font-size: clamp(2.1rem, 3vw + 0.8rem, 3rem);
  font-weight: 760;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.thanks-main .lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
  max-width: 48ch;
}

.thanks-main .aside {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.4rem;
}

/* ---------- Legal page ---------- */

.legal-main {
  padding: 56px 0 80px;
}

.legal-main .container {
  max-width: 760px;
}

.legal-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}

.legal-main h1 {
  font-size: clamp(1.9rem, 2.6vw + 0.8rem, 2.5rem);
  margin-bottom: 0.5rem;
}

.legal-main .effective {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2.25rem;
}

.legal-main h2 {
  font-size: 1.22rem;
  margin: 2.1rem 0 0.7rem;
}

.legal-main p,
.legal-main li {
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 0.9rem;
}

.legal-main ul {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

/* ---------- Scroll reveals: JS-gated, reduced-motion safe ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js-motion .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }

  html.js-motion .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  html.js-motion .stagger > *:nth-child(2).reveal {
    transition-delay: 0.08s;
  }

  html.js-motion .stagger > *:nth-child(3).reveal {
    transition-delay: 0.16s;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  section {
    padding: 88px 0;
  }

  .hero {
    padding: 88px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
  }

  .logo {
    height: 48px;
  }

  .mega-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }

  .card-grid,
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .compare-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
