/* ==========================================================
   eneprox Flow — inner page components
   Loaded after styles.css and reads the same :root tokens.
   ========================================================== */

.nav-link.is-current { color: var(--brand-text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
[hidden] { display: none !important; }
ol { list-style: none; margin: 0; padding: 0; }

/* ---------- page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero-inner { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 18ch; margin-top: 18px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .cta-row { justify-content: flex-start; margin-top: 28px; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero-inner { display: flex; flex-direction: column; align-items: center; }
.page-hero--center .cta-row { justify-content: center; }
.page-hero--split .page-hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero-media .mock { box-shadow: var(--shadow-lg); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--text-light); }

.final-cta--spaced { padding-top: var(--section-y); }

/* ---------- generic grids + cards ---------- */
.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 { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card h3 { font-size: 1.2rem; margin: 0; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); position: relative; flex-shrink: 0; }
.card-icon::after { content: ""; position: absolute; inset: 14px; border-radius: 5px; background: var(--brand); }
.section--dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: var(--on-dark-muted); }
.section--dark .card-icon { background: var(--primary-20); }
.section--dark .card-icon::after { background: var(--brand-bright); }

/* static logo strip */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-strip li { width: 150px; height: 56px; display: grid; place-items: center; border-radius: 12px; border: 1px dashed var(--text-lighter); color: var(--text-light); font-weight: 650; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- alternating feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 112px); }
.feature-row--flip .feature-media { order: -1; }
.feature-copy p { color: var(--muted); font-size: 1.06rem; }
.feature-media .mock { box-shadow: var(--shadow); }
.check-list { display: grid; gap: 12px; margin: 22px 0 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: "✓"; flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); font-size: .78rem; font-weight: 700; margin-top: 2px; }

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 760; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.stat span { color: var(--muted); }
.section--dark .stat b { color: #fff; }
.section--dark .stat span { color: var(--on-dark-muted); }
.stats--card { padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 6px); background: var(--bg-soft); }

/* ---------- numbered steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-text); margin-bottom: 14px; }
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 50%; translate: 0 -50%; width: 14px; text-align: center; color: var(--text-light); font-weight: 700; z-index: 1; }

/* before / after cards */
.shift { padding: 0; overflow: hidden; gap: 0; }
.shift > div { padding: 24px 28px; }
.shift-before { background: var(--bg-soft); color: var(--muted); }
.shift-label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--text-light); }
.shift-after .shift-label { color: var(--brand-text); }
.shift-after { color: var(--ink); font-weight: 560; }

/* single large quote */
.quote-feature { max-width: 900px; margin-inline: auto; text-align: center; }
.quote-feature blockquote { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 640; color: var(--ink); }
.quote-feature figcaption { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.quote-feature figcaption b { display: block; color: var(--ink); }
.quote-feature figcaption small { color: var(--muted); }

/* ==========================================================
   PRICING
   ========================================================== */
.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-top: 30px; }
.billing button { padding: 9px 20px; border-radius: 999px; font-weight: 620; color: var(--muted); transition: background-color .25s, color .2s; }
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing small { margin-left: 6px; color: var(--brand-text); font-weight: 700; }
.billing button[aria-pressed="true"] small { color: var(--brand-bright); }

