/* =========================================================
   TrackALL – shared layer (all pages)
   header menu, mobile nav, footer, floating contact buttons,
   thank-you actions, skip link, image slots, utilities
   ========================================================= */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; }
main { display: block; }
section[id] { scroll-margin-top: 84px; }

/* header */
.site-header .header-inner { flex-wrap: nowrap; gap: 8px 24px; }
.site-header .brand { flex: 0 0 auto; }
.site-header .main-nav { flex-wrap: nowrap; gap: 0 20px; align-items: center; white-space: nowrap; }
.site-header .btn-row { flex-wrap: nowrap; flex: 0 0 auto; }
.site-header .btn { white-space: nowrap; }
.main-nav > a.is-current, .main-nav > a[aria-current="true"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.ind-menu { position: relative; }
.ind-btn { font: inherit; font-weight: 500; background: none; border: 0; padding: 12px 0; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.ind-btn:hover, .ind-btn[aria-expanded="true"] { color: var(--accent); }
.ind-btn svg { transition: transform .15s; }
.ind-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ind-panel { position: absolute; top: calc(100% + 6px); left: -16px; z-index: 40; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(20,24,31,.14); padding: 8px; display: none; }
.ind-panel.open { display: block; }
.ind-panel a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.ind-panel a:hover, .ind-panel a:focus-visible { background: var(--accent-tint); }
.ind-panel a b { font-weight: 600; font-size: 15px; }
.ind-panel a span { font-size: 13px; color: var(--muted); }
.ind-panel a.is-current { background: var(--accent-tint); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
@media (max-width: 1180px) {
  .site-header .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-header .main-nav, .site-header .btn-row { display: none; width: 100%; }
  .site-header.open .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; white-space: normal; }
  .site-header.open .main-nav > a, .site-header.open .ind-btn { padding: 14px 4px; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .site-header.open .btn-row { display: flex; flex-direction: column; padding: 12px 0 6px; }
  .site-header.open .btn-row .btn { width: 100%; justify-content: center; }
  .ind-panel { position: static; box-shadow: none; border: 0; padding: 0 0 6px 8px; min-width: 0; }
  .site-header { max-height: 100vh; overflow-y: auto; }
}

/* footer */
.sf-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.sf-grid h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.sf-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sf-grid li a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.sf-grid li a:hover { color: var(--accent); text-decoration: underline; }
.sf-about p { font-size: 14px; line-height: 1.6; margin: 10px 0 14px; max-width: 320px; }
.sf-contact a { font-weight: 500; }
.sf-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.sf-legal a { color: var(--ink-2); }
@media (max-width: 900px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sf-grid { grid-template-columns: 1fr; } }

/* floating contact */
.float-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; color: #fff; font: 600 15px var(--f-body); text-decoration: none; cursor: pointer; box-shadow: 0 8px 24px rgba(20,24,31,.25); }
.fab-wa { background: #1FA855; }
.fab-wa:hover { background: #178a45; }
.fab-top { width: 44px; height: 44px; padding: 0; justify-content: center; background: #fff; color: var(--ink); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-top.show { opacity: 1; pointer-events: auto; }
body.modal-open .float-wrap, body.modal-open .mobile-bar { display: none; }
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .fab-wa span { display: none; } .fab-wa { width: 52px; padding: 0; justify-content: center; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; height: 46px; justify-content: center; padding: 0 10px; font-size: 15px; }
  .float-wrap { bottom: 76px; }
  body { padding-bottom: 66px; }
}

/* thank-you follow-up */
.thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thanks-actions .btn { height: 44px; }
.thanks-status { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* images dropped into /images replace the placeholder */
.img-slot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.track-card .img-slot { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }

/* simple text pages (privacy, terms, contact, 404) */
.doc { max-width: 760px; }
.doc h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 12px; }
.doc h2 { font-family: var(--f-display); font-weight: 700; font-size: 24px; margin: 36px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
@media print { .site-header, .float-wrap, .mobile-bar, .site-footer { display: none !important; } }
.sf-grid li { font-size: 14px; color: var(--ink-2); }

/* illustrations */
.img-slot { background: #F3F5F9; border-radius: 14px; }
.hero-media .img-slot { box-shadow: 0 20px 50px rgba(20,24,31,.10); }
.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fig figcaption { font-size: 13px; color: var(--muted); font-family: var(--f-mono); }
.sector-card .img-slot, .card .img-slot { border-radius: 10px; }
@media (min-width: 980px) { .fig .img-slot { max-width: 1120px; } }

/* Picker + card illustrations */
.sel-img{display:block;width:100%;height:auto;aspect-ratio:1200/514;border-radius:10px;border:1px solid var(--line);background:#F1F3F6;object-fit:cover}
.qcard-img{display:block;width:100%;height:auto;aspect-ratio:1200/514;border-radius:8px;border:1px solid var(--line);background:#F1F3F6;margin-bottom:14px;object-fit:cover}

/* ---------- Heading font (Maven Pro) + shared tokens ---------- */
:root { --header-h: 89px; --f-heading: 'Maven Pro', 'IBM Plex Sans', system-ui, sans-serif; --f-display: var(--f-heading); }
h1, h2, h3, h4, h5, h6, .h2-xl, .hero .lead { font-family: var(--f-heading); }
.site-header .brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 44px; width: auto; }
.site-header .brand-by { display: none; }
@media (max-width: 560px) { .brand-logo { height: 38px; } }

/* ---------- Full-bleed hero: illustration is pinned (sticky) behind the copy and fades into white ---------- */
.hero.hero--bleed { position: relative; overflow-x: clip; isolation: isolate; background: #fff; display: grid; grid-template-columns: minmax(0, 1fr); --bgw: min(70vw, 1400px); --bgh: calc(var(--bgw) * .6794); }
.hero--bleed .hero-bg {
  position: sticky; z-index: -1; pointer-events: none;
  top: max(var(--header-h), calc(50vh - var(--bgh) / 2));
  width: var(--bgw); height: var(--bgh);
  grid-column: 1; grid-row: 1 / -1; align-self: start; justify-self: end; margin-right: -4vw;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%), linear-gradient(to bottom, transparent 0, #000 8%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 34%), linear-gradient(to bottom, transparent 0, #000 8%, #000 74%, transparent 100%);
  mask-composite: intersect;
}
.hero--bleed .hero-bg-img { display: block; width: 100%; height: auto; }
.hero--bleed > .container { width: 100%; box-sizing: border-box; justify-self: center; }
.hero--bleed > .container.hero-inner { position: relative; grid-column: 1; grid-row: 1; }
.hero--bleed > .hero-examples { grid-column: 1; grid-row: 2; }
.hero--bleed .hero-copy { flex: 0 1 min(640px, 54%); }
.hero--bleed .hero-copy .lead:not(.strong-lead), .hero--bleed .hero-list { max-width: 560px; }
@media (max-width: 1000px) {
  .hero.hero--bleed { display: flex; flex-direction: column; }
  .hero--bleed .hero-bg { position: relative; top: auto; order: 2; width: 100%; height: auto; margin: -8px 0 0; grid-row: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero--bleed > .container { width: 100%; min-width: 0; box-sizing: border-box; }
  .hero--bleed > .container.hero-inner { order: 1; }
  .hero--bleed > .hero-examples { order: 3; }
  .hero--bleed .hero-copy { flex: 1 1 100%; }
}

/* ---------- Sticky sector list (desktop) + scroll target (mobile) ---------- */
.sector-card { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 901px) {
  .sector-layout .sector-list { position: sticky; top: calc(var(--header-h) + 16px); align-self: flex-start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
}
