/* =========================
   Bench press 1RM support page
   Mobile-first SEO / UX polish
   Rewritten to match StrengthPeaking tool-page styling
   ========================= */

.seo-page {
    max-width: 980px;
    margin: 0 auto;
}

.seo-hero-card {
    overflow: hidden;
}

.seo-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.seo-hero-copy h1,
.seo-readable h2,
.seo-readable h3 {
    color: var(--text-main) !important;
}

/* Keep H1 visually consistent with the app/tool pages, e.g.
   <h1 class="title is-4">One Rep Max Calculator</h1> */
.seo-hero-copy h1.title.is-4,
.seo-main-title {
    font-size: 1.5rem !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem !important;
    color: var(--text-main) !important;
}

.seo-lead {
    max-width: 680px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted) !important;
    margin-bottom: 1rem;
}

/* Balanced primary actions */
.seo-cta-row,
.seo-bottom-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1rem;
}

.seo-cta-row .button,
.seo-bottom-cta .button,
.seo-inline-cta .button,
.seo-tool-card .button {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.7rem 1rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    font-weight: 900;
}

.seo-cta-row .button.is-primary,
.seo-cta-row .button.is-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.seo-cta-row .button.is-light {
    background: var(--accent-pale) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
    box-shadow: none;
}

.seo-cta-row .button.is-light:hover {
    background: var(--accent-soft) !important;
}

.seo-key-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.seo-key-points li {
    position: relative;
    padding: 0.72rem 0.8rem 0.72rem 2.2rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-panel);
    color: var(--text-main) !important;
    font-weight: 800;
    line-height: 1.3;
}

.seo-key-points li::before {
    content: "✓";
    position: absolute;
    left: 0.78rem;
    top: 0.68rem;
    color: var(--accent) !important;
    font-weight: 950;
}

/* Square source image: contain it instead of cropping/stretching */
.seo-hero-media {
    width: 100%;
    max-width: 300px;
    justify-self: center;
    margin: 0;
}

.seo-hero-media img {
    display: block;
    width: 100%;
    max-height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 0.5rem;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.seo-hero-media figcaption {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted) !important;
}

.seo-jump-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.35rem 0 0.9rem;
    margin: 0.15rem 0 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.seo-jump-nav::-webkit-scrollbar {
    display: none;
}

.seo-jump-nav a {
    flex: 0 0 auto;
    padding: 0.58rem 0.78rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-main) !important;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none !important;
}

.seo-jump-nav a:hover,
.seo-jump-nav a:focus-visible {
    background: var(--accent-pale);
    color: var(--accent) !important;
}

.seo-answer-card,
.seo-section-card,
.seo-faq-card {
    margin-bottom: 1rem;
}

.seo-readable {
    max-width: 74ch;
    line-height: 1.72;
}

.seo-readable h2 {
    margin-top: 0.2rem;
    margin-bottom: 0.65rem;
    font-size: clamp(1.22rem, 3.2vw, 1.5rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.seo-readable h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    font-weight: 950;
}

.seo-readable p {
    color: var(--text-main) !important;
    margin-bottom: 0.9rem;
}

.seo-step-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0;
    margin: 1rem 0;
    list-style: none;
    counter-reset: bench-steps;
}

.seo-step-list li {
    counter-increment: bench-steps;
    position: relative;
    padding: 0.85rem 0.9rem 0.85rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-panel);
    color: var(--text-main) !important;
}

.seo-step-list li::before {
    content: counter(bench-steps);
    position: absolute;
    left: 0.82rem;
    top: 0.85rem;
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 950;
}

.seo-step-list strong {
    display: block;
    margin-bottom: 0.1rem;
}

.seo-inline-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(124, 58, 237, 0.26);
    border-radius: 18px;
    background: var(--accent-pale);
}

.seo-inline-cta span {
    display: block;
    margin-top: 0.1rem;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    line-height: 1.35;
}

.seo-example-grid,
.seo-card-grid,
.seo-split-cards,
.seo-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.seo-example-card,
.seo-info-card,
.seo-tool-card,
.seo-faq-item {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-panel);
    padding: 1rem;
}

.seo-example-card {
    display: grid;
    gap: 0.2rem;
    text-decoration: none !important;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.seo-example-card:hover,
.seo-example-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.38);
    background: var(--accent-pale);
}

.seo-example-card span {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.seo-example-card strong {
    color: var(--accent-strong) !important;
    font-size: 1.08rem;
    line-height: 1.15;
}

body.dark .seo-example-card strong {
    color: var(--accent) !important;
}

.seo-example-card small {
    color: var(--text-muted) !important;
    font-weight: 800;
}

.seo-info-card p,
.seo-tool-card p,
.seo-faq-item p {
    margin-bottom: 0;
    color: var(--text-muted) !important;
    font-size: 0.94rem;
    line-height: 1.48;
}

.seo-tool-card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.seo-tool-card h3 {
    margin-bottom: 0;
}

.seo-tool-card.is-chart-card {
    background: linear-gradient(135deg, var(--accent-pale), var(--bg-panel));
    border-color: rgba(124, 58, 237, 0.3);
}

.seo-faq-grid {
    margin-top: 1.1rem;
}

.seo-bottom-cta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

@media screen and (min-width: 520px) {
    .seo-cta-row,
    .seo-bottom-cta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .seo-example-grid,
    .seo-card-grid,
    .seo-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 860px) {
    .seo-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        align-items: center;
        gap: 1.4rem;
    }

    .seo-hero-media {
        max-width: 320px;
    }

    .seo-hero-media img {
        max-height: 320px;
    }

    .seo-key-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .seo-inline-cta {
        grid-template-columns: 1fr auto;
    }

    .seo-example-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .seo-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .seo-split-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .seo-page .card-content {
        padding: 0.95rem !important;
    }

    .seo-hero-copy h1.title.is-4,
    .seo-main-title {
        font-size: 1.35rem !important;
    }

    .seo-lead {
        font-size: 0.94rem;
        line-height: 1.45;
    }

    .seo-hero-media {
        max-width: 240px;
    }

    .seo-hero-media img {
        max-height: 240px;
    }
}

@media screen and (max-width: 420px) {
    .seo-jump-nav a {
        font-size: 0.78rem;
        padding: 0.52rem 0.68rem;
    }

    .seo-step-list li {
        padding-right: 0.75rem;
    }

    .seo-hero-media {
        max-width: 210px;
    }

    .seo-hero-media img {
        max-height: 210px;
    }
}
