/* =========================================================================
   Digital Facade — design system
   Brand: lone-star pin, Texas Navy / Lone Star Red / Review Gold, Poppins.
   Created for the Digital Facade program by Rivera Educational Consulting.
   Palette + type are LOCKED (see brand CLAUDE.md). Gold = ratings only.
   ========================================================================= */

:root {
  /* --- brand palette (locked) --- */
  --navy:        #002868;   /* Texas Navy  — structure, dark sections */
  --navy-deep:   #001A45;   /* deeper navy for depth on dark panels   */
  --navy-700:    #123a7a;
  --red:         #BF0A30;   /* Lone Star Red — accents, primary CTA   */
  --red-deep:    #9c0726;
  --gold:        #F5A623;   /* Review Gold — rating stars ONLY        */
  --ink:         #1F2933;   /* Profile Ink — body text                */
  --white:       #FFFFFF;

  /* --- neutral scale (warm, civic, not stark SaaS white) --- */
  --paper:       #FBFAF6;   /* page background */
  --paper-2:     #F4F1EA;   /* alt section     */
  --cloud:       #ECE8DF;   /* hairline fills  */
  --muted:       #5A6472;   /* secondary text  */
  --muted-soft:  #8A93A0;

  /* on-dark text */
  --on-navy:        #EAF0FB;
  --on-navy-muted:  #A9B8D6;

  /* lines */
  --line:        rgba(0,40,104,.12);
  --line-strong: rgba(0,40,104,.20);
  --line-on-navy: rgba(255,255,255,.14);

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

  --step--1: clamp(.86rem, .84rem + .1vw, .92rem);
  --step-0:  clamp(1.02rem, .99rem + .16vw, 1.14rem);
  --step-1:  clamp(1.2rem, 1.13rem + .34vw, 1.42rem);
  --step-2:  clamp(1.45rem, 1.32rem + .64vw, 1.9rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.2vw, 2.7rem);
  --step-4:  clamp(2.25rem, 1.8rem + 2.2vw, 3.9rem);
  --step-5:  clamp(2.7rem, 2.0rem + 3.4vw, 5rem);

  /* space */
  --container: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  /* elevation — soft, navy-tinted (no harsh gray drop shadows) */
  --shadow-sm: 0 1px 2px rgba(11,30,63,.06), 0 2px 6px rgba(11,30,63,.05);
  --shadow-md: 0 10px 30px rgba(11,30,63,.10), 0 2px 8px rgba(11,30,63,.06);
  --shadow-lg: 0 30px 70px rgba(11,30,63,.16), 0 8px 22px rgba(11,30,63,.08);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:  cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 450;
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.08; margin: 0; color: var(--navy); letter-spacing: -0.02em; font-weight: 700; overflow-wrap: break-word; }

/* prevent grid/flex tracks from blowing out past the viewport (min-width:auto guard) */
.hero-grid > *, .compare > *, .math-wrap > *, .crm > *, .map-wrap > *,
.price-cards > *, .footer-grid > *, .pillars > *, .roles > *, .post-grid > *,
.stat-row > *, .grid > *, .price-ladder > * { min-width: 0; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1.05em; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 650; color: var(--navy); }
ul, ol { margin: 0 0 1.05em; padding-left: 1.2em; }
li { margin: .35em 0; }

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

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding-block: var(--section-y); position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--on-navy-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
  margin: 0 0 1rem;
}
.section--navy .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead { font-size: var(--step-1); color: var(--muted); margin-top: .9rem; font-weight: 450; }
.section--navy .section-head p.lead { color: var(--on-navy-muted); }

.lead { font-size: var(--step-1); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--red); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font); font-weight: 600; font-size: var(--step-0);
  line-height: 1; text-align: center; text-decoration: none;
  padding: .95em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
  box-shadow: 0 6px 18px rgba(191,10,48,.24);
}
.btn:hover { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-deep); box-shadow: 0 10px 26px rgba(191,10,48,.30); }
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 1.08em 1.9em; font-size: var(--step-0); }

