/* ==========================================================================
   YOUR FAMILY, YOUR FUTURE — Landing Page Styles
   The Law Offices of Brenton C. McWilliams

   Design tokens pulled from brentonmcwilliams.com:
     • Navy  #213054   (primary / headings)
     • Red   #e22028   with #a2070d bottom border (CTA buttons)
     • Fonts: PT Serif (headings) · Montserrat (body) · Source Sans 3 (buttons)
   Mobile-first: base rules target small screens; media queries scale up.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand color palette */
  --navy:        #213054;
  --navy-dark:   #1a2643;
  --navy-deep:   #15203a;
  --red:         #e22028;
  --red-hover:   #c4161e;
  --red-dark:    #a2070d;   /* red brand accent (badge, icons, dots, card top edge) */

  /* CTA button — a distinct warm amber/gold so the action stands out
     from the red accents. Reserved for buttons only. */
  --cta:         #be7212;   /* warm amber/gold */
  --cta-hover:   #a5610d;
  --cta-dark:    #854d09;   /* button bottom edge */
  --taupe:       #9a8d7d;
  --gold:        #b8915a;   /* warm accent line */

  /* Neutrals / surfaces */
  --white:       #ffffff;
  --cream:       #faf7f1;   /* warm light section background */
  --cream-2:     #f3ece1;   /* deeper warm tint */
  --paper:       #fffdfa;

  /* Text */
  --ink:         #213054;                 /* headings */
  --text:        rgba(33, 48, 84, 0.82);  /* body */
  --text-soft:   rgba(33, 48, 84, 0.62);  /* secondary */
  --on-navy:     rgba(255, 255, 255, 0.90);
  --on-navy-soft:rgba(255, 255, 255, 0.70);

  /* Lines & shadows */
  --line:        rgba(33, 48, 84, 0.12);
  --line-strong: rgba(33, 48, 84, 0.20);
  --shadow-sm:   0 2px 10px rgba(21, 32, 58, 0.06);
  --shadow-md:   0 14px 40px rgba(21, 32, 58, 0.12);
  --shadow-lg:   0 24px 60px rgba(21, 32, 58, 0.18);

  /* Typography */
  --font-head: "PT Serif", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-btn:  "Source Sans 3", "Montserrat", system-ui, sans-serif;

  /* Layout */
  --container:   1140px;
  --narrow:      720px;
  --radius:      6px;
  --radius-lg:   14px;
  --header-h:    72px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* ~17px mobile */
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 700; }
em { font-style: italic; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 22px;
}

.narrow {
  max-width: var(--narrow);
  margin-inline: auto;
}

.center-text { text-align: center; }

.section {
  padding-block: clamp(48px, 8vw, 92px);
}

.alt-bg { background: var(--cream); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.9rem;
}

