/* ============================================================
   MAESTRO — Features page styles. Shares tokens.css + page.css.
   Tabbed capabilities, journey flow, process, ROI.
   ============================================================ */

/* ---- Capability tabs ---- */
.captabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.captab { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; cursor: pointer; min-width: 210px; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; font-family: var(--font-sans); }
.captab:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.captab__ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); }
.captab__ic .ic { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 1.75; }
.captab__meta b { display: block; font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.01em; color: var(--fg); }
.captab__meta span { font-size: var(--text-xs); color: var(--fg-tertiary); }
.captab--on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.captab--coral .captab__ic { background: var(--coral-soft); }
.captab--coral .captab__ic .ic { stroke: var(--coral); }
.captab--coral.captab--on { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }

/* ---- Capability panels ---- */
.cappanel { display: none; }
.cappanel.cappanel--on { display: block; animation: capIn 320ms cubic-bezier(0.2,0,0,1); }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cappanel.cappanel--on { animation: none; } }
.cap-eyebrow { text-align: center; }
.cap-eyebrow h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; color: var(--fg); }
.cap-eyebrow h2 em { font-style: normal; color: var(--accent); }
.cap-eyebrow--coral h2 em { color: var(--coral); }
.cap-eyebrow p { font-size: var(--text-md); color: var(--fg-secondary); margin: 0 0 44px; }

/* feature grid */
.fgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
@media (max-width: 860px) { .fgrid3 { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); padding: 30px 28px; transition: background 160ms ease; }
.fcard:hover { background: var(--surface-hover); }
.fcard__ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.fcard__ic .ic { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.75; }
.fcard--coral .fcard__ic { background: var(--coral-soft); }
.fcard--coral .fcard__ic .ic { stroke: var(--coral); }
.fcard h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--fg); }
.fcard p { font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-normal); margin: 0; }

/* ---- Journey flow ---- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.journey:has(.jstep:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); max-width: 860px; margin-inline: auto; }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr 1fr; gap: 32px 0; } }
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }
.jstep { text-align: center; padding: 0 18px; position: relative; }
.jstep__ic { width: 60px; height: 60px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.jstep__ic .ic { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 1.75; }
.jstep--coral .jstep__ic .ic { stroke: var(--coral); }
.jstep:not(:last-child)::after { content: ""; position: absolute; top: 30px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 1; }
@media (max-width: 860px) { .jstep:not(:last-child)::after { display: none; } }
.jstep__k { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.jstep h4 { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; letter-spacing: -0.01em; margin: 6px 0 8px; color: var(--fg); }
.jstep p { font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-normal); margin: 0; }

/* ---- Systems bridge ---- */
.bridge { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 34px; margin-top: 48px; }
.bridge__head { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 26px; font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--fg); }
.bridge__head .ic { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 1.75; }
.bridge__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 720px) { .bridge__grid { grid-template-columns: 1fr; } }
.bridge__col h5 { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--fg-tertiary); font-weight: var(--weight-semibold); margin: 0 0 14px; text-align: center; }
.bridge__list { list-style: none; margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-sunk); display: flex; flex-direction: column; gap: 12px; height: 100%; }
.bridge__list li { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--fg-secondary); }
.bridge__list .ic { width: 15px; height: 15px; stroke: var(--fg-tertiary); stroke-width: 1.75; flex: none; }
.bridge__mid { display: grid; place-items: center; }
.bridge__swap { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.bridge__swap .ic { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.75; }
@media (max-width: 720px) { .bridge__swap { transform: rotate(90deg); } }
.bridge__foot { text-align: center; font-size: var(--text-sm); color: var(--fg-tertiary); margin: 24px 0 0; font-style: italic; }

/* ---- Process + security ---- */
.proc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .proc-grid { grid-template-columns: 1fr; gap: 40px; } }
.proc-col h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 26px; color: var(--fg); }
.pstep { display: flex; gap: 16px; padding-bottom: 26px; position: relative; }
.pstep:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--border); }
.pstep__no { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: var(--weight-semibold); flex: none; position: relative; z-index: 2; }
.pstep__meta b { display: block; font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--fg); margin-bottom: 4px; }
.pstep__meta p { font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-normal); margin: 0; }
.srow { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.srow:first-of-type { border-top: 1px solid var(--border); }
.srow__ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.srow__ic .ic { width: 17px; height: 17px; stroke: var(--accent); stroke-width: 1.75; }
.srow__meta b { display: block; font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--fg); margin-bottom: 3px; }
.srow__meta p { font-size: var(--text-sm); color: var(--fg-secondary); line-height: var(--lh-normal); margin: 0; }

/* ---- ROI band ---- */
.roi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
@media (max-width: 720px) { .roi { grid-template-columns: repeat(2, 1fr); } }
.roi__cell { background: var(--surface); padding: 34px 24px; text-align: center; }
.roi__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 16px; }
.roi__ic .ic { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 1.75; }
.roi__lbl { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--fg-tertiary); font-weight: var(--weight-semibold); margin-bottom: 10px; }
.roi__num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-size: clamp(34px, 4vw, 46px); font-weight: var(--weight-medium); letter-spacing: -0.02em; color: var(--fg); line-height: 1; }
.roi__note { font-size: var(--text-xs); color: var(--fg-tertiary); margin-top: 10px; }
