/* Generated SEO content pages.
 *
 * Loaded after shared.css, landing-layout.css, and landing-responsive.css, so
 * the nav, buttons, and footer already match the landing page. Everything here
 * is article typography plus a JavaScript-free nav and FAQ.
 */

.seo-body {
    background: var(--gradient-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-text-size-adjust: 100%;
}

/* ── Navigation ─────────────────────────────────────────────────── */

.seo-nav {
    padding-bottom: 0;
}

.seo-nav .nav-inner {
    gap: 12px;
}

.seo-nav-cta {
    margin-left: auto;
    white-space: nowrap;
}

.seo-subnav {
    border-top: 1px solid var(--border-solid);
    border-bottom: 1px solid var(--border-solid);
}

.seo-subnav > div {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Fade the trailing edge so an off-screen item reads as scrollable. */
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

.seo-subnav > div::-webkit-scrollbar {
    display: none;
}

.seo-subnav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    touch-action: manipulation;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.seo-subnav a:hover,
.seo-subnav a:focus-visible {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.seo-subnav a[aria-current="page"] {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

/* ── Article shell ──────────────────────────────────────────────── */

.seo-main {
    padding: 28px 0 64px;
}

.seo-article {
    max-width: 74ch;
    margin: 0 auto;
}

.seo-breadcrumbs {
    max-width: 74ch;
    margin: 0 auto 20px;
}

.seo-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seo-breadcrumbs li + li::before {
    content: "/";
    margin-right: 6px;
    opacity: 0.5;
}

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

.seo-breadcrumbs a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.seo-breadcrumbs [aria-current="page"] {
    color: var(--text-primary);
}

/* ── Header ─────────────────────────────────────────────────────── */

.seo-header {
    margin-bottom: 40px;
}

.seo-article p.seo-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    /* The deep accent reads 4.26:1 on this canvas, under AA for text at this
       size. The soft accent clears it at 7.43:1 and matches the landing, which
       also sets its kickers in the lighter pink. */
    color: var(--accent-soft);
    margin: 0 0 10px;
}

.seo-article h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.2vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.seo-article p.seo-lede {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.seo-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.seo-header-note,
.seo-cta-legal {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Body typography ────────────────────────────────────────────── */

.seo-article h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.05rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 44px 0 14px;
    scroll-margin-top: 90px;
}

.seo-article h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 26px 0 8px;
}

.seo-article p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.seo-article ul,
.seo-article ol {
    margin: 0 0 18px;
    padding-left: 1.3em;
}

.seo-article li {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.seo-article a:not(.subtitleai-btn) {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--accent);
}

.seo-article a:not(.subtitleai-btn):hover {
    color: var(--accent);
}

/* ── Callout ────────────────────────────────────────────────────── */

.seo-callout {
    border-left: 3px solid var(--accent);
    background: var(--surface-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 26px 0;
}

.seo-callout p {
    margin: 0;
    color: var(--text-primary);
}

/* ── Table ──────────────────────────────────────────────────────── */

.seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 26px;
    font-size: 0.97rem;
    text-align: left;
}

.seo-table caption {
    caption-side: top;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 10px;
}

.seo-table th,
.seo-table td {
    border-top: 1px solid var(--bg-border);
    padding: 12px 14px 12px 0;
    vertical-align: top;
    line-height: 1.6;
}

.seo-table th {
    color: var(--text-primary);
    font-weight: 600;
    width: 34%;
    padding-right: 20px;
}

.seo-table td {
    color: var(--text-muted);
}

/* ── Steps ──────────────────────────────────────────────────────── */

.seo-article .seo-steps {
    list-style: none;
    counter-reset: seo-step;
    margin: 20px 0 26px;
    padding: 0;
}

.seo-step {
    counter-increment: seo-step;
    position: relative;
    padding-left: 46px;
    margin-bottom: 20px;
}

.seo-step::before {
    content: counter(seo-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft-tint);
    border: 1px solid var(--accent-soft-edge);
    color: var(--accent-soft);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-step h3 {
    margin: 4px 0 6px;
    font-size: 1.02rem;
}

.seo-step p {
    margin: 0;
}

/* ── Card grid ──────────────────────────────────────────────────── */

.seo-article .seo-card-grid {
    list-style: none;
    margin: 20px 0 8px;
    padding: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.seo-card {
    background: var(--surface-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin: 0;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.seo-card:hover {
    border-color: var(--accent-soft-edge);
    box-shadow: var(--shadow-card-hover);
}

.seo-card a {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    min-height: 24px;
    touch-action: manipulation;
}

/* Make the whole card the target without nesting interactive elements. */
.seo-card a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.seo-card {
    position: relative;
}

.seo-card-note {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ── Inline CTA ─────────────────────────────────────────────────── */

.seo-cta {
    background: var(--surface-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 40px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.seo-cta p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}

/* ── FAQ ────────────────────────────────────────────────────────── */

.seo-faq {
    margin-top: 48px;
}

.seo-faq-item {
    border-top: 1px solid var(--bg-border);
}

.seo-faq-item:last-of-type {
    border-bottom: 1px solid var(--bg-border);
}

.seo-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 34px 16px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    position: relative;
    touch-action: manipulation;
}

.seo-faq-item summary::-webkit-details-marker {
    display: none;
}

.seo-faq-item summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--transition-fast);
}

.seo-faq-item[open] summary::after {
    transform: translateY(-25%) rotate(-135deg);
}

.seo-faq-answer {
    padding: 0 0 16px;
}

.seo-faq-answer p {
    margin: 0;
}

/* ── Related ────────────────────────────────────────────────────── */

.seo-related {
    margin-top: 48px;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.seo-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.seo-footer .footer-links {
    flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .seo-main {
        padding: 20px 0 48px;
    }

    .seo-article h2 {
        margin-top: 36px;
    }

    .seo-table,
    .seo-table tbody,
    .seo-table tr,
    .seo-table th,
    .seo-table td {
        display: block;
        width: auto;
    }

    .seo-table tr {
        border-top: 1px solid var(--bg-border);
        padding: 12px 0;
    }

    .seo-table th,
    .seo-table td {
        border-top: 0;
        padding: 0 0 4px;
    }

    .seo-cta {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seo-card,
    .seo-subnav a,
    .seo-faq-item summary::after {
        transition: none;
    }
}