.emphasis {
  font-family: var(--font-head);
  font-size: 1.2em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

/* Accessibility: skip link + focus */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 4. Buttons (brand .theme-btn style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-btn);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 16px 34px;
  transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  color: #fff;
  background-color: var(--cta);
  border-bottom: 3px solid var(--cta-dark);
  box-shadow: 0 6px 18px rgba(190, 114, 18, 0.26);
}
.btn-primary:hover {
  background-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(190, 114, 18, 0.34);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

.btn-block { width: 100%; }

.section-cta {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-phone {
  display: none;        /* hidden on small screens; shown ≥720px */
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: none; color: var(--red); }
.header-phone svg { color: var(--red); flex: none; }
.header-phone-label { color: var(--text-soft); font-weight: 500; }
.header-phone-number { letter-spacing: 0.01em; }

.header-cta {
  padding: 10px 16px;
  font-size: 0.9rem;
}
/* Shorter CTA label on phones; full label from 560px up */
.cta-long { display: none; }
.cta-short { display: inline; }

/* ---------- 6. Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 480px at 85% -10%, rgba(184, 145, 90, 0.10), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding-block: clamp(34px, 5vw, 64px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
/* Mobile source order: hook → form → the rest of the story.
   On desktop, grid-template-areas (below) takes over placement. */
.hero-lead { order: 1; }
.hero-form-col { order: 2; }
.hero-rest { order: 3; }

/* Eyebrow as a clear, deliberate badge */
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(226, 32, 40, 0.08);
  border: 1px solid rgba(226, 32, 40, 0.22);
  border-radius: 100px;
}

/* Intro line + prose read as one continuous, well-contrasted block */
.hero-rest { color: #2a3c60; }
.hero-rest > p { margin-bottom: 1rem; }
.hero-intro {
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 600;
  color: #1d2c4a;
  margin-bottom: 1rem;
}

/* Emotional questions: lifted panel instead of a side bar */
.hero-questions {
  margin: 1.5rem 0;
  padding: 22px 26px;
  background: #fffdfa;
  border: 1px solid rgba(33, 48, 84, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(21, 32, 58, 0.09);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--navy);
}

.hero-closer {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.14rem;
}

/* Hero form card */
.hero-form-col { width: 100%; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 4vw, 30px);
}

.guide-cover {
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
}
.guide-cover-img {
  width: auto;
  max-height: 230px;
  border-radius: 4px;
  box-shadow: 0 16px 34px rgba(21, 32, 58, 0.28);
  transform: rotate(-1.4deg);
}

.guide-title-label {
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.3;
}
.guide-title-main {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.guide-title-sub {
  display: block;
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.form-headline {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- 7. Forms ---------- */
.lead-form { margin: 0; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.field .optional { color: var(--text-soft); font-weight: 500; }

.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: rgba(33, 48, 84, 0.4); }
.field input:hover { border-color: var(--taupe); }
.field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(33, 48, 84, 0.14);
}
.field input:user-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 32, 40, 0.12);
}

.lead-form .btn-block { margin-top: 4px; }

/* Honeypot — visually hidden but present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-disclaimer {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 14px 0 0;
  text-align: center;
}
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-soft);
  margin: 10px 0 0;
}
.form-privacy svg { color: var(--taupe); flex: none; margin-top: 2px; }

/* Success state */
.form-success {
  text-align: center;
  padding: 22px 8px 12px;
  animation: fadeUp .4s ease both;
}
.success-check {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(34, 139, 84, 0.12);
  color: #1f8a52;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.form-success p { color: var(--text); margin: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 8. Trust bar ---------- */
.trust-bar {
  background: var(--navy);
  color: #fff;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding-block: 13px;
  text-align: center;
}
.trust-item {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.trust-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

/* ---------- 9. Generic section text ---------- */
.lead-lines,
.excuses,
.hero-questions { color: var(--text); }

.lead-lines { margin: 0.6rem 0 1.1rem; }

.excuses {
  margin: 0.8rem 0 1.2rem;
  padding: 16px 20px;
  background: var(--cream);
  border-left: 3px solid var(--taupe);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}
.section-problem .excuses { background: var(--cream); }

.plan-list,
.firm-list,
.values-list,
.final-reassure {
  list-style: none;
  margin: 1rem 0 1.2rem;
  padding: 0;
}
.plan-list li,
.firm-list li,
.values-list li,
.final-reassure li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.plan-list li::before,
.firm-list li::before,
.values-list li::before,
.final-reassure li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- 10. "What the guide helps" cards ---------- */
.understand-bridge {
  margin-block: 8px 34px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.1rem;
}

.question-grid {
  list-style: none;
  margin: 26px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.question-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.question-grid li::before {
  content: "?";
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-btn);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}

.card-grid {
  list-style: none;
  counter-reset: card;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(33, 48, 84, 0.07);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
}
.info-card h3 { margin-bottom: 0.5rem; }
.info-card p { margin: 0; font-size: 0.98rem; color: var(--text); }

/* ---------- 11. Case study ---------- */
.section-case .values-list {
  columns: 1;
}
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 6px;
}
.scenario {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--taupe);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.scenario-2 { border-top-color: var(--gold); }
.scenario-3 { border-top-color: var(--navy); }
.scenario-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.scenario h3 { margin: 6px 0 8px; }
.scenario p { margin: 0; font-size: 0.96rem; }

/* ---------- 12. Audience / checklist ---------- */
.pull-quote {
  margin: 26px 0;
  padding: 24px 26px;
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--navy);
}

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(31, 138, 82, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 13 4 4L19 7' stroke='%231f8a52' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.closing-block {
  margin-top: 28px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.closing-block p { margin-bottom: 0.6rem; }
.closing-block p:last-child { margin-bottom: 0; }

/* ---------- 13. Emotional reframe (navy inverted) ---------- */
.section-reframe {
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(184,145,90,0.16), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
}
.section-reframe h2 { color: #fff; }
.section-reframe p { color: var(--on-navy); }
.section-reframe .emphasis { color: #fff; }

.reframe-list {
  list-style: none;
  margin: 0.8rem 0 1.4rem;
  padding: 0;
}
.reframe-list li {
  position: relative;
  padding: 9px 0 9px 34px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: var(--on-navy);
}
.reframe-list li:last-child { border-bottom: none; }
.reframe-list li::before {
  position: absolute;
  left: 4px; top: 9px;
  font-family: var(--font-btn);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
}
.reframe-list--negative li::before { content: "\2715"; color: #ff8d8d; }  /* ✕ */
.reframe-list--positive li::before { content: "\2713"; color: #7fd6a3; }  /* ✓ */

/* ---------- 14. Why from firm ---------- */
.section-firm { background: var(--white); }

/* ---------- 15. Final CTA ---------- */
.section-final {
  background:
    radial-gradient(1000px 420px at 90% -10%, rgba(184,145,90,0.10), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-top: 1px solid var(--line);
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
.final-copy h2 { margin-bottom: 0.6rem; }
.final-reassure { margin-top: 0.8rem; }

/* ---------- 16. FAQ ---------- */
.section-faq h2 { margin-bottom: 28px; }

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }

.faq-icon {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.faq-icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.faq-icon::after  { left: 10px; top: 3px; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text);
}
.faq-answer p { margin: 0; }
.faq-item[open] summary { color: var(--red); }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  padding-block: 48px 40px;
}
.footer-disclaimer {
  max-width: 860px;
  margin: 0 auto 26px;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  text-align: center;
}
.footer-rule {
  max-width: 120px;
  margin: 0 auto 26px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.footer-firm { text-align: center; }
.footer-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.footer-practice {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
  margin-bottom: 4px;
}
.footer-location { color: var(--on-navy-soft); margin-bottom: 4px; }
.footer-phone { color: #fff; font-weight: 600; margin-bottom: 0; }
.footer-phone a { color: #fff; }
.footer-phone a:hover { color: #ff9a9a; }
.footer-copyright {
  text-align: center;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.42);
  margin: 26px 0 0;
}

/* ---------- 18. Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(21,32,58,0.10);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }

.mobile-cta-call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: none;
  width: 64px;
  padding: 8px 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-call:hover { text-decoration: none; border-color: var(--navy); }
.mobile-cta-call svg { color: var(--red); }
.mobile-cta-btn { flex: 1; padding-block: 13px; }

/* ==========================================================================
   19. RESPONSIVE  —  scale up from mobile
   ========================================================================== */

/* Small tablets / large phones */
@media (min-width: 560px) {
  body { font-size: 1.09rem; }
  .question-grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr 1fr; gap: 12px 26px; }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
  .values-list { columns: 2; column-gap: 30px; }
  .values-list li { break-inside: avoid; }

  .brand-logo { height: 44px; }
  .header-inner { gap: 16px; }
  .header-actions { gap: 14px; }
  .header-cta { padding: 11px 18px; font-size: 0.92rem; }
  .cta-long { display: inline; }
  .cta-short { display: none; }
  .trust-bar-inner { gap: 10px 16px; }
  .trust-item { font-size: 0.78rem; }
}

/* Very small phones: shrink header so logo + CTA never collide */
@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .brand-logo { height: 34px; }
  .header-cta { font-size: 0.8rem; padding: 9px 12px; }
}

/* Show header phone, hide mobile sticky CTA */
@media (min-width: 720px) {
  .header-phone { display: inline-flex; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop: two-column hero + final, hide sticky mobile CTA */
@media (min-width: 920px) {
  :root { --header-h: 78px; }

  .brand-logo { height: 52px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    grid-template-areas:
      "lead form"
      "rest form";
    column-gap: 54px;
    row-gap: 0;
    align-items: start;
  }
  .hero-lead { grid-area: lead; }
  .hero-rest { grid-area: rest; }
  .hero-form-col {
    grid-area: form;
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }

  .final-grid {
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 50px;
  }
  .final-form-col {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }

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

  .mobile-cta { display: none !important; }

  .section-case .values-list,
  .checklist { grid-template-columns: 1fr 1fr; }
}

/* Wide desktop polish */
@media (min-width: 1140px) {
  .container { padding-inline: 28px; }
  .guide-cover-img { max-height: 250px; }
}

/* Larger info-card grid balancing on very wide screens */
@media (min-width: 1240px) {
  .info-card p { font-size: 1rem; }
}

/* ---------- 20. ActiveCampaign embedded form ---------- */
/* Lets the AC form sit flush inside the white .form-card. The form's own
   look (fonts, amber button, navy labels) comes from the Custom CSS added
   inside ActiveCampaign; these rules just handle fit + avoid duplication. */
.ac-form { margin-top: 4px; }
.ac-form ._form,
.form-card ._form,
.form-card ._form_26,
.form-card ._form_28 {
  width: 100% !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* The page already shows the styled headline above, so hide any title
   that the AC form renders, to avoid showing it twice. */
.form-card ._form-title { display: none !important; }
