/* ==========================================================================
   sellwithXP — XP Business Brokerage
   Brand: Midnight Blue #1B2A4A · Steel #4A4A4A · Gold #C9A84C
   ========================================================================== */

:root {
  --xp-midnight: #1B2A4A;
  --xp-midnight-deep: #13203A;
  --xp-steel: #4A4A4A;
  --xp-gold: #C9A84C;        /* brand gold — fills, rules, on dark */
  --xp-gold-text: #926D10;   /* same hue darkened for AA text on white (4.75:1) */
  --xp-white: #FFFFFF;
  --xp-mist: #F4F5F7;
  --xp-tint: #E8EBF1;
  --xp-border: #D9DBE0;
  --xp-ink: #2A2A2A;

  --xp-font-head: 'Montserrat', 'Inter', Calibri, Arial, sans-serif;
  --xp-font-body: 'Roboto', Arial, Helvetica, sans-serif;

  --wrap: 1140px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(27, 42, 74, .06), 0 8px 24px rgba(27, 42, 74, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--xp-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--xp-ink);
  background: var(--xp-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--xp-font-head);
  color: var(--xp-midnight);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; color: var(--xp-steel); }
a { color: var(--xp-midnight); transition: color .15s ease; }
a:hover { color: var(--xp-gold-text); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

.kicker {
  font-family: var(--xp-font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--xp-steel);
  display: block;
  margin-bottom: .75rem;
}
.kicker--light { color: var(--xp-gold); }

.rule { border: 0; border-top: 3px solid var(--xp-gold); width: 52px; margin: 0 0 1.4rem; }
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--xp-font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--xp-gold); color: var(--xp-midnight); box-shadow: 0 4px 14px rgba(201,168,76,.28); }
.btn-gold:hover { background: #d8b95f; color: var(--xp-midnight); }
.btn-navy { background: var(--xp-midnight); color: var(--xp-white); }
.btn-navy:hover { background: var(--xp-midnight-deep); color: var(--xp-white); }
.btn-ghost { background: transparent; color: var(--xp-white); border-color: rgba(255,255,255,.42); }
.btn-ghost:hover { border-color: var(--xp-gold); color: var(--xp-gold); }
.btn-outline { background: transparent; color: var(--xp-midnight); border-color: var(--xp-border); }
.btn-outline:hover { border-color: var(--xp-gold); color: var(--xp-midnight); }
.btn-block { width: 100%; }
.btn-sm { padding: .65rem 1.1rem; font-size: .9rem; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--xp-gold); color: var(--xp-midnight);
  padding: .75rem 1.25rem; font-family: var(--xp-font-head); font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--xp-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.logo { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  font-family: var(--xp-font-head); font-weight: 700; font-size: 1.7rem;
  color: var(--xp-midnight); letter-spacing: -.02em; line-height: 1;
  border-bottom: 3px solid var(--xp-gold); padding-bottom: 2px;
}
.logo-word { font-family: var(--xp-font-head); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--xp-steel); }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { color: var(--xp-steel); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover { color: var(--xp-gold-text); }
.nav .btn { padding: .62rem 1.2rem; font-size: .88rem; }
.nav-links { display: flex; gap: 1.7rem; }
@media (max-width: 900px) { .nav-links, .logo-word { display: none; } }

/* ---------- Hero: white, with the Wasatch range ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 45%, #FFFFFF 100%);
  color: var(--xp-ink);
  padding: 78px 0 300px;
  overflow: hidden;
  isolation: isolate;
}
.hero-range {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: 290px; display: block; pointer-events: none;
}
@media (max-width: 900px) { .hero { padding-bottom: 230px; } .hero-range { height: 210px; } }
@media (max-width: 560px) { .hero { padding: 54px 0 160px; } .hero-range { height: 150px; } }

.hero h1 { color: var(--xp-midnight); max-width: 18ch; letter-spacing: -.024em; }
.hero h1 .accent { color: var(--xp-gold-text); }
.hero-sub { font-size: 1.16rem; color: var(--xp-steel); max-width: 56ch; margin-bottom: 2.4rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.1rem 2.2rem;
  margin: 0 0 2.6rem; padding: 1.1rem 0 1.4rem;
  border-top: 1px solid var(--xp-border); border-bottom: 1px solid var(--xp-border);
}
.hero-trust div { font-size: .86rem; color: var(--xp-steel); display: flex; align-items: center; gap: .5rem; }
.hero-trust strong { color: var(--xp-midnight); font-family: var(--xp-font-head); }

/* Three action cards */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 880px) { .actions { grid-template-columns: 1fr; } }
.action-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--xp-white);
  border: 1px solid var(--xp-border);
  border-radius: 12px;
  padding: 1.6rem 1.5rem 1.4rem;
  text-decoration: none; color: var(--xp-ink);
  box-shadow: 0 1px 2px rgba(27,42,74,.05), 0 10px 30px rgba(27,42,74,.06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.action-card:hover {
  border-color: var(--xp-gold); transform: translateY(-3px); color: var(--xp-ink);
  box-shadow: 0 1px 2px rgba(27,42,74,.06), 0 18px 44px rgba(27,42,74,.13);
}
.action-card h2 { font-size: 1.18rem; color: var(--xp-midnight); margin: 0; }
.action-card p { font-size: .92rem; color: var(--xp-steel); margin: 0; }
.action-go { margin-top: .7rem; font-family: var(--xp-font-head); font-weight: 700; font-size: .85rem; color: var(--xp-midnight); display: flex; align-items: center; gap: .4rem; }
.action-card:hover .action-go { color: var(--xp-gold-text); }
.action-card:hover .action-go .arw { transform: translateY(3px); }
.arw { transition: transform .18s ease; display: inline-block; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.sec-mist { background: #F7F9FC; }
.sec-navy { background: var(--xp-midnight); color: var(--xp-white); position: relative; overflow: hidden; }
.sec-navy h2, .sec-navy h3, .sec-navy h4 { color: var(--xp-white); }
.sec-navy p { color: rgba(255,255,255,.78); }
.sec-head { max-width: 720px; margin-bottom: 3rem; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head.center .rule { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1rem; }

/* ---------- Tool shell ---------- */
.tool {
  background: var(--xp-white);
  border: 1px solid var(--xp-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-head { background: var(--xp-midnight); color: var(--xp-white); padding: 1.4rem 1.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tool-head h3 { color: var(--xp-white); margin: 0; font-size: 1.15rem; }
.tool-head span { font-size: .84rem; color: rgba(255,255,255,.62); }
.tool-body { padding: 2rem 1.9rem; }
@media (max-width: 640px) { .tool-body, .tool-head { padding-left: 1.25rem; padding-right: 1.25rem; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label, .q-label {
  display: block; font-family: var(--xp-font-head); font-weight: 600;
  font-size: .87rem; color: var(--xp-midnight); margin-bottom: .4rem;
}
.hint { font-size: .8rem; color: var(--xp-steel); font-weight: 400; display: block; margin-top: .3rem; font-family: var(--xp-font-body); }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .8rem .9rem; font-family: var(--xp-font-body); font-size: 1rem;
  color: var(--xp-ink); background: var(--xp-white);
  border: 1px solid var(--xp-border); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--xp-midnight);
  box-shadow: 0 0 0 3px rgba(27,42,74,.12);
}
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--xp-steel); font-size: 1rem; pointer-events: none; }
.input-prefix input { padding-left: 1.9rem; }

.q { padding: 1.15rem 0; border-bottom: 1px solid var(--xp-border); }
.q:last-of-type { border-bottom: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .55rem; margin-top: .7rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt span {
  display: block; text-align: center; padding: .7rem .6rem; font-size: .89rem;
  border: 1px solid var(--xp-border); border-radius: var(--radius);
  background: var(--xp-white); color: var(--xp-steel); cursor: pointer;
  transition: all .15s ease; line-height: 1.35;
}
.opt span:hover { border-color: var(--xp-midnight); color: var(--xp-midnight); }
.opt input:checked + span { background: var(--xp-midnight); border-color: var(--xp-midnight); color: var(--xp-white); font-weight: 500; }
.opt input:focus-visible + span { outline: 3px solid var(--xp-gold); outline-offset: 2px; }

/* ---------- Results ---------- */
.result { display: none; }
.result.show { display: block; animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.result-band {
  background: linear-gradient(160deg, var(--xp-midnight) 0%, var(--xp-midnight-deep) 100%);
  color: var(--xp-white); border-radius: 10px; padding: 2.2rem 1.9rem; text-align: center;
}
.result-band .kicker { color: var(--xp-gold); }
.value-big {
  font-family: var(--xp-font-head); font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem); color: var(--xp-gold);
  line-height: 1.1; margin: .3rem 0 .5rem; letter-spacing: -.02em;
}
.value-mid { font-size: .95rem; color: rgba(255,255,255,.72); }
.value-mid strong { color: var(--xp-white); }

.meter { height: 10px; background: rgba(255,255,255,.16); border-radius: 99px; overflow: hidden; margin: 1.4rem 0 .5rem; }
.meter-fill { height: 100%; background: var(--xp-gold); border-radius: 99px; width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.meter-scale { display: flex; justify-content: space-between; font-size: .76rem; color: rgba(255,255,255,.55); }

.score-big { font-family: var(--xp-font-head); font-weight: 700; font-size: clamp(3rem, 9vw, 4.6rem); color: var(--xp-gold); line-height: 1; }
.score-out { font-size: 1.1rem; color: rgba(255,255,255,.6); font-weight: 400; }
.score-label { font-family: var(--xp-font-head); font-weight: 700; font-size: 1.25rem; color: var(--xp-white); margin-top: .5rem; }

.breakdown { margin-top: 1.6rem; }
.bd-row { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--xp-border); }
.bd-row:last-child { border-bottom: 0; }
.bd-label { flex: 0 0 190px; font-size: .9rem; color: var(--xp-midnight); font-weight: 500; }
.bd-bar { flex: 1; height: 8px; background: var(--xp-tint); border-radius: 99px; overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: var(--xp-midnight); border-radius: 99px; width: 0; transition: width .8s ease; }
.bd-bar i.low { background: #B4472F; }
.bd-bar i.mid { background: var(--xp-gold); }
.bd-val { flex: 0 0 54px; text-align: right; font-family: var(--xp-font-head); font-weight: 700; font-size: .9rem; color: var(--xp-midnight); }
@media (max-width: 560px) { .bd-label { flex-basis: 120px; font-size: .82rem; } }

.callout { background: var(--xp-tint); border-left: 4px solid var(--xp-gold); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p { margin: 0; font-size: .93rem; color: var(--xp-ink); }
.callout p + p { margin-top: .6rem; }

.notes { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.notes li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; font-size: .94rem; color: var(--xp-steel); }
.notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--xp-gold); border-radius: 50%; }

.disclaimer { font-size: .8rem; color: var(--xp-steel); margin-top: 1.5rem; line-height: 1.55; }

/* ---------- Capture (email gate after result) ---------- */
.capture {
  margin-top: 1.75rem; background: var(--xp-mist);
  border: 1px solid var(--xp-border); border-radius: 10px; padding: 1.7rem;
}
.capture h4 { font-family: var(--xp-font-head); color: var(--xp-midnight); margin: 0 0 .4rem; font-size: 1.1rem; }
.capture > p { font-size: .93rem; margin-bottom: 1.1rem; }
.capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 620px) { .capture-grid { grid-template-columns: 1fr; } }
.capture .btn { margin-top: .9rem; }
.privacy-note { font-size: .78rem; color: var(--xp-steel); margin: .8rem 0 0; }

/* ---------- Benchmark table ---------- */
.bm-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: .93rem; }
.bm-table th { background: var(--xp-midnight); color: var(--xp-white); font-family: var(--xp-font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: .75rem .9rem; }
.bm-table th:not(:first-child), .bm-table td:not(:first-child) { text-align: right; }
.bm-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--xp-border); color: var(--xp-steel); }
.bm-table tr:nth-child(even) td { background: var(--xp-mist); }
.bm-table td:first-child { color: var(--xp-midnight); font-weight: 500; }
.pill { display: inline-block; padding: .18rem .6rem; border-radius: 99px; font-size: .76rem; font-family: var(--xp-font-head); font-weight: 700; }
.pill-good { background: #E3EEE6; color: #1F5B33; }
.pill-ok { background: #FAF1DA; color: #7A5B12; }
.pill-low { background: #F7E4E0; color: #8C3520; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Process / cards ---------- */
.step { background: var(--xp-white); border: 1px solid var(--xp-border); border-radius: var(--radius); padding: 1.6rem; height: 100%; }
.step-n { font-family: var(--xp-font-head); font-weight: 700; font-size: .75rem; letter-spacing: .12em; color: var(--xp-gold-text); display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.step p { font-size: .93rem; margin: 0; }

.stat { text-align: center; }
.stat-n { font-family: var(--xp-font-head); font-weight: 700; font-size: clamp(2rem, 4.4vw, 2.8rem); color: var(--xp-gold-text); line-height: 1; }
.stat p { font-size: .93rem; margin: .6rem 0 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--xp-border); }
.faq details { border-bottom: 1px solid var(--xp-border); }
.faq summary {
  cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; list-style: none;
  font-family: var(--xp-font-head); font-weight: 600; font-size: 1.02rem; color: var(--xp-midnight);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--xp-gold-text); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 2rem 1.3rem 0; margin: 0; font-size: .96rem; }

/* ---------- Final CTA / form ---------- */
.cta-panel {
  background: var(--xp-white); border-radius: 10px; padding: 2.2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.cta-panel h3 { margin-bottom: .3rem; }
.cta-panel > p { font-size: .95rem; }
#ghl-embed iframe { width: 100% !important; border: 0; min-height: 620px; display: block; }

.about-card { display: flex; gap: 1.6rem; align-items: flex-start; }
.about-badge {
  flex: 0 0 84px; height: 84px; border-radius: 50%;
  background: rgba(201,168,76,.14); border: 2px solid var(--xp-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--xp-font-head); font-weight: 700; font-size: 1.6rem; color: var(--xp-gold);
}
@media (max-width: 560px) { .about-card { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--xp-midnight-deep); color: rgba(255,255,255,.62); padding: 60px 0 30px; font-size: .9rem; position: relative; }
.site-footer .logo-mark { color: var(--xp-white); }
.site-footer .logo-word { color: rgba(255,255,255,.65); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer h4 { color: var(--xp-white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.62); text-decoration: none; }
.site-footer a:hover { color: var(--xp-gold-text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.11); padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.err { color: #B4472F; font-size: .84rem; margin-top: .4rem; display: none; }
.err.show { display: block; }

/* ==========================================================================
   BVR calculator components — industry picker, percentile distribution,
   method cards, position bar
   ========================================================================== */

/* ---------- Industry autocomplete ---------- */
.picker { position: relative; }
.picker input { width: 100%; }
.dd {
  display: none; position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--xp-white); border: 1px solid var(--xp-border); border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(27,42,74,.18); max-height: 320px; overflow-y: auto;
}
.dd.open { display: block; }
.dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: .7rem .9rem; background: none; border: 0; border-bottom: 1px solid var(--xp-mist);
  text-align: left; font-family: var(--xp-font-body); font-size: .92rem; color: var(--xp-ink); cursor: pointer;
}
.dd-item:last-child { border-bottom: 0; }
.dd-item:hover, .dd-item.on { background: var(--xp-tint); }
.dd-item em { font-style: normal; font-size: .78rem; color: var(--xp-steel); }
.dd-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem;
  color: var(--xp-midnight); font-weight: 600; margin-right: .55rem;
}
.dd-c { flex-shrink: 0; font-size: .78rem; color: var(--xp-steel); white-space: nowrap; }
.dd-empty { padding: .9rem; font-size: .9rem; color: var(--xp-steel); }
.ind-info { font-size: .88rem; color: var(--xp-steel); margin: .5rem 0 0; }
.ind-info strong { color: var(--xp-midnight); }

.linkbtn {
  background: none; border: 0; padding: .35rem 0 0; cursor: pointer;
  font-family: var(--xp-font-head); font-weight: 600; font-size: .82rem;
  color: var(--xp-midnight); text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--xp-gold-text); }
.calc-out {
  margin: 1rem 0 0; font-family: var(--xp-font-head); font-weight: 700;
  font-size: 1.05rem; color: var(--xp-midnight);
}

/* ---------- Percentile position bar (in the navy result band) ---------- */
.posbar { margin-top: 1.8rem; }
.posbar-track { height: 10px; background: rgba(255,255,255,.16); border-radius: 99px; overflow: hidden; }
.posbar-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, rgba(201,168,76,.45), var(--xp-gold));
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.posbar-ax { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .74rem; color: rgba(255,255,255,.5); }

/* ---------- Method cards ---------- */
.method {
  border: 1px solid var(--xp-border); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; margin-top: 1rem; background: var(--xp-white);
}
.method--primary { border-color: var(--xp-gold); border-width: 2px; background: #FEFCF7; }
.method-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.method-top h4 { font-family: var(--xp-font-head); font-size: 1rem; color: var(--xp-midnight); margin: 0 0 .2rem; }
.method-sub { font-size: .84rem; color: var(--xp-steel); }
.method-val { font-family: var(--xp-font-head); font-weight: 700; font-size: 1.2rem; color: var(--xp-midnight); white-space: nowrap; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .12rem .45rem;
  background: var(--xp-gold); color: var(--xp-midnight); border-radius: 3px;
  font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
}

/* percentile distribution */
.dist { display: flex; align-items: flex-end; gap: 2px; height: 96px; margin-bottom: .35rem; }
.db { flex: 1; min-width: 0; background: var(--xp-tint); border-radius: 2px 2px 0 0; transition: background .2s; }
.db--in { background: #97A3BC; }
.db--ctr { background: var(--xp-gold); }
.db:hover { background: var(--xp-midnight); }
.dist-ax { display: flex; justify-content: space-between; font-size: .72rem; color: var(--xp-steel); margin-bottom: .9rem; }

.mini { width: 100%; border-collapse: collapse; font-size: .85rem; }
.mini th {
  padding: .45rem .5rem; text-align: right; font-family: var(--xp-font-head); font-weight: 600;
  font-size: .76rem; color: var(--xp-steel); border-bottom: 2px solid var(--xp-border); white-space: nowrap;
}
.mini td { padding: .45rem .5rem; text-align: right; color: var(--xp-steel); border-bottom: 1px solid var(--xp-mist); white-space: nowrap; }
.mini th:first-child, .mini td:first-child { text-align: left; color: var(--xp-midnight); font-weight: 500; }
.mini .hl { color: var(--xp-midnight); font-weight: 700; background: rgba(201,168,76,.13); }
.mini tr:last-child td { border-bottom: 0; }

/* driver lists */
.notes li.up::before { background: #1F5B33; }
.notes li.down::before { background: #B4472F; }

.src {
  display: inline-block; padding: .08rem .38rem; margin-left: .35rem; border-radius: 3px;
  background: var(--xp-midnight); color: var(--xp-white);
  font-family: var(--xp-font-head); font-size: .62rem; letter-spacing: .05em; vertical-align: middle;
}

@media (max-width: 560px) {
  .method-val { font-size: 1.05rem; }
  .dist { height: 72px; }
  .mini { font-size: .78rem; }
  .mini th, .mini td { padding: .4rem .3rem; }
}

.callout--warn { background: #FAF3E2; border-left-color: #B4472F; }

/* ==========================================================================
   "You deserve" opener + the case section
   ========================================================================== */

.hero { padding: 96px 0 88px; }
.hero h1 { max-width: 19ch; letter-spacing: -.022em; }
.hero-sub { max-width: 60ch; }

/* Gold eyebrow on each action card — the deserve statement */
.deserve {
  font-family: var(--xp-font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--xp-gold-text);
  line-height: 1.35;
}

/* ---------- Case section ---------- */
.sec-case { background: var(--xp-white); padding: 88px 0 92px; }
.sec-case .sec-head { max-width: 860px; }
.sec-case .sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); max-width: 30ch; margin-left: auto; margin-right: auto; }
.sec-case .lead { font-size: 1.06rem; }

/* the creed — the "here's what you have coming to you" list */
.creed {
  max-width: 800px; margin: 0 auto 3.4rem;
  background: #FAFBFD;
  border: 1px solid var(--xp-border);
  border-left: 4px solid var(--xp-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.2rem 1.6rem;
  box-shadow: var(--shadow);
}
.creed-lead {
  font-family: var(--xp-font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--xp-midnight); margin: 0 0 1.3rem;
}
.creed ul { list-style: none; margin: 0; padding: 0; }
.creed li {
  position: relative; padding-left: 1.9rem; margin-bottom: 1.05rem;
  font-size: 1rem; color: var(--xp-steel); line-height: 1.55;
}
.creed li:last-child { margin-bottom: 0; }
.creed li strong { color: var(--xp-midnight); font-family: var(--xp-font-head); }
.creed li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--xp-gold); box-shadow: 0 0 0 4px rgba(201,168,76,.18);
}
@media (max-width: 560px) { .creed { padding: 1.5rem 1.4rem 1.2rem; } .creed li { padding-left: 1.6rem; font-size: .95rem; } }

.case-why { margin-bottom: 3rem; }
.case-why h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.case-why p { font-size: .95rem; margin: 0; }
.case-n {
  display: block; font-family: var(--xp-font-head); font-weight: 700;
  font-size: .74rem; letter-spacing: .12em; color: var(--xp-gold-text); margin-bottom: .55rem;
}

.case-cta {
  text-align: center; padding: 2.2rem 1rem;
  border-top: 1px solid var(--xp-border); border-bottom: 1px solid var(--xp-border);
  margin-bottom: 2.4rem;
}
.case-cta p {
  font-family: var(--xp-font-head); font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--xp-midnight); margin: 0 0 1.2rem;
}

.callout--split { background: var(--xp-white); max-width: 820px; margin-left: auto; margin-right: auto; }
.callout--split p { font-size: .94rem; }
.callout--split a { font-weight: 600; color: var(--xp-midnight); text-decoration: underline; text-underline-offset: 3px; }
.callout--split a:hover { color: var(--xp-gold-text); }

@media (max-width: 560px) {
  .hero { padding: 64px 0 72px; }
  .hero-sub { font-size: 1.02rem; margin-bottom: 2rem; }
  .kicker { font-size: .72rem; }
  .sec-case { padding: 64px 0 68px; }
}

/* ==========================================================================
   Normal brokers vs XP
   ========================================================================== */
.vs {
  max-width: 1000px; margin: 0 auto;
  background: var(--xp-white);
  border: 1px solid var(--xp-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(27,42,74,.05), 0 14px 40px rgba(27,42,74,.07);
  overflow: hidden;
}
.vs-head, .vs-row {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.35fr;
  gap: 0;
  align-items: stretch;
}
.vs-head > div {
  font-family: var(--xp-font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 1.05rem 1.3rem;
}
.vs-head .vs-them { color: var(--xp-steel); background: #F2F4F8; }
.vs-head .vs-us {
  color: var(--xp-white); background: var(--xp-midnight);
  display: flex; align-items: center; gap: .55rem; letter-spacing: .06em;
}
.vs-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--xp-gold); color: var(--xp-midnight);
  font-size: .74rem; font-weight: 700; letter-spacing: 0;
  padding: .16rem .42rem; border-radius: 4px;
}
.vs-row > div { padding: 1.05rem 1.3rem; border-top: 1px solid var(--xp-border); font-size: .95rem; line-height: 1.5; }
.vs-row .vs-metric { font-family: var(--xp-font-head); font-weight: 600; font-size: .88rem; color: var(--xp-midnight); }
.vs-row .vs-them { color: var(--xp-steel); background: #F8F9FC; }
.vs-row .vs-us { color: var(--xp-ink); background: rgba(201,168,76,.055); font-weight: 500; position: relative; }
.vs-row .vs-us::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 3px; background: var(--xp-gold);
}
.vs-row:hover .vs-us { background: rgba(201,168,76,.11); }

@media (max-width: 780px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div { border-top: 0; padding: .5rem 1.15rem; }
  .vs-row { border-top: 1px solid var(--xp-border); padding: .8rem 0 1rem; }
  .vs-row:first-of-type { border-top: 0; }
  .vs-row .vs-metric { padding-top: .9rem; font-size: .95rem; }
  .vs-row .vs-them, .vs-row .vs-us { background: none; font-size: .93rem; }
  .vs-row .vs-them::before { content: "Typical broker: "; font-weight: 600; color: #8A8A8A; }
  .vs-row .vs-us { margin: .35rem 1.15rem 0; padding: .7rem .9rem; border-radius: 6px; background: rgba(201,168,76,.09); }
  .vs-row .vs-us::before { content: ""; width: 3px; top: 0; }
  .vs-row .vs-us::after { }
}

.vs-foot {
  max-width: 640px; margin: 2rem auto 0; text-align: center;
  font-size: .95rem; color: var(--xp-steel);
}

/* Wasatch bookend on the closing section */
.talk-range {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px;
  opacity: .5; filter: invert(1) brightness(2.2) saturate(0); pointer-events: none; z-index: 0;
}
#talk .wrap { position: relative; z-index: 1; }

/* The white form panel sits inside a navy section — stop the section's
   light-on-dark text rules from bleeding into it and going invisible. */
.sec-navy .cta-panel h1,
.sec-navy .cta-panel h2,
.sec-navy .cta-panel h3,
.sec-navy .cta-panel h4 { color: var(--xp-midnight); }
.sec-navy .cta-panel p  { color: var(--xp-steel); }
.sec-navy .cta-panel .privacy-note,
.sec-navy .cta-panel .hint { color: var(--xp-steel); }
.sec-navy .cta-panel a:not(.btn) { color: var(--xp-midnight); }
