/* ============================================================
   content-page.css
   Shared styling for all /content/{slug} long-form pages.
   Loaded site-wide after app.css; every selector is scoped to
   .content-page / .content-body / .pros-cons / .compare /
   .walkthrough / .faq / .cta-strip so it doesn't leak.

   Per-page one-offs (custom figures, diagrams, etc.) belong in
   the individual blade via @push('styles'). Everything below is
   the shared skeleton — fix once, ships everywhere.
   ============================================================ */

/* The wrapper is <section class="shell content-page">. .shell
   owns horizontal padding (24px mobile gutter). NEVER write
   `.content-page { padding: Xpx 0 Ypx; }` — the shorthand zeroes
   .shell's padding and content runs edge-to-edge on mobile.
   Use padding-top / padding-bottom only. */
.content-page { padding-top: 64px; padding-bottom: 96px; }
.content-page .page-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.content-page .eyebrow-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px; color: var(--fg-mute);
    letter-spacing: 0.04em; text-transform: uppercase;
}
.content-page .eyebrow-row a {
    color: var(--fg-dim); text-decoration: none;
    transition: color 120ms ease;
}
.content-page .eyebrow-row a:hover { color: var(--accent); }
.content-page .eyebrow-row .sep { color: var(--line-2); }

.content-page h1 {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(42px, 5.6vw, 80px); line-height: 0.98;
    letter-spacing: -0.03em; margin: 18px 0 20px; max-width: 18ch;
}
.content-page h1 em { font-style: normal; color: var(--accent); }

.content-page .sub {
    font-family: var(--sans); font-size: 19px; color: var(--fg-dim); line-height: 1.55;
    margin: 0 0 28px;
}

.content-page .cta-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 22px; border-radius: 8px;
    background: var(--accent); color: var(--bg-0, #0c0c0c);
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; font-weight: 600;
    text-decoration: none; transition: filter 140ms ease;
}
.content-page .cta-primary:hover { filter: brightness(1.1); }
.content-page .cta-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 22px; border-radius: 8px;
    background: transparent; color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; font-weight: 600;
    text-decoration: none; transition: background 140ms ease;
}
.content-page .cta-secondary:hover { background: rgba(var(--accent-rgb), 0.08); }

.content-page a.aff-inline {
    color: var(--fg); font-weight: 500; text-decoration: none;
    border-bottom: 1px dotted rgba(var(--accent-rgb), 0.6);
    padding-bottom: 1px;
    transition: color 120ms ease, border-color 120ms ease;
}
.content-page a.aff-inline::after {
    content: "\2197"; font-size: 0.72em; margin-left: 2px;
    color: var(--fg-mute); vertical-align: super;
}
.content-page a.aff-inline:hover { color: var(--accent); border-bottom-color: var(--accent); }
.content-page a.aff-inline:hover::after { color: var(--accent); }

.content-page figure { margin: 48px 0; }
.content-page figure img {
    display: block; width: 100%; height: auto; border-radius: 10px;
    border: 1px solid var(--line-2);
}
.content-page figcaption {
    font-family: var(--mono); font-size: 11px; color: var(--fg-mute);
    letter-spacing: 0.04em; margin-top: 10px; text-align: center;
}

.content-body { margin: 48px 0; }
.content-body h2 {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1;
    letter-spacing: -0.02em; margin: 48px 0 18px;
}
.content-body h3 {
    font-family: var(--display); font-weight: 500;
    font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
    margin: 32px 0 12px;
}
.content-body p {
    font-family: var(--sans); font-size: 17px; color: var(--fg); line-height: 1.65;
    margin: 0 0 16px;
}
.content-body p.source {
    font-family: var(--mono); font-size: 12px; color: var(--fg-mute);
    line-height: 1.6; margin-top: 24px;
}
.content-body ul, .content-body ol {
    font-family: var(--sans); font-size: 17px; color: var(--fg); line-height: 1.65;
    margin: 0 0 20px; padding-left: 24px;
}
.content-body ul li, .content-body ol li { margin-bottom: 10px; }
.content-body ul li b, .content-body ol li b { color: var(--fg); font-weight: 600; }

.pros-cons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    margin: 48px 0;
}
.pros-cons > div {
    padding: 28px 28px 20px; border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--bg-1);
}
.pros-cons h3 {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fg-mute);
    margin: 0 0 18px; font-weight: 500;
}
.pros-cons .pros h3 { color: var(--accent); }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 16px; }
.pros-cons ul li { margin-bottom: 14px; }

