/* ============================================================
   PLATFORM.CSS — /platform (.pp2- new system, .pp- kept pieces)
   Layers on styles.css tokens + pages-shared.css primitives.
   Page anatomy follows OpenAI's overview pages: centered hero →
   console window on aurora → stat band → alternating splits →
   use-case grid → enterprise rows → chips → CTA.

/* ------------------------------------------------------------
   HERO — centered copy, console window on aurora
------------------------------------------------------------ */
.pp2-hero { padding: 150px 0 24px; }

.pp2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.pp2-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.pp2-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-accent-ink, #3a52d6);
    margin-bottom: 18px;
}

.pp2-h1 {
    font-size: clamp(36px, 3.8vw, 50px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--c-n900);
    max-width: 16ch;
    margin-bottom: 18px;
}

.pp2-hero-sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--c-n600);
    max-width: 46ch;
    margin-bottom: 28px;
}

.pp2-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hero image — one baked fragment composition (aurora lives in the image) */
.pp2-stage {
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(22,22,23,0.14), 0 10px 26px rgba(22,22,23,0.06);
}

.pp2-stage img {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------------------------------------------------
   STAT BAND
------------------------------------------------------------ */
.pp2-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--pg-hairline-soft);
    border-bottom: 1px solid var(--pg-hairline-soft);
}

.pp2-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pp2-stat-value {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--c-n900);
    font-variant-numeric: tabular-nums;
}

.pp2-stat-label {
    font-size: 14px;
    color: var(--c-n500);
}

.pp2-handoff { margin-top: 22px; }

.pp2-stat-note {
    text-align: center;
    font-size: 12px;
    color: var(--c-n300);
    margin-top: 14px;
}

/* Day one, compressed strip */
.pp2-dayone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-top: 26px;
    padding: 16px 22px;
    border-radius: var(--r-full);
    background: #FFFFFF;
    border: 1px solid var(--pg-hairline);
    box-shadow: var(--pg-e1);
}

.pp2-dayone-step {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--c-n700);
    white-space: nowrap;
}

.pp2-dayone-step b {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-accent-ink, #3a52d6);
    background: var(--c-brand-100, #e9f1ff);
    border-radius: var(--r-full);
    padding: 3px 10px;
}

.pp2-dayone > .ph {
    color: var(--c-n300);
    font-size: 14px;
}

.pp2-dayone-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-n900);
    white-space: nowrap;
}

.pp2-dayone-link:hover { text-decoration: underline; }

/* Three ways comparison */
.pp2-ways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pp2-way {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 32px;
    border-radius: var(--r-xl);
    background: #FFFFFF;
    border: 1px solid var(--pg-hairline);
    box-shadow: var(--pg-e1);
}

.pp2-way--atticus {
    border: 1.5px solid transparent;
    background:
        linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        var(--pg-grad-vivid) border-box;
    box-shadow: 0 8px 24px rgba(79,110,247,0.10), 0 24px 60px rgba(79,110,247,0.10);
}

.pp2-way-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-n300);
}

.pp2-way--atticus .pp2-way-label { color: var(--c-accent-ink, #3a52d6); }

.pp2-way-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-n900);
}

.pp2-way-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pp2-way-list li {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--c-n500);
    padding: 9px 0;
    border-top: 1px solid var(--pg-hairline-soft);
}

.pp2-way-list li:first-child { border-top: none; }

.pp2-way--atticus .pp2-way-list li { color: var(--c-n700); font-weight: 500; }

.pp2-way-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-n900);
    transition: gap 150ms var(--ease);
}

.pp2-way-link:hover { gap: 10px; }

.pp2-ways-foot {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-n500);
    max-width: 640px;
    margin: 32px auto 0;
}

.pp2-ways-foot b { font-weight: 600; color: var(--c-n900); }

.pp2-ways-foot a {
    font-weight: 600;
    color: var(--c-n900);
    white-space: nowrap;
}

/* ------------------------------------------------------------
   ALTERNATING SPLITS — small copy column, large image
------------------------------------------------------------ */
.pp2-split {
    display: grid;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
}

.pp2-split--flip .pp2-copy { order: 2; }
.pp2-split--flip .pp2-shot { order: 1; }

.pp2-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-accent-ink, #3a52d6);
    margin-bottom: 14px;
}

.pp2-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--c-n900);
    margin-bottom: 14px;
}

.pp2-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-n500);
    margin-bottom: 24px;
}

.pp2-shot {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(22,22,23,0.11), 0 6px 16px rgba(22,22,23,0.05);
}