.plans-section { padding-top: 24px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: #fff; }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -14px; left: 50%; translate: -50% 0; background: var(--accent); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan h2 { font-size: 1.5rem; margin: 0; }
.plan-desc { margin: 0; color: var(--muted); min-height: 3.2em; }
.plan-price { font-size: 2.7rem; font-weight: 760; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.plan-price small { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.plan-price span { display: inline-block; transition: opacity .2s, transform .2s var(--ease); }
.plan-price.is-swapping span { opacity: 0; transform: translateY(6px); }
.plan-list { display: grid; gap: 12px; flex: 1; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-list li { display: flex; gap: 10px; font-size: .97rem; }
.plan-list li::before { content: "✓"; color: var(--brand-text); font-weight: 700; }

.compare-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; } /* relative: keeps visually-hidden labels inside the scroll frame */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { position: sticky; top: var(--header-h); z-index: 2; background: #fff; color: var(--ink); font-size: 1.05rem; box-shadow: 0 1px 0 var(--line); }
.compare thead th:first-child { border-top-left-radius: var(--radius); }
.compare thead th:last-child { border-top-right-radius: var(--radius); }
.compare th[scope="row"] { text-align: left; font-weight: 560; color: var(--ink); width: 40%; }
.compare-group th { text-align: left; background: var(--bg-soft); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-block: 12px; }
.compare tbody tr:not(.compare-group):hover > * { background: var(--primary-5); }
.compare .is-featured { background: var(--primary-5); }
.compare thead th.is-featured { background: color-mix(in srgb, var(--primary-100) 5%, #fff); } /* opaque, so rows do not show through the sticky header */
.yes::before { content: "✓"; color: var(--brand-text); font-weight: 700; }
.no::before { content: "—"; color: var(--text-light); }
.tip { position: relative; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 1.5px solid var(--text-light); color: var(--text-light); font-size: .7rem; font-weight: 700; line-height: 1; vertical-align: middle; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 4px; width: max-content; max-width: 240px; padding: 9px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 500; line-height: 1.4; text-align: left; opacity: 0; visibility: hidden; transition: opacity .2s, translate .2s var(--ease); pointer-events: none; z-index: 5; }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; visibility: visible; translate: -50% 0; }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 650; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--brand-text); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); animation: panel-in .35s var(--ease); }

/* ==========================================================
   PLATFORM
   ========================================================== */
.layers { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.layer { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 22px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.layer:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.layer b { color: var(--ink); font-size: 1.1rem; }
.layer p { margin: 0; color: var(--muted); }
.layer:nth-child(1) { border-left: 5px solid var(--primary-100); }
.layer:nth-child(2) { border-left: 5px solid var(--primary-140); }
.layer:nth-child(3) { border-left: 5px solid var(--ink); }
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-grid li { height: 84px; display: grid; place-items: center; border-radius: 14px; border: 1px dashed var(--text-lighter); color: var(--text-light); font-size: .82rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 8px; }

/* ==========================================================
   CUSTOMER STORIES + RESOURCES (filterable grids)
   ========================================================== */
.feature-story { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: calc(var(--radius) + 8px); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s var(--ease); }
a.feature-story:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-story .case-art { height: auto; min-height: 320px; }
.feature-story-copy { padding: clamp(24px, 4vw, 48px); display: grid; gap: 16px; align-content: center; }
.feature-story-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0; }
.feature-story-copy p { margin: 0; color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 32px; }
.filter-bar .search-field { margin-left: auto; }
.search-field { position: relative; width: min(100%, 300px); }
.search-field input { width: 100%; font: inherit; padding: 11px 18px 11px 42px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.search-field input:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-tint); }
.search-field::before { content: ""; position: absolute; left: 16px; top: 50%; width: 13px; height: 13px; translate: 0 -60%; border: 2px solid var(--text-light); border-radius: 50%; }
.search-field::after { content: ""; position: absolute; left: 28px; top: 50%; width: 7px; height: 2px; translate: 0 5px; rotate: 45deg; background: var(--text-light); border-radius: 2px; }
.filter-count { color: var(--muted); font-size: .92rem; margin: -12px 0 24px; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--text-lighter); border-radius: var(--radius); }
.load-more { display: flex; justify-content: center; margin-top: 40px; }
.grid .story-card { padding: 26px; }
[data-cat] { animation: panel-in .4s var(--ease) both; }

.res-card { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.res-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.res-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), var(--ink)); }
li:nth-child(3n + 2) > .res-card .res-thumb { background: linear-gradient(135deg, var(--primary-100), var(--primary-140)); }
li:nth-child(3n) > .res-card .res-thumb { background: linear-gradient(135deg, var(--secondary-120), var(--secondary-100)); }
.res-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.res-body h3 { font-size: 1.15rem; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.res-meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .88rem; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.newsletter h2 { margin: 0 0 .3em; }
.newsletter p { margin: 0; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; font: inherit; padding: 14px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; }
.inline-form input::placeholder { color: var(--on-dark-faint); }
.inline-form input:focus { outline: none; border-color: var(--brand-bright); }
.inline-form input.is-invalid { border-color: #ff8f85; }
.form-success { margin: 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--ink); font-weight: 600; }

/* ==========================================================
   SINGLE STORY (article)
   ========================================================== */
.read-progress { position: fixed; left: 0; top: var(--header-h); z-index: 49; height: 3px; width: 100%; background: var(--brand-bright); transform: scaleX(0); transform-origin: left; }
.story-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.story-facts li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.story-facts b { color: var(--ink); }
.article-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 6px; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.facts { margin: 0 0 12px; }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 16px; color: var(--ink); font-weight: 600; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.08rem; }
.prose .pull { margin: 1.8em 0; padding-left: 24px; border-left: 4px solid var(--brand); font-size: 1.4rem; line-height: 1.38; font-weight: 620; color: var(--ink); letter-spacing: -.01em; }
.prose .pull cite { display: block; margin-top: 12px; font-size: .95rem; font-style: normal; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ==========================================================
   ABOUT
   ========================================================== */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.split h2 { margin: 0; }
.split p { font-size: 1.12rem; color: var(--muted); }
.section--dark .split p { color: var(--on-dark-muted); }
.timeline { position: relative; display: grid; gap: 30px; max-width: 760px; padding-left: 30px; border-left: 2px solid var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -40px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.timeline b { display: block; color: var(--brand-text); font-size: .85rem; letter-spacing: .06em; }
.timeline h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }
.person { text-align: center; display: grid; gap: 4px; justify-items: center; }
.person-photo { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-100), var(--primary-140)); margin-bottom: 12px; }
.person b { color: var(--ink); }
.person small { color: var(--muted); }
.roles { border-top: 1px solid rgba(255, 255, 255, .12); }
.roles a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); transition: padding .3s var(--ease), background-color .3s; }
.roles a:hover { padding-inline: 16px; background: rgba(255, 255, 255, .04); }
.roles b { color: #fff; font-size: 1.1rem; }
.roles small { display: block; color: var(--on-dark-muted); }

/* about: story, leadership cards, value cards */
.about-story .split p { color: var(--text); font-size: 1.2rem; line-height: 1.65; margin: 0; }
.leader { gap: 20px; padding: clamp(24px, 3vw, 36px); }
.leader-head { display: flex; align-items: center; gap: 18px; }
.leader-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-soft); }
.leader-head h3 { font-size: 1.3rem; margin: 0 0 2px; }
.leader-head p { color: var(--brand-text); font-weight: 650; font-size: .95rem; }
.leader > p, .value p { color: var(--text); font-size: 1rem; }
.value { gap: 14px; padding: clamp(24px, 3vw, 36px); }
.value-icon { width: 64px; height: 64px; }
.value h3 { font-size: 1.35rem; }
img.avatar { object-fit: cover; }
.final-cta-box p { margin: 0; max-width: 56ch; font-size: 1.12rem; color: var(--on-dark-muted); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-options { display: grid; gap: 16px; margin-top: 32px; }
.contact-options .card { flex-direction: row; align-items: flex-start; gap: 18px; padding: 22px; }
.contact-card { padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) + 6px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.contact-card h2 { font-size: 1.6rem; }
.contact-card .form { margin-top: 18px; }
.field textarea { font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; min-height: 120px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==========================================================
   LIFECYCLE + MODULE TEMPLATES (plan.html, financials.html)
   ========================================================== */
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.page-hero-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero-split h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 20ch; }
.page-hero-media .mock { box-shadow: var(--shadow-lg); }
.shot-note { display: flex; gap: 8px; margin: 12px 0 0; font-size: .84rem; color: var(--muted); }
.shot-note::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }

