/* ============================================================
   components.css — all reusable components
   Loaded on EVERY page. Pairs with base.css.
   Existing components preserved verbatim from the original
   styles.css (pixel-identical). New shared components added
   under "NEW SHARED COMPONENTS" at the bottom.
   ============================================================ */

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all var(--transition-base);
    text-decoration: none;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--accent-glow);
    transition: all var(--transition-base);
}

.logo-link:hover .logo-icon {
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: scale(1.05);
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    color: white;
    stroke-width: 2.5;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Legacy image logo support */
.logo-img {
    height: 36px;
    width: auto;
    filter: brightness(1.1) contrast(1.05);
    transition: all var(--transition-base);
}

.logo-link:hover .logo-img {
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 8px var(--accent-glow));
}

/* Text fallback logo */
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--accent-primary);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.cta-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
}

/* Grain overlay — kills the color banding that is the #1 amateur dark-hero tell.
   Static inline SVG noise, very low opacity, no animation, no perf cost. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero>.container {
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    animation: float 6s ease-in-out infinite;
}

.visual-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
    border-radius: 12px;
}

.visual-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.visual-card span {
    font-weight: 500;
    color: var(--text-primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Layered aurora: two soft blurred blobs (oklch avoids sRGB midpoint banding).
   Restraint = exactly two blobs, hero only — never section backgrounds. */
.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-gradient::before,
.hero-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

/* primary purple blob, upper right */
.hero-gradient::before {
    width: 46%;
    height: 70%;
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, oklch(0.6 0.22 295 / 0.45) 0%, transparent 70%);
}

/* deeper violet blob, lower right — adds depth without a second hue clash */
.hero-gradient::after {
    width: 34%;
    height: 55%;
    bottom: -8%;
    right: 18%;
    background: radial-gradient(circle, oklch(0.5 0.2 285 / 0.32) 0%, transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-gradient::before {
        animation: aurora-drift 24s ease-in-out infinite alternate;
    }

    .hero-gradient::after {
        animation: aurora-drift 30s ease-in-out infinite alternate-reverse;
    }
}

@keyframes aurora-drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-6%, 5%);
    }
}

/* ===== PROBLEM SECTION ===== */
.problem {
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.problem-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.problem-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.problem-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SOLUTION SECTION ===== */
.solution-header {
    margin-bottom: 3rem;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.solution-item:last-child {
    border-bottom: none;
}

.solution-item p {
    color: var(--text-secondary);
}

.solution-visual {
    display: flex;
    justify-content: center;
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.flow-step:not(.final)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-glow));
}

.flow-step:not(:first-child) {
    margin-top: 20px;
}

.flow-label {
    font-weight: 500;
    color: var(--text-primary);
}

.flow-step.final {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
    border-color: transparent;
}

.flow-step.final .flow-label {
    color: white;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-base);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.service-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, var(--bg-card) 100%);
}

.featured-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.service-outcome {
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-details li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.service-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ===== WHY SECTION ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.why-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PROCESS SECTION ===== */
.process {
    background: var(--bg-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    position: relative;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #7c3aed 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
}

.process-step:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    right: -100%;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 20px);
    height: 2px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-glow));
}