.pp2-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.pp2-live {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 2;
}

/* ------------------------------------------------------------
   BOTH SIDES (kept from previous design)
------------------------------------------------------------ */
.pp-sides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pp-side-card { padding: 36px 38px; }

.pp-side-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.pp-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 22px;
    flex-shrink: 0;
    background: #FFFFFF;
    color: var(--pg-solid);
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(22,22,23,0.08), 0 8px 20px rgba(22,22,23,0.08);
}

.pp-side-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--c-n900);
}

/* ------------------------------------------------------------
   EXPORTS (kept)
------------------------------------------------------------ */
.pp-export-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}

/* CSS-built accreditor document stack — fans out on hover */
.pp-export-stage {
    position: relative;
    padding: 56px 24px;
    border-radius: var(--r-2xl);
    background:
        radial-gradient(90% 90% at 70% 20%, rgba(116, 146, 253, 0.22) 0%, rgba(116, 146, 253, 0) 60%),
        radial-gradient(110% 110% at 20% 90%, rgba(79, 110, 247, 0.16) 0%, rgba(79, 110, 247, 0) 55%),
        #f3f6fd;
}

.pp-export-stack {
    position: relative;
    width: min(330px, 80%);
    margin-inline: auto;
    aspect-ratio: 3 / 3.9;
}

.pp-doc {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 22px 22px 18px;
    background: #ffffff;
    border: 1px solid var(--pg-hairline);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(22, 22, 23, 0.12), 0 5px 14px rgba(22, 22, 23, 0.05);
    transition: transform 480ms var(--ease);
}

.pp-doc--back2 { transform: rotate(7deg) translate(7%, 1%) scale(0.94); }
.pp-doc--back1 { transform: rotate(-6.5deg) translate(-8%, 2.5%) scale(0.97); }

.pp-export-stack:hover .pp-doc--back2 { transform: rotate(11deg) translate(13%, 0) scale(0.94); }
.pp-export-stack:hover .pp-doc--back1 { transform: rotate(-10.5deg) translate(-14%, 1.5%) scale(0.97); }
.pp-export-stack:hover .pp-doc--front { transform: translateY(-2.5%); }

.pp-doc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pp-doc-tab {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--c-n900);
    background: var(--c-brand-100, #e9f1ff);
    border-radius: 7px;
    padding: 6px 10px;
    align-self: flex-start;
    white-space: nowrap;
}

.pp-doc-seal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pg-ok-ink, #157a42);
    background: var(--pg-ok-bg, #e7f6ec);
    border-radius: var(--r-full);
    padding: 5px 11px;
}

.pp-doc-seal svg { width: 11px; height: 11px; }

.pp-doc-line {
    height: 9px;
    border-radius: 5px;
    background: var(--c-g100, #eeeeef);
}

.pp-doc-chart {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    height: 86px;
    margin-top: auto;
    padding-top: 10px;
}

.pp-doc-chart span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 5px 5px 2px 2px;
    background: var(--pg-grad-vivid);
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 600ms var(--ease);
}

[data-reveal].revealed .pp-doc-chart span { transform: scaleY(1); }
[data-reveal].revealed .pp-doc-chart span:nth-child(2) { transition-delay: 70ms; }
[data-reveal].revealed .pp-doc-chart span:nth-child(3) { transition-delay: 140ms; }
[data-reveal].revealed .pp-doc-chart span:nth-child(4) { transition-delay: 210ms; }
[data-reveal].revealed .pp-doc-chart span:nth-child(5) { transition-delay: 280ms; }
[data-reveal].revealed .pp-doc-chart span:nth-child(6) { transition-delay: 350ms; }

.pp-doc-foot {
    font-size: 11.5px;
    color: var(--c-n300, #8a8a90);
    border-top: 1px solid var(--pg-hairline-soft);
    padding-top: 12px;
}

.pp-export-chip { z-index: 3; }

.pp-export-list {
    display: flex;
    flex-direction: column;
}

.pp-export-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 4px;
    border-top: 1px solid var(--pg-hairline-soft);
}

.pp-export-row:first-child { border-top: none; }

.pp-export-row-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pp-export-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--c-n900);
}

.pp-export-ready {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-ok-ink);
}

/* ------------------------------------------------------------
   USE-CASE 3-UP — gradient art card + copy (OpenAI pattern)
------------------------------------------------------------ */
.pp2-use-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 920px;
    margin-inline: auto;
}

.pp2-use-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--r-xl);
    transition: transform 350ms var(--ease);
}

