/* Approach lab + maturity CTA. Theme through the --ap-* variables set on .approach. */
.approach {
  --ap-fg: var(--on-navy, #EEF2F9); --ap-fg2: var(--on-navy-2, #9AA6BC); --ap-line: var(--navy-line, #1E3358);
  --ap-card: var(--navy-2, #0B1B33); --ap-acc: var(--blue-l, #5988FD);
  --ap-low: var(--mint, #46DAAB); --ap-mid: var(--gold-l, #E7CB8F); --ap-high: #F48A7A;
  --ap-btn-bg: #fff; --ap-btn-fg: var(--navy, #040A16); --ap-ghost: rgba(255,255,255,.28);
}
.ap-lab-wrap { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 9vw, 120px); }
.lab { color: var(--ap-fg); }
.lab-head { max-width: 640px; margin-bottom: 34px; }
.lab-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; color: var(--ap-fg); }
.lab-sub { color: var(--ap-fg2); margin-top: 12px; font-size: 17px; }
.lab-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-fg2); margin: 0 0 12px; display: block; }
.lab-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .lab-grid { grid-template-columns: 1fr; } }
.lab-in, .lab-out { background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 24px; padding: clamp(20px, 2.6vw, 30px); min-width: 0; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.presets button { font: 600 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--ap-line); background: transparent; color: var(--ap-fg); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.presets button:hover { border-color: var(--ap-acc); transform: translateY(-1px); }
.presets button[aria-pressed="true"] { background: var(--ap-acc); border-color: var(--ap-acc); color: var(--ap-btn-fg); }
.qs { display: grid; gap: 8px; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ap-line); background: transparent; color: var(--ap-fg); cursor: pointer; font: inherit; transition: border-color .2s, background .2s; }
.q:hover { border-color: var(--ap-acc); }
.q[aria-checked="true"] { border-color: var(--ap-acc); background: color-mix(in srgb, var(--ap-acc) 12%, transparent); }
.q-txt { min-width: 0; }
.q b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.q small { display: block; font-size: 13px; color: var(--ap-fg2); margin-top: 3px; line-height: 1.4; }
.sw { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--ap-line); position: relative; transition: background .25s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.q[aria-checked="true"] .sw { background: var(--ap-acc); }
.q[aria-checked="true"] .sw i { transform: translateX(18px); }

.tier-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.tier-name { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); line-height: 1; letter-spacing: -.02em; transition: color .3s; }
.tier-name[data-t="low"] { color: var(--ap-low); } .tier-name[data-t="mid"] { color: var(--ap-mid); } .tier-name[data-t="high"] { color: var(--ap-high); }
.meter { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(220px, 100%); padding-bottom: 12px; }
.meter i { height: 8px; border-radius: 4px; background: var(--ap-line); transition: background .3s; }
.meter[data-t="low"] i:nth-child(1), .meter[data-t="mid"] i:nth-child(-n+2), .meter[data-t="high"] i { background: currentColor; }
.meter[data-t="low"] { color: var(--ap-low); } .meter[data-t="mid"] { color: var(--ap-mid); } .meter[data-t="high"] { color: var(--ap-high); }
.meter span { position: absolute; bottom: 0; width: 0; height: 0; border: 6px solid transparent; border-bottom-color: currentColor; transform: translateX(-50%); transition: left .5s cubic-bezier(.3,1.3,.5,1); }
.tier-note { color: var(--ap-fg2); font-size: 15px; margin: 10px 0 6px; }

.route { width: 100%; height: auto; display: block; margin: 8px 0 14px; overflow: visible; }
.route .lane { fill: none; stroke: var(--ap-line); stroke-width: 2; stroke-dasharray: 5 6; transition: stroke .4s, stroke-width .4s; }
.route .lane.on { stroke-dasharray: none; stroke-width: 3.5; }
.route[data-t="low"] .lane.on, .route[data-t="low"] .token { stroke: var(--ap-low); fill: var(--ap-low); }
.route[data-t="mid"] .lane.on, .route[data-t="mid"] .token { stroke: var(--ap-mid); fill: var(--ap-mid); }
.route[data-t="high"] .lane.on, .route[data-t="high"] .token { stroke: var(--ap-high); fill: var(--ap-high); }
.route .lane.on { fill: none !important; }
.route .token { stroke-width: 0; filter: drop-shadow(0 0 6px currentColor); transition: opacity .25s; }
.route .nodes circle { fill: var(--ap-card); stroke: var(--ap-fg2); stroke-width: 2; }
.route text { font: 600 12px var(--sans); fill: var(--ap-fg2); letter-spacing: .02em; }
.route .labels text { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; }