.compare { margin: 56px 0; }
.compare h2 { margin-bottom: 14px; }
.compare .lede {
    font-family: var(--sans); font-size: 16px; color: var(--fg-dim);
    margin: 0 0 24px; line-height: 1.55;
}
.compare table {
    width: 100%; border-collapse: collapse;
    font-family: var(--sans); font-size: 15px;
    border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden;
}
.compare th, .compare td {
    padding: 16px 18px; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare th {
    background: var(--bg-1); font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-mute);
    font-weight: 500;
}
.compare td { color: var(--fg); line-height: 1.5; }
.compare td:first-child {
    font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
    letter-spacing: 0.02em; text-transform: uppercase;
    width: 20%;
}
.compare .best-for {
    margin-top: 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.compare .best-for > div {
    padding: 20px; border: 1px dashed var(--line-2); border-radius: 8px;
}
.compare .best-for b {
    display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 500;
}
.compare .best-for p { font-size: 15px; margin: 0; color: var(--fg-dim); line-height: 1.55; }

.walkthrough { margin: 56px 0; }
.walkthrough ol {
    list-style: none; counter-reset: step; padding: 0; margin: 0;
}
.walkthrough ol li {
    counter-increment: step;
    position: relative; padding: 20px 20px 20px 72px;
    border-bottom: 1px solid var(--line);
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
}
.walkthrough ol li:last-child { border-bottom: 0; }
.walkthrough ol li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 20px; top: 20px;
    font-family: var(--mono); font-size: 13px;
    color: var(--accent); letter-spacing: 0.04em;
}
.walkthrough ol li b { color: var(--fg); font-weight: 600; }

.faq { margin: 56px 0; }
.faq h3 {
    font-family: var(--sans); font-weight: 600; font-size: 17px;
    color: var(--fg); margin: 24px 0 8px;
}
.faq p {
    font-family: var(--sans); font-size: 16px; color: var(--fg-dim); line-height: 1.6;
    margin: 0 0 16px;
}

