/* Shared components for the inner pages (Platform, Services, Methodology, Academy, Team).
   Builds on platform.css (clean theme). Every class is prefixed pg- so nothing here can
   restyle another page. Added 20 Oct 2026. */

.content-wrapper.pg-wide {
    max-width: 1080px;
}

.pg-eyebrow {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.pg-lead {
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 760px;
    margin-bottom: 2rem;
}

.pg-facts {
    list-style: none;
    padding: 1.25rem 0;
    margin: 0 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pg-facts li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pg-facts strong {
    font-size: 1.9rem;
    font-weight: 500;
    color: #000;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.pg-facts span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pg-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1.5rem;
    background: #000;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}

.pg-button:hover {
    background: #374151;
}

.pg-button.is-ghost {
    background: transparent;
    color: #000 !important;
    border: 1px solid #000;
}

.pg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.clean-theme .pg-button:focus-visible,
.clean-theme a:focus-visible,
.clean-theme button:focus-visible,
.clean-theme summary:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

.pg-kicker {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Card grids */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.pg-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-card {
    background: #fff;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pg-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.pg-card p,
.pg-card li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.pg-card ul {
    padding-left: 1.1rem;
    display: grid;
    gap: 0.3rem;
}

.pg-card .pg-proof {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.85rem;
    color: #000;
    font-weight: 500;
    border-top: 1px solid var(--border-color);
}

.pg-card a.pg-more {
    font-weight: 500;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Two-up text */
.pg-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.pg-split p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.pg-split h3 {
    font-size: 1.2rem;
    color: #000;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Ordered steps */
.pg-steps {
    list-style: none;
    counter-reset: pgstep;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    gap: 1.75rem;
}

.pg-steps li {
    counter-increment: pgstep;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0 1rem;
}

.pg-steps li::before {
    content: counter(pgstep, decimal-leading-zero);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text-dim);
    padding-top: 0.15rem;
}

.pg-steps h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.3rem;
}

.pg-steps p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Price block */
.pg-price {
    border: 2px solid #000;
    border-radius: 6px;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 2rem;
    margin: 2rem 0;
}

.pg-price .pg-figure-num {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #000;
    line-height: 1;
}

.pg-price .pg-figure-num small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.pg-price p,
.pg-price li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.pg-price ul {
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.pg-price h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    margin-bottom: 0.6rem;
}

/* Figures and illustrations */
.pg-figure {
    margin: 2.5rem 0;
}

.pg-figure svg {
    width: 100%;
    height: auto;
    display: block;
}

.pg-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.pg-note {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    background: #f9fafb;
    border-left: 3px solid #000;
    padding: 1rem 1.25rem;
}

.pg-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.pg-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.pg-list strong {
    color: #000;
}

/* ============ "Agent at work" scene ============ */
.agent-scene {
    position: relative;
    background: #0b0b10;
    border-radius: 10px;
    padding: 1.5rem;
    color: #e5e7eb;
    margin: 2.5rem 0 1rem;
    overflow: hidden;
}

.agent-scene-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.as-window {
    background: #fff;
    border-radius: 8px;
    color: #111827;
    overflow: hidden;
}

.as-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #e5e7eb;
    font-size: 0.72rem;
    color: #374151;
}

.as-chrome i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9ca3af;
    display: inline-block;
}

.as-chrome span {
    margin-left: 8px;
    background: #fff;
    padding: 2px 10px;
    border-radius: 4px;
}

.as-form {
    padding: 1rem 1.25rem 1.25rem;
    display: grid;
    gap: 0.6rem;
}

.as-form h4,
.as-form .as-form-title {
    margin: 0; /* matches the h4 it replaced (0 after the reset) */
    font-size: 1rem;
    font-weight: 600;
}

.as-field {
    display: grid;
    gap: 3px;
    font-size: 0.78rem;
    color: #374151;
}

.as-input {
    height: 30px;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #111827;
    transition: box-shadow 0.2s ease;
}

.as-input.is-focus,
.as-submit.is-focus,
.as-btn.is-focus {
    box-shadow: 0 0 0 3px #a855f7;
}

.as-error {
    font-size: 0.75rem;
    color: #b91c1c;
    min-height: 1.1em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.as-error.is-on {
    opacity: 1;
}

.as-submit {
    justify-self: start;
    margin-top: 0.25rem;
    padding: 6px 16px;
    border-radius: 4px;
    background: #111827;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.as-phone {
    background: #111827;
    border-radius: 22px;
    padding: 14px 10px;
    max-width: 230px;
    justify-self: center;
    width: 100%;
}

.as-screen {
    background: #fff;
    border-radius: 14px;
    color: #111827;
    padding: 12px;
    display: grid;
    gap: 8px;
    font-size: 0.78rem;
    position: relative;
}

.as-screen h4,
.as-screen .as-screen-title {
    margin: 0; /* matches the h4 it replaced (0 after the reset) */
    font-size: 0.9rem;
    font-weight: 600;
}

.as-quote {
    display: flex;
    justify-content: space-between;
    color: #374151;
}

.as-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.as-btn {
    border-radius: 6px;
    padding: 8px 0;
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.as-btn.buy {
    background: #15803d;
}

.as-btn.sell {
    background: #b91c1c;
}

.as-qty {
    border: 1px solid #9ca3af;
    border-radius: 6px;
    padding: 6px 8px;
}

.as-speech {
    position: relative;
    margin-top: 10px;
    background: #312e81;
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.78rem;
    min-height: 2.6em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.as-speech.is-on {
    opacity: 1;
}

.as-speech b {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    font-weight: 600;
}

.as-findings {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.as-finding {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.as-finding.is-on {
    opacity: 1;
    transform: none;
}

.as-finding .as-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.as-tag.fail {
    background: #fb923c;
    color: #111;
}

.as-tag.pass {
    background: #86efac;
    color: #111;
}

.as-log {
    margin-top: 0.9rem;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.75rem;
    color: #a1a1aa;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
}

.as-log b {
    color: #fff;
    font-weight: 600;
}

.as-toggle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    min-height: 32px;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #111827; /* solid: the pill can sit on the light page, where 50% black was 3.21:1 */
    color: #ffffff;
    font: 500 0.75rem/1 Inter, sans-serif;
    cursor: pointer;
    z-index: 2;
}

.as-toggle:focus-visible {
    outline: 2px solid #c084fc;
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .pg-grid,
    .pg-grid.cols-2,
    .pg-split,
    .pg-price,
    .agent-scene-grid,
    .as-findings {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .as-phone {
        max-width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-input,
    .as-error,
    .as-speech,
    .as-finding {
        transition: none;
    }
}

/* ============ Glossy pass, 20 Oct 2026 ============ */

/* Full-bleed dark hero band for inner pages: breaks out of the 800/1080px column. */
.pg-hero-dark {
    position: relative;
    margin: -120px calc(50% - 50vw) 5rem;
    padding: 150px calc(50vw - 50%) 72px;
    background:
        radial-gradient(ellipse 60% 80% at 85% 10%, rgba(168, 85, 247, 0.28), transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(59, 130, 246, 0.16), transparent 60%),
        #07070b;
    color: #fff;
    overflow: hidden;
}

.pg-hero-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
    pointer-events: none;
}

.pg-hero-dark > * {
    position: relative;
    z-index: 1;
}

.pg-hero-dark .page-title,
.pg-hero-dark h1 {
    color: #fff;
    background: linear-gradient(180deg, #ffffff 30%, #d8b4fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pg-hero-dark .pg-eyebrow,
.pg-hero-dark .doc-eyebrow {
    color: #d8b4fe;
}

.pg-hero-dark .pg-lead,
.pg-hero-dark .lead-text {
    color: #d1d5db;
}

.pg-hero-dark .pg-facts,
.pg-hero-dark .doc-facts {
    border-color: rgba(255, 255, 255, 0.14);
    color: #a1a1aa;
}

.pg-hero-dark .pg-facts strong,
.pg-hero-dark .doc-facts strong {
    color: #fff;
}

.pg-hero-dark .pg-facts span {
    color: #a1a1aa;
}

.pg-hero-dark .pg-button,
.pg-hero-dark .doc-button {
    background: #fff;
    color: #000 !important;
}

.pg-hero-dark .pg-button:hover,
.pg-hero-dark .doc-button:hover {
    background: #e9d5ff;
}

.pg-hero-dark .pg-button.is-ghost {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.pg-hero-dark a:focus-visible,
.pg-hero-dark .pg-button:focus-visible {
    outline-color: #d8b4fe;
}

/* Lifted cards */
.pg-grid {
    gap: 1rem;
    background: none;
    border: 0;
}

.pg-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pg-card:hover {
    transform: translateY(-3px);
    border-color: #c084fc;
    box-shadow: 0 14px 30px rgba(88, 28, 135, 0.10);
}

.pg-kicker {
    color: #7e22ce;
}

.pg-button {
    background: linear-gradient(135deg, #111827, #3b0764);
    background-color: #1f1033; /* solid base under the gradient: white text stays readable if the gradient does not paint */
}

.pg-button:hover {
    background: linear-gradient(135deg, #1f2937, #581c87);
}

.pg-price {
    border: 0;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #111827, #a855f7) border-box;
    border: 2px solid transparent;
    box-shadow: 0 20px 40px rgba(88, 28, 135, 0.10);
}

.pg-steps li::before {
    color: #7e22ce;
}

.clean-theme .cta-section {
    border-top: 0 !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 4.5rem calc(50vw - 50%) 4.5rem !important;
    background:
        radial-gradient(ellipse 60% 120% at 50% 0%, rgba(168, 85, 247, 0.22), transparent 70%),
        #07070b;
    color: #fff;
}

.clean-theme .cta-section .cta-title {
    color: #fff;
}

.clean-theme .cta-section .cta-text {
    color: #d1d5db;
}

.clean-theme .cta-section .text-link-cta {
    color: #fff !important;
    text-decoration-color: #c084fc;
}

/* Homepage scene section sits on the dark homepage */
.home-scene {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 20px 2rem;
}

.home-scene .agent-scene {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(168, 85, 247, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .pg-card {
        transition: none;
    }
    .pg-card:hover {
        transform: none;
    }
}

/* The full-bleed bands use 100vw, which includes the scrollbar; clip so the page never scrolls sideways. */
body.clean-theme {
    overflow-x: clip;
}

main.content-wrapper > .cta-section:last-child {
    margin-bottom: -80px;
}

@media (max-width: 768px) {
    .pg-hero-dark {
        margin-top: -100px;
        padding-top: 128px;
        padding-bottom: 56px;
    }
}

/* ============ Exhibits and pull quotes (consulting-style), 20 Oct 2026 ============
   An exhibit = label + one-line takeaway + chart + source. Bars are plain HTML with text
   labels, so the chart reads the same to a screen reader as it looks. */
.ex {
    margin: 2.5rem 0;
    padding: 2rem 2rem 1.5rem;
    background: #fafafa;
    border-top: 3px solid #111827;
    border-radius: 0 0 12px 12px;
}

.ex-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7e22ce;
    margin-bottom: 0.5rem;
}

.ex-title {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 1.75rem;
    color: #111827;
    max-width: 760px;
}

.ex-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.ex-bars li {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    align-items: center;
    gap: 1rem;
}

.ex-bars .ex-name {
    font-size: 0.95rem;
    color: #374151;
}

.ex-bars .ex-track {
    position: relative;
    height: 34px;
    background: #ececf1;
    border-radius: 6px;
    overflow: hidden;
}

.ex-bars .ex-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w, 50%);
    min-width: 6px;
    background: linear-gradient(90deg, #111827, #6b21a8);
    border-radius: 6px;
}

.ex-bars .is-accent .ex-fill {
    background: linear-gradient(90deg, #a855f7, #d946ef);
}

.ex-bars .ex-val {
    position: absolute;
    left: calc(var(--w, 50%) + 10px);
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    white-space: nowrap;
}

.ex-bars .is-inside .ex-val {
    left: 12px;
    color: #fff;
}

.ex-source {
    margin: 1.5rem 0 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.ex-big {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ex-big div {
    border-left: 3px solid #a855f7;
    padding-left: 1rem;
}

.ex-big strong {
    display: block;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #111827;
}

.ex-big span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #4b5563;
}

/* Pull quote: the human line on each page */
.pg-quote {
    margin: 3rem 0;
    padding: 0 0 0 1.5rem;
    border-left: 4px solid #a855f7;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #111827;
    max-width: 860px;
}

.pg-quote p {
    margin: 0;
}

/* Dark variants for the homepage */
.ex.is-dark {
    background: #0f0f15;
    border-top-color: #a855f7;
}

.ex.is-dark .ex-title,
.ex.is-dark .ex-bars .ex-val,
.ex.is-dark .ex-big strong {
    color: #fff;
}

.ex.is-dark .ex-bars .ex-name,
.ex.is-dark .ex-big span {
    color: #c4c4cc;
}

.ex.is-dark .ex-label {
    color: #d8b4fe;
}

.ex.is-dark .ex-track {
    background: #1d1d26;
}

.ex.is-dark .ex-bars .ex-fill {
    background: linear-gradient(90deg, #4c1d95, #a855f7);
}

.ex.is-dark .ex-bars .is-accent .ex-fill {
    background: linear-gradient(90deg, #d946ef, #f0abfc);
}

.ex.is-dark .ex-source {
    color: #9ca3af;
}

.pg-quote.is-dark {
    color: #fff;
}

@media (max-width: 640px) {
    .ex {
        padding: 1.5rem 1rem 1.25rem;
    }
    .ex-bars li {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .ex-big {
        grid-template-columns: 1fr;
    }
}
