/* =========================================================
   DefinedLeads — Services & Process page
   ========================================================= */
.anchor { scroll-margin-top: 128px; }

/* ---------- Hero ---------- */
.hero.hero-page { min-height: auto; padding: 150px 0 96px; }
.hero-page h1 { font-size: clamp(36px, 4.8vw, 58px); }
.hero-page .lede strong { color: #fff; }
.hero-page .pill svg { color: var(--accent-2); }

/* ---------- Flywheel ---------- */
.flywheel { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.fw-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fw-ring { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; stroke-dasharray: 3 9; }
.fw-ring.inner { stroke: rgba(124,108,255,.28); stroke-dasharray: none; }
/* fill-box + center rotates around the ring's own center in every browser (Safari resolves px origins differently) */
.fw-arc { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 236 706; transform-box: fill-box; transform-origin: center; animation: fwArc 8.8s linear infinite; filter: drop-shadow(0 0 6px rgba(34,211,238,.6)); }
.fw-orbit { transform-box: fill-box; transform-origin: center; animation: fwOrbit 8.8s linear infinite; }
.fw-orbit-frame { fill: none; stroke: none; }
.fw-dot { fill: #22d3ee; filter: drop-shadow(0 0 8px #22d3ee); }
@keyframes fwArc { from { transform: rotate(-180deg); } to { transform: rotate(180deg); } }
@keyframes fwOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fw-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 35%, rgba(124,108,255,.35), rgba(13,19,48,.95) 70%); border: 1px solid rgba(124,108,255,.45); box-shadow: 0 0 60px -10px rgba(124,108,255,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.fw-center img { filter: drop-shadow(0 6px 16px rgba(91,75,255,.6)); animation: float 5s ease-in-out infinite; }
.fw-center b { font-size: 15px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.fw-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; min-width: 128px; padding: 10px 12px; border-radius: 16px; text-align: center; color: #fff; background: rgba(13,19,48,.92); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 34px -18px rgba(0,0,0,.8); animation: nodeOn 8.8s linear infinite both; }
.fw-node span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.08); color: #c7cdf0; margin-bottom: 4px; transition: background .3s; }
.fw-node b { font-size: 14px; }
.fw-node small { font-size: 11.5px; color: #9aa3bf; font-weight: 600; }
.n1 { left: 50%; top: 8.3%; animation-delay: 0s; }
.n2 { left: 91.7%; top: 50%; animation-delay: 2.2s; }
.n3 { left: 50%; top: 91.7%; animation-delay: 4.4s; }
.n4 { left: 8.3%; top: 50%; animation-delay: 6.6s; }
@keyframes nodeOn {
  0%, 20% { border-color: rgba(124,108,255,.85); box-shadow: 0 0 0 4px rgba(124,108,255,.18), 0 18px 40px -16px rgba(91,75,255,.8); transform: translate(-50%, -50%) scale(1.06); }
  28%, 100% { border-color: rgba(255,255,255,.14); box-shadow: 0 16px 34px -18px rgba(0,0,0,.8); transform: translate(-50%, -50%) scale(1); }
}

/* ---------- Sticky on-page nav ---------- */
.subnav { position: sticky; top: 64px; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px -18px rgba(16,24,64,.35); }
.subnav-inner { display: flex; align-items: center; gap: 4px; height: 58px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-inner a:not(.btn) { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; transition: background .25s, color .25s; }
.subnav-inner a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
.subnav-inner a.active { color: var(--brand-600); background: var(--grad-soft); }
.subnav-cta { margin-left: auto; flex: none; }

/* ---------- What it means ---------- */
.split-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.split-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.split-head p { color: var(--muted); font-size: 17px; margin: 0; }
.split-head p strong { color: var(--text); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(124,108,255,.35); }
.pillar-num { position: absolute; right: 24px; top: 18px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(124,108,255,.25); }
.pillar-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); margin-bottom: 18px; box-shadow: 0 12px 24px -12px rgba(79,70,229,.8); }
.pillar h3 { font-size: 22px; margin-bottom: 4px; }
.pillar-tag { color: var(--brand-600); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.pillar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pillar li { display: flex; gap: 9px; align-items: flex-start; color: #3b4361; font-size: 15px; }
.pillar li svg { flex: none; color: var(--success); margin-top: 4px; }
.benefit-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.benefit { display: flex; gap: 12px; padding: 24px 22px; border-right: 1px solid rgba(255,255,255,.08); }
.benefit:last-child { border-right: 0; }
.benefit > span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(124,108,255,.18); color: #b9b2ff; }
.benefit b { display: block; font-size: 15px; margin-bottom: 3px; }
.benefit small { display: block; color: #aab3cc; font-size: 13.5px; line-height: 1.5; }

/* ---------- Service explorer ---------- */
.svc-explorer { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.svc-tabs { display: grid; gap: 8px; position: sticky; top: 140px; }
.svc-tab { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 16px; border: 1px solid transparent; background: transparent; font: inherit; color: var(--text); cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.svc-tab:hover { background: #fff; transform: translateX(3px); }
.svc-tab.active { background: #fff; border-color: rgba(124,108,255,.4); box-shadow: var(--shadow); }
.svc-tab.active::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.svc-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--brand-600); background: var(--grad-soft); transition: background .3s, color .3s; }
.svc-tab.active .svc-ic { background: var(--grad); color: #fff; }
.svc-ic.big { width: 58px; height: 58px; border-radius: 17px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(79,70,229,.8); }
.svc-tab-text b { display: block; font-size: 14.5px; }
.svc-tab-text small { display: block; font-size: 12.5px; color: var(--muted); }
.svc-panels { min-width: 0; }
.svc-panel { padding: 34px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.svc-panel + .svc-panel { margin-top: 18px; }
.svc-explorer.js .svc-panel + .svc-panel { margin-top: 0; }
.svc-explorer.js .svc-panel:not(.active) { display: none; }
.svc-explorer.js .svc-panel.active { animation: panelIn .5s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.svc-panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.svc-kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.svc-panel h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; margin: 2px 0 0; }
.svc-desc { color: #3b4361; font-size: 16.5px; margin-bottom: 24px; }
.svc-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.svc-cols h4 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.svc-cols h4 + .chip-row + h4 { margin-top: 20px; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.svc-list svg { flex: none; color: #fff; background: var(--success); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 1px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #2b3350; background: var(--bg-alt); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.chip-row.kpi span { color: var(--brand-600); background: var(--grad-soft); border-color: rgba(124,108,255,.25); }

/* ---------- Vertical process timeline ---------- */
.vtimeline { position: relative; list-style: none; padding: 0; margin: 0 auto; max-width: 860px; }
.vt-line { position: absolute; left: 27px; top: 8px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vt-line i { display: block; width: 100%; height: 0; background: var(--grad); }
.vt-step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding-bottom: 20px; }
.vt-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--brand-600); transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.vt-step.lit .vt-dot { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: 0 12px 26px -10px rgba(79,70,229,.7); }
.vt-card { padding: 20px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.vt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(124,108,255,.35); }
.vt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.vt-num { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.vt-time { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #3b4361; background: var(--bg-alt); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.vt-card h3 { font-size: 20px; margin-bottom: 6px; }
.vt-card p { color: var(--muted); margin: 0 0 10px; }
.vt-get { display: flex; gap: 9px; align-items: flex-start; color: #1f2a44 !important; font-size: 14.5px; margin: 0 !important; padding: 10px 12px; border-radius: 12px; background: #f0fdf7; border: 1px solid #c9f2df; }
.vt-get svg { flex: none; color: var(--success); margin-top: 3px; }
.note-center { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* ---------- Scaling framework ---------- */
.scale-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 28px; align-items: stretch; }
.scale-tabs { display: grid; gap: 12px; align-content: start; }
.scale-tab { position: relative; display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #fff; font: inherit; cursor: pointer; overflow: hidden; transition: background .3s, border-color .3s; }
.scale-tab:hover { background: rgba(255,255,255,.06); }
.scale-tab.active { background: rgba(124,108,255,.14); border-color: rgba(124,108,255,.5); }
.scale-tab::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); }
.scale-tab.active::after { animation: progress var(--dur, 6s) linear forwards; }
#scaleGrid.paused .scale-tab.active::after { animation-play-state: paused; }
.scale-num { font-size: 14px; font-weight: 800; color: var(--accent-2); }
.scale-tab b { display: block; font-size: 18px; }
.scale-tab small { display: block; color: var(--muted-light); font-size: 13.5px; }
.scale-visual { position: relative; padding: 24px 26px 22px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.scale-chart { width: 100%; height: auto; display: block; overflow: visible; }
.sc-band { fill: transparent; transition: fill .5s; }
.sc-band.active { fill: rgba(124,108,255,.13); }
.sc-base { stroke: rgba(255,255,255,.15); stroke-width: 1; }
.sc-area-all { fill: rgba(255,255,255,.035); }
.sc-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 760; stroke-dashoffset: 760; }
.scale-grid.in .sc-line { animation: draw 2s var(--ease) .2s forwards; }
#scClipRect { transition: x .7s var(--ease), width .7s var(--ease); }
.sc-marker { transition: transform .8s var(--ease); }
.sc-dot { fill: #22d3ee; filter: drop-shadow(0 0 8px #22d3ee); }
.sc-halo { fill: rgba(34,211,238,.22); animation: halo 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes halo { 50% { transform: scale(1.5); opacity: .4; } }
.sc-label { fill: #7d86a3; font: 700 12.5px var(--font); transition: fill .3s; }
.sc-label.active { fill: #fff; }
.scale-detail { display: none; margin-top: 14px; }
.scale-detail.active { display: block; animation: panelIn .5s var(--ease) both; }
.scale-detail h3 { font-size: 22px; color: #fff; margin-bottom: 6px; }
.scale-detail h3 span { color: var(--accent-2); font-size: 15px; margin-right: 4px; }
.scale-detail p { color: var(--muted-light); margin-bottom: 12px; }
.scale-detail ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scale-detail li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #dbe2ff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; }
.scale-detail li svg { color: #34d399; }
.scale-note { margin: 14px 0 0; font-size: 12px; color: #7d86a3; }
.levers-wrap { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-top: 28px; }
.levers, .guardrails { padding: 28px; border-radius: var(--radius-lg); }
.levers { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.levers h3, .guardrails h3 { font-size: 20px; margin-bottom: 18px; }
.lever-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.lever { display: flex; gap: 12px; align-items: flex-start; }
.lever > span { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(124,108,255,.18); color: #b9b2ff; transition: background .3s, color .3s, transform .4s var(--ease); }
.lever:hover > span { background: var(--grad); color: #fff; transform: rotate(-6deg); }
.lever b { display: block; font-size: 15px; }
.lever small { display: block; color: var(--muted-light); font-size: 13.5px; line-height: 1.5; }
.guardrails { position: relative; background: linear-gradient(160deg, rgba(52,211,153,.12), rgba(6,182,212,.06)); border: 1px solid rgba(52,211,153,.3); }
.guard-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(52,211,153,.18); color: #34d399; margin-bottom: 14px; }
.guardrails ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guardrails li { display: flex; gap: 10px; align-items: flex-start; color: #d1fae5; font-size: 15px; }
.guardrails li svg { flex: none; color: #34d399; margin-top: 4px; }

/* ---------- Reporting ---------- */
.report-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.report-split h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.muted-lg { color: var(--muted); font-size: 17px; }
.get-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.get-list li { display: flex; gap: 14px; align-items: flex-start; }
.get-list li > span { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-600); }
.get-list b { display: block; font-size: 16px; }
.get-list small { display: block; color: var(--muted); font-size: 14px; }
.metric-board { padding: 28px; border-radius: var(--radius-lg); background: radial-gradient(500px 300px at 90% 0%, rgba(124,108,255,.35), transparent 60%), var(--ink); box-shadow: var(--shadow-lg); }
.metric-title { color: #9aa3bf; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.metric:hover { transform: translateY(-3px); border-color: rgba(124,108,255,.55); background: rgba(124,108,255,.12); }
.metric b { display: block; color: #fff; font-size: 16px; }
.metric small { display: block; color: #aab3cc; font-size: 12.5px; }
.metric-board.in .metric { animation: layerIn .6s var(--ease) both; animation-delay: calc(var(--i) * 70ms + .1s); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split-head, .report-split { grid-template-columns: 1fr; gap: 20px; }
  .report-split { gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .benefit-strip { grid-template-columns: 1fr 1fr; }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .scale-grid, .levers-wrap { grid-template-columns: 1fr; }
  .flywheel { max-width: 400px; }
}
@media (max-width: 900px) {
  .svc-explorer { grid-template-columns: 1fr; }
  .svc-tabs { display: none; }
  .svc-explorer.js .svc-panel:not(.active) { display: block; }
  .svc-explorer.js .svc-panel + .svc-panel { margin-top: 18px; }
  .svc-explorer.js .svc-panel.active { animation: none; }
  .subnav { top: 64px; }
  .subnav-cta { display: none; } /* the header already shows Apply on mobile */
}
@media (max-width: 640px) {
  .hero.hero-page { padding: 112px 0 64px; }
  .flywheel { max-width: 320px; margin-top: 10px; }
  .fw-node { min-width: 0; padding: 7px 9px; }
  .fw-node small { display: none; }
  .fw-node span { width: 28px; height: 28px; }
  .fw-center b { font-size: 12px; }
  .fw-center img { width: 40px; height: 40px; }
  .benefit-strip { grid-template-columns: 1fr; }
  .benefit { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .svc-panel { padding: 22px 18px; }
  .svc-cols { grid-template-columns: 1fr; }
  .vt-step { grid-template-columns: 46px 1fr; gap: 14px; }
  .vt-dot { width: 46px; height: 46px; }
  .vt-line { left: 21px; }
  .vt-card { padding: 16px 16px; }
  .lever-grid, .metric-grid { grid-template-columns: 1fr; }
  .levers, .guardrails, .metric-board { padding: 22px 18px; }
  .scale-visual { padding: 18px 14px; }
  .sc-label { font-size: 23px; } /* SVG units: stays readable when the chart shrinks to phone width */
  .pillar { padding: 24px 20px; }
}
