/* ============================================================
   Ibex Spend Intelligence — site styles
   ============================================================ */

:root {
  /* Palette */
  --ink: #0b1f30;
  --ink-2: #0f2a40;
  --ink-3: #143855;
  --navy-grad-a: #0a1c2b;
  --navy-grad-b: #102f47;
  --teal: #18a085;
  --teal-bright: #21c0a0;
  --teal-dark: #0f6e5c;
  --gold: #c6a35a;
  --gold-soft: #e7d4a6;
  --paper: #ffffff;
  --mist: #f5f8fa;
  --mist-2: #eef3f6;
  --line: #dde6ec;
  --line-soft: #e9eff3;
  --text: #1d2b36;
  --text-soft: #51626e;
  --text-mute: #7c8b95;
  --text-on-dark: #e9f1f5;
  --text-on-dark-soft: #a9c0cd;
  --danger: #c0473b;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 48, .06), 0 2px 6px rgba(11, 31, 48, .05);
  --shadow: 0 10px 30px rgba(11, 31, 48, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 48, .18);
  --maxw: 1180px;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.16; color: var(--ink); letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1.1em; }
a { color: var(--teal-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }
strong { font-weight: 650; color: var(--ink); }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

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

section { padding: 86px 0; }
.section-dark { background: linear-gradient(160deg, var(--navy-grad-a), var(--navy-grad-b)); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-mist { background: var(--mist); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-dark .eyebrow::before { background: var(--gold); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--text-soft); margin-bottom: 0; }
.section-dark .section-head p { color: var(--text-on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 650; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(24,160,133,.32); }
.btn-primary:hover { background: var(--teal-bright); color: #fff; }
.btn-gold { background: var(--gold); color: #2a1f08; box-shadow: 0 10px 24px rgba(198,163,90,.3); }
.btn-gold:hover { background: var(--gold-soft); color: #2a1f08; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.section-dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-arrow::after { content: "→"; font-weight: 400; transition: transform .15s ease; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: none; display: block; object-fit: contain; }
.site-footer .brand-mark { filter: drop-shadow(0 0 0 transparent); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; color: var(--ink); letter-spacing: -.01em; line-height: 1.05; }
.brand-name span { display: block; font-family: var(--sans); font-weight: 600; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-soft); font-weight: 550; font-size: .96rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--text-on-dark); padding: 96px 0 0; background: linear-gradient(155deg, #08161f 0%, #0d2336 55%, #123a4e 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero-lead { font-size: 1.2rem; color: var(--text-on-dark-soft); max-width: 540px; margin-bottom: 18px; }
.hero-credential {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(198,163,90,.12); border: 1px solid rgba(198,163,90,.32);
  color: var(--gold-soft); font-size: .9rem; font-weight: 550;
}
.hero-credential b { color: #fff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; color: var(--text-on-dark-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); }

/* Hero data card */
.hero-card { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card-head h4 { color: #fff; font-size: 1rem; margin: 0; }
.hero-card-tag { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 16px; }
.hero-stat .num { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat .num small { font-size: 1rem; color: var(--gold-soft); }
.hero-stat .lbl { font-size: .76rem; color: var(--text-on-dark-soft); margin-top: 7px; line-height: 1.35; }
.hero-card-foot { margin-top: 16px; font-size: .72rem; color: var(--text-on-dark-soft); opacity: .8; }

/* Hero ticker */
.ticker { position: relative; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; padding: 14px 0; white-space: nowrap; animation: ticker 38s linear infinite; width: max-content; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-on-dark-soft); }
.ticker-item b { color: #fff; }
.ticker-item .up { color: var(--teal-bright); font-weight: 700; }
.ticker-item .dn { color: #e6a14b; font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stat strip ---------- */
.statstrip { background: var(--ink); color: #fff; padding: 0; }
.statstrip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 40px 28px; border-right: 1px solid rgba(255,255,255,.08); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .num { font-family: var(--serif); font-size: 2.7rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat-cell .num small { font-size: 1.3rem; color: var(--gold-soft); }
.stat-cell .lbl { color: var(--text-on-dark-soft); font-size: .92rem; margin-top: 10px; max-width: 210px; }
.statstrip-src { text-align: center; font-size: .72rem; color: rgba(255,255,255,.4); padding: 14px 28px 26px; }

/* ---------- Cards / grids ---------- */
.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); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd9e1; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .98rem; margin-bottom: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: var(--mist-2); color: var(--teal-dark); }
.card-icon svg { width: 24px; height: 24px; }

/* problem cards */
.problem-card { border-left: 3px solid var(--gold); }
.problem-card h3 { font-size: 1.12rem; }

/* ---------- Service cards ---------- */
.service { position: relative; display: flex; flex-direction: column; height: 100%; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.service-no { font-family: var(--serif); font-size: 1.05rem; color: var(--text-mute); font-weight: 600; }
.service-tier { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); background: var(--mist-2); padding: 5px 10px; border-radius: 999px; }
.service h3 { font-size: 1.28rem; margin-bottom: 10px; }
.service .desc { color: var(--text-soft); font-size: .97rem; flex-grow: 1; }
.service ul.ticks { list-style: none; padding: 0; margin: 12px 0 18px; }
.service ul.ticks li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--text-soft); margin-bottom: 8px; }
.service ul.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.service-meta { border-top: 1px solid var(--line-soft); padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-meta div span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.service-meta div b { font-size: 1rem; color: var(--ink); font-family: var(--serif); }
.service-note { margin-top: 14px; font-size: .82rem; color: var(--text-mute); font-style: italic; }
.service.featured { border-color: var(--teal); box-shadow: 0 14px 40px rgba(24,160,133,.16); }
.service.featured .service-tier { background: var(--teal); color: #fff; }
.ribbon { position: absolute; top: -12px; right: 22px; background: var(--gold); color: #2a1f08; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- Process / methodology ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 22px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -2px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--line), var(--line)); }
.step-num { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); color: var(--teal-dark); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; }
.section-dark .step-num { background: var(--ink); border-color: var(--gold); color: var(--gold-soft); }
.section-dark .step:not(:last-child)::after { background: rgba(255,255,255,.14); }
.step h4 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--text-soft); margin: 0; }
.section-dark .step p { color: var(--text-on-dark-soft); }

/* ---------- Vertical tabs ---------- */
.verticals { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.vtabs { display: flex; flex-direction: column; background: var(--mist); border-right: 1px solid var(--line); }
.vtab { text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 18px 22px; cursor: pointer; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--text-soft); display: flex; align-items: center; gap: 12px; transition: .15s; }
.vtab:hover { background: var(--mist-2); color: var(--ink); }
.vtab.active { background: var(--paper); border-left-color: var(--teal); color: var(--ink); }
.vtab small { display: block; font-weight: 600; font-size: .72rem; color: var(--text-mute); letter-spacing: .04em; }
.vtab .vdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.vpanel { padding: 36px 38px; display: none; }
.vpanel.active { display: block; animation: fade .3s ease; }
.vpanel .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.badge-beachhead, .badge-ready { background: rgba(24,160,133,.12); color: var(--teal-dark); }
.badge-phase1 { background: rgba(198,163,90,.16); color: #8a6d28; }
.badge-phase2 { background: var(--mist-2); color: var(--text-soft); }
.vpanel h3 { font-size: 1.5rem; }
.vpanel .vcols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 20px; }
.vpanel .vcols h5 { font-family: var(--sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 8px; font-weight: 700; }
.vpanel .vcols p { font-size: .96rem; color: var(--text-soft); margin: 0; }
.srcpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.srcpills span { font-size: .78rem; background: var(--mist-2); color: var(--text-soft); padding: 5px 11px; border-radius: 7px; font-weight: 550; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.calc-controls { background: var(--paper); padding: 40px; }
.calc-result { background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff; padding: 40px; display: flex; flex-direction: column; }
.calc-field { margin-bottom: 26px; }
.calc-field label { display: flex; align-items: baseline; justify-content: space-between; font-weight: 650; color: var(--ink); margin-bottom: 12px; }
.calc-field label b { font-family: var(--serif); color: var(--teal-dark); font-size: 1.25rem; }
.calc-field input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: var(--mist-2); outline: none; }
.calc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); cursor: pointer; border: 3px solid #fff; box-shadow: var(--shadow); }
.calc-field input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); cursor: pointer; border: 3px solid #fff; }
.calc-range-row { display: flex; justify-content: space-between; font-size: .76rem; color: var(--text-mute); margin-top: 6px; }
.seg { display: inline-flex; background: var(--mist-2); border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 7px; font-family: var(--sans); font-weight: 600; font-size: .88rem; color: var(--text-soft); cursor: pointer; transition: .15s; }
.seg button.active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.calc-result .rlbl { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-soft); font-weight: 700; }
.calc-result .rbig { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; margin: 10px 0; color: #fff; }
.calc-result .rbig small { font-size: 1.4rem; color: var(--gold-soft); }
.calc-result .rrange { color: var(--gold-soft); font-weight: 600; margin-bottom: 22px; }
.calc-bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 8px; }
.calc-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); border-radius: 99px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.calc-result .rnote { font-size: .82rem; color: var(--text-on-dark-soft); margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.calc-result .rsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.calc-result .rsplit div { background: rgba(0,0,0,.22); border-radius: var(--radius-sm); padding: 14px; }
.calc-result .rsplit span { font-size: .72rem; color: var(--text-on-dark-soft); display: block; }
.calc-result .rsplit b { font-family: var(--serif); font-size: 1.35rem; color: #fff; }

/* ---------- Comparison table ---------- */
.cmp { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .95rem; vertical-align: top; }
.cmp thead th { background: var(--mist); font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.cmp thead th.us { background: var(--ink); color: #fff; }
.cmp td.us { background: rgba(24,160,133,.05); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 650; color: var(--ink); }
.cmp .check { color: var(--teal-dark); font-weight: 700; }

/* ---------- Quote / credential ---------- */
.credential { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.credential-num { font-family: var(--serif); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: .9; color: #fff; letter-spacing: -.03em; }
.credential-num small { font-size: .35em; color: var(--gold-soft); vertical-align: super; }
.credential blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: #fff; margin: 0 0 18px; font-style: italic; }
.credential .src { color: var(--text-on-dark-soft); font-size: .92rem; }

/* ---------- Logos / sources ---------- */
.sources-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.source-chip { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--text-mute); letter-spacing: .02em; opacity: .85; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: var(--radius-lg); padding: 52px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.92); margin: 0; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .btn-gold { box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.cta-band .micro { font-size: .8rem; color: rgba(255,255,255,.82); text-align: center; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); font-family: var(--sans); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; color: var(--text-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-soft); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h5 { font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 16px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-on-dark-soft); font-size: .94rem; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-brand .brand-name { color: #fff; }
.footer-blurb { font-size: .92rem; max-width: 320px; margin-top: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.42); }
.footer-disclaimer { font-size: .76rem; color: rgba(255,255,255,.38); margin-top: 18px; line-height: 1.6; max-width: 880px; }

/* ---------- Funnel / multi-step form ---------- */
.funnel-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper); min-height: 600px; }
.funnel-aside { background: linear-gradient(165deg, var(--navy-grad-a), var(--navy-grad-b)); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; }
.funnel-aside h2 { color: #fff; font-size: 1.7rem; }
.funnel-aside p { color: var(--text-on-dark-soft); }
.funnel-checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.funnel-checklist li { position: relative; padding-left: 32px; margin-bottom: 16px; color: var(--text-on-dark); font-size: .95rem; }
.funnel-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(24,160,133,.25); color: var(--teal-bright); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.funnel-aside .aside-foot { margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: var(--text-on-dark-soft); }
.funnel-aside .aside-foot b { color: var(--gold-soft); }

.funnel-main { padding: 40px 44px; display: flex; flex-direction: column; }
.funnel-progress { margin-bottom: 30px; }
.funnel-progress-top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-mute); font-weight: 600; margin-bottom: 8px; }
.funnel-progress-bar { height: 6px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.funnel-progress-bar > i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); border-radius: 99px; transition: width .35s ease; }

.fstep { display: none; animation: fade .25s ease; }
.fstep.active { display: block; }
.fstep h3 { font-size: 1.5rem; margin-bottom: 6px; }
.fstep .fsub { color: var(--text-soft); margin-bottom: 24px; }

.opt-grid { display: grid; gap: 12px; }
.opt-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  cursor: pointer; transition: .15s; background: var(--paper);
}
.opt:hover { border-color: var(--teal); background: rgba(24,160,133,.03); }
.opt.selected { border-color: var(--teal); background: rgba(24,160,133,.07); box-shadow: 0 0 0 1px var(--teal) inset; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--mist-2); display: grid; place-items: center; flex: none; color: var(--teal-dark); }
.opt .opt-ico svg { width: 20px; height: 20px; }
.opt .opt-txt b { display: block; color: var(--ink); font-size: .98rem; }
.opt .opt-txt span { font-size: .84rem; color: var(--text-mute); }
.opt .opt-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: .15s; }
.opt.selected .opt-check { background: var(--teal); border-color: var(--teal); }
.opt.selected .opt-check::after { content: "✓"; color: #fff; font-size: .7rem; font-weight: 700; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .92rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: .98rem; color: var(--text); background: var(--paper); transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,160,133,.13); }
.field.error input, .field.error select { border-color: var(--danger); }
.field .err-msg { color: var(--danger); font-size: .8rem; margin-top: 5px; display: none; }
.field.error .err-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.funnel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 28px; }
.funnel-nav .btn-back { background: none; border: 0; color: var(--text-soft); font-weight: 600; cursor: pointer; font-family: var(--sans); font-size: .95rem; padding: 8px; }
.funnel-nav .btn-back:hover { color: var(--ink); }
.funnel-nav .btn-back[hidden] { visibility: hidden; }

.funnel-estimate { background: var(--mist); border: 1px dashed var(--teal); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; display: none; }
.funnel-estimate.show { display: block; }
.funnel-estimate span { font-size: .8rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.funnel-estimate b { font-family: var(--serif); color: var(--teal-dark); font-size: 1.6rem; display: block; margin-top: 2px; }

.funnel-done { display: none; text-align: center; padding: 30px 10px; }
.funnel-done.show { display: block; animation: fade .3s ease; }
.funnel-done .done-mark { width: 76px; height: 76px; border-radius: 50%; background: rgba(24,160,133,.12); color: var(--teal); display: grid; place-items: center; margin: 0 auto 22px; font-size: 2rem; }
.funnel-done .recap { text-align: left; background: var(--mist); border-radius: var(--radius); padding: 22px; margin: 26px 0; }
.funnel-done .recap-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.funnel-done .recap-row:last-child { border-bottom: 0; }
.funnel-done .recap-row span { color: var(--text-mute); }
.funnel-done .recap-row b { color: var(--ink); text-align: right; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(155deg, #08161f, #0f2c42); color: #fff; padding: 70px 0 64px; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: var(--text-on-dark-soft); font-size: 1.15rem; max-width: 640px; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: var(--text-on-dark-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-on-dark-soft); }
.breadcrumb a:hover { color: var(--gold-soft); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; background: var(--mist-2); color: var(--text-soft); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; }

/* mini bar chart */
.barchart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 10px; }
.barchart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.barchart .bar > i { width: 100%; max-width: 64px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--teal-bright), var(--teal-dark)); position: relative; transition: height .9s cubic-bezier(.2,.7,.2,1); }
.barchart .bar.muted > i { background: linear-gradient(180deg, #95a8b3, #6f828d); }
.barchart .bar .bval { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 8px; }
.barchart .bar .blbl { font-size: .8rem; color: var(--text-soft); margin-top: 10px; text-align: center; line-height: 1.3; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .statstrip-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .step:nth-child(2)::after { display: none; }
  .credential { grid-template-columns: 1fr; gap: 30px; }
  .calc, .funnel-wrap, .verticals { grid-template-columns: 1fr; }
  .funnel-aside { display: none; }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band .cta-actions { align-items: center; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .brand-name { font-size: .88rem; }
  .brand-name span { display: none; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 28px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .statstrip-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .credential { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; }
  .calc-controls, .calc-result, .funnel-main { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .opt-grid.cols-2 { grid-template-columns: 1fr; }
  .vpanel .vcols { grid-template-columns: 1fr; }
}

/* ============================================================
   Case studies · Insights · Lead magnet · Trust strip
   (borrowed structure, restyled to the PIP system)
   ============================================================ */
.mono { font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace; }

/* Trust strip */
.trust-strip { display:flex; justify-content:center; gap:18px 46px; flex-wrap:wrap; padding:24px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust-item { font-family: ui-monospace,"SF Mono",Menlo,monospace; font-size:.78rem; color:var(--text-soft); letter-spacing:.02em; display:flex; align-items:center; gap:9px; }
.trust-item::before { content:""; width:7px; height:7px; border-radius:2px; transform:rotate(45deg); background:var(--teal); flex:none; }

/* Scenario banner */
.scenario-banner { background: rgba(198,163,90,.10); border:1px solid rgba(198,163,90,.45); border-left:3px solid var(--gold); border-radius:var(--radius-sm); padding:18px 24px; font-size:.92rem; color:var(--text-soft); line-height:1.65; margin-bottom:34px; }
.scenario-banner b { color:var(--ink); }

/* Case card */
.case-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:28px; box-shadow:var(--shadow-sm); }
.case-head { background:linear-gradient(155deg,var(--navy-grad-a),var(--navy-grad-b)); padding:24px 32px; display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; }
.case-head h3 { font-family:var(--serif); font-size:1.5rem; font-weight:600; color:#fff; margin:0; }
.case-tag { font-size:.66rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--gold-soft); border:1px solid rgba(198,163,90,.4); padding:5px 12px; border-radius:999px; white-space:nowrap; }
.case-body { padding:32px; display:grid; grid-template-columns:1.5fr 1fr; gap:36px; align-items:start; }
.case-section { margin-bottom:20px; }
.case-section:last-child { margin-bottom:0; }
.case-section h4 { font-family:var(--sans); font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--teal-dark); margin:0 0 8px; }
.case-section p { font-size:.95rem; color:var(--text-soft); line-height:1.72; margin:0; }
.case-stats { display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; }
.case-stat { background:var(--mist); padding:15px 20px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.case-stat .l { font-size:.82rem; color:var(--text-mute); }
.case-stat .v { font-family:var(--serif); font-size:1.4rem; font-weight:700; color:var(--teal-dark); }
.case-stat.hi { background:rgba(24,160,133,.08); }
.case-foot { padding:16px 32px; background:var(--mist-2); border-top:1px solid var(--line); font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:.72rem; color:var(--text-mute); line-height:1.65; }

/* Insights articles */
.article { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:44px 48px; margin-bottom:30px; box-shadow:var(--shadow-sm); }
.article h2 { font-size:1.85rem; line-height:1.2; margin-bottom:6px; }
.article .meta { font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:.72rem; color:var(--text-mute); margin-bottom:22px; letter-spacing:.02em; }
.article h3 { font-size:1.28rem; margin:26px 0 10px; }
.article p { font-size:1rem; color:var(--text-soft); line-height:1.8; margin-bottom:14px; }
.article .src { font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:.72rem; color:var(--text-mute); border-top:1px solid var(--line); padding-top:16px; margin-top:22px; line-height:1.65; }

/* Lead magnet */
.magnet { background: linear-gradient(150deg, rgba(198,163,90,.12), rgba(24,160,133,.06)); border:1px solid rgba(198,163,90,.4); border-radius:var(--radius-lg); padding:36px 40px; display:grid; grid-template-columns:1.3fr 1fr; gap:36px; align-items:center; }
.magnet h3 { font-size:1.55rem; margin-bottom:8px; }
.magnet p { font-size:.95rem; color:var(--text-soft); line-height:1.62; margin:0; }
.magnet form { display:flex; gap:10px; }
.magnet input { flex:1; font-family:var(--sans); font-size:.95rem; padding:14px 16px; border:1.5px solid var(--line-dk,#d6dde2); border-radius:var(--radius-sm); background:var(--paper); color:var(--text); }
.magnet input:focus { outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(24,160,133,.13); }
.magnet-msg { display:none; margin-top:12px; font-size:.86rem; font-weight:600; color:var(--teal-dark); }
.magnet-msg.err { color:var(--danger); }

@media (max-width: 760px) {
  .case-body { grid-template-columns:1fr; }
  .magnet { grid-template-columns:1fr; padding:28px 24px; }
  .magnet form { flex-direction:column; }
  .article { padding:30px 24px; }
  .case-head h3 { font-size:1.3rem; }
}

/* ============================================================
   Enhanced mobile polish — v5
   ============================================================ */

/* Prevent iOS input zoom — inputs must be 16px on mobile */
@media (max-width: 760px) {
  .field input, .field select, .field textarea,
  .magnet input { font-size: 16px; }
}

/* Vertical tabs → horizontal scroll strip */
@media (max-width: 760px) {
  .verticals { grid-template-columns: 1fr; }
  .vtabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .vtabs::-webkit-scrollbar { display: none; }
  .vtab {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    padding: 13px 18px;
    min-width: max-content;
    font-size: .88rem;
  }
  .vtab small { display: none; }
  .vtab.active { border-bottom-color: var(--teal); background: var(--paper); }
  .vpanel { padding: 26px 24px; }
}

/* Comparison table — horizontal scroll */
.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cmp-wrap .cmp { box-shadow: none; border-radius: 0; min-width: 580px; }

/* Minimum touch targets on interactive elements */
@media (max-width: 760px) {
  .vtab, .faq-q, .opt, .btn, .funnel-nav .btn-back { min-height: 44px; }
}

/* 480px — very small screens */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 44px 0; }
  .hero { padding: 54px 0 0; }
  .hero-card { padding: 18px; }
  .hero-stat .num { font-size: 1.65rem; }
  .hero-card-head h4 { font-size: .9rem; }
  .statstrip-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 26px 18px; border-bottom: none; border-right: 1px solid rgba(255,255,255,.08); }
  .stat-cell:nth-child(even) { border-right: none; }
  .stat-cell .num { font-size: 2.1rem; }
  .page-hero { padding: 46px 0 38px; }
  .case-head { padding: 18px 20px; }
  .case-body { padding: 20px; gap: 20px; }
  .case-foot { padding: 14px 20px; }
  .article { padding: 24px 18px; }
  .cta-band { padding: 28px 20px; }
  .funnel-main { padding: 24px 18px; }
  .calc-controls, .calc-result { padding: 24px 18px; }
  .credential-num { font-size: clamp(3.2rem, 16vw, 6rem); }
  .scenario-banner { padding: 14px 16px; font-size: .88rem; }
  .magnet { padding: 22px 18px; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .funnel-estimate b { font-size: 1.35rem; }
  .seg button { padding: 9px 10px; font-size: .82rem; }
}
