/* Shared styles for the /vs/ and /lms/ SEO page families.
   Matches the site redesign contract (see pricing/styles.css): flat dark
   surfaces, solid #ff4a36 accent, Geist, no gradients or pills.
   Global tokens (card-bg, card-border, text-*, radius-*) come from
   styles.css :root; only page-scoped additions live here. */

body.seo-page {
    --accent: #ff4a36;
    --accent-hover: #ff5e4a;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -.01em;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.65;
}

.seo-page main {
    display: block;
    padding-top: calc(var(--header-height) + 2.25rem);
}

.seo-page .wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
}

.seo-page .wrap-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- breadcrumb ---------- */
.seo-breadcrumb {
    padding: 1.25rem 0 0;
    font-size: .85rem;
    color: var(--text-dim);
}

.seo-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.seo-breadcrumb a:hover { color: var(--text-primary); }
.seo-breadcrumb span[aria-hidden] { margin: 0 .4rem; }

/* ---------- hero ----------
   .seo-hero sits on the same element as .wrap; keep this selector at
   .seo-page level so it outranks `.seo-page .wrap`'s padding reset. */
.seo-page .seo-hero {
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.seo-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.035em;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.seo-hero .hero-sub {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.seo-hero .hero-updated {
    margin-top: .9rem;
    font-size: .82rem;
    color: var(--text-dim);
}

/* ---------- CTA buttons (match pricing .primary-cta / .secondary-cta) ---------- */
.seo-ctas {
    margin-top: 2.25rem;
    display: flex;
    gap: .75rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.seo-cta-primary,
.seo-cta-secondary {
    min-height: 48px;
    padding: 0 1.6rem;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: -.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.seo-cta-primary {
    border: 1px solid transparent;
    color: #fff;
    background: var(--accent);
}

.seo-cta-primary:hover { background: var(--accent-hover); }

.seo-cta-secondary {
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--text-primary);
    background: transparent;
}

.seo-cta-secondary:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, .28);
}

/* ---------- TL;DR ("the short answer") card ---------- */
.tldr-card {
    margin: 1.5rem 0 2.5rem;
    border: 1px solid rgba(255, 74, 54, .45);
    border-radius: var(--radius-lg);
    background: rgba(255, 74, 54, .05);
    padding: 1.6rem 1.75rem;
    text-align: left;
}

.tldr-card .tldr-kicker {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.tldr-card .tldr-lead {
    margin: 0 0 .9rem;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.tldr-card ul {
    list-style: none;
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
}

.tldr-card li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.5;
}

.tldr-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- section scaffolding ---------- */
.seo-section { padding: 4rem 0; }

.seo-section.alt {
    background: var(--surface-1);
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.seo-section-head {
    text-align: center;
    max-width: 730px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
}

.seo-section-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
    margin: 0 0 .6rem;
}

.seo-section-head p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* ---------- benefit cards (match pricing .benefit-grid) ---------- */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-grid article {
    padding: 1.75rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
}

.benefit-grid h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .5rem;
}

.benefit-grid p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.55;
}

/* ---------- comparison table ---------- */
.compare-table-scroll { overflow-x: auto; }

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 560px;
}

.compare-table th,
.compare-table td {
    padding: .95rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    vertical-align: top;
}

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

.compare-table thead th {
    background: var(--surface-2);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.compare-table thead th.snapgpt-col {
    background: rgba(255, 74, 54, .12);
    color: var(--text-primary);
}

.compare-table .feature-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-primary);
}

.compare-table .feature-desc {
    display: block;
    font-weight: 400;
    color: var(--text-dim);
    font-size: .82rem;
    line-height: 1.45;
    margin-top: .15rem;
}

.compare-table td {
    color: var(--text-secondary);
    font-size: .95rem;
}

.compare-table td.yes {
    color: var(--text-primary);
    font-weight: 600;
}

.compare-table td.yes::before {
    content: '✓ ';
    color: var(--accent);
    font-weight: 700;
}

.compare-table td.no { color: var(--text-dim); }
.compare-table td.hl { color: var(--text-primary); font-weight: 600; }

/* ---------- checklist table (LMS question types) ---------- */
.check-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.check-table th,
.check-table td {
    padding: .85rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    text-align: left;
}

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