/* lifecycle stepper */
.stage-stepper { margin-bottom: clamp(28px, 4vw, 44px); }
.stage-stepper ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stage-stepper a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.stage-stepper a:hover { border-color: var(--brand-text); }
.stage-stepper .n { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-soft); color: var(--brand-text); font-weight: 700; font-size: .88rem; }
.stage-stepper b { display: block; color: var(--ink); font-size: 1rem; line-height: 1.2; }
.stage-stepper small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.stage-stepper .is-current a { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.stage-stepper .is-current .n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* demo call-to-action bands */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px); border-radius: calc(var(--radius) + 4px); background: var(--brand-tint); }
.cta-band h2 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--text); }
.cta-split { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-split h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-split p { margin: 0; max-width: 56ch; color: var(--on-dark-muted); }

/* module template bits */
.used-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.used-in span { margin-right: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.used-in a { padding: 6px 14px; border-radius: 999px; border: 1px solid transparent; background: var(--brand-tint); color: var(--ink); font-weight: 600; font-size: .92rem; transition: border-color .2s; }
.used-in a:hover { border-color: var(--brand-text); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.card--quiet { background: var(--bg-soft); }
.stage-cards .eyebrow { margin-bottom: 2px; }

/* next stage hand-off */
.handoff { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: #fff; transition: box-shadow .3s, transform .3s var(--ease); }
.handoff:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.handoff h2 { margin: 8px 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.handoff p { margin: 0; }
.handoff-arrow { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 1.5rem; font-weight: 700; }

/* sticky demo bar: appears once the hero has scrolled away */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(49, 64, 65, .08); transform: translateY(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.sticky-cta.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.sticky-cta p { margin: 0; color: var(--text); }
.sticky-cta b { color: var(--ink); }
.sticky-cta-actions { display: flex; align-items: center; gap: 6px; }
.sticky-close { width: 36px; height: 36px; border-radius: 50%; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.sticky-close:hover { background: var(--bg-soft); color: var(--ink); }

@media (max-width: 900px) {
  .page-hero-split { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: 1fr; }
  .stage-stepper ol { grid-template-columns: repeat(2, 1fr); }
  .cta-band, .cta-split { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .stage-stepper small { display: none; }
  .sticky-cta p { display: none; }
  .sticky-cta-actions { width: 100%; }
  .sticky-cta-actions .btn { flex: 1; }
  .handoff { grid-template-columns: 1fr; }
}

/* ==========================================================
   APP ILLUSTRATIONS (simplified views of Flow screens)
   Built on the .mock frame. Figures are invented examples.
   ========================================================== */
.mock-app { --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; container-type: inline-size; }
.mock-app .mock-side b.is-on { background: var(--brand); opacity: .9; }
.mock-app .mock-side b:first-child:not(.is-on) { background: var(--bg-soft); }
.mock-app .mock-main { gap: 14px; }
@media (min-width: 601px) { .mock-app .mock-body { grid-template-columns: 64px minmax(0, 1fr); } }
@media (max-width: 600px) { .mock-app .mock-body { grid-template-columns: minmax(0, 1fr); } }
.mock-app .mock-main, .mock-app .mock-main > * { min-width: 0; }
.app-card-head > div { min-width: 0; }
.app-label { font: 600 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .app-label, .ov-field .app-label, .app-out .app-label, .sr-field .app-label { display: block; }
.app-skel { display: block; height: 8px; border-radius: 4px; background: var(--text-lighter); }

/* project header */
.ov-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ov-head .app-skel { width: 54px; margin-bottom: 8px; }
.ov-title { display: block; font-weight: 800; font-size: 19px; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }
.ov-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ov-pill { font: 700 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: var(--brand); color: var(--on-brand); }
.ov-pill--rag { background: var(--brand-tint); color: var(--brand-text); display: inline-flex; align-items: center; gap: 5px; }
.ov-pill--rag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2e9d5b; }
.ov-actions { display: grid; gap: 6px; flex-shrink: 0; }
.ov-actions span { display: block; width: 74px; height: 22px; border-radius: 7px; border: 1px solid var(--line); }

/* tab strip */
.ov-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
.ov-tabs span { padding-bottom: 8px; }
.ov-tabs .is-on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand-text); }

/* KPI tiles */
.ov-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ov-tile { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.ov-tile strong { display: block; margin-top: 7px; font-size: 19px; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.ov-tile small { display: block; margin-top: 6px; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile--skel { background: var(--bg-soft); border-color: transparent; }
.ov-tile--skel .app-skel { width: 52%; }
.ov-tile--skel .app-skel + .app-skel { width: 34%; height: 16px; margin-top: 9px; background: currentColor; opacity: .3; }

/* the parts the page talks about */
.is-key { position: relative; border-color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-tint), 0 10px 24px rgba(0, 128, 134, .14); }
.is-key strong { color: var(--brand-text); }

/* CAPEX / OPEX inputs */
.ov-inputs { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.ov-inputs > p { margin: 6px 0 10px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.ov-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.ov-field b { display: block; margin-top: 5px; padding-bottom: 5px; border-bottom: 1px solid var(--line); font: 600 12px/1.2 var(--mono); color: var(--ink); }
.ov-field b.is-blank { color: var(--text-light); font-weight: 400; }
.ov-resolved { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ov-resolved div { padding: 8px 10px; border-radius: 8px; background: var(--bg-soft); }
.ov-resolved b { display: block; margin-top: 4px; font: 700 13px/1 var(--mono); color: var(--ink); }

@container (max-width: 470px) {
  .ov-actions, .ov-tabs span:nth-child(n+5) { display: none; }
  .ov-tile { padding: 9px; }
  .ov-tile .app-label { letter-spacing: .04em; font-size: 8.5px; }
  .ov-tile strong { font-size: 15px; }
  .ov-tile small, .ov-inputs > p { display: none; }
  .ov-fields { grid-template-columns: 1fr 1fr; }
  .ov-inputs .ov-fields .ov-field:first-child { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-in .is-key { animation: key-pulse 1.6s .6s var(--ease) both; }
}
@keyframes key-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 214, 223, .45); } 60% { box-shadow: 0 0 0 10px rgba(0, 214, 223, 0); } 100% { box-shadow: 0 0 0 4px var(--brand-tint), 0 10px 24px rgba(0, 128, 134, .14); } }


/* ---- shared parts for tab and list illustrations ---- */
.app-proj { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-proj .ov-title { font-size: 15px; }
.app-proj .ov-pills { margin-top: 5px; }
.app-btn { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 6px 10px; border-radius: 7px; font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--ink); color: #fff; }
.app-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.app-btn--brand { background: var(--brand); color: var(--on-brand); }
.app-btn.is-key { border-color: var(--brand-text); }
.app-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.app-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.app-card h4 { margin: 4px 0 0; font-size: 13.5px; font-weight: 750; color: var(--ink); line-height: 1.2; }
.app-card p { margin: 4px 0 0; font-size: 9.5px; line-height: 1.45; color: var(--muted); }
.app-card .ov-fields { margin-top: 10px; }
.app-fields-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.app-outs { display: grid; gap: 7px; margin-top: 9px; }
.app-outs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-outs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-out { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.app-out b { display: block; margin-top: 4px; font: 700 12px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.app-out small { display: block; margin-top: 4px; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-out.is-key b { color: var(--brand-text); }
.app-out--soft { background: var(--bg-soft); border-color: transparent; }
.app-flag { display: inline-block; margin-top: 4px; padding: 3px 6px; border-radius: 99px; font: 700 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--bg-soft); color: var(--muted); }
.app-card--quiet { background: var(--bg-soft); border-color: transparent; }

/* PPA vs grid comparison bar */
.app-compare { display: grid; gap: 5px; margin-top: 10px; }
.app-compare div { display: grid; grid-template-columns: 54px 1fr 50px; align-items: center; gap: 8px; font-size: 9.5px; color: var(--muted); }
.app-compare i { display: block; height: 9px; border-radius: 5px; background: var(--text-lighter); }
.app-compare div:first-child i { background: var(--brand); }
.app-compare b { font: 700 10px/1 var(--mono); color: var(--ink); text-align: right; }

/* Site Rates */
.sr-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; font: 600 8.5px/1 var(--mono); color: var(--muted); }
.sr-chain span { padding: 4px 7px; border-radius: 99px; border: 1px solid var(--line); }
.sr-chain span.is-on { background: var(--brand-tint); border-color: var(--brand-text); color: var(--brand-text); }
.sr-chain em { font-style: normal; }
.sr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin-top: 12px; }
.sr-field { min-width: 0; }
.sr-input { display: grid; grid-template-columns: 1fr auto; margin-top: 5px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.sr-input b { padding: 7px 9px; font: 600 12px/1 var(--mono); color: var(--ink); }
.sr-input b.is-blank { color: var(--text-light); font-weight: 400; }
.sr-input span { padding: 7px 8px; font: 500 9px/1.1 var(--mono); color: var(--muted); background: var(--bg-soft); display: flex; align-items: center; }
.sr-input.is-key { border-color: var(--brand-text); }
.sr-input.is-key span { background: var(--brand-tint); color: var(--brand-text); }
.sr-hint { display: block; margin-top: 4px; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-field.is-set .sr-hint { color: var(--brand-text); font-weight: 600; }
.sr-actions { display: flex; gap: 6px; margin-top: 12px; }

/* Projects list */
.pl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.pl-head .ov-title { font-size: 18px; }
.pl-actions { display: flex; gap: 5px; position: relative; }
.pl-tools { display: flex; align-items: center; gap: 10px; }
.pl-search { flex: 1; height: 24px; border: 1px solid var(--line); border-radius: 7px; position: relative; }
.pl-search::before { content: ""; position: absolute; left: 10px; top: 8px; width: 40%; height: 7px; border-radius: 4px; background: var(--text-lighter); }
.pl-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1.7fr) 74px minmax(0, 1fr) 62px; gap: 8px; align-items: center; padding: 8px 11px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--text); }
.pl-row:first-child { border-top: 0; background: var(--bg-soft); }
.pl-row:first-child span { font: 700 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); }
.pl-row strong { font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row > span:last-child { font-family: var(--mono); text-align: right; white-space: nowrap; }
.pl-row .ov-pill { justify-self: start; }
.pl-row .ov-pill--soft { background: var(--brand-tint); color: var(--brand-text); }
.pl-row .pl-life { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row.is-new { background: rgba(0, 214, 223, .07); }
.pl-row.is-new strong::after { content: "New"; margin-left: 6px; padding: 2px 5px; border-radius: 99px; font: 700 7.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; vertical-align: 1px; }
.pl-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2; width: 196px; padding: 11px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--brand-text); box-shadow: 0 0 0 4px var(--brand-tint), 0 14px 30px rgba(49, 64, 65, .16); }
.pl-pop strong { display: block; font-size: 11px; color: var(--ink); }
.pl-pop p { margin: 4px 0 8px; font-size: 9.5px; line-height: 1.4; color: var(--muted); }
.pl-pop .pl-drop { display: block; padding: 9px; border: 1px dashed var(--brand-text); border-radius: 7px; text-align: center; font: 600 9px/1.2 var(--mono); color: var(--brand-text); background: var(--bg-soft); }
.pl-pop .pl-tpl { display: block; margin-top: 7px; font-size: 9.5px; font-weight: 600; color: var(--brand-text); text-decoration: underline; }

@container (max-width: 470px) {
  .app-fields-4 { grid-template-columns: 1fr 1fr !important; }
  .app-outs--4 { grid-template-columns: 1fr 1fr; }
  .app-outs--3 { grid-template-columns: 1fr 1fr; }
  .app-card--quiet .app-outs--3 .app-out:last-child { display: none; }
  .app-outs--3 .app-out.is-key:last-child { grid-column: 1 / -1; }
  .app-out .app-label { letter-spacing: .05em; }
  .app-card p, .app-hide-sm { display: none; }
  .app-proj .ov-pills { display: none; }
  .pl-row { grid-template-columns: minmax(0, 1.6fr) 70px 54px; }
  .pl-row .pl-life { display: none; }
  .pl-pop { width: 168px; }
  .pl-actions .app-btn:first-child { display: none; }
  .sr-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sr-chain { font-size: 7.5px; }
  .app-card-head .app-btn { display: none; }
  .app-card--assump { display: none; }
}


/* ---- Financials page additions ---- */
.app-flag--ok { background: rgba(46, 157, 91, .12); color: #23784a; }
.app-out .app-flag { display: inline-block; }
.app-card--mini { padding: 10px 12px; }
.app-card--mini h4 { font-size: 12px; }
.app-card--mini .app-outs { margin-top: 7px; }
.app-card--mini .app-out { padding: 6px 8px; }
.app-skel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.app-skel-row span { height: 22px; border-radius: 6px; background: var(--bg-soft); }
.ov-field.is-key { border: 0; box-shadow: none; animation: none !important; }
.ov-field.is-key b { border-bottom: 2px solid var(--brand-text); color: var(--brand-text); }
.ov-field small { display: block; margin-top: 3px; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pdf-card { position: relative; padding: 11px 12px 10px; border: 1px solid var(--line); border-radius: 8px 14px 8px 8px; background: #fff; min-width: 0; }
.pdf-card::after { content: ""; position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; border-radius: 0 14px 0 6px; background: var(--bg-soft); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdf-card strong { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink); }
.pdf-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; font-size: 9.5px; color: var(--muted); }
.pdf-line b { font: 700 10.5px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.pdf-line .app-skel { width: 38px; height: 7px; }
.pdf-line s { text-decoration: line-through; color: var(--text-light); }
.pdf-card.is-key strong { color: var(--brand-text); }
.app-feeds { display: flex; align-items: center; gap: 8px; font: 600 8.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app-feeds::before, .app-feeds::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@container (max-width: 470px) {
  .pdf-row { grid-template-columns: 1fr 1fr; gap: 7px; }
  .pdf-card { padding: 9px; }
  .app-card--mini .app-outs--3 .app-out:last-child { display: block; grid-column: auto; }
  .app-card--mini .app-outs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-hide-sm { display: none; }
}


/* ---- Build, Monitor and Report additions ---- */
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 10px; }
.app-head .ov-title { font-size: 17px; }
.app-head-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.app-stat { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.app-stat b { display: block; margin-top: 4px; font: 700 14px/1.05 var(--mono); color: var(--ink); white-space: nowrap; }
.app-stat small { display: block; margin-top: 3px; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-stat.is-key b { color: var(--brand-text); }
.app-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.app-chip { padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); font: 600 8.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.app-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.app-chip.is-soft { background: var(--brand-tint); border-color: var(--brand-text); color: var(--brand-text); }
.rag { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2e9d5b; flex-shrink: 0; }
.rag--amber { background: #c9851a; }
.rag--red { background: #c43c3c; }
.ov-pill--amber::before { background: #c9851a; }
.ov-pill--red::before { background: #c43c3c; }

.app-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-stats--4 .app-stat b { font-size: 12px; }
.app-card > .app-label:first-child { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-two > div { min-width: 0; }
.cl-two b { overflow: hidden; text-overflow: ellipsis; }

.kb-trend { display: block; width: 100%; height: 14px; margin-top: 4px; }
.ov-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 12px; align-items: start; }
.tb-row .app-flag, .tb-row .app-btn { font-size: 8px; padding: 3px 6px; }
.tb-row .app-btn { display: inline-flex; }

/* Lifecycle Board, Kanban */
.kb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.kb-col { padding: 7px; border-radius: 9px; background: var(--bg-soft); min-width: 0; display: grid; gap: 6px; align-content: start; }
.kb-col-head strong { display: block; font-size: 10px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-col-head span { display: block; margin-top: 2px; font: 600 8.5px/1.2 var(--mono); color: var(--brand-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-col-head small { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); white-space: nowrap; }
.kb-card { padding: 7px 8px; border-radius: 7px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.kb-card strong { display: flex; align-items: center; gap: 5px; font-size: 9.5px; line-height: 1.2; color: var(--ink); }
.kb-card strong em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-card b { display: block; margin-top: 5px; font: 700 9.5px/1 var(--mono); color: var(--brand-text); }
.kb-card small { display: block; margin-top: 4px; font-size: 8px; color: var(--muted); white-space: nowrap; }
.kb-adv { display: inline-block; margin-top: 6px; padding: 4px 7px; border-radius: 5px; font-size: 8.5px; font-weight: 700; background: var(--brand); color: var(--on-brand); }
.kb-card--skel { height: 62px; background: #fff; border-style: dashed; }

/* pipeline by year */
.pp-years { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-year { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.pp-year.is-key { background: var(--brand-tint); }
.pp-year-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; margin-top: 4px; }
.pp-year-top strong { font-size: 19px; font-weight: 800; color: var(--ink); }
.pp-year-top b { font: 700 11px/1 var(--mono); color: var(--brand-text); white-space: nowrap; }
.pp-year small { display: block; margin-top: 3px; text-align: right; font-size: 8.5px; color: var(--muted); }
.pp-bar { display: flex; height: 5px; margin-top: 7px; border-radius: 3px; overflow: hidden; background: var(--line); }
.pp-bar i { display: block; height: 100%; }
.pp-bar i:nth-child(1) { background: var(--primary-140); }
.pp-bar i:nth-child(2) { background: #c9851a; }
.pp-bar i:nth-child(3) { background: var(--secondary-100); }
.pp-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pp-q div { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.pp-q b { display: block; margin-top: 3px; font: 700 10.5px/1 var(--mono); color: var(--brand-text); white-space: nowrap; }
.pp-q small { display: block; margin-top: 3px; font-size: 8px; color: var(--muted); }
.rag-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rag-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.rag-tile span { font: 700 8.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rag-tile b { font: 700 13px/1 var(--mono); color: var(--ink); }
.rag-tile small { grid-column: 1 / -1; font-size: 8px; color: var(--muted); text-align: right; white-space: nowrap; }
.rag-tile .see { grid-column: 1 / -1; font: 700 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }

/* Gantt */
.gt { display: grid; gap: 4px; }
.gt-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 8px; align-items: center; font-size: 9.5px; color: var(--text); }
.gt-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-track { position: relative; height: 12px; border-radius: 4px; background: var(--bg-soft); }
.gt-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--text-lighter); overflow: hidden; }
.gt-bar i { display: block; height: 100%; background: var(--brand); }
.gt-row.is-done .gt-bar i { background: var(--primary-140); }
.gt-ms { position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); border-radius: 2px; background: var(--secondary-100); }
.gt-today { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--secondary-100); opacity: .6; }
.gt-axis { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 8px; font: 600 8px/1 var(--mono); color: var(--muted); }
.gt-axis div { display: flex; justify-content: space-between; }
.gt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Lifecycle timeline */
.lt-now { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--brand-tint); }
.lt-now strong { display: block; margin-top: 3px; font-size: 13px; color: var(--ink); }
.lt-now b { display: block; margin-top: 3px; font: 700 13px/1 var(--mono); color: var(--brand-text); white-space: nowrap; }
.app-card--side { padding: 10px; }
.app-card--side .tb { font-size: 9px; }
.app-card--side .tb-row { padding: 6px 7px; gap: 4px; }
.lt-list { position: relative; display: grid; gap: 9px; padding-left: 16px; }
.lt-list::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.lt-item { position: relative; display: grid; gap: 4px; font-size: 9.5px; color: var(--muted); }
.lt-item::before { content: ""; position: absolute; left: -16px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--primary-140); }
.lt-move { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.lt-move span { padding: 3px 7px; border-radius: 99px; font: 700 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--bg-soft); color: var(--muted); }
.lt-move span.to { background: rgba(46, 157, 91, .12); color: #23784a; }
.lt-move em { font: 600 8.5px/1 var(--mono); font-style: normal; color: var(--muted); }
.lt-item.is-key { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--brand-text); }
.lt-item.is-key::before { left: -17px; top: 10px; }
.lt-meta { display: flex; gap: 10px; flex-wrap: wrap; }

/* charts */
.ch { position: relative; height: 112px; padding: 8px 6px 0; border-radius: 9px; background: var(--bg-soft); }
.ch-bars { position: absolute; inset: 8px 8px 16px; display: flex; align-items: flex-end; gap: 4%; }
.ch-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--brand); opacity: .9; }
.ch svg { position: absolute; inset: 8px 8px 16px; width: calc(100% - 16px); height: calc(100% - 24px); overflow: visible; }
.ch-x { position: absolute; left: 8px; right: 8px; bottom: 3px; display: flex; justify-content: space-between; font: 600 7.5px/1 var(--mono); color: var(--muted); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px; background: var(--bg-soft); font: 600 8px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ch-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); }
.ch-tools { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; align-items: center; }

/* side panel (data source) */
.app-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.app-split--even { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.app-btns { display: grid; gap: 5px; }
.app-btns .app-btn { justify-content: center; }

/* meters */
.mt-group { display: grid; gap: 4px; }
.mt-group + .mt-group { margin-top: 8px; }
.mt-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 9.5px; color: var(--ink); }
.mt-row::before { content: ""; width: 6px; height: 10px; border-left: 2px dotted var(--text-light); border-right: 2px dotted var(--text-light); }
.mt-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-row b { font: 700 9.5px/1 var(--mono); color: var(--brand-text); white-space: nowrap; }
.mt-sum { display: flex; justify-content: space-between; padding: 4px 8px 0; font: 700 8.5px/1 var(--mono); color: var(--muted); }
.mt-sum b { color: var(--ink); }

/* list rows (visits, contracts, links) */
.ls { display: grid; gap: 5px; }
.ls-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.ls-row strong { display: block; font-size: 10px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-row small { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-row.is-key { border-color: var(--brand-text); }
.app-flag--warn { background: rgba(201, 133, 26, .14); color: #92600f; }
.app-flag--brand { background: var(--brand-tint); color: var(--brand-text); }

/* small table */
.tb { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; font-size: 9.5px; }
.tb-row { display: grid; grid-template-columns: var(--cols); gap: 6px; align-items: center; padding: 6px 9px; border-top: 1px solid var(--line); color: var(--text); }
.tb-row:first-child { border-top: 0; background: var(--bg-soft); font: 700 8px/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.tb-row > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-row > *:not(:first-child) { text-align: right; font-family: var(--mono); }
.tb-row:first-child > * { font-family: var(--mono); }
.tb-row strong { font-weight: 650; color: var(--ink); }
.tb-row .app-skel { width: 70%; }
.tb-row.is-key { background: rgba(0, 214, 223, .07); }

/* class insight cards */
.cl { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.cl-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cl-top strong { font: 700 9px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--primary-140); }
.cl-top small { display: block; font-size: 8.5px; color: var(--muted); }
.cl-ring { --p: 50; position: relative; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--primary-140) calc(var(--p) * 1%), var(--line) 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }
.cl-score { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.cl-score b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--mono); color: var(--ink); }
.cl-score .cl-ring { position: absolute; inset: 0; }
.cl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.cl-two b { display: block; margin-top: 3px; font: 700 12px/1.1 var(--mono); color: var(--ink); white-space: nowrap; }
.cl-two small { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); }
.cl-live { display: block; height: 4px; margin-top: 7px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cl-live i { display: block; height: 100%; background: var(--primary-140); }
.cl-trend { display: block; width: 100%; height: 26px; margin-top: 6px; }
.cl.is-key .cl-two b { color: var(--brand-text); }

/* share links */
.sh-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
.sh-opt { padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 9.5px; color: var(--ink); min-width: 0; }
.sh-opt small { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-opt.is-on { border-color: var(--brand-text); background: var(--brand-tint); }
.sh-opts--2 { grid-template-columns: 1fr 1fr; }

@container (max-width: 470px) {
  .kb { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-fields--3 { grid-template-columns: 1fr 1fr !important; }
  .ov-fields--3 .ov-field:nth-child(n+10) { display: none; }
  .app-head-actions .app-chip { display: none; }
  .pp-years--cl { grid-template-columns: 1fr; }
  .cl--mini .cl-two { grid-template-columns: 1fr; }
  .cl--mini .cl-two > div:last-child { display: none; }
  .pp-years--cl .cl-trend { height: 20px; }
  .kb-col:last-child { display: none; }
  .pp-q { grid-template-columns: 1fr 1fr; }
  .rag-tile small { display: none; }
  .gt-row:nth-child(n+8) { display: none; }
  .app-split, .app-split--even { grid-template-columns: 1fr; }
  .app-split > .app-card--side { display: none; }
  .app-stats { grid-template-columns: 1fr 1fr; }
  .app-stats .app-stat:nth-child(3):last-child { grid-column: 1 / -1; }
  .app-stats--4 { grid-template-columns: 1fr 1fr; }
  .sh-opts { grid-template-columns: 1fr 1fr 1fr; }
  .sh-opt small { display: none; }
  .tb-hide-sm { display: none !important; }
  .tb-row { grid-template-columns: var(--cols-sm, var(--cols)); }
  .app-head-actions .app-btn:not(.is-key):not(.app-btn--brand) { display: none; }
}

/* ---- pricing: notes, ladder, calculator ---- */
.plan-note { margin: -8px 0 0; font-size: .92rem; color: var(--muted); }
.plan-price span { white-space: nowrap; }
.plans-small { margin: 28px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ladder li { position: relative; display: grid; gap: 6px; padding: 26px 24px; border-left: 1px solid var(--line); }
.ladder li:first-child { border-left: 0; }
.ladder li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand); opacity: calc(1 - var(--i, 0) * .22); }
.ladder li:nth-child(2) { --i: 1; } .ladder li:nth-child(3) { --i: 2; } .ladder li:nth-child(4) { --i: 3; }
.ladder span { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.ladder b { font-size: 2.3rem; font-weight: 760; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.ladder small { color: var(--muted); font-size: .9rem; }
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.calc h2 { margin: 10px 0 8px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.calc-control { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.calc-control input[type="range"] { flex: 1; accent-color: var(--primary-140); height: 28px; }
.calc-number { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.calc-number input { width: 64px; border: 0; font: 700 1.4rem/1 inherit; color: var(--ink); background: none; text-align: right; }
.calc-number input:focus { outline: none; }
.calc-number:focus-within { border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-tint); }
.calc-number span { color: var(--muted); }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.calc-presets button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 620; color: var(--text); }
.calc-presets button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc-result { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.calc-plan { margin: 0; color: var(--muted); }
.calc-plan b { color: var(--brand-text); }
.calc-total { margin: 10px 0 18px; }
.calc-total b { font-size: 3rem; font-weight: 780; letter-spacing: -.03em; color: var(--ink); }
.calc-total small { margin-left: 6px; color: var(--muted); }
.calc-lines { display: grid; gap: 10px; margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines dt { color: var(--muted); }
.calc-lines dd { margin: 0; font-weight: 680; color: var(--ink); }
.calc-note { margin: 0 0 18px; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder li:nth-child(3) { border-left: 0; }
  .ladder li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .calc { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
@media (max-width: 600px) {
  .ladder li { padding: 20px 16px; }
  .ladder b { font-size: 1.9rem; }
  .calc { padding: 20px; }
  .calc-result { padding: 20px; }
  .calc-total b { font-size: 2.4rem; }
  .calc-control { flex-wrap: wrap; }
}

/* ---- homepage ---- */
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .97rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "\2713"; color: var(--brand-text); font-weight: 700; }
.hero-media .shot-note { text-align: center; }
.statement .container > h2 { max-width: 30ch; margin: 0 auto; text-align: center; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.22; }
.statement h2 em { font-style: normal; color: var(--brand-text); }
.tab-media { min-width: 0; }
.tab-panel .tab-media .mock { box-shadow: var(--shadow); }
.tab-panel.is-active .tab-media { animation: panel-in .6s .08s var(--ease) both; }
.tab-copy .eyebrow { display: block; margin-bottom: 8px; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.cta-row--center { justify-content: center; }
.final-cta-box > p { max-width: 52ch; margin: 12px auto 0; }
.card--accent { background: var(--bg-soft); }
.card--featured { border: 2px solid var(--brand); }
.price-mini .card { gap: 10px; }
.price-mini-num { margin: 4px 0 2px !important; font-size: 2.4rem !important; font-weight: 760; letter-spacing: -.03em; line-height: 1; color: var(--ink) !important; }
.price-mini-num small { margin-left: 6px; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.modules .card h3 { font-size: 1.1rem; }
@media (max-width: 900px) { .grid--4.modules { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (min-width: 901px) {
  .plan--featured { transform: translateY(-12px); }
}
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .page-hero--split .page-hero-inner, .feature-row, .feature-story, .newsletter, .article-layout, .split, .contact-grid { grid-template-columns: 1fr; }
  .feature-row--flip .feature-media { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .plans, .steps { grid-template-columns: 1fr; }
  .plans { gap: 32px; max-width: 520px; margin-inline: auto; }
  .plan-desc { min-height: 0; }
  .step:not(:last-child)::after { display: none; }
  .article-aside { position: static; }
  .feature-story .case-art { min-height: 200px; }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 680px; }
  .compare thead th { position: static; }
  .compare th[scope="row"] { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .stats { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-strip li { width: calc(50% - 7px); }
  .layer { grid-template-columns: 1fr; gap: 6px; }
  .filter-bar .search-field { margin-left: 0; width: 100%; }
  .inline-form { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .page-hero .cta-row .btn { width: 100%; }
  .compare th, .compare td { padding: 14px 12px; }
}
