/* Search-focused public pages. Kept isolated from authenticated app screens. */

.seo-public-page .app-container {
    max-width: 1180px;
    padding-top: 38px;
    padding-bottom: 96px;
}

.seo-product-page,
.public-guide-page {
    color: var(--text-dark);
}

.seo-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 650;
}

.seo-breadcrumbs a {
    color: var(--primary-teal-dark);
    text-decoration: none;
}

.seo-kicker,
.seo-section-number {
    display: inline-flex;
    align-items: center;
    color: var(--primary-teal-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.seo-product-hero {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 40px;
    overflow: hidden;
    padding: 60px 68px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(135deg, #e4fbf4 0%, #f7fffc 58%, #e6f4ff 100%);
    border: 1px solid #cdeee4;
}

.seo-product-hero h1,
.public-guide-hero h1 {
    max-width: 760px;
    margin: 17px 0 0;
    color: #10212b;
    font-size: clamp(2.55rem, 5.8vw, 5rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
    font-weight: 850;
}

.seo-hero-lead,
.public-guide-hero > p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #425763;
    font-size: 1.1rem;
    line-height: 1.72;
}

.seo-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.seo-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.seo-button:hover {
    transform: translateY(-1px);
}

.seo-button-primary {
    color: #fff;
    background: var(--primary-teal-dark);
    box-shadow: 0 12px 26px rgba(0, 143, 118, 0.2);
}

.seo-button-secondary {
    color: #17353c;
    border-color: #b9ddd5;
    background: rgba(255, 255, 255, 0.82);
}

.seo-trust-list,
.seo-check-list {
    padding: 0;
    list-style: none;
}

.seo-trust-list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 24px 0 0;
    color: #3d5e63;
    font-size: 0.85rem;
    font-weight: 700;
}

.seo-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seo-trust-list i {
    color: var(--primary-teal-dark);
    font-size: 1.05rem;
}

.seo-product-hero-visual {
    align-self: end;
    display: flex;
    justify-content: center;
}

.seo-product-hero-visual img {
    width: min(100%, 355px);
    height: auto;
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 28px 30px rgba(16, 33, 43, 0.18));
}

.seo-direct-answer,
.seo-section,
.seo-split-section,
.seo-resource-card {
    margin-top: 26px;
    border: 1px solid var(--mc-border);
    border-radius: 22px;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

.seo-direct-answer {
    padding: 38px 42px;
    border-left: 5px solid var(--primary-teal);
}

.seo-direct-answer h2,
.seo-section-heading h2,
.seo-split-section h2,
.seo-resource-card h2 {
    margin: 10px 0 0;
    color: #132b34;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.15;
}

.seo-direct-answer p,
.seo-section-heading p,
.seo-resource-card p {
    max-width: 820px;
    margin: 15px 0 0;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.72;
}

.seo-section {
    padding: 50px 52px;
}

.seo-section-heading {
    max-width: 830px;
    margin-bottom: 30px;
}

.seo-step-grid,
.seo-feature-grid {
    display: grid;
    gap: 16px;
    padding: 0;
    list-style: none;
}

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

.seo-step-grid li,
.seo-feature-grid article {
    padding: 26px;
    border: 1px solid #dce9e8;
    border-radius: 16px;
    background: #fbfefd;
}

.seo-step-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--primary-teal-dark);
    font-weight: 850;
}

.seo-step-grid h3,
.seo-feature-grid h3 {
    margin: 18px 0 0;
    color: #18343c;
    font-size: 1.08rem;
}

.seo-step-grid p,
.seo-feature-grid p {
    margin: 9px 0 0;
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.62;
}

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

.seo-feature-grid article > i {
    color: var(--primary-teal-dark);
    font-size: 1.75rem;
}

.seo-feature-grid a {
    display: inline-block;
    margin-top: 14px;
    color: var(--primary-teal-dark);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.seo-comparison-section {
    overflow: hidden;
}

.seo-table-wrap {
    overflow-x: auto;
}

.seo-table-wrap table {
    width: 100%;
    min-width: 740px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.seo-table-wrap th,
.seo-table-wrap td {
    padding: 16px;
    border-bottom: 1px solid #e2eceb;
    text-align: left;
    vertical-align: top;
}

.seo-table-wrap thead th {
    color: #17343b;
    background: #effaf7;
    font-weight: 800;
}

.seo-table-wrap tbody th {
    width: 21%;
    color: #274650;
    font-weight: 800;
}

.seo-table-wrap tbody td {
    color: var(--text-medium);
    line-height: 1.5;
}

.seo-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.seo-split-section > div {
    padding: 46px 48px;
}

.seo-caveat-card {
    background: #f5fafb;
    border-left: 1px solid var(--mc-border);
}

.seo-check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
}

.seo-check-list li {
    position: relative;
    padding-left: 25px;
    color: var(--text-medium);
    line-height: 1.58;
}

.seo-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-teal-dark);
    font-weight: 900;
}