.check-table thead th {
    background: var(--surface-2);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.check-table td:last-child {
    text-align: right;
    color: var(--accent);
    font-weight: 700;
}

.check-table .qualifier {
    color: var(--text-dim);
    font-size: .83rem;
    display: block;
    font-weight: 400;
}

/* ---------- prose sections ---------- */
.seo-prose h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.seo-prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 1.9rem 0 .6rem;
}

.seo-prose p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    line-height: 1.7;
}

.seo-prose a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.seo-prose a:hover { color: var(--accent); }
.seo-prose strong { color: var(--text-primary); }

/* ---------- how-to steps ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.steps-grid article {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.steps-grid .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .8rem;
}

.steps-grid h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .45rem;
}

.steps-grid p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.55;
}

/* ---------- choose columns (match pricing plan cards) ---------- */
.choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.choose-grid article {
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.choose-grid article.snapgpt-side {
    border-color: rgba(255, 74, 54, .45);
    background: rgba(255, 74, 54, .05);
}

.choose-grid h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .9rem;
}

.choose-grid ul {
    list-style: none;
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
}

.choose-grid li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--text-secondary);
    font-size: .93rem;
    line-height: 1.5;
}

.choose-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.choose-grid article:not(.snapgpt-side) li::before { color: var(--text-dim); }

/* ---------- pricing mini-cards (match pricing plan cards) ---------- */
.price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.price-cards article {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
}

.price-cards article.plus {
    border-color: rgba(255, 74, 54, .45);
    background: rgba(255, 74, 54, .05);
}

.price-cards .plan-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 .2rem;
}

.price-cards .plan-price {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 0 0 .6rem;
}

.price-cards .plan-price small {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--text-dim);
}

.price-cards p {
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- FAQ ---------- */
.seo-faq { max-width: 760px; margin: 0 auto; }

.seo-faq details {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: .7rem;
    overflow: hidden;
}

.seo-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: .98rem;
    position: relative;
    padding-right: 2.6rem;
}

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

.seo-faq summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1.2rem;
    font-weight: 400;
}

.seo-faq details[open] summary::after { content: '–'; }

.seo-faq details p {
    margin: 0;
    padding: 0 1.25rem 1.1rem;
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.6;
}

.seo-faq details a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.seo-faq details a:hover { color: var(--accent); }

/* ---------- cross-link cards ---------- */
.crosslink-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.crosslink-grid a {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color .2s ease, background .2s ease;
}

.crosslink-grid a:hover {
    border-color: var(--card-border-hover);
    background: var(--surface-2);
}

.crosslink-grid .cl-title {
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: -.02em;
    margin: 0 0 .3rem;
}

.crosslink-grid .cl-sub {
    color: var(--text-secondary);
    font-size: .86rem;
    line-height: 1.5;
    margin: 0;
}

/* ---------- hub page card list ---------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.hub-grid a {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color .2s ease, background .2s ease;
}

.hub-grid a:hover {
    border-color: var(--card-border-hover);
    background: var(--surface-2);
}

.hub-grid h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .4rem;
}

.hub-grid p {
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- final CTA band ---------- */
.seo-cta-band {
    text-align: center;
    padding: 5.5rem 2rem;
}

.seo-cta-band h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
    margin: 0 0 .7rem;
}

.seo-cta-band p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- heading gradient (the one sanctioned gradient: a subtle
   white -> soft-coral fade that ties headings to the accent) ---------- */
.seo-hero h1,
.seo-section-head h2,
.seo-prose h2,
.seo-cta-band h2 {
    display: inline-block;
    background: linear-gradient(90deg, #ffffff 30%, #ffb3a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .crosslink-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .benefit-grid,
    .steps-grid,
    .choose-grid,
    .price-cards,
    .crosslink-grid,
    .hub-grid { grid-template-columns: 1fr; }

    .seo-page .wrap,
    .seo-page .wrap-narrow { padding: 0 1rem; }

    .seo-section { padding: 3rem 0; }
    .seo-page .seo-hero { padding: 2rem 1rem 1.75rem; }
    .seo-hero h1 { font-size: 2rem; }
    .seo-hero .hero-sub { font-size: 1rem; }
    .seo-cta-band { padding: 3.5rem 1rem; }
    .tldr-card { padding: 1.25rem 1.25rem; margin: 1rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .seo-page * { transition: none !important; }
}
