/* ============================================================
   PATIENTS.CSS — /patients page sections (.px- namespace)
   Layers on styles.css tokens + pages-shared.css primitives.

/* ------------------------------------------------------------
   Shared bits
------------------------------------------------------------ */
.px-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-brand-700);
    margin-bottom: 14px;
}

.section-hero .px-eyebrow { color: var(--c-accent-ink); }

/* ------------------------------------------------------------
   Image slots — gradient placeholders sized to the prompt deck.
   When assets/img/gen/px-*.webp lands, the <img> covers the
   gradient and the tag label underneath it.
------------------------------------------------------------ */
.px-shot {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    border: 1px solid var(--pg-hairline);
    box-shadow: var(--pg-e3);
}

.px-shot img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
}

.px-shot-tag {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(22,22,23,0.18);
    pointer-events: none;
}

/* Aspect ratios per slot family (match px-prompts.md sizes) */
.px-shot--square { aspect-ratio: 1 / 1; }
.px-shot--wide   { aspect-ratio: 4 / 3; }
.px-shot--bento  { aspect-ratio: 6 / 5; }

/* Placeholder meshes — one hue family per feature */
.px-shot--trio-voice {
    background-image:
        radial-gradient(120% 120% at 12% 6%, #dce8ff 0%, rgba(220,232,255,0) 55%),
        linear-gradient(140deg, #bfd1fa 0%, #aabcf6 45%, #7f8fe3 80%, #6677dc 100%);
}

.px-shot--trio-focus {
    background-image:
        radial-gradient(120% 120% at 80% 10%, #ffffff 0%, rgba(255,255,255,0) 55%),
        linear-gradient(140deg, #e9f1ff 0%, #cfe0fc 55%, #b0d2fc 100%);
}

.px-shot--trio-circle {
    background-image:
        radial-gradient(120% 120% at 12% 8%, #dbe6fb 0%, rgba(219,230,251,0) 55%),
        linear-gradient(140deg, #b9d6fb 0%, #8ca8e7 60%, #7492fd 100%);
}

.px-shot--programs {
    background-image:
        radial-gradient(120% 120% at 10% 0%, #e9f1ff 0%, rgba(233,241,255,0) 50%),
        linear-gradient(140deg, #b9d6fb 0%, #8fb1f5 55%, #7492fd 100%);
}

.px-shot--voice {
    background-image:
        radial-gradient(110% 120% at 15% 8%, #dce8ff 0%, rgba(220,232,255,0) 55%),
        linear-gradient(140deg, #bfd1fa 0%, #aabcf6 45%, #7f8fe3 80%, #6677dc 100%);
}

.px-shot--records {
    background-image:
        radial-gradient(120% 120% at 85% 12%, #ffffff 0%, rgba(255,255,255,0) 55%),
        linear-gradient(140deg, #f7f8ff 0%, #e6eefc 55%, #dce9fd 100%);
}

.px-shot--circle {
    background-image:
        radial-gradient(120% 120% at 15% 5%, #e3ebfb 0%, rgba(227,235,251,0) 55%),
        linear-gradient(140deg, #c7d6f7 0%, #a3b8ef 55%, #8ca8e7 100%);
}

.px-shot--rides {
    background-image:
        radial-gradient(120% 120% at 12% 0%, #cfe0fc 0%, rgba(207,224,252,0) 50%),
        linear-gradient(140deg, #4f6ef7 0%, #4787d9 55%, #3fa8c9 100%);
}

.px-shot--meals {
    background-image:
        radial-gradient(120% 120% at 85% 8%, #ffffff 0%, rgba(255,255,255,0) 55%),
        linear-gradient(140deg, #ddefe3 0%, #d4e7ef 55%, #cfe3fb 100%);
}

.px-shot--nutrition {
    background-image:
        radial-gradient(120% 120% at 10% 10%, #ffffff 0%, rgba(255,255,255,0) 50%),
        linear-gradient(140deg, #ddefe3 0%, #e2eef4 55%, #e9f1ff 100%);
}

.px-shot--sleep {
    background-image:
        radial-gradient(90% 100% at 80% 12%, #5570f5 0%, rgba(85,112,245,0) 55%),
        radial-gradient(110% 120% at 30% 90%, #26408c 0%, rgba(38,64,140,0) 60%),
        linear-gradient(140deg, #1b2350 0%, #161a38 60%, #26408c 100%);
}

.px-shot--meds {
    background-image:
        radial-gradient(110% 120% at 86% 90%, #ddefe3 0%, rgba(221,239,227,0) 55%),
        linear-gradient(140deg, #e9f1ff 0%, #d2e2fd 55%, #b0d2fc 100%);
}

.px-shot--nurse {
    background-image:
        radial-gradient(120% 120% at 80% 10%, #ffffff 0%, rgba(255,255,255,0) 55%),
        linear-gradient(140deg, #eef3fe 0%, #dde9fc 55%, #c8dcfa 100%);
}

.px-shot--chat {
    background-image:
        radial-gradient(120% 120% at 14% 8%, #eef4ff 0%, rgba(238,244,255,0) 55%),
        linear-gradient(150deg, #dce8ff 0%, #bfd1fa 45%, #8fb5f4 100%);
}

.px-shot--zoom {
    background-image:
        radial-gradient(110% 120% at 18% 0%, #5a78f0 0%, rgba(90,120,240,0) 55%),
        linear-gradient(145deg, #3f57e8 0%, #3a6ad0 55%, #2e8fa8 100%);
}

/* Dark placeholders read better with a dimmer tag */
.px-shot--sleep .px-shot-tag,
.px-shot--zoom .px-shot-tag { color: rgba(255,255,255,0.65); }

/* ------------------------------------------------------------
   1. Hero — text only, centered on white (OpenAI-style)
------------------------------------------------------------ */
.px-hero {
    position: relative;
    background:
        radial-gradient(90% 70% at 50% 0%, #eef3fe 0%, rgba(238,243,254,0) 70%),
        var(--c-surface);
}

.px-hero-stack {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 170px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* First section after the hero sits closer — the hero already breathes */
#px-trio.pg-section { padding-top: 56px; }

.px-hero-headline {
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-n900);
    margin-bottom: 20px;
}

.px-hero-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--c-n500);
    max-width: 560px;
    margin: 0 auto 36px;
}

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

/* Ghost button needs a hairline on the white hero (no mesh behind it) */
.px-hero-ghost {
    background: #ffffff;
    border-color: var(--pg-hairline);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: var(--pg-e1);
}

/* ------------------------------------------------------------
   Statement band — the thesis, said plainly
------------------------------------------------------------ */
.px-statement {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.px-statement-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-brand-700);
    margin-bottom: 18px;
}

.px-statement-text {
    font-size: 34px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--c-n900);
}

.px-statement-text em {
    font-style: italic;
    color: var(--c-accent);
}

@media (max-width: 960px) {
    .px-statement-text { font-size: 26px; }
}

/* ------------------------------------------------------------
   2. Trio
------------------------------------------------------------ */
.px-trio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.px-trio-card { margin: 0; }

.px-trio-card figcaption { padding: 18px 6px 0; }

.px-trio-card h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--c-n900);
    margin-bottom: 4px;
}

.px-trio-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-n500);
}

/* ------------------------------------------------------------
   3. Anchor feature rows — card pairs (ChatGPT-desktop pattern):
   flat light-gray text card beside the mesh image card.
------------------------------------------------------------ */
.px-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: stretch;
}

.px-row + .px-row { margin-top: 24px; }

.px-row--flip .px-row-copy   { order: 2; }
.px-row--flip .px-row-visual { order: 1; }

.px-row-copy {
    background: var(--c-g50);
    border-radius: 28px;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.px-row-visual { display: flex; }

.px-row-visual .px-shot {
    width: 100%;
    height: 100%;
    border-radius: 28px;
}

.px-row-visual .px-shot img {
    height: 100%;
    object-fit: cover;
}

.px-row-title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--c-n900);
    margin-bottom: 14px;
}

.px-row-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-n500);
    margin-bottom: 26px;
}

/* ------------------------------------------------------------
   4. Bento
------------------------------------------------------------ */
.px-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.px-bento-card {
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.px-bento-card .px-shot {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--pg-hairline-soft);
    box-shadow: none;
}

.px-bento-card figcaption { padding: 20px 24px 24px; }

.px-bento-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--c-n900);
    margin-bottom: 5px;
}

.px-bento-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-n500);
}

/* ------------------------------------------------------------
   5. Stats band
------------------------------------------------------------ */
.px-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 1100px) {
    .px-bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .px-trio-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .px-stat-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }

    .px-hero-stack { padding: 140px 24px 32px; }
    .px-hero-headline { font-size: 42px; }

    .px-row { grid-template-columns: 1fr; }

    /* Visual always leads on mobile, copy follows */
    .px-row-copy   { order: 2; padding: 32px 26px; }
    .px-row-visual { order: 1; }

    .px-row-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .px-bento-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .px-hero-headline { font-size: 34px; }
    .px-hero-actions { flex-direction: column; width: 100%; }
    .px-hero-actions .pg-btn { width: 100%; }
}