.step-content h3 {
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== TRUST SECTION ===== */
.trust-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.trust-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.trust-text p:last-child {
    margin-bottom: 0;
}

.trust-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    padding: var(--section-padding) 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-logo-link:hover {
    transform: translateY(-1px);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--accent-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-email:hover {
    color: var(--accent-primary);
}

.footer-nav h4,
.footer-social h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:not(:last-child) .step-number::after {
        display: none;
    }

    .solution-content {
        grid-template-columns: 1fr;
    }

    .solution-visual {
        order: -1;
    }

    .trust-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ============================================================
   NEW SHARED COMPONENTS (offer pages + homepage + blog)
   ============================================================ */

/* ----- Eyebrow / kicker label ----- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

/* ----- Numeric metrics: mono + aligned figures (technical credibility) ----- */
.stat-value,
.stat-band .stat-num,
.metric-value,
.signal .signal-num,
.proof-card .proof-row strong,
.calc-result .calc-big,
.multiplier-step strong {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ----- Pills / tags ----- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
}

.pill--accent {
    border-color: rgba(139, 92, 246, 0.35);
    background: var(--accent-faint);
    color: var(--accent-secondary);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ----- Ghost / secondary CTA + quiet text link ----- */
.cta-button--ghost {
    background: transparent;
    border: 1px solid var(--border-color-hover);
    box-shadow: none;
    color: var(--text-primary);
}

.cta-button--ghost:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: none;
}

.cta-quiet {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--fs-small);
    transition: color var(--transition-fast);
}

.cta-quiet:hover {
    color: var(--accent-secondary);
}

/* CTA row: one loud primary + one quiet link, aligned */
.cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero .cta-row,
.final-cta .cta-row,
.cta-band .cta-row {
    justify-content: flex-start;
}

.final-cta .cta-row,
.cta-band--center .cta-row {
    justify-content: center;
}

/* ----- Section eyebrow takeaway (scanner TL;DR line) ----- */
.takeaway {
    font-size: var(--fs-lead);
    color: var(--text-primary);
    font-weight: 600;
    max-width: 720px;
    margin-bottom: 1.25rem;
}

/* ----- CTA band (inline conversion strip) ----- */
.cta-band {
    margin: 2.5rem 0 0;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--inset-highlight);
}

.cta-band--center {
    text-align: center;
}

/* ----- FAQ (zero-JS <details>) ----- */
.faq {
    max-width: 820px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 1.5rem;
    transition: border-color var(--transition-fast);
}

.faq details[open] {
    border-color: var(--border-color-hover);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 0;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-secondary);
    transition: transform var(--transition-fast);
    line-height: 1;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 0 1.4rem;
    margin: 0;
}

/* ----- Lead capture form ----- */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-lg);
    box-shadow: var(--elev-2), var(--inset-highlight);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    transition: border-color var(--transition-fast);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

.form-field input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.lead-form .cta-button {
    width: 100%;
    margin-top: 0.5rem;
}

.form-note {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.form-success {
    padding: 2rem;
    text-align: center;
    background: var(--accent-faint);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
}

/* ----- Stage grid (numbered pipeline) ----- */
.stage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stage-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--inset-highlight);
    transition: all var(--transition-base);
}

.stage-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.stage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stage-card h3 {
    margin-bottom: 0.5rem;
}

.stage-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.stage-card .pill-row {
    margin-top: 1rem;
}

.stage-note {
    max-width: 720px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-small);
}

/* ----- Metric callout (proof stat row) ----- */
.metric-callout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.metric {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: -0.02em;
}

.metric-label {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ----- Firewall divider (reply-rate vs inbox) ----- */
.firewall {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(180deg, var(--accent-faint) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    line-height: 1.7;
}

.firewall strong {
    color: var(--accent-secondary);
}

/* ----- Multiplier flow (horizontal math) ----- */
.multiplier-flow {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.multiplier-step {
    flex: 1 1 0;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
}

.multiplier-step strong {
    display: block;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.multiplier-step span {
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.multiplier-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-secondary);
    font-size: 1.1rem;
    z-index: 1;
}

/* ----- Two-up fork cards ----- */
.fork-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}

/* ----- Real scarcity slot pips ----- */
.slot-pips {
    display: inline-flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.slot-pip {
    width: 36px;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border-color-hover);
}

.slot-pip.filled {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-strong) 100%);
    border-color: transparent;
}

.slot-stamp {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ----- Hero stat band (proof anchor) ----- */
.stat-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-band .stat-item {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.stat-band .stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-band .stat-desc {
    display: block;
    margin-top: 0.2rem;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ----- Tool-partner badge row (borrowed authority) ----- */
.tool-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: var(--fs-small);
    font-weight: 500;
}

.tool-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-primary);
}

.tool-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ----- "You own it" two-column ----- */
.own-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.own-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.own-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.own-item .check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.own-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.own-item strong {
    color: var(--text-primary);
}

.pull-quote {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-primary);
}

.pull-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    font-style: normal;
    color: var(--text-muted);
}

