/* pSEO — Apple Health layout, light mode */

.page-pseo {
    --pseo-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --pseo-bg: #f5f5f7;
    --pseo-bg-elevated: #ffffff;
    --pseo-bg-band: #ffffff;
    --pseo-card: #ffffff;
    --pseo-card-muted: #f5f5f7;
    --pseo-image: #e8e8ed;
    --pseo-t1: #1d1d1f;
    --pseo-t2: #6e6e73;
    --pseo-t3: #86868b;
    --pseo-link: #0066cc;
    --pseo-divider: rgba(0, 0, 0, 0.1);
    --pseo-max: 980px;
    font-family: var(--pseo-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--pseo-bg);
    color: var(--pseo-t1);
}

.page-pseo .main.pseo-main {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ── Health sections (reference: .health-section) ── */
.pseo-health-section {
    padding: 100px 0 0;
    border-top: 1px solid var(--pseo-divider);
}

.pseo-health-section:first-child {
    border-top: none;
}

.pseo-section-intro {
    max-width: var(--pseo-max);
    margin: 0 auto;
    padding: 0 22px 60px;
}

.pseo-section-eyebrow {
    font-size: 17px;
    font-weight: 400;
    color: var(--pseo-t2);
    margin-bottom: 8px;
    line-height: 1.47;
}

.pseo-section-icon {
    width: 64px;
    height: 64px;
    border-radius: 17.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    background: linear-gradient(145deg, #e8f5e9, #e3f2fd);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pseo-section-icon--profile { background: linear-gradient(145deg, #e3f2fd, #ede7f6); }
.pseo-section-icon--solution { background: linear-gradient(145deg, #e8f5e9, #c8e6c9); }
.pseo-section-icon--objections { background: linear-gradient(145deg, #fff3e0, #ffe0b2); }
.pseo-section-icon--testimonials { background: linear-gradient(145deg, #fce4ec, #f8bbd9); }
.pseo-section-icon--risk { background: linear-gradient(145deg, #e0f7fa, #b2ebf2); }
.pseo-section-icon--unique { background: linear-gradient(145deg, #e8eaf6, #c5cae9); }

.pseo-section-heading,
.pseo-health-section > h2,
.pseo-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.025em;
    color: var(--pseo-t1);
    max-width: 680px;
    margin-bottom: 20px;
}

.pseo-section-lead,
.pseo-subheadline {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.47;
    color: var(--pseo-t2);
    max-width: 660px;
    margin: 0;
}

.pseo-subheadline {
    margin-bottom: 0;
}

.pseo-body p {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.47;
    color: var(--pseo-t2);
    margin-bottom: 1em;
    max-width: 660px;
}

.pseo-body p:last-child {
    margin-bottom: 0;
}

/* ── Hero ── */
.pseo-hero {
    position: relative;
    padding: 80px 22px 72px;
    text-align: center;
    overflow: hidden;
}

.pseo-hero .pseo-section-intro {
    padding-bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pseo-hero h1 {
    margin-left: auto;
    margin-right: auto;
}

.pseo-hero .pseo-subheadline,
.pseo-hero .pseo-body {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pseo-hero .pseo-body p {
    margin-left: auto;
    margin-right: auto;
}

.pseo-hero .pseo-section-icon {
    margin-left: auto;
    margin-right: auto;
}

/* ── Lists (profile) ── */
.pseo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 660px;
}

.pseo-list li {
    position: relative;
    padding-left: 1.35em;
    margin-bottom: 14px;
    font-size: 19px;
    line-height: 1.47;
    color: var(--pseo-t2);
}

.pseo-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--pseo-t3);
}

.pseo-profile-exclude-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--pseo-t1);
    margin: 28px 0 12px;
    max-width: 660px;
}

.pseo-list-exclusions li::before {
    content: "—";
}

/* ── Card gallery (reference: .card-gallery) ── */
.pseo-gallery-wrap {
    padding-bottom: 80px;
}

.pseo-card-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding: 0 22px 8px;
    scroll-padding-left: 22px;
}

.pseo-card-gallery::-webkit-scrollbar {
    display: none;
}

.pseo-card-gallery::after {
    content: "";
    flex-shrink: 0;
    width: 6px;
}

@media (min-width: 1024px) {
    .pseo-card-gallery {
        padding-left: max(22px, calc((100vw - var(--pseo-max)) / 2 + 22px));
        scroll-padding-left: max(22px, calc((100vw - var(--pseo-max)) / 2 + 22px));
    }

    .pseo-card-gallery::after {
        width: max(22px, calc((100vw - var(--pseo-max)) / 2 + 22px));
    }
}

.pseo-feature-card {
    flex-shrink: 0;
    width: 380px;
    max-width: calc(100vw - 44px);
    background: var(--pseo-card);
    border-radius: 18px;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pseo-card-image {
    width: 100%;
    aspect-ratio: 380 / 260;
    background: var(--pseo-image);
    overflow: hidden;
    flex-shrink: 0;
}

.pseo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pseo-card-text {
    padding: 24px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pseo-card-title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: -0.01em;
    color: var(--pseo-t1);
    margin: 0 0 10px;
}

.pseo-card-body {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.47;
    color: var(--pseo-t2);
    margin: 0;
    flex: 1;
}

/* Stat / trigger card (reference: .stat-card) */
.pseo-stat-card {
    flex-shrink: 0;
    width: 380px;
    max-width: calc(100vw - 44px);
    border-radius: 18px;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 28px;
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 55%, #a5d6a7 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pseo-stat-card--trigger {
    max-width: 660px;
    width: 100%;
    min-height: auto;
    margin: 0 auto;
    padding: 32px 28px;
    border-radius: 18px;
}

.pseo-stat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.4) 55%, transparent 100%);
    pointer-events: none;
}

.pseo-stat-card-content {
    position: relative;
    z-index: 1;
}

.pseo-stat-card-content p {
    font-size: 19px;
    line-height: 1.47;
    color: var(--pseo-t1);
    margin: 0;
    font-style: italic;
}

.pseo-trigger-wrap {
    max-width: var(--pseo-max);
    margin: 0 auto;
    padding: 0 22px 60px;
}

/* ── Credentials band (reference: .science-section + .pill-row) ── */
.pseo-credentials {
    background: var(--pseo-bg-band);
    border-top: 1px solid var(--pseo-divider);
    border-bottom: 1px solid var(--pseo-divider);
    padding: 48px 22px;
    margin: 0;
    width: 100%;
}

.pseo-credentials-inner {
    max-width: var(--pseo-max);
    margin: 0 auto;
    text-align: center;
}

.pseo-credentials-title {
    font-size: 17px;
    color: var(--pseo-t3);
    margin-bottom: 20px;
    line-height: 1.47;
}

.pseo-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pseo-pill {
    background: var(--pseo-card-muted);
    border: 1px solid var(--pseo-divider);
    border-radius: 980px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 400;
    color: var(--pseo-t2);
    line-height: 1.35;
}

/* ── Objections (FAQ-style blocks) ── */
.pseo-objection-block {
    max-width: 660px;
    margin-bottom: 36px;
}

.pseo-objection-block h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--pseo-t1);
}

.pseo-objection-answer {
    font-size: 17px;
    line-height: 1.55;
    color: var(--pseo-t2);
    margin: 0;
}

/* ── Testimonial cards in carousel ── */
.pseo-testimonials-sub {
    font-size: 17px;
    color: var(--pseo-t2);
    margin: 0 auto;
    padding: 0 22px 28px;
    max-width: var(--pseo-max);
    line-height: 1.47;
}

.pseo-testimonial-card {
    flex-shrink: 0;
    width: 380px;
    max-width: calc(100vw - 44px);
    background: var(--pseo-card);
    border-radius: 18px;
    padding: 28px 24px 32px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    min-height: 320px;
}

.pseo-testimonial-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pseo-t1);
    margin: 0 0 12px;
    line-height: 1.35;
}

.pseo-testimonial-card blockquote {
    margin: 0 0 auto;
    padding: 0;
    border: none;
    flex: 1;
}

.pseo-testimonial-card blockquote p {
    font-size: 17px;
    line-height: 1.55;
    font-style: italic;
    color: var(--pseo-t1);
    margin: 0;
}

.pseo-testimonial-card cite {
    font-size: 14px;
    font-style: normal;
    color: var(--pseo-t3);
    margin-top: 20px;
    display: block;
    line-height: 1.4;
}

/* ── Science / band sections (risk, uniqueness) ── */
.pseo-band {
    background: var(--pseo-bg-band);
    border-top: 1px solid var(--pseo-divider);
    padding: 80px 22px;
}

.pseo-band-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.pseo-band .pseo-section-intro {
    padding: 0 0 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pseo-band h2 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.pseo-risk-body,
.pseo-uniqueness {
    text-align: left;
    max-width: 660px;
    margin: 0 auto;
}

.pseo-risk-body p,
.pseo-uniqueness p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--pseo-t2);
    margin-bottom: 1em;
}

.pseo-band .pseo-cta {
    margin-top: 36px;
}

/* Comparison table */
.pseo-comparison-wrap {
    max-width: var(--pseo-max);
    margin: 40px auto 0;
    padding: 0 22px;
}

.pseo-comparison-table {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--pseo-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pseo-comparison-table th,
.pseo-comparison-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--pseo-divider);
    line-height: 1.47;
}