.btn--ghost {
  --_bg: transparent; --_fg: var(--navy);
  border-color: var(--line-strong); box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { --_bg: var(--navy); --_fg: #fff; border-color: var(--navy); box-shadow: var(--shadow-sm); }
}
.btn--on-navy { --_bg: var(--white); --_fg: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.24); }
@media (hover: hover) and (pointer: fine) {
  .btn--on-navy:hover { --_bg: #eef3ff; }
}
.btn--ghost-on-navy { --_bg: transparent; --_fg: #fff; border-color: var(--line-on-navy); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost-on-navy:hover { --_bg: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
}

.textlink { font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: .4em; }
.textlink svg { transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .textlink:hover svg { transform: translateX(3px); } }
.section--navy .textlink { color: var(--gold); }

/* ---------- site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,250,246,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-lockup img { height: 34px; width: auto; }
.brand-lockup:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 550; font-size: .98rem; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--red); text-decoration: none; } }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav .nav-actions .btn--ghost { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: var(--white); cursor: pointer; color: var(--navy);
  }
  .mobile-menu {
    position: fixed; inset: 74px 0 auto 0; z-index: 55;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem; box-shadow: var(--shadow-md);
    display: grid; gap: .3rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { padding: .85rem .4rem; font-weight: 550; color: var(--navy); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: .8rem; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45em .95em .45em .55em; font-size: .82rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.16); }
.hero h1 {
  font-size: var(--step-5); font-weight: 700; letter-spacing: -0.035em;
  color: var(--navy); margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--red); }
.hero .sub { font-size: var(--step-1); color: var(--muted); max-width: 34ch; margin-bottom: 1.9rem; font-weight: 450; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { margin-top: 1.3rem; font-size: .9rem; color: var(--muted-soft); display: flex; align-items: center; gap: .5em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .sub { max-width: 46ch; }
  /* copy leads on mobile; product card follows */
  .hero-visual { margin-top: .5rem; }
  .gbp-score-chip { right: 4px; }
}

