/* Subpages: Data Forge, Products, Founder — clean commercial layout */

.page-hero {
    padding: calc(var(--nav-height, 64px) + 2.75rem) 1.25rem 3rem;
    margin-top: 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero .container {
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    line-height: 1.25;
}

.page-hero .lead {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 0.25rem;
}

.page-hero .hero-actions {
    margin-top: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.evaluation-banner {
    background: var(--background);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin: 0 auto;
    max-width: 960px;
}

.evaluation-banner h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    color: var(--primary-dark);
}

.evaluation-banner .product-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: var(--space-4) 0 var(--space-2);
}

.evaluation-banner ul.checklist {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

@media (min-width: 640px) {
    .evaluation-banner ul.checklist {
        grid-template-columns: 1fr 1fr;
    }
}

.evaluation-banner ul.checklist li::before {
    content: "✓ ";
    color: var(--accent-dark);
    font-weight: 700;
}

.prose-block {
    max-width: 720px;
    margin: 0 auto var(--space-6);
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid-3.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.info-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.info-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.status-pill {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
}

.rules-list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.rules-list li:last-child {
    border-bottom: none;
}

.founder-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .founder-layout {
        grid-template-columns: 220px 1fr;
    }
}

.founder-photo {
    width: 100%;
    max-width: 220px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

#products .products-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    #products .products-grid,
    .section-narrow .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .section-narrow .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.founder-note {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.breadcrumb {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.section-narrow .container {
    max-width: 960px;
}

.catalog-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.catalog-table th,
.catalog-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.catalog-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface-elevated);
}

.catalog-table tbody tr:last-child td {
    border-bottom: none;
}

.price-cell {
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-primary);
}

.price-period {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* —— Pricing page —— */
.pricing-principles {
    display: grid;
    gap: 0.5rem 2rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.pricing-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary, #3d7a5f);
    margin-bottom: 0.5rem;
}

.pricing-badge--muted {
    color: var(--text-tertiary);
}

.pricing-sku-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    margin-top: 1.5rem;
}

.pricing-sku-card {
    background: var(--surface-elevated, #fff);
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
}

.pricing-sku-card--featured {
    border-color: var(--accent-primary, #3d7a5f);
    box-shadow: 0 0 0 1px var(--accent-primary, #3d7a5f);
}

.pricing-sku-price {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0.5rem 0 0;
}

.pricing-sku-price--compact {
    font-size: 1.5rem;
}

.pricing-sku-period {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 1rem;
}

.pricing-sku-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pricing-steps {
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-steps li + li {
    margin-top: 0.5rem;
}

.pricing-fit-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.pricing-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-checklist li {
    margin-bottom: 0.5rem;
}

.pricing-not-fit li {
    color: var(--text-secondary);
}

.pricing-secondary-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    margin-top: 1rem;
}

.pricing-secondary-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-faq {
    margin: 0;
}

.pricing-faq dt {
    font-weight: 600;
    margin-top: 1.25rem;
}

.pricing-faq dt:first-child {
    margin-top: 0;
}

.pricing-faq dd {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* —— Overview deck —— */
.deck-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    margin-top: 1.5rem;
}

.deck-slide-thumb {
    display: block;
    padding: 0;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1));
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-elevated, #fff);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.deck-slide-thumb:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.deck-slide-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
}

.deck-slide-num {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 0.35rem 0.5rem;
    text-align: center;
}

.deck-viewer {
    border: none;
    padding: 0;
    max-width: min(96vw, 72rem);
    width: 100%;
    background: transparent;
}

.deck-viewer::backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.deck-viewer-inner {
    position: relative;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.deck-viewer-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.deck-viewer-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    font-size: 0.8125rem;
}

.deck-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.deck-viewer-nav--prev { left: 0.5rem; }
.deck-viewer-nav--next { right: 0.5rem; }

.deck-viewer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: #1a1a1a;
    color: #ccc;
    font-size: 0.8125rem;
}

.platform-depth-figure {
    margin: 1.5rem 0;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-elevated, #fff);
}

.platform-depth-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.platform-depth-figure figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.explainer-video-player {
    margin-top: 1.5rem;
    max-width: 56rem;
}

.explainer-video-wrap {
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #0a0a0a;
}

.explainer-video-wrap video,
.explainer-video-el {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: #000;
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.explainer-video-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0.75rem;
    background: #141820;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.explainer-video-wrap video::cue,
.explainer-video-el::cue {
    background: rgba(0, 0, 0, 0.78);
    color: #f5f7fa;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.35;
}

.explainer-video-open-link {
    font-size: 0.8125rem;
    color: var(--primary, #6b8fd4);
    margin-left: auto;
}

.explainer-video-open-link:hover {
    text-decoration: underline;
}

.platform-mind-map-figure {
    margin-top: 1.5rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.platform-mind-map-figure img {
    width: 100%;
    height: auto;
}

.explainer-cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: transparent;
    color: #c5cdd9;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.explainer-cc-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e8eaef;
}

.explainer-cc-btn.is-active {
    background: rgba(107, 143, 212, 0.22);
    border-color: rgba(107, 143, 212, 0.65);
    color: #e8eaef;
}

.explainer-cc-btn__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.1rem 0.25rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
}

.explainer-cc-btn.is-active .explainer-cc-btn__label {
    background: rgba(107, 143, 212, 0.35);
}

.explainer-cc-btn__state {
    font-weight: 500;
    color: var(--text-secondary, #9aa3b5);
}

.explainer-cc-btn.is-active .explainer-cc-btn__state {
    color: #c5d4f0;
}

/* —— Legal pages —— */
.legal-doc {
    max-width: 42rem;
}

.legal-doc-meta {
    font-size: 0.875rem;
    color: var(--text-secondary, #9aa3b5);
    margin-bottom: 1.5rem;
}

.legal-doc h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-primary, #e8eaef);
}

.legal-doc h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary, #e8eaef);
}

.legal-doc p,
.legal-doc li {
    color: var(--text-secondary, #9aa3b5);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-doc ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.legal-doc a {
    color: var(--primary, #6b8fd4);
}

.legal-doc-nav {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    font-size: 0.875rem;
}

.catalog-kind {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--surface-elevated);
    color: var(--text-secondary);
}