.pseo-comparison-table tr:last-child th,
.pseo-comparison-table tr:last-child td {
    border-bottom: none;
}

.pseo-comparison-table thead th {
    font-weight: 600;
    color: var(--pseo-t1);
    background: var(--pseo-card-muted);
}

.pseo-comparison-table tbody th {
    font-weight: 600;
    color: var(--pseo-t1);
}

.pseo-comparison-table td {
    color: var(--pseo-t2);
}

/* ── Footer CTA (reference: .footer-cta) ── */
.pseo-footer-cta {
    background: var(--pseo-card);
    border-top: 1px solid var(--pseo-divider);
    padding: 80px 22px;
    text-align: center;
}

.pseo-final-line {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.07;
    margin: 0 auto 16px;
    color: var(--pseo-t1);
    max-width: 680px;
}

.pseo-footer-cta-sub {
    font-size: 19px;
    color: var(--pseo-t2);
    margin: 0 auto 36px;
    line-height: 1.47;
    max-width: 520px;
}

.pseo-cta a {
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
}

.pseo-cta img {
    height: 48px;
    width: auto;
}

.pseo-device-note {
    font-size: 12px;
    color: var(--pseo-t3);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* ── Related ── */
.pseo-related {
    max-width: var(--pseo-max);
    margin: 0 auto;
    padding: 60px 22px 80px;
    border-top: 1px solid var(--pseo-divider);
}

.pseo-related h2 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--pseo-t1);
}