/* ---------- signature GBP card (rebuilt in HTML/CSS) ---------- */
.hero-visual { position: relative; }
.gbp-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 3vw, 1.9rem); border: 1px solid var(--line);
  max-width: 430px; margin-inline: auto; position: relative; z-index: 2;
}
.gbp-top { display: flex; align-items: center; gap: 1rem; }
.gbp-thumb {
  width: 66px; height: 66px; border-radius: 16px; flex: none;
  background: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.gbp-thumb svg { width: 42px; height: auto; }
.gbp-name { font-weight: 650; color: var(--ink); font-size: 1.16rem; letter-spacing: -.01em; }
.gbp-cat { color: var(--muted); font-size: .86rem; margin-top: 1px; }
.gbp-rating { display: flex; align-items: center; gap: .5em; margin-top: 1.15rem; }
.gbp-rating .num { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.gbp-reviews { color: var(--muted); font-size: .9rem; }
.gbp-divider { height: 1px; background: var(--line); margin: 1.1rem 0; }
.gbp-meta { display: grid; gap: .6rem; }
.gbp-meta-row { display: flex; align-items: center; gap: .7em; font-size: .92rem; color: var(--ink); }
.gbp-meta-row svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
.gbp-score-chip {
  position: absolute; z-index: 3; right: -14px; top: -18px;
  background: var(--navy); color: #fff; border-radius: 14px; padding: .7rem .95rem;
  box-shadow: var(--shadow-md); text-align: center; border: 2px solid #fff;
}
.gbp-score-chip .big { font-size: 1.5rem; font-weight: 700; line-height: 1; color: #fff; }
.gbp-score-chip .lbl { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 3px; font-weight: 600; }
.hero-visual .halo {
  position: absolute; inset: -8% -12% -12% -8%; z-index: 0;
  background: radial-gradient(60% 55% at 62% 40%, rgba(0,40,104,.10), transparent 70%);
  filter: blur(6px);
}

/* star glyph color */
.star-gold { color: var(--gold); fill: var(--gold); }
.star-empty { color: #d9d5cc; fill: #d9d5cc; }

/* ---------- positioning strip (BRE tagline) ---------- */
.positioning-strip { background: var(--paper-2); border-block: 1px solid var(--line); padding-block: clamp(1.5rem, 3.2vw, 2.4rem); text-align: center; }
.positioning-strip p { font-family: var(--font); font-weight: 600; font-size: var(--step-2); color: var(--navy); letter-spacing: -.02em; line-height: 1.25; max-width: 24ch; margin: 0 auto; }
.positioning-strip strong { color: var(--red); font-weight: 700; }

/* ---------- generic card + grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
}
.card .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(0,40,104,.07); color: var(--navy); margin-bottom: 1rem;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

/* ---------- the reframe / compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line); position: relative;
}
.compare-col.old { background: var(--paper-2); }
.compare-col.new { background: var(--navy); color: var(--on-navy); border-color: transparent; box-shadow: var(--shadow-md); }
.compare-col.new h3 { color: #fff; }
.compare-tag {
  display: inline-flex; align-items: center; gap: .5em; font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: .35em .75em; border-radius: 999px; margin-bottom: 1rem;
}
.compare-col.old .compare-tag { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.compare-col.new .compare-tag { background: rgba(245,166,35,.16); color: var(--gold); }
.compare-list { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .75rem; }
.compare-list li { display: flex; gap: .65em; align-items: flex-start; font-size: .98rem; margin: 0; }
.compare-list li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.compare-col.old .compare-list li { color: var(--muted); }
.compare-col.old .compare-list svg { color: var(--muted-soft); }
.compare-col.new .compare-list li { color: var(--on-navy); }
.compare-col.new .compare-list svg { color: var(--gold); }

/* ---------- stat figures ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { padding: 1.2rem 0; }
.stat .fig { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.section--navy .stat .fig { color: #fff; }
.stat .fig .u { color: var(--red); }
.section--navy .stat .fig .u { color: var(--gold); }
.stat .cap { color: var(--muted); font-size: .92rem; margin-top: .55rem; max-width: 22ch; }
.section--navy .stat .cap { color: var(--on-navy-muted); }
.stat .src { color: var(--muted-soft); font-size: .74rem; margin-top: .35rem; }
.section--navy .stat .src { color: rgba(169,184,214,.7); }

/* ---------- the math panel ---------- */
.math-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: stretch; }
@media (max-width: 820px) { .math-wrap { grid-template-columns: 1fr; } }
.math-card {
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 260px;
}
.math-card .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.math-card .amount { font-size: clamp(2.3rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.math-card .amount small { display: block; font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: .6rem; opacity: .85; }
.math-card .who { margin-top: 1.3rem; font-size: 1rem; }
.math-card.old { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.math-card.old .kicker { color: var(--muted); }
.math-card.old .amount { color: var(--ink); }
.math-card.new { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.math-card.new .kicker { color: var(--gold); }
.math-card.new .amount { color: #fff; }
.math-card.new .who { color: var(--on-navy-muted); }
.math-card.new .pin-watermark { position: absolute; right: -20px; bottom: -30px; width: 180px; opacity: .10; }
.math-verdict { text-align: center; max-width: 640px; margin: clamp(2rem,4vw,3rem) auto 0; font-size: var(--step-1); color: var(--navy); font-weight: 500; }
.math-verdict strong { color: var(--red); }

/* ---------- pillars (3) ---------- */
.pillars { counter-reset: pillar; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2.4vw,1.5rem); }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2rem); box-shadow: var(--shadow-sm); }
.pillar .num { counter-increment: pillar; font-size: .78rem; font-weight: 700; letter-spacing: .13em; color: var(--red); text-transform: uppercase; }
.pillar .num::before { content: "Step 0" counter(pillar); }
.pillar h3 { margin: .9rem 0 .3rem; font-size: var(--step-2); }
.pillar .analogy { font-size: .9rem; color: var(--red); font-weight: 550; font-style: italic; margin-bottom: .8rem; }
.pillar p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.pillar .p-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 1.1rem; }
.pillar .p-ic svg { width: 24px; height: 24px; }

/* ---------- self-serve roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(.9rem,2vw,1.3rem); }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }
.role { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line-on-navy); border-radius: var(--radius); padding: 1.3rem; }
.role .r-ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(245,166,35,.16); color: var(--gold); display: grid; place-items: center; flex: none; }
.role .r-ic svg { width: 22px; height: 22px; }
.role h4 { color: #fff; font-size: 1.02rem; margin-bottom: .25rem; }
.role p { color: var(--on-navy-muted); font-size: .9rem; margin: 0; }

/* doubt-removal row ("you don't need...") */
.no-need { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,2.2vw,1.6rem); margin-bottom: clamp(2.2rem,4.5vw,3.25rem); }
@media (max-width: 860px) { .no-need { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .no-need { grid-template-columns: 1fr; } }
.nn { display: flex; gap: .7rem; align-items: flex-start; }
.nn svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.nn b { display: block; color: #fff; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.nn span { display: block; color: var(--on-navy-muted); font-size: .9rem; margin-top: .2rem; line-height: 1.5; }
.fits-head { color: #fff; font-size: var(--step-1); font-weight: 600; text-align: center; letter-spacing: -.01em; margin: 0 auto 1.4rem; max-width: 24ch; }

/* ---------- CRM dashboard mock ---------- */
.crm { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
@media (max-width: 900px) { .crm { grid-template-columns: 1fr; } }
.crm-feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.crm-feature-list li { display: flex; gap: .8em; align-items: flex-start; }
.crm-feature-list .fi { width: 34px; height: 34px; border-radius: 9px; background: rgba(0,40,104,.07); color: var(--navy); display: grid; place-items: center; flex: none; }
.crm-feature-list .fi svg { width: 18px; height: 18px; }
.crm-feature-list b { display: block; color: var(--navy); font-weight: 600; }
.crm-feature-list span { color: var(--muted); font-size: .93rem; }

.window {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d9d5cc; }
.window-bar .addr { margin-left: .5rem; font-size: .74rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .25em .7em; }
.window-body { padding: 1.1rem; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dash-title { font-weight: 650; color: var(--navy); font-size: 1rem; }
.dash-sub { font-size: .74rem; color: var(--muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-bottom: 1rem; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: .8rem .85rem; }
.kpi .k { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.kpi .v.up { color: #16a34a; }
.kpi .d { font-size: .68rem; color: var(--muted-soft); }
.dash-progress { margin-bottom: 1rem; }
.dash-progress .plabel { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-bottom: .4rem; }
.bar { height: 9px; border-radius: 999px; background: var(--cloud); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--red)); }
.dash-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.dash-table th { text-align: left; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-soft); font-weight: 600; padding: .5rem .5rem; border-bottom: 1px solid var(--line); }
.dash-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.dash-table tr:last-child td { border-bottom: none; }
.score-pill { display: inline-flex; min-width: 34px; justify-content: center; font-weight: 700; font-size: .78rem; padding: .18em .5em; border-radius: 7px; }
.score-pill.hi { background: rgba(22,163,74,.14); color: #15803d; }
.score-pill.mid { background: rgba(245,166,35,.18); color: #b45309; }
.score-pill.lo { background: rgba(191,10,48,.12); color: var(--red-deep); }
.tag-mini { font-size: .68rem; padding: .2em .55em; border-radius: 6px; background: rgba(0,40,104,.07); color: var(--navy); font-weight: 600; }

/* ---------- cities map ---------- */
.map-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem,4vw,3.25rem); align-items: center; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }
.tx-map { position: relative; width: 100%; max-width: 680px; margin-inline: auto; }
.tx-map svg { width: 100%; height: auto; overflow: visible; }
.tx-silhouette { fill: rgba(180,205,255,.10); stroke: rgba(200,220,255,.34); stroke-width: 2; }
.city-list { display: grid; gap: .7rem; }
.city-item {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-on-navy); border-radius: 13px;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .city-item:hover { transform: translateX(4px); background: rgba(255,255,255,.09); } }
.city-item .cpin { width: 26px; flex: none; }
.city-item .cname { font-weight: 600; color: #fff; }
.city-item .cregion { font-size: .8rem; color: var(--on-navy-muted); }
.city-item .cstatus { margin-left: auto; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; white-space: nowrap; }
.cstatus.live { background: rgba(22,163,74,.2); color: #4ade80; }
.cstatus.soon { background: rgba(245,166,35,.16); color: var(--gold); }

/* map pins */
.map-pin { cursor: default; }
.map-pin .pin-label {
  font-family: var(--font); font-size: 11px; font-weight: 600; fill: #fff;
  paint-order: stroke; stroke: var(--navy-deep); stroke-width: 3.5px; stroke-linejoin: round;
}
.map-pin .pin-dot-live { fill: #4ade80; }
.map-pin .pin-dot-soon { fill: var(--gold); }
.rgv-cap { font-family: var(--font); font-size: 12px; font-weight: 600; fill: var(--gold); letter-spacing: .01em; paint-order: stroke; stroke: var(--navy-deep); stroke-width: 3px; stroke-linejoin: round; }

/* ---------- pricing ---------- */
.pricing-lede { max-width: 640px; }
.price-ladder { display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; margin-top: 1.5rem; }
@media (max-width: 820px) { .price-ladder { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .price-ladder { grid-template-columns: 1fr; } }
.rung { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.1rem; text-align: left; position: relative; }
.rung .pop { font-size: .74rem; color: var(--muted); font-weight: 550; }
.rung .amt { font-size: 1.7rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; margin-top: .2rem; line-height: 1; }
.rung .amt small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.rung .per { font-size: .78rem; color: var(--muted-soft); margin-top: .3rem; }

.onboarding-note { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.onboarding-note .ob-plus { font-size: 1.6rem; font-weight: 700; color: var(--red); line-height: 1; flex: none; }
.onboarding-note b { display: block; color: var(--navy); font-weight: 650; }
.onboarding-note span { display: block; color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.tier-sub { font-size: .92rem; color: var(--muted); }

.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,2.5vw,1.5rem); margin-top: 1.6rem; }
.price-cards--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
@media (max-width: 820px) { .price-cards { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.2rem); position: relative; box-shadow: var(--shadow-sm); }
.price-card.featured { border: 1.5px solid var(--navy); box-shadow: var(--shadow-md); }
.price-card .flag { position: absolute; top: -13px; left: clamp(1.6rem,3vw,2.2rem); background: var(--red); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; }
.price-card .tier-name { font-size: var(--step-1); font-weight: 650; color: var(--navy); }
.price-card .tier-for { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.price-card .tier-price { margin: 1.1rem 0; font-size: 1.05rem; color: var(--ink); font-weight: 550; }
.price-card .tier-price b { font-size: 1.9rem; color: var(--navy); font-weight: 700; letter-spacing: -.02em; }
.feat-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.feat-list li { display: flex; gap: .6em; align-items: flex-start; font-size: .95rem; }
.feat-list li svg { width: 19px; height: 19px; color: #16a34a; flex: none; margin-top: 2px; }
.price-fine { text-align: center; color: var(--muted-soft); font-size: .84rem; margin-top: 1.4rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 200ms var(--ease-out); }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; font-weight: 600; color: var(--navy); font-size: 1.04rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; flex: none; color: var(--red); transition: transform 220ms var(--ease-out); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 1.35rem 1.3rem; color: var(--muted); font-size: .98rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2.4vw,1.6rem); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; } }
.post-thumb { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; overflow: hidden; margin: 8px 8px 0; border-radius: 18px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb.t-navy { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); }
.post-thumb.t-red { background: linear-gradient(150deg, #8f1d3a, var(--navy-deep)); }
.post-thumb.t-paper { background: linear-gradient(150deg, #26426f, var(--navy)); }
.post-thumb .glyph { width: 74px; opacity: .92; }
.post-thumb .topic { position: absolute; top: .8rem; left: .8rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.2); padding: .3em .7em; border-radius: 999px; }
.post-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { color: var(--navy); font-size: 1.16rem; margin-bottom: .5rem; line-height: 1.25; }
.post-body p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.post-body .readmore { margin-top: auto; font-weight: 600; color: var(--red); font-size: .9rem; display: inline-flex; align-items: center; gap: .4em; }
.post-meta { font-size: .78rem; color: var(--muted-soft); margin-bottom: .6rem; }

/* ---------- article ---------- */
.article-hero { padding-top: clamp(2.5rem,6vw,4rem); padding-bottom: clamp(1.5rem,3vw,2.5rem); }
.article-hero .kicker { color: var(--red); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.article-hero h1 { font-size: var(--step-4); max-width: 20ch; margin: 1rem 0 1rem; }
.article-hero .dek { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.article-hero .byline { margin-top: 1.5rem; font-size: .88rem; color: var(--muted-soft); display: flex; align-items: center; gap: .6em; }
.article-hero-img { display: block; width: 100%; margin: 1.8rem 0 0; border-radius: 22px; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow-md); }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.1rem; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: var(--step-2); margin: 2.4rem 0 .9rem; }
.prose h3 { font-size: var(--step-1); margin: 1.9rem 0 .6rem; color: var(--navy); }
.prose p { margin: 0 0 1.25em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin: .5em 0; }
.prose strong { color: var(--navy); }
.prose blockquote {
  margin: 1.8rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--red);
  background: var(--paper-2); border-radius: 0 12px 12px 0; font-size: 1.16rem;
  color: var(--navy); font-weight: 500;
}
.prose .callout {
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin: 2rem 0; box-shadow: var(--shadow-md);
}
.prose .callout p { margin: 0; color: var(--on-navy); }
.prose .callout strong { color: var(--gold); }
.prose .stat-inline { font-size: .82rem; color: var(--muted-soft); font-style: italic; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article-cta { max-width: 720px; margin: 3rem auto 0; }

/* ---------- final CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--step-4); max-width: 18ch; margin: 0 auto 1rem; color: #fff; }
.cta-band p { max-width: 44ch; margin: 0 auto 2rem; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .halo-pin { width: 64px; margin: 0 auto 1.5rem; }

/* ---------- snapshot lead-capture ---------- */
.snapshot-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 880px) { .snapshot-wrap { grid-template-columns: 1fr; } }
.snapshot-copy h2 { font-size: var(--step-3); color: #fff; margin-bottom: .9rem; }
.snapshot-copy > p { color: var(--on-navy-muted); max-width: 44ch; }
.snapshot-points { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: .7rem; }
.snapshot-points li { display: flex; gap: .6em; align-items: flex-start; color: var(--on-navy); font-size: .98rem; }
.snapshot-points svg { color: var(--gold); flex: none; margin-top: 2px; }
.snapshot-note { color: var(--on-navy-muted); font-size: .9rem; font-style: italic; margin: 0; }
.snapshot-form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
.snapshot-form .field { margin-bottom: 1rem; }
.snapshot-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.snapshot-form .opt { font-weight: 450; color: var(--muted-soft); font-size: .82rem; }
.snapshot-form input { width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 11px; padding: .8em .9em; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.snapshot-form input::placeholder { color: var(--muted-soft); }
.snapshot-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,40,104,.14); }
.snapshot-form .btn { width: 100%; margin-top: .4rem; }
.snapshot-form .form-fallback { text-align: center; font-size: .86rem; color: var(--muted); margin: 1rem 0 0; }
.snapshot-form .hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: clamp(3rem,5vw,4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.footer-grid img.flogo { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.site-footer a { color: var(--on-navy-muted); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; text-decoration: none; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer-about { font-size: .92rem; max-width: 34ch; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(169,184,214,.7); }
.footer-bottom .rec { color: var(--gold); font-weight: 500; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }

/* pin drop for map */
.map-pin { opacity: 0; transform: translateY(-14px); }
.tx-map.in .map-pin { opacity: 1; transform: none; transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
.tx-map.in .map-pin:nth-child(2) { transition-delay: 120ms; }
.tx-map.in .map-pin:nth-child(3) { transition-delay: 220ms; }
.tx-map.in .map-pin:nth-child(4) { transition-delay: 320ms; }
.tx-map.in .map-pin:nth-child(5) { transition-delay: 420ms; }
.tx-map.in .map-pin:nth-child(6) { transition-delay: 520ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .map-pin { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .post-card, .city-item { transition: none !important; }
}

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .8em 1.2em; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

/* small helpers */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.eyebrow--gold { color: var(--gold); }
.hide-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
