/* ============================================================
   Legacy Wealth — DRAFT stylesheet
   This is a scaffold to match the mockups. Organism behavior
   (carousels, accordions, map, search) is stubbed and will be
   wired up from the forthcoming spec sheet.
   ============================================================ */

:root {
  /* Brand */
  --blue: #2563d9;
  --blue-dark: #1d4fb0;
  --blue-light: #4f86ec;
  --ink: #14223b;
  --ink-soft: #3a4a63;
  --muted: #6b7890;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --footer-bg: #2b2f36;
  --footer-ink: #c9ced6;
  --white: #ffffff;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(20, 34, 59, 0.08);
  --shadow-lg: 0 18px 50px rgba(20, 34, 59, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Smooth page-to-page transitions (cross-document View Transitions).
   The NEW page fades in ON TOP of the old one, which is held fully opaque
   underneath — so there is never a transparent/white dip between pages.
   Browsers without View Transitions just navigate normally (no white added). */
@view-transition { navigation: auto; }
@keyframes lw-vt-in { from { opacity: 0; } to { opacity: 1; } }
::view-transition-old(root) { animation: none; }                 /* old stays visible underneath */
::view-transition-new(root) { animation: lw-vt-in 0.3s ease; }   /* new fades in over it */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

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

a { color: inherit; text-decoration: none; }

/* Type scale (Poppins) — mapped from the Font Sizes spec
   H1 130 · H2 100 · H3 75 · H4 45 · H5 40 · Body1 30 · Body2 25 · Body3 20 */
h1, h2, h3, h4, h5 { margin: 0 0 0.4em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; }
h4 { font-size: 1.4rem; font-weight: 600; }
h5 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

/* ---------- Draft marker (remove when real content lands) ---------- */
.draft-note {
  background: #fff7e6;
  border: 1px dashed #e0b65c;
  color: #8a6a1d;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
}
[data-stub] { position: relative; }
[data-stub]::after {
  content: "draft stub";
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 217, 0.1);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.15s ease, color 0.15s ease;
}
/* subtle lift on hover, settles on press */
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 34, 59, 0.16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost.on-light { border-color: var(--line); color: var(--ink); }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  padding: 7px 16px;
}
.announce a { color: var(--blue-light); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 3; }
/* large logo that may overhang the header bar (see #8) */
.brand-logo { height: 92px; width: auto; display: block; border-radius: 0; }
/* Legacy Insurance wordmark on a transparent background. The white logo shows
   over the homepage hero video; the black logo takes over on white nav bars
   (scrolled homepage + every subpage) so it always contrasts. */
.brand-logo--insurance {
  /* The white and black logo files share identical canvas + artwork geometry
     (729x251, verified), so one size rule keeps the scroll swap seamless.
     54px sits comfortably inside the 70px nav bar. */
  height: 54px;
  width: auto;
  object-fit: contain;
}
.brand-logo--ins-light { display: none; }
/* Over the hero video the header is transparent, so the white logo renders
   much larger and may overhang the bar (like the original design); the black
   version stays at 66px so it remains inside the white nav bar. */
body.has-hero-video:not(.is-scrolled) .brand-logo--ins-light { height: 70px; }
body.has-hero-video:not(.is-scrolled) .brand-logo--ins-light { display: block; }
body.has-hero-video:not(.is-scrolled) .brand-logo--ins-dark { display: none; }
.brand-logo--footer { height: 156px; border-radius: 0; }
/* Footer uses the tightly-cropped white Legacy Insurance wordmark; size it to
   roughly the visual footprint of the old footer artwork. */
.brand-logo--footer-ins { height: 76px; width: 300px; object-fit: contain; object-position: left center; }
.brand-mark {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 6px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.7rem;
  line-height: 1;
  text-align: center;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  line-height: 1.05;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); font-weight: 600; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero (generic) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(20,34,59,0.55), rgba(20,34,59,0.55)), var(--blue-dark);
  background-size: cover;
  background-position: center;
}
.page-hero .container { padding-top: 90px; padding-bottom: 90px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 540px; }
.corner-word {
  position: absolute;
  right: 24px; bottom: 16px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  line-height: 0.95;
  text-align: right;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-sub { font-size: 1.1rem; color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* Home "Find Your Advisor" hero: title + CTA stacked at left, family photo at
   right. Built as a grid so mobile can re-stack: title, photo, button, phone. */
.advisor-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-areas:
    "title img"
    "cta   img";
  column-gap: 48px;
  align-items: center;
}
.advisor-grid .advisor-title { grid-area: title; margin-bottom: 0; }
.advisor-grid .advisor-img {
  grid-area: img;
  align-self: center;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.advisor-grid .hero-cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.advisor-grid .advisor-phone { font-weight: 700; color: var(--ink); }
@media (max-width: 900px) {
  .advisor-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "img"
      "cta";
    row-gap: 24px;
    justify-items: center;
    text-align: center;
  }
  /* button on top, phone number directly underneath it — both centered */
  .advisor-grid .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 0;
  }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* ---------- Accordion / pill list (Future Forward, Services) ---------- */
.pill-list { display: flex; flex-direction: column; gap: 12px; }
.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 0.98rem;
}
.pill:hover { background: var(--blue-dark); }
.pill .plus { font-size: 1.2rem; line-height: 1; }

/* ---------- Vertical-tab carousel stub ---------- */
.vtab-carousel {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}
.vtab-main {
  background: #d9dee8 center/cover no-repeat;
  display: grid;
  place-items: end start;
  padding: 20px;
  color: #fff;
  font-weight: 600;
}
.vtab-list { display: flex; gap: 4px; }
.vtab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--blue);
  color: #fff;
  padding: 16px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.vtab .plus { transform: rotate(180deg); font-size: 1.1rem; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--blue); }