.pseo-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pseo-related li {
    margin-bottom: 12px;
}

.pseo-related a {
    color: var(--pseo-link);
    text-decoration: none;
    font-size: 17px;
    line-height: 1.47;
}

.pseo-related a:hover {
    text-decoration: underline;
}

/* ── Index ── */
.pseo-index-content {
    max-width: 660px;
    text-align: left;
    margin: 0 auto;
}

.pseo-index-content h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 40px 0 14px;
    color: var(--pseo-t1);
}

.pseo-index-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.pseo-index-content li {
    margin-bottom: 12px;
}

.pseo-index-content a {
    color: var(--pseo-link);
    text-decoration: none;
    font-size: 17px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .pseo-health-section {
        padding-top: 72px;
    }

    .pseo-section-intro {
        padding-bottom: 48px;
    }

    .pseo-hero {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .pseo-section-heading,
    .pseo-health-section > h2,
    .pseo-hero h1 {
        font-size: 32px;
    }

    .pseo-feature-card,
    .pseo-testimonial-card,
    .pseo-stat-card {
        width: calc(100vw - 44px);
    }

    .pseo-gallery-wrap {
        padding-bottom: 56px;
    }

    .pseo-pill {
        font-size: 13px;
        padding: 8px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pseo-card-gallery {
        scroll-behavior: auto;
    }
}