.time { display: grid; gap: 8px; margin-bottom: 20px; }
.time-row { display: grid; grid-template-columns: 150px 1fr 54px; align-items: center; gap: 12px; font-size: 14px; }
.time-row b { text-align: right; font-variant-numeric: tabular-nums; }
.time-row .bar { height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--ap-line) 60%, transparent); overflow: hidden; }
.time-row .bar i { display: block; height: 100%; border-radius: 6px; background: var(--ap-acc); transition: width .6s cubic-bezier(.3,1.2,.5,1); }
.time-row.muted { color: var(--ap-fg2); }
.time-row.muted .bar i { background: var(--ap-fg2); opacity: .45; }
.time-note { font-size: 13px; color: var(--ap-fg2); margin: 2px 0 0; }
.time-note b { color: var(--ap-fg); }
@media (max-width: 520px) { .time-row { grid-template-columns: 1fr 54px; } .time-row .bar { grid-column: 1 / -1; grid-row: 2; } }

.ctl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (max-width: 560px) { .ctl ul { grid-template-columns: 1fr; } }
.ctl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; animation: ctlIn .45s both; }
.ctl li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--ap-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
@keyframes ctlIn { from { opacity: 0; transform: translateX(-8px); } }

.mm-cta { margin-top: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 24px; border: 1px solid var(--ap-line); background: linear-gradient(120deg, color-mix(in srgb, var(--ap-acc) 22%, var(--ap-card)), var(--ap-card) 60%); }
@media (max-width: 900px) { .mm-cta { grid-template-columns: 1fr; gap: 18px; } }
.mm-ring { position: relative; width: 96px; height: 96px; }
.mm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mm-ring circle { fill: none; stroke: var(--ap-line); stroke-width: 10; }
.mm-ring .arc { stroke: var(--ap-acc); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 126; animation: ring 3s ease-in-out infinite alternate; }
@keyframes ring { to { stroke-dashoffset: 60; } }
.mm-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 24px; }
.mm-copy { min-width: 0; }
.mm-copy h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--ap-fg); }
.mm-copy p { color: var(--ap-fg2); margin-top: 8px; max-width: 60ch; }
.mm-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .mm-actions { flex-direction: row; flex-wrap: wrap; } }
.btn.mm-primary { background: var(--ap-btn-bg); color: var(--ap-btn-fg); justify-content: center; }
.btn.mm-primary:hover { background: var(--ap-acc); color: var(--ap-btn-fg); }
.btn.mm-ghost { border-color: var(--ap-ghost); color: var(--ap-fg); background: transparent; justify-content: center; }
.btn.mm-ghost:hover { border-color: var(--ap-fg); }

/* clickable workflow steps and nodes */
.steps li { cursor: pointer; }
.steps li:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.d-node { cursor: pointer; }
.ap-hint { font-size: 13px; color: var(--ap-fg2); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.ap-hint i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; flex: none; }
.ap-hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ctl li, .mm-ring .arc, .ap-hint i::after { animation: none; } }

/* pinned panel: keep it within one laptop-height screen */
.ap-left { min-width: 0; }
@media (min-width: 981px) {
  .approach .ap-track .pin { padding-block: 92px 24px; }
  .approach .sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 40px; }
  .approach .sec-head > div { max-width: none; }
  .approach .sec-head h2 { font-size: clamp(30px, 3.3vw, 46px); }
  .approach .sec-head p.sub { margin: 0; max-width: none !important; font-size: 16.5px; }
  .approach .diagram svg { max-height: calc(100svh - 300px); }
}
@media (min-width: 981px) and (max-height: 820px) {
  .approach .steps li { padding-block: 7px; }
  .approach .steps li b { font-size: 16px; }
  .approach .ap-hint { margin-top: 8px; }
}