/* ---------- People / team cards ---------- */
.person {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 3 / 4;
  background: #d9dee8;
}
.person .plus-btn {
  position: absolute; bottom: 10px; left: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.people-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.person-feature h3 { margin-bottom: 2px; color: var(--blue); }
.person-feature .role { color: var(--muted); font-size: 0.9rem; }

/* ---------- Stats ---------- */
.stats { background: var(--blue); color: #fff; padding: 50px 0; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; }
.stat-label { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

/* ---------- Blue band / CTA ---------- */
.band { background: var(--blue); color: #fff; padding: 70px 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.9); }
.cta-center { text-align: center; }

/* ---------- Image blocks ---------- */
.media-block {
  background: #d9dee8;
  border-radius: var(--radius);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.cube {
  position: absolute;
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #3a3f47, #20242b);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.cube.blue { background: linear-gradient(135deg, var(--blue-light), var(--blue)); width: 44px; height: 44px; }

/* ---------- Events list (Resources) ---------- */
.event-row {
  display: grid;
  grid-template-columns: 80px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.event-month { color: var(--muted); font-weight: 600; }
.event-thumb { width: 100%; aspect-ratio: 16/10; background: #d9dee8; border-radius: var(--radius-sm); }
.event-title { font-weight: 600; color: var(--ink); }
.rsvp { color: var(--blue); font-weight: 700; font-size: 0.85rem; }

/* ---------- Locations ---------- */
.search-bar {
  display: flex; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  max-width: 420px;
  align-items: center;
}
.search-bar input { border: none; outline: none; flex: 1; font-size: 0.95rem; background: transparent; }
.us-map { background: #eef1f6; border-radius: var(--radius); min-height: 360px; display: grid; place-items: center; color: var(--muted); }
.office-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.office-card .photo { aspect-ratio: 16/10; background: #d9dee8; }
.office-card .meta { padding: 14px 16px; }

/* ---------- Forms ---------- */
.field { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; margin-bottom: 12px; background: #fff; }
.form-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.form-card h4 { font-size: 1.1rem; }
.form-message { font-size: 0.9rem; color: var(--blue); min-height: 1.2em; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: 8px; max-width: 360px; }
.newsletter input { flex: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 56px 0 28px; margin-top: 0; }
.site-footer .brand-name { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1.2fr; gap: 32px; align-items: start; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 14px; width: max-content; max-width: 136px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: var(--footer-ink); transition: background 0.2s ease, color 0.2s ease; }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-social svg { width: 17px; height: 17px; display: block; }

/* Subscribe form (footer) */
.subscribe-form { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.sub-field { padding: 12px 16px; border: none; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.sub-field::placeholder { color: #9aa1ab; }
.sub-btn { padding: 12px 16px; border: none; border-radius: 10px; background: linear-gradient(95deg, #1d4fb0, #4f86ec); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; transition: filter 0.15s ease; }
.sub-btn:hover { filter: brightness(1.06); }
.footer-cta h4 { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px; padding-top: 20px;
  font-size: 0.78rem;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
}
.footer-bottom a { color: var(--blue-light); }
/* copyright + privacy-preferences sit together on the left */
.footer-bottom .fb-left { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
/* the floating cookie reopen tab is replaced by the footer "Privacy Preferences" link */
.lwcc-reopen { display: none !important; }
.disclaimer { font-size: 0.72rem; line-height: 1.5; color: #9aa1ab; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-end; text-align: right;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .people-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .event-row { grid-template-columns: 60px 1fr; grid-template-areas: "month title" "thumb thumb"; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .people-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .newsletter, .vtab-carousel { grid-template-columns: 1fr; }
}

/* ===== Disclosures overlay (site-wide, built by script.js) ===== */
.lw-disc { position: fixed; inset: 0; z-index: 1000; display: flex; }
.lw-disc[hidden] { display: none; }
.lw-disc__backdrop { position: absolute; inset: 0; background: rgba(20,34,59,0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.lw-disc__dialog { position: relative; z-index: 1; margin: auto; width: min(560px, 94vw); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lw-disc__bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.lw-disc__bar h3 { margin: 0; color: var(--ink); font-size: 1.2rem; }
.lw-disc__x { background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--muted, #6b7280); cursor: pointer; padding: 0 4px; }
.lw-disc__body { padding: 18px 22px 22px; }
.lw-disc__intro { color: var(--muted, #6b7280); font-size: .92rem; margin: 0 0 14px; }
.lw-disc__list { display: flex; flex-direction: column; gap: 10px; }
.lw-disc__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.lw-disc__item:hover { border-color: var(--blue); background: #f5f8ff; transform: translateY(-1px); }
.lw-disc__ic { color: var(--blue); flex: none; }
.lw-disc__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lw-disc__txt strong { font-size: 1rem; font-weight: 700; }
.lw-disc__txt span { color: var(--muted, #6b7280); font-size: .82rem; }
.lw-disc__go { color: var(--blue); flex: none; }


/* ===== Cookie Consent widget (.lwcc) ===== */
  .lwcc, .lwcc * { box-sizing: border-box; }
  /* overlay/modal are appended to <body> outside .lwcc, so give them the vars too */
  .lwcc, .lwcc-overlay {
    --lw-cobalt: #1d4ed8;
    --lw-cobalt-deep: #1e3a8a;
    --lw-sky: #38bdf8;
    --lw-charcoal: #2b2d31;
    --lw-charcoal-soft: #4b4f57;
    --lw-line: #e6e9f0;
    --lw-bg: #ffffff;
    --lw-grad: linear-gradient(120deg, var(--lw-cobalt) 0%, var(--lw-sky) 100%);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--lw-charcoal);
  }

  /* Banner */
  .lwcc-banner {
    position: fixed; z-index: 2147483646; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center;
    padding: 16px clamp(16px, 3.5vw, 44px) 20px;
    pointer-events: none;
    animation: lwcc-rise .45s cubic-bezier(.16,1,.3,1) both;
  }
  @keyframes lwcc-rise { from { transform: translateY(130%);} to { transform: translateY(0);} }
  .lwcc-banner-inner {
    pointer-events: auto;
    width: 100%; max-width: 1500px; background: var(--lw-bg);
    border: 1px solid var(--lw-line); border-radius: 18px;
    box-shadow: 0 22px 48px -16px rgba(16,24,40,.32), 0 4px 12px rgba(16,24,40,.08);
    padding: 16px 26px; position: relative; overflow: hidden;
  }
  .lwcc-banner-inner::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lw-grad);
  }
  .lwcc-bd { display: flex; gap: 26px; align-items: center; flex-wrap: nowrap; }
  .lwcc-copy { flex: 1 1 auto; min-width: 0; }
  .lwcc-title { font-weight: 600; font-size: 0.92rem; margin: 0 0 2px; letter-spacing: -0.01em; }
  .lwcc-text { font-size: 0.82rem; line-height: 1.5; color: var(--lw-charcoal-soft); margin: 0; }
  .lwcc-text a { color: var(--lw-cobalt); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; }
  .lwcc-text a:hover { border-bottom-color: var(--lw-cobalt); }
  .lwcc-actions { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; flex: 0 0 auto; }
  .lwcc-actions .lwcc-btn { padding: 10px 16px; }

  /* Buttons — Accept and Reject get EQUAL prominence (no dark patterns) */
  .lwcc-btn { font-family: inherit; font-weight: 600; font-size: 0.85rem; line-height: 1; cursor: pointer; border-radius: 11px; padding: 12px 18px; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; border: 1.5px solid transparent; white-space: nowrap; }
  .lwcc-btn:active { transform: translateY(1px); }
  .lwcc-btn:focus-visible { outline: 3px solid rgba(29,78,216,.35); outline-offset: 2px; }
  .lwcc-btn-primary { background: var(--lw-grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(29,78,216,.6); }
  .lwcc-btn-primary:hover { box-shadow: 0 10px 22px -6px rgba(29,78,216,.7); }
  .lwcc-btn-solid { background: var(--lw-charcoal); color: #fff; }
  .lwcc-btn-solid:hover { background: #1b1d20; }
  .lwcc-btn-ghost { background: #fff; color: var(--lw-charcoal); border-color: var(--lw-line); }
  .lwcc-btn-ghost:hover { border-color: var(--lw-cobalt); color: var(--lw-cobalt); }
  .lwcc-btn-link { background: none; border: none; color: var(--lw-charcoal-soft); font-weight: 500; font-size: 0.82rem; text-decoration: underline; padding: 8px 6px; cursor: pointer; }
  .lwcc-btn-link:hover { color: var(--lw-cobalt); }

  /* Modal */
  .lwcc-overlay { position: fixed; inset: 0; z-index: 2147483647; background: rgba(20,24,33,.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: lwcc-fade .25s ease both; }
  @keyframes lwcc-fade { from { opacity: 0;} to { opacity: 1;} }
  .lwcc-modal { background: var(--lw-bg); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(16,24,40,.5); animation: lwcc-pop .3s cubic-bezier(.16,1,.3,1) both; }
  @keyframes lwcc-pop { from { transform: scale(.96) translateY(8px); opacity: 0;} to { transform: scale(1) translateY(0); opacity: 1;} }
  .lwcc-modal-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--lw-line); position: relative; }
  .lwcc-modal-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
  .lwcc-modal-head p { margin: 8px 0 0; font-size: 0.85rem; color: var(--lw-charcoal-soft); line-height: 1.6; }
  .lwcc-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--lw-line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--lw-charcoal-soft); line-height: 1; }
  .lwcc-close:hover { border-color: var(--lw-cobalt); color: var(--lw-cobalt); }
  .lwcc-modal-body { padding: 8px 26px 4px; }
  .lwcc-cat { padding: 18px 0; border-bottom: 1px solid var(--lw-line); display: flex; gap: 16px; align-items: flex-start; }
  .lwcc-cat:last-child { border-bottom: none; }
  .lwcc-cat-text { flex: 1; }
  .lwcc-cat-text h3 { margin: 0 0 4px; font-size: 0.92rem; font-weight: 600; }
  .lwcc-cat-text p { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--lw-charcoal-soft); }
  .lwcc-locked { font-size: 0.72rem; font-weight: 600; color: var(--lw-cobalt); background: #eef2ff; padding: 3px 9px; border-radius: 999px; }

  /* Toggle */
  .lwcc-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; margin-top: 2px; }
  .lwcc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
  .lwcc-track { position: absolute; inset: 0; background: #cbd2e0; border-radius: 999px; transition: background .2s; cursor: pointer; }
  .lwcc-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
  .lwcc-switch input:checked + .lwcc-track { background: var(--lw-grad); }
  .lwcc-switch input:checked + .lwcc-track::after { transform: translateX(20px); }
  .lwcc-switch input:disabled + .lwcc-track { background: var(--lw-cobalt); opacity: .55; cursor: not-allowed; }
  .lwcc-switch input:focus-visible + .lwcc-track { outline: 3px solid rgba(29,78,216,.35); outline-offset: 2px; }

  .lwcc-sale { margin: 4px 0 0; padding: 16px 18px; background: #f7f9fc; border: 1px solid var(--lw-line); border-radius: 14px; display:flex; gap:14px; align-items:flex-start; }
  .lwcc-sale h3 { margin:0 0 3px; font-size:.88rem; font-weight:600; }
  .lwcc-sale p { margin:0; font-size:.78rem; color: var(--lw-charcoal-soft); line-height:1.5; }
  .lwcc-modal-foot { padding: 18px 26px 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .lwcc-gpc-note { font-size: 0.76rem; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 9px 12px; margin: 14px 0 0; display: none; }
  .lwcc-gpc-note.show { display: block; }

  /* Reopen tab */
  .lwcc-reopen { position: fixed; left: 18px; bottom: 18px; z-index: 2147483640; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; background: var(--lw-bg); border: 1px solid var(--lw-line); box-shadow: 0 6px 18px -6px rgba(16,24,40,.3); display: none; align-items: center; justify-content: center; transition: transform .15s; }
  .lwcc-reopen:hover { transform: scale(1.06); }
  .lwcc-reopen svg { width: 22px; height: 22px; }
  .lwcc-reopen.show { display: flex; }

  /* Chomp / eat animation */
  .lwcc-crumb { position: fixed; z-index: 2147483647; background: #c98a4b; border-radius: 50%; pointer-events: none; box-shadow: 0 1px 2px rgba(0,0,0,.2); animation: lwcc-crumb-fall .66s cubic-bezier(.4,.1,.7,1) forwards; }
  @keyframes lwcc-crumb-fall { to { transform: translate(var(--dx), var(--dy)) rotate(220deg); opacity: 0; } }

  @media (max-width: 720px) {
    .lwcc-banner { padding: 12px; }
    .lwcc-bd { flex-wrap: wrap; gap: 12px; }
    .lwcc-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
    .lwcc-actions .lwcc-btn { flex: none; width: 100%; white-space: normal; padding: 12px 14px; }
    .lwcc-banner-inner { padding: 16px 16px; }
  }

/* ===== Get Started intake flow — overlay wrapper ===== */
.lw-intake-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-start; justify-content: center; padding: 28px 14px; overflow-y: auto; }
.lw-intake-overlay[hidden] { display: none; }
.lw-intake-backdrop { position: fixed; inset: 0; background: rgba(20,34,59,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lw-intake-dialog { position: relative; z-index: 1; width: 100%; max-width: 660px; margin: auto; }
/* card fills the dialog so the close button sits inside the form container */
.lw-intake-dialog #lw-intake-root { max-width: none; margin: 0; padding: 0; }
.lw-intake-x { position: absolute; top: 18px; right: 18px; z-index: 5; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.45); background: rgba(255,255,255,0.18); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: background .15s; }
.lw-intake-x:hover { background: rgba(255,255,255,0.30); }
/* final review step: widen the dialog + two columns so it fits without scrolling */
.lw-intake-overlay.is-wide .lw-intake-dialog { max-width: 940px; }
.lw-intake-overlay.is-wide #lw-intake-root .lw-review { grid-template-columns: 1fr 1fr; }

/* ===== Get Started intake flow — embedded (scoped) styles ===== */

  #lw-intake-root, #lw-intake-root * { box-sizing: border-box; }

  #lw-intake-root {
    /* ---- Brand tokens ---- */
    --cobalt: #1546c9;
    --cobalt-deep: #0d2f8f;
    --sky: #4fc0f5;
    --sky-soft: #e8f4fd;
    --charcoal: #2b303a;
    --charcoal-soft: #5a626f;
    --line: #e4e8ef;
    --bg: #f6f8fb;
    --white: #ffffff;
    --ok: #22a06b;
    --grad: linear-gradient(120deg, var(--cobalt-deep) 0%, var(--cobalt) 45%, var(--sky) 100%);

    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--charcoal);
    max-width: 620px;
    margin: 0 auto;
    padding: 16px;
    -webkit-font-smoothing: antialiased;
  }

  #lw-intake-root .lw-card{
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 24px 60px -28px rgba(13, 47, 143, .35), 0 2px 8px -2px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid var(--line);
  }

  /* ---- Header ---- */
  #lw-intake-root .lw-head{
    background: var(--grad);
    padding: 26px 30px 22px;
    color: #fff;
    position: relative;
  }
  #lw-intake-root .lw-head::after{
    content:""; position:absolute; inset:0;
    background: radial-gradient(circle at 88% -20%, rgba(255,255,255,.28), transparent 55%);
    pointer-events:none;
  }
  #lw-intake-root .lw-brand{ display:flex; align-items:center; gap:11px; font-weight:600; letter-spacing:.04em; font-size:13px; text-transform:uppercase; opacity:.95;}
  #lw-intake-root .lw-mark{
    width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.16);
    display:grid;place-items:center; backdrop-filter: blur(2px);
  }
  #lw-intake-root .lw-mark svg{ width:17px;height:17px;}
  #lw-intake-root .lw-logo{ width:62px; height:62px; display:block; border-radius:0; border:1px solid rgba(255,255,255,.22); box-shadow:0 8px 22px -8px rgba(0,0,0,.45); }
  #lw-intake-root .lw-eyebrow{ margin-top:18px; font-size:12px; letter-spacing:.16em; text-transform:uppercase; opacity:.82; font-weight:500;}
  #lw-intake-root .lw-title{ font-size:23px; font-weight:600; margin:16px 0 0; line-height:1.25; color:#fff;}

  /* ---- Progress ---- */
  #lw-intake-root .lw-prog-wrap{ padding: 0 30px; background:var(--white); }
  #lw-intake-root .lw-prog{ height:5px; background:var(--line); border-radius:99px; margin:20px 0 4px; overflow:hidden;}
  #lw-intake-root .lw-prog-bar{ height:100%; width:0; border-radius:99px; background:var(--grad); transition:width .5s cubic-bezier(.65,0,.35,1);}
  #lw-intake-root .lw-prog-txt{ font-size:11.5px; color:var(--charcoal-soft); font-weight:500; letter-spacing:.02em;}

  /* ---- Body / steps ---- */
  #lw-intake-root .lw-body{ padding: 22px 30px 8px; min-height: 224px; }
  #lw-intake-root .lw-step{ display:none; animation: lwIn .42s cubic-bezier(.2,.7,.3,1) both; }
  #lw-intake-root .lw-step.active{ display:block; }
  @keyframes lwIn { from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;} }

  #lw-intake-root .lw-q{ font-size:20px; font-weight:600; line-height:1.3; margin:2px 0 4px; }
  #lw-intake-root .lw-sub{ font-size:13.5px; color:var(--charcoal-soft); margin:0 0 18px; line-height:1.5; }
  #lw-intake-root .lw-err{ display:flex; align-items:center; gap:7px; margin-top:15px; font-size:13px; font-weight:500; color:#d6453d; animation: lwIn .3s ease both; }
  #lw-intake-root .lw-err svg{ width:16px;height:16px;flex:0 0 16px; }
  #lw-intake-root .lw-input.bad, #lw-intake-root .lw-textarea.bad{ border-color:#e0857e; box-shadow:0 0 0 4px rgba(214,69,61,.10); }

  #lw-intake-root .lw-field{ margin-bottom:15px; }
  #lw-intake-root .lw-label{ display:block; font-size:12.5px; font-weight:500; color:var(--charcoal-soft); margin:0 0 6px; letter-spacing:.01em;}
  #lw-intake-root .lw-input, #lw-intake-root .lw-textarea{
    width:100%; font-family:inherit; font-size:15px; color:var(--charcoal);
    padding:13px 15px; border:1.5px solid var(--line); border-radius:13px; background:var(--white);
    transition: border-color .2s, box-shadow .2s; outline:none;
  }
  #lw-intake-root .lw-textarea{ resize:vertical; min-height:120px; line-height:1.55; }
  #lw-intake-root .lw-input:focus, #lw-intake-root .lw-textarea:focus{ border-color:var(--cobalt); box-shadow:0 0 0 4px rgba(21,70,201,.12); }
  #lw-intake-root .lw-input::placeholder, #lw-intake-root .lw-textarea::placeholder{ color:#aab1bd; }

  /* ---- Choice grid (single + multi) ---- */
  #lw-intake-root .lw-choices{ display:grid; gap:11px; }
  #lw-intake-root .lw-choices.two{ grid-template-columns: 1fr 1fr; }
  #lw-intake-root .lw-choices.svc{ grid-template-columns: 1fr 1fr; }
  @media (max-width:460px){ .lw-choices.two, .lw-choices.svc { grid-template-columns:1fr; } }

  #lw-intake-root .lw-choice{
    display:flex; align-items:center; gap:12px; cursor:pointer;
    padding:14px 15px; border:1.5px solid var(--line); border-radius:14px;
    font-size:14.5px; font-weight:500; background:var(--white);
    transition: all .18s ease; user-select:none; text-align:left;
  }
  #lw-intake-root .lw-choice:hover{ border-color:var(--sky); background:var(--sky-soft); }
  #lw-intake-root .lw-choice .lw-ico{ width:20px;height:20px;flex:0 0 20px; color:var(--cobalt); display:grid;place-items:center;}
  #lw-intake-root .lw-choice .lw-ico svg{ width:19px;height:19px; }
  #lw-intake-root .lw-choice .lw-tick{
    margin-left:auto; width:22px;height:22px;border-radius:50%;border:2px solid var(--line);
    flex:0 0 22px; display:grid;place-items:center; transition:all .18s;
  }
  #lw-intake-root .lw-choice .lw-tick svg{ width:13px;height:13px; opacity:0; transform:scale(.4); transition:all .2s; color:#fff;}
  #lw-intake-root .lw-choice.sel{ border-color:var(--cobalt); background:var(--sky-soft); box-shadow:0 6px 18px -10px rgba(21,70,201,.5); }
  #lw-intake-root .lw-choice.sel .lw-tick{ background:var(--cobalt); border-color:var(--cobalt); }
  #lw-intake-root .lw-choice.sel .lw-tick svg{ opacity:1; transform:scale(1); }

  #lw-intake-root .lw-reveal{ overflow:hidden; max-height:0; opacity:0; transition: max-height .45s ease, opacity .35s ease, margin .4s ease; margin-top:0;}
  #lw-intake-root .lw-reveal.open{ max-height:300px; opacity:1; margin-top:16px; }

  /* ---- Review ---- */
  #lw-intake-root .lw-review{ display:grid; gap:2px; border:1.5px solid var(--line); border-radius:15px; overflow:hidden; }
  #lw-intake-root .lw-rrow{ display:flex; gap:14px; padding:13px 16px; background:var(--white); }
  #lw-intake-root .lw-rrow:nth-child(even){ background:#fbfcfe; }
  #lw-intake-root .lw-rrow .k{ flex:0 0 130px; font-size:12.5px; color:var(--charcoal-soft); font-weight:500; }
  #lw-intake-root .lw-rrow .v{ font-size:14px; font-weight:500; color:var(--charcoal); word-break:break-word; }
  #lw-intake-root .lw-rrow .v.empty{ color:#b6bcc7; font-weight:400; font-style:italic; }

  /* ---- Done ---- */
  #lw-intake-root .lw-done{ text-align:center; padding:26px 8px 12px; }
  #lw-intake-root .lw-done-mark{
    width:74px;height:74px;border-radius:50%; margin:0 auto 18px; display:grid;place-items:center;
    background:var(--grad); color:#fff; box-shadow:0 16px 36px -14px rgba(21,70,201,.6);
    animation: lwPop .5s cubic-bezier(.2,1.4,.4,1) both;
  }
  #lw-intake-root .lw-done-mark svg{ width:34px;height:34px; }
  @keyframes lwPop { from{transform:scale(.3);opacity:0;} to{transform:scale(1);opacity:1;} }

  /* ---- Footer / nav ---- */
  #lw-intake-root .lw-foot{ display:flex; align-items:center; gap:12px; padding:16px 30px 26px; }
  #lw-intake-root .lw-btn{
    font-family:inherit; font-size:14.5px; font-weight:600; cursor:pointer;
    padding:13px 26px; border-radius:13px; border:none; transition:all .2s ease; letter-spacing:.01em;
  }
  #lw-intake-root .lw-next{
    background:var(--grad); color:#fff; margin-left:auto;
    box-shadow:0 12px 26px -12px rgba(21,70,201,.65); display:inline-flex; align-items:center; gap:8px;
  }
  #lw-intake-root .lw-next:hover{ transform:translateY(-1px); box-shadow:0 16px 30px -12px rgba(21,70,201,.7); }
  #lw-intake-root .lw-next svg{ width:16px;height:16px; }
  #lw-intake-root .lw-back{
    background:transparent; color:var(--charcoal-soft); border:1.5px solid var(--line);
    transform:none; filter:none; display:inline-flex; align-items:center; gap:8px;
  }
  #lw-intake-root .lw-back svg{ width:16px; height:16px; }
  #lw-intake-root .lw-back:hover{ border-color:var(--charcoal-soft); color:var(--charcoal); }
  #lw-intake-root .lw-skip{ background:transparent; color:var(--cobalt); padding:13px 8px; }
  #lw-intake-root .lw-skip:hover{ text-decoration:underline; }
  #lw-intake-root .lw-hide{ display:none !important; }


/* ===== Nav "Login" dropdown (vars scoped to .lw-login so nothing leaks) ===== */
.lw-login {
  position: relative; display: inline-block;
  --lwl-cobalt:#0a4bb3; --lwl-sky:#39a9f4;
  --lwl-grad:linear-gradient(120deg,#0a4bb3 0%,#1f7fe0 55%,#39a9f4 100%);
  --lwl-ink:#2c3138; --lwl-ink-soft:#5b6470; --lwl-line:#e4e8ee; --lwl-field:#f6f8fb;
  --lwl-shadow:0 18px 48px -12px rgba(16,42,80,.28), 0 4px 12px -4px rgba(16,42,80,.12);
}
/* Signed-in staff chip shown in place of the Login button */
.lw-account { display: none; flex-direction: column; align-items: flex-end; text-align: right;
  line-height: 1.18; color: var(--ink-soft); white-space: nowrap; }
/* when signed in, hide the Login button/dropdown and reveal the account chip */
.lw-login.is-account .nav-login,
.lw-login.is-account .lw-dropdown { display: none !important; }
.lw-login.is-account .lw-account { display: inline-flex; }
/* set before first paint by an inline <head> script, so the Login button never
   flashes for a signed-in visitor (hidden until script.js swaps in the chip) */
html.lw-authed .lw-login .nav-login,
html.lw-authed .lw-login .lw-dropdown { display: none !important; }
.lw-account a { color: inherit; }
.lw-acct-label { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.lw-account .lw-acct-name { font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.lw-account .lw-acct-name:hover { text-decoration: underline; }
.lw-account .lw-acct-out { font-size: 0.62rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; opacity: 0.8; }
.lw-account .lw-acct-out:hover { opacity: 1; }
.lw-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; width: 312px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--lwl-line); border-radius: 14px; box-shadow: var(--lwl-shadow);
  padding: 24px 22px 20px; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.3,.64,1);
  overflow: hidden; z-index: 60; text-align: left;
}
.lw-dropdown::before { content:""; position:absolute; top:0; left:0; right:0; height:6px; background:var(--lwl-grad); }
.lw-login.is-open .lw-dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lw-dropdown__sub { font-size: 12px; font-weight: 300; color: var(--lwl-ink-soft); margin-bottom: 16px; }
.lw-login .lw-field { margin-bottom: 11px; }
.lw-login .lw-field label { display:block; font-size:11px; font-weight:500; letter-spacing:.2px; color:var(--lwl-ink-soft); margin-bottom:5px; text-transform:none; }
.lw-login .lw-field input { width:100%; font-family:inherit; font-size:13.5px; font-weight:400; color:var(--lwl-ink); padding:10px 12px; background:var(--lwl-field); border:1px solid var(--lwl-line); border-radius:9px; outline:none; transition:border-color .18s, background .18s, box-shadow .18s; }
.lw-login .lw-field input::placeholder { color:#a6aeb9; font-weight:300; }
.lw-login .lw-field input:focus { border-color:var(--lwl-sky); background:#fff; box-shadow:0 0 0 3px rgba(57,169,244,.14); }
.lw-login .lw-submit { width:100%; font-family:inherit; font-size:13.5px; font-weight:600; letter-spacing:.2px; color:#fff; padding:11px; margin-top:5px; background:var(--lwl-grad); background-size:160% 100%; background-position:0% 0%; border:none; border-radius:9px; cursor:pointer; box-shadow:0 6px 16px -6px rgba(10,75,179,.6); transition:background-position .4s ease, transform .12s ease, box-shadow .2s ease; }
.lw-login .lw-submit:hover { background-position:100% 0%; box-shadow:0 8px 20px -6px rgba(10,75,179,.7); }
.lw-login .lw-submit:active { transform:translateY(1px); }
.lw-login .lw-forgot { display:block; text-align:center; margin-top:13px; font-size:12px; font-weight:400; color:var(--lwl-ink-soft); text-decoration:none; transition:color .18s; }
.lw-login .lw-forgot:hover { color:var(--lwl-cobalt); }

/* footer is the positioning context for the "our secret" page-peel */
.site-footer { position: relative; }

/* "Message sent" success screen (contact forms) — big blue check */
.lw-form-success { text-align: center; padding: 26px 10px; animation: lw-fs-in .35s ease both; }
.lw-fs-check { width: 84px; height: 84px; border-radius: 50%; background: var(--blue); display: grid;
  place-items: center; margin: 0 auto 16px; box-shadow: 0 14px 32px -12px rgba(37,99,217,.55);
  animation: lw-fs-pop .45s cubic-bezier(.2,.8,.2,1.2) both; }
.lw-fs-check svg { width: 46px; height: 46px; color: #fff; }
.lw-form-success h4 { color: var(--blue); font-size: 1.5rem; margin: 0 0 6px; }
.lw-form-success p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
@keyframes lw-fs-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lw-fs-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Subscribe preferences popup */
.lw-sub-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(15,35,71,.55);
  display: grid; place-items: center; padding: 20px; }
.lw-sub-overlay[hidden] { display: none; }
.lw-sub-card { position: relative; background: #fff; width: min(420px, 94vw); border-radius: 18px;
  padding: 30px 28px 26px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); animation: lw-fs-in .28s ease both; }
.lw-sub-card h3 { margin: 0 0 4px; font-size: 1.45rem; color: var(--ink); }
.lw-sub-card .lw-sub-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: .92rem; }
.lw-sub-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.7rem;
  line-height: 1; color: #9aa6b4; cursor: pointer; }
.lw-sub-x:hover { color: var(--ink); }
.lw-sub-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s; }
.lw-sub-opt:hover { border-color: var(--blue); background: #f5f8fe; }
.lw-sub-opt input { width: 19px; height: 19px; accent-color: var(--blue); cursor: pointer; flex: none; }
.lw-sub-all { margin-top: 4px; font-weight: 700; }
.lw-sub-confirm { width: 100%; margin-top: 8px; justify-content: center; }

/* ============================================================
   Quote request CTA row + Homeowners / Auto quote modal
   ============================================================ */
.quote-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

.lw-quote-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-start; justify-content: center; padding: 28px 14px; overflow-y: auto; }
.lw-quote-overlay[hidden] { display: none; }
.lw-quote-backdrop { position: fixed; inset: 0; background: rgba(15, 35, 71, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lw-quote-dialog { position: relative; z-index: 1; width: 100%; max-width: 720px; margin: auto; }
.lw-quote-x { position: absolute; top: 18px; right: 18px; z-index: 5; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.45); background: rgba(255,255,255,0.18); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: background .15s; }
.lw-quote-x:hover { background: rgba(255,255,255,0.30); }

#lw-quote-root, #lw-quote-root * { box-sizing: border-box; }
#lw-quote-root {
  --cobalt: #1546c9; --cobalt-deep: #0d2f8f; --sky: #4fc0f5; --sky-soft: #e8f4fd;
  --charcoal: #2b303a; --charcoal-soft: #5a626f; --qline: #e4e8ef; --ok: #22a06b;
  --grad: linear-gradient(120deg, var(--cobalt-deep) 0%, var(--cobalt) 45%, var(--sky) 100%);
  font-family: 'Poppins', system-ui, sans-serif; color: var(--charcoal); -webkit-font-smoothing: antialiased;
}
#lw-quote-root .lw-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -24px rgba(11, 31, 71, 0.55); }
#lw-quote-root .lw-head { position: relative; padding: 26px 30px 22px; text-align: center; background: var(--grad); color: #fff; }
#lw-quote-root .lw-logo { height: 46px; width: auto; max-width: 220px; display: block; margin: 0 auto; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
#lw-quote-root .lw-title { font-size: 23px; font-weight: 600; margin: 14px 0 2px; line-height: 1.25; color: #fff; }
#lw-quote-root .lw-head-sub { font-size: 13px; color: rgba(255,255,255,.85); margin: 0; }

#lw-quote-root .lw-prog-wrap { padding: 16px 30px 0; }
#lw-quote-root .lw-prog { height: 6px; background: var(--qline); border-radius: 99px; overflow: hidden; }
#lw-quote-root .lw-prog-bar { height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .45s cubic-bezier(.65,0,.35,1); }
#lw-quote-root .lw-prog-txt { font-size: 11.5px; color: var(--charcoal-soft); font-weight: 500; margin-top: 7px; letter-spacing: .02em; }

#lw-quote-root .lw-step { display: none; }
#lw-quote-root .lw-step[data-active] { display: block; animation: lwqStepIn .35s cubic-bezier(.2,.7,.3,1) both; }
#lw-quote-root .lw-step .lw-sec:last-child { margin-bottom: 4px; }
@keyframes lwqStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

#lw-quote-root .lw-body { padding: 18px 30px 6px; max-height: 56vh; overflow-y: auto; }
#lw-quote-root .lw-sec { margin: 0 0 22px; }
#lw-quote-root .lw-sec-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cobalt); margin: 0 0 12px; padding-bottom: 7px; border-bottom: 1px solid var(--qline); }
#lw-quote-root .lw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#lw-quote-root .lw-field { margin: 0; }
#lw-quote-root .lw-field.full { grid-column: 1 / -1; }
#lw-quote-root .lw-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--charcoal-soft); margin: 0 0 6px; letter-spacing: .01em; }
#lw-quote-root .lw-label .req { color: #d6453d; }
#lw-quote-root .lw-input { width: 100%; font-family: inherit; font-size: 14px; color: var(--charcoal); padding: 11px 13px; background: #fff; border: 1px solid var(--qline); border-radius: 10px; outline: none; transition: border-color .18s, box-shadow .18s; }
#lw-quote-root select.lw-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a626f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
#lw-quote-root .lw-input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(21,70,201,.12); }
#lw-quote-root .lw-input::placeholder { color: #aab1bd; }
#lw-quote-root .lw-input.bad { border-color: #e0857e; box-shadow: 0 0 0 4px rgba(214,69,61,.10); }
#lw-quote-root textarea.lw-input { resize: vertical; min-height: 80px; line-height: 1.5; }

#lw-quote-root .lw-reveal { display: none; grid-column: 1 / -1; }
#lw-quote-root .lw-reveal.open { display: block; }

#lw-quote-root .lw-repeat-item { position: relative; border: 1px solid var(--qline); border-radius: 12px; padding: 16px 16px 4px; margin: 0 0 12px; background: #fbfcfe; }
#lw-quote-root .lw-repeat-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
#lw-quote-root .lw-repeat-label { font-size: 12.5px; font-weight: 600; color: var(--charcoal); }
#lw-quote-root .lw-repeat-remove { border: 0; background: none; color: #c0414a; font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 2px 4px; }
#lw-quote-root .lw-repeat-remove:hover { text-decoration: underline; }
#lw-quote-root .lw-add { display: inline-flex; align-items: center; gap: 7px; border: 1px dashed var(--cobalt); background: var(--sky-soft); color: var(--cobalt); font-family: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: background .15s; }
#lw-quote-root .lw-add:hover { background: #dbedfb; }

#lw-quote-root .lw-err { display: flex; align-items: center; gap: 7px; margin: 4px 0 8px; font-size: 13px; font-weight: 500; color: #d6453d; }
#lw-quote-root .lw-err svg { width: 16px; height: 16px; flex: 0 0 16px; }

#lw-quote-root .lw-foot { display: flex; align-items: center; gap: 12px; padding: 16px 30px 26px; border-top: 1px solid var(--qline); }
#lw-quote-root .lw-btn { font-family: inherit; font-size: 14px; font-weight: 600; border-radius: 11px; padding: 13px 22px; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; }
#lw-quote-root .lw-submit, #lw-quote-root .lw-next { margin-left: auto; color: #fff; background: var(--grad); box-shadow: 0 12px 24px -12px rgba(21,70,201,.7); }
#lw-quote-root .lw-submit:hover, #lw-quote-root .lw-next:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(21,70,201,.7); }
#lw-quote-root .lw-submit:disabled { opacity: .6; cursor: default; transform: none; }
#lw-quote-root .lw-cancel, #lw-quote-root .lw-back { background: #fff; border-color: var(--qline); color: var(--charcoal-soft); transform: none; filter: none; }
#lw-quote-root .lw-cancel:hover, #lw-quote-root .lw-back:hover { border-color: var(--charcoal-soft); color: var(--charcoal); }

#lw-quote-root .lw-done { text-align: center; padding: 30px 24px; }
#lw-quote-root .lw-done-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); }
#lw-quote-root .lw-done-mark svg { width: 34px; height: 34px; }
#lw-quote-root .lw-done h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
#lw-quote-root .lw-done p { font-size: 14px; color: var(--charcoal-soft); max-width: 400px; margin: 0 auto; line-height: 1.55; }

@media (max-width: 520px) {
  #lw-quote-root .lw-grid { grid-template-columns: 1fr; }
  #lw-quote-root .lw-body { padding: 18px 18px 4px; max-height: 64vh; }
  #lw-quote-root .lw-head, #lw-quote-root .lw-foot { padding-left: 18px; padding-right: 18px; }
}
#lw-quote-root .lw-sec-desc { font-size: 12.5px; color: var(--charcoal-soft); margin: -4px 0 14px; line-height: 1.5; }

/* ============================================================
   Google Reviews strip (slim carousel above the footer)
   ============================================================ */
.reviews-strip { padding: 30px 0 38px; background: var(--bg-alt, #f5f7fb); border-top: 1px solid var(--line); }
.reviews-strip[hidden] { display: none; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 18px; }
.reviews-head__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reviews-g { width: 20px; height: 20px; flex: none; }
.reviews-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.reviews-summary { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.92rem; }
.reviews-summary .rv-rate-num { font-weight: 700; color: var(--ink); }
.reviews-summary .rv-rate-stars { color: #fbbc05; letter-spacing: 1px; }
.reviews-summary .rv-rate-stars .rv-star.off { color: #d9dee7; }
.reviews-cta { white-space: nowrap; }

.reviews-carousel { position: relative; padding: 0; }
/* Plain native horizontal scroller — the most compatible pattern across
   devices, including iOS Safari. No transform / max-content / will-change
   (those can render zero-size on iOS). A gentle auto-advance runs in JS via
   scrollBy({behavior:'smooth'}); users can also swipe. */
.rv-viewport {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none; scrollbar-width: none;
}
.rv-viewport::-webkit-scrollbar { display: none; }
.rv-track { display: flex; gap: 16px; padding: 4px; }
.rv-card {
  flex: 0 0 340px; width: 340px; scroll-snap-align: start; box-sizing: border-box;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.rv-card__head { display: flex; align-items: center; gap: 11px; }
.rv-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #e9edf3; }
.rv-avatar--blank { display: grid; place-items: center; color: #fff; font-size: 0.85rem; font-weight: 700; background: var(--blue); }
.rv-author { font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.1; }
.rv-stars { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.rv-star { color: #fbbc05; font-size: 0.85rem; letter-spacing: 1px; }
.rv-star.off { color: #d9dee7; }
.rv-when { color: var(--muted); font-size: 0.78rem; }
.rv-text {
  margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--blue); font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); transition: background .15s, color .15s, box-shadow .15s;
}
.rv-nav:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow-lg); }
.rv-prev { left: 0; }
.rv-next { right: 0; }
@media (max-width: 640px) {
  .reviews-strip { padding: 24px 0 30px; }
  .reviews-head { margin-bottom: 14px; }
  .reviews-carousel { padding: 0 4px; }
  .rv-nav { display: none; }
  .rv-card { flex-basis: 300px; width: 300px; }
}
@media (max-width: 380px) {
  .rv-card { flex-basis: 270px; width: 270px; }
}

/* ===== Legacy Insurance — image hero with overlaid CTA (mirrors compliance) ===== */
.lc-hero { display: flex; align-items: center; }
.lc-hero .hero-video__media { object-position: center; }
.lc-hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,16,32,0.62) 0%, rgba(8,16,32,0.34) 50%, rgba(8,16,32,0.08) 100%);
}
.lc-hero__inner { position: relative; z-index: 3; color: #fff; width: 100%; padding-top: 64px; }
.lc-hero__title {
  font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 800; line-height: 1.02;
  margin: 0; color: #fff; letter-spacing: -0.01em;
}
.lc-hero__title em {
  color: var(--blue-light); font-style: italic;
  animation: lc-protect-glow 9s ease-in-out infinite;
}
@keyframes lc-protect-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(255,255,255,0.10), 0 0 14px rgba(255,255,255,0.04); }
  50%      { text-shadow: 0 0 10px rgba(255,255,255,0.22), 0 0 18px rgba(255,255,255,0.10); }
}
.lc-hero__sub {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: rgba(255,255,255,0.92);
  margin: 20px 0 30px; font-weight: 500; max-width: 34ch;
}
.lc-hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lc-hero__phone {
  color: #fff; font-weight: 700; font-size: 1.1rem;
  border: 1.6px solid rgba(255,255,255,0.55); padding: 14px 28px; border-radius: 999px;
}
.lc-hero__phone:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 700px) {
  .lc-hero__inner { text-align: center; padding-top: 130px; }
  .lc-hero__cta { justify-content: center; }
  .lc-hero__sub { margin-left: auto; margin-right: auto; }
}