.seo-faq-list {
    display: grid;
    gap: 10px;
}

.seo-faq-list details {
    border: 1px solid #dbe9e7;
    border-radius: 14px;
    background: #fbfefd;
}

.seo-faq-list summary {
    padding: 19px 22px;
    color: #1b3941;
    cursor: pointer;
    font-weight: 800;
}

.seo-faq-list p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--text-medium);
    line-height: 1.65;
}

.seo-resource-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px 50px;
    background: linear-gradient(135deg, #edf9f6 0%, #ffffff 100%);
}

.seo-resource-card .seo-hero-actions {
    flex: 0 0 auto;
    margin-top: 0;
}

.public-guide-hero {
    padding: 54px 58px;
    border: 1px solid #cdeee4;
    border-radius: 26px;
    background: linear-gradient(135deg, #effcf8, #f9fcff);
}

.public-guide-hero h1 {
    max-width: 900px;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.public-guide-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 22px;
    margin-top: 26px;
}

.public-guide-toc {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--mc-border);
    border-radius: 18px;
    background: var(--bg-card);
}

.public-guide-toc strong {
    display: block;
    margin-bottom: 12px;
    color: #18343c;
    font-size: 0.87rem;
}

.public-guide-toc nav {
    display: grid;
    gap: 3px;
}

.public-guide-toc a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.public-guide-toc a:hover {
    color: var(--primary-teal-dark);
    background: var(--mc-teal-soft);
}

.public-guide-content {
    display: grid;
    gap: 18px;
}

.public-guide-section {
    scroll-margin-top: 24px;
    padding: 42px 48px;
    border: 1px solid var(--mc-border);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

.public-guide-section > header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mc-border);
}

.public-guide-index {
    flex: 0 0 auto;
    color: var(--primary-teal-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.public-guide-section h2 {
    margin: 0;
    color: #17343c;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.public-guide-section > header p {
    margin: 8px 0 0;
    color: var(--text-light);
    line-height: 1.55;
}

.public-guide-section .guide-body {
    max-width: 780px;
    margin-top: 27px;
}

.public-guide-section .guide-body h3 {
    margin-top: 34px;
    color: #1c3a42;
    font-size: 1.3rem;
    scroll-margin-top: 24px;
}

.public-guide-section .guide-body p,
.public-guide-section .guide-body li {
    color: var(--text-medium);
    line-height: 1.7;
}

.public-guide-section .guide-image {
    max-height: 680px;
    object-fit: contain;
}

.public-guide-resources {
    margin-top: 26px;
}

.public-guide-resource-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.public-guide-resource-links a {
    padding: 10px 14px;
    border: 1px solid #b9ddd5;
    border-radius: 10px;
    color: var(--primary-teal-dark);
    background: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .seo-product-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 48px 42px 0;
    }

    .seo-product-hero-visual img {
        max-height: 420px;
    }

    .seo-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-step-grid {
        grid-template-columns: 1fr;
    }

    .public-guide-layout {
        grid-template-columns: 1fr;
    }

    .public-guide-toc {
        position: static;
        max-height: none;
    }

    .public-guide-toc nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .seo-public-page .app-container {
        padding-top: 22px;
        padding-bottom: 64px;
    }

    .seo-product-hero,
    .public-guide-hero {
        padding: 38px 24px 0;
        border-radius: 20px;
    }

    .public-guide-hero {
        padding-bottom: 38px;
    }

    .seo-product-hero h1,
    .public-guide-hero h1 {
        font-size: clamp(2.15rem, 12vw, 3.25rem);
    }

    .seo-direct-answer,
    .seo-section,
    .seo-split-section > div,
    .seo-resource-card,
    .public-guide-section {
        padding: 30px 24px;
    }

    .seo-feature-grid,
    .seo-split-section {
        grid-template-columns: 1fr;
    }

    .seo-caveat-card {
        border-top: 1px solid var(--mc-border);
        border-left: 0;
    }

    .seo-resource-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .seo-resource-card .seo-hero-actions {
        margin-top: 6px;
    }

    .public-guide-toc nav {
        grid-template-columns: 1fr;
    }

    .public-guide-section > header {
        gap: 10px;
    }
}