.cta-strip {
    margin: 72px 0 0;
    padding: 40px 40px;
    border-radius: 12px;
    background: var(--bg-1);
    border: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-strip p {
    font-family: var(--display); font-weight: 500; font-size: 22px;
    letter-spacing: -0.015em; margin: 0; color: var(--fg);
}

@media (max-width: 720px) {
    .pros-cons, .compare .best-for { grid-template-columns: 1fr; }
    .compare td:first-child { width: auto; }
}

/* ─── Rich UX components (extracted from playbook for content-page reuse) ───
   These break up walls of text per the visual-rhythm rule in
   `prompts/email_generation_niche.md` § Companion page → Visual rhythm.
   Available components: .rule-strip · .fact-strip · .three-up · .callout / .callout-pair
   .criterion · .pullquote · .do-today */
    /* RULE-STRIP — 3-col preview rules (intro accelerator) */
    .rule-strip {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
        margin: 24px 0 24px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
    .rule-strip .rule {
        padding: 20px 24px;
        border-right: 1px solid var(--line);
        font-size: 14.5px; color: var(--fg-dim); line-height: 1.55;
    }
    .rule-strip .rule:last-child { border-right: 0; }
    .rule-strip .rule-num {
        font-family: var(--mono); font-size: 10px;
        color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
        display: block; margin-bottom: 8px;
    }
    .rule-strip .rule b { color: var(--fg); font-weight: 600; }
    @media (max-width: 780px) {
        .rule-strip { grid-template-columns: 1fr; }
        .rule-strip .rule { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
        .rule-strip .rule:last-child { border-bottom: 0; padding-bottom: 0; }
    }
    /* FACT-STRIP — horizontal stat row, monospace numbers */
    .fact-strip {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
        margin: 28px 0 32px;
        border: 1px solid var(--line-2); border-radius: 8px;
        overflow: hidden;
        background:
            linear-gradient(180deg, rgba(var(--accent-rgb), 0.03), transparent 70%),
            var(--bg-1);
    }
    .fact-strip .fact { padding: 22px 24px; border-right: 1px solid var(--line); }
    .fact-strip .fact:last-child { border-right: 0; }
    .fact-strip .fact-label {
        font-family: var(--mono); font-size: 10px;
        color: var(--fg-mute); letter-spacing: 0.1em; text-transform: uppercase;
        margin-bottom: 10px;
    }
    .fact-strip .fact-value {
        font-family: var(--display); font-weight: 500; font-size: 30px;
        color: var(--accent); letter-spacing: -0.02em; line-height: 1;
        margin-bottom: 10px;
    }
    .fact-strip .fact-detail {
        font-size: 13px; color: var(--fg-dim); line-height: 1.5;
    }
    @media (max-width: 780px) {
        .fact-strip { grid-template-columns: 1fr; }
        .fact-strip .fact { border-right: 0; border-bottom: 1px solid var(--line); }
        .fact-strip .fact:last-child { border-bottom: 0; }
    }
    /* THREE-UP — 3-column card grid (e.g. legs of a system) */
    .three-up {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
        margin: 28px 0 32px;
    }
    .three-up .leg {
        padding: 22px 22px 24px;
        border: 1px solid var(--line-2); border-radius: 8px;
        background: var(--bg-1);
        position: relative;
    }
    .three-up .leg-num {
        font-family: var(--mono); font-size: 10px;
        color: var(--accent); letter-spacing: 0.1em;
        margin-bottom: 12px;
    }
    .three-up .leg-name {
        font-family: var(--display); font-weight: 500; font-size: 17px;
        color: var(--fg); letter-spacing: -0.01em; line-height: 1.25;
        margin-bottom: 10px;
    }
    .three-up .leg-body {
        font-size: 14px; color: var(--fg-dim); line-height: 1.6;
    }
    @media (max-width: 780px) {
        .three-up { grid-template-columns: 1fr; gap: 10px; }
    }
    /* CALLOUT — single accent-themed block (then = blue, now = green) */
    .callout {
        padding: 22px 26px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--bg-1);
    }
    .callout .c-kicker {
        font-family: var(--mono); font-size: 10px;
        color: var(--fg-mute); letter-spacing: 0.12em; text-transform: uppercase;
        margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
    }
    .callout .c-kicker::before {
        content: ""; width: 6px; height: 6px; border-radius: 50%;
        background: var(--fg-mute);
    }
    .callout.then .c-kicker { color: var(--accent-2); }
    .callout.then .c-kicker::before {
        background: var(--accent-2);
        box-shadow: 0 0 8px rgba(120, 170, 255, 0.55);
    }
    .callout.now .c-kicker { color: var(--accent); }
    .callout.now .c-kicker::before {
        background: var(--accent);
        box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
    }
    .callout p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--fg-dim); }
    .callout p:last-child { margin: 0; }
    .callout p b { color: var(--fg); font-weight: 600; }

    /* CALLOUT-PAIR — THEN | NOW side-by-side */
    .callout-pair {
        display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
        margin: 32px 0;
    }
    .callout-pair .callout { margin: 0; }
    @media (max-width: 780px) {
        .callout-pair { grid-template-columns: 1fr; }
    }
    /* CRITERION — "done when" callout inside a step */
    .criterion {
        grid-column: 2;
        margin-top: 14px;
        padding: 14px 18px;
        border-left: 2px solid var(--accent);
        background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.06), transparent 75%);
        font-size: 14px; color: var(--fg); line-height: 1.6;
        border-radius: 0 6px 6px 0;
    }
    .criterion .cr-label {
        display: block;
        font-family: var(--mono); font-size: 10px; font-weight: 500;
        color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
        margin-bottom: 8px;
    }
    .criterion .cr-label::before { content: "\25B8"; margin-right: 8px; }
    .criterion b { color: var(--fg); font-weight: 600; }
    .criterion em { font-style: italic; color: var(--fg); }
    .criterion a { color: var(--accent); }
    /* PULLQUOTE — for "numbers that matter" */
    .pullquote {
        margin: 28px 0;
        padding: 22px 0 22px 28px;
        border-left: 2px solid var(--accent);
        font-family: var(--display); font-weight: 400;
        font-size: clamp(19px, 2.1vw, 24px);
        line-height: 1.4; letter-spacing: -0.018em;
        color: var(--fg);
        background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.04), transparent 70%);
    }
    .pullquote b { color: var(--accent); font-weight: 500; }
    .pullquote cite {
        display: block; margin-top: 12px; font-style: normal;
        font-family: var(--mono); font-size: 10.5px; color: var(--fg-mute);
        letter-spacing: 0.05em;
    }
    /* DO-TODAY callout */
    .do-today {
        margin: 44px 0 8px;
        padding: 28px 32px;
        border: 1px solid var(--accent);
        background:
            radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb), 0.12), transparent 60%),
            rgba(var(--accent-rgb), 0.04);
        border-radius: 10px;
    }
    .do-today .dt-label {
        font-family: var(--mono); font-size: 10px;
        color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
        margin-bottom: 10px;
        display: flex; align-items: center; gap: 8px;
    }
    .do-today .dt-label::before { content: "\25B8"; color: var(--accent); }
    .do-today .dt-text {
        font-family: var(--display); font-size: 18px; font-weight: 500;
        color: var(--fg); letter-spacing: -0.012em; line-height: 1.4;
        margin: 0;
    }
    /* Multi-paragraph do-today: keep dense actions readable by spacing them out */
    .do-today .dt-text + .dt-text { margin-top: 14px; }
    .do-today .dt-text em { font-style: normal; color: var(--accent); }
    .do-today .dt-text a.tool-ref { color: var(--accent); border-bottom-color: rgba(var(--accent-rgb), 0.6); }
    .do-today .dt-text a.tool-ref::after { color: var(--accent); }
    .do-today .dt-text a.tool-ref:hover { color: var(--fg); border-bottom-color: var(--fg); }
    .do-today .dt-text a.tool-ref:hover::after { color: var(--fg); }