/* ----- Proof: measured-vs-target signals strip ----- */
.signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.signal {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.signal.measured {
    border-color: rgba(139, 92, 246, 0.35);
    background: linear-gradient(180deg, var(--accent-faint) 0%, var(--bg-card) 100%);
}

.signal .signal-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.signal .signal-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.signal.measured .signal-tag {
    color: var(--accent-secondary);
}

.signal.target .signal-tag {
    color: var(--text-muted);
}

.signal .signal-desc {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

/* ----- Tier band (3-tier model) ----- */
.tier-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.tier {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.tier h3 {
    margin-bottom: 0.4rem;
}

.tier .tier-role {
    font-size: var(--fs-small);
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.tier p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ----- Related / thinking cards (shared: homepage + blog) ----- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    display: block;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--inset-highlight);
    transition: all var(--transition-base);
}

.related-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
    box-shadow: var(--elev-1), var(--inset-highlight);
}

.related-card .pill {
    margin-bottom: 0.9rem;
}

.related-card h4 {
    color: var(--text-primary);
    font-size: 1.0625rem;
    line-height: 1.4;
    margin: 0;
}

/* ----- Latest thinking strip ----- */
.thinking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ----- Build-in-public band ----- */
.bip-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.bip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--fs-small);
    transition: all var(--transition-fast);
}

.bip-link:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ----- Nav text link (secondary) ----- */
.nav-link {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    font-weight: 500;
    margin-right: 1.25rem;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* ----- Responsive for new components ----- */
@media (max-width: 1024px) {
    .stage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-callout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {

    .stat-band,
    .signals,
    .tier-band,
    .thinking-grid {
        grid-template-columns: 1fr;
    }

    .own-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stage-grid {
        grid-template-columns: 1fr;
    }

    .fork-grid {
        grid-template-columns: 1fr;
    }

    .multiplier-step:not(:last-child)::after {
        content: '↓';
        right: 50%;
        bottom: -0.85rem;
        top: auto;
        transform: translateX(50%);
    }

    .nav-link {
        display: none;
    }
}

/* ============================================================
   DESIGN POLISH LAYER (research-driven, restraint-first)
   - card elevation via existing --inset-highlight/--elev tokens
   - cursor-follow spotlight (hover-capable pointers only)
   - pure-CSS logo/tool marquee
   - gradient border on featured cards
   All gated for prefers-reduced-motion / touch where relevant.
   ============================================================ */

/* ----- Refined card elevation: shadow-as-border + inset top highlight ----- */
.problem-card,
.service-card,
.why-card,
.stage-card,
.stat,
.tier,
.related-card {
    box-shadow: 0 0 0 1px var(--border-color), var(--inset-highlight), var(--elev-1);
    transition: box-shadow var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.problem-card:hover,
.service-card:hover,
.why-card:hover,
.stage-card:hover,
.tier:hover,
.related-card:hover {
    box-shadow: 0 0 0 1px var(--border-color-hover), var(--inset-highlight), var(--elev-2);
}

/* ----- Cursor-follow spotlight (Ramp/Stripe-style) ----- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {

    .problem-card,
    .service-card,
    .why-card,
    .stage-card {
        position: relative;
    }

    .problem-card::before,
    .service-card::before,
    .why-card::before,
    .stage-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
                var(--accent-soft), transparent 45%);
        opacity: 0;
        transition: opacity var(--transition-base);
        pointer-events: none;
        z-index: 0;
    }

    .problem-card:hover::before,
    .service-card:hover::before,
    .why-card:hover::before,
    .stage-card:hover::before {
        opacity: 1;
    }

    /* keep card content above the glow */
    .problem-card>*,
    .service-card>*,
    .why-card>*,
    .stage-card>* {
        position: relative;
        z-index: 1;
    }
}

/* ----- Pure-CSS marquee for the tool row ----- */
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 0.75rem;
    animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* ----- Gradient border on the featured/primary card ----- */
.service-card.featured {
    position: relative;
}

.service-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-primary), transparent 40%, transparent 60%, var(--accent-secondary));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