.pp2-use-card:hover { transform: translateY(-4px); }

.pp2-use-art {
    position: relative;
    height: 190px;
    border-radius: var(--r-xl);
    margin-bottom: 10px;
}

.pp2-use-art .pp2-use-tile {
    position: absolute;
    top: 18px;
    left: 18px;
}

.pp2-use-art--blue {
    background:
        radial-gradient(90% 110% at 18% 0%, rgba(255,235,225,0.6) 0%, rgba(255,235,225,0) 55%),
        linear-gradient(135deg, #b9d6fb 0%, #8ca8e7 55%, #6f8efb 100%);
}

.pp2-use-art--warm {
    background:
        radial-gradient(90% 110% at 80% 0%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #ffe3d0 0%, #ffd2dc 55%, #f7c8b4 100%);
}

.pp2-use-art--violet {
    background:
        radial-gradient(90% 110% at 80% 100%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #d9d2fb 0%, #b4a6f2 55%, #9c8af0 100%);
}

.pp2-use-art--aqua {
    background:
        radial-gradient(90% 110% at 20% 100%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, #cdefec 0%, #c2e3fb 55%, #a8d8d2 100%);
}

.pp2-use-tile {
    width: 44px;
    height: 44px;
    font-size: 21px;
    border-radius: 13px;
}

.pp2-use-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--c-n900);
}

.pp2-use-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-n500);
}

.pp2-use-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-n900);
    margin-top: 4px;
    transition: gap 150ms var(--ease);
}

.pp2-use-card:hover .pp2-use-link { gap: 10px; }

/* ------------------------------------------------------------
   ENTERPRISE ROWS
------------------------------------------------------------ */
.pp2-ent-list {
    max-width: 880px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.pp2-ent-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 4px;
    border-top: 1px solid var(--pg-hairline-soft);
}

.pp2-ent-row:first-child { border-top: none; }

.pp2-ent-icon {
    width: 44px;
    height: 44px;
    font-size: 21px;
    border-radius: 14px;
    flex-shrink: 0;
    transition: transform 350ms var(--ease);
}

.pp2-ent-row:hover .pp2-ent-icon { transform: translateY(-3px); }

.pp2-ent-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--c-n900);
    margin-bottom: 5px;
}

.pp2-ent-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--c-n500);
    max-width: 64ch;
}

/* ------------------------------------------------------------
   STRIP LABEL / TPA BANNER (kept)
------------------------------------------------------------ */
.pp-strip-label {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-accent-ink, #3a52d6);
    margin-bottom: 24px;
}

.pp-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 32px;
    text-decoration: none;
}

.pp-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 22px;
    flex-shrink: 0;
    background: #FFFFFF;
    color: var(--pg-solid);
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(22,22,23,0.08), 0 8px 20px rgba(22,22,23,0.08);
}

.pp-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pp-banner-copy strong {
    font-size: 17px;
    font-weight: 600;
    color: var(--c-n900);
}

.pp-banner-copy span {
    font-size: 14px;
    color: var(--c-n500);
}

.pp-banner-arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--c-n900);
    flex-shrink: 0;
    transition: transform 300ms var(--ease);
}

.pp-banner:hover .pp-banner-arrow { transform: translateX(5px); }

/* ------------------------------------------------------------
   Reduced motion
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .pp2-use-card,
    .pp2-use-link,
    .pp-banner-arrow,
    .pp-doc { transition: none; }
    .pp-doc-chart span { transform: scaleY(1); transition: none; }
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 960px) {
    .pp2-hero { padding-top: 128px; }
    .pp2-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .pp2-split,
    .pp2-split--flip { grid-template-columns: 1fr; gap: 36px; }
    .pp2-split--flip .pp2-copy { order: 1; }
    .pp2-split--flip .pp2-shot { order: 2; }
    .pp2-stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
    .pp2-ways { grid-template-columns: 1fr; }
    .pp2-dayone { border-radius: var(--r-xl); }
    .pp2-dayone > .ph { display: none; }
    .pp-sides-grid { grid-template-columns: 1fr; }
    .pp-export-split { grid-template-columns: 1fr; gap: 36px; }
    .pp2-use-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pp2-hero-actions { flex-direction: column; width: 100%; }
    .pp2-hero-actions .pg-btn { width: 100%; }
    .pp-banner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .pp2-h1 { font-size: 32px; }
    .pp2-title { font-size: 27px; }
    .pp2-stat-value { font-size: 34px; }
}
