/* === Lead-magnet Guide Page (canonical) ===
 * Wave 11a (NEW-3 Path B). Lifted from packages/site-hub/src/css/guide.css.
 * Designed to render correctly on hub (vanilla CSS theme with --green / --ink /
 * --cream / --space-* tokens) AND on the 5 Tailwind product sites that ship
 * with their own design tokens. The :root fallback block below provides
 * sensible defaults for every var the rules reference, so a Tailwind site
 * that imports this file standalone gets a usable result without having to
 * define all the hub design tokens.
 *
 * Per-site sites that DO define matching tokens (hub) override the fallbacks
 * via cascade — their :root tokens win because their <link> ships first.
 */

:root {
    /* Color fallbacks — only applied if the consuming site doesn't already
     * define these tokens. Hub overrides via its design system; product sites
     * pick up these values verbatim. */
    --guide-green: #047857;
    --guide-green-deep: #065f46;
    --guide-green-glow: rgba(4, 120, 87, 0.08);
    --guide-ink: #0f172a;
    --guide-charcoal: #1f2937;
    --guide-slate: #475569;
    --guide-cream: #fef9ed;
    --guide-warm: #faf6ee;
    --guide-cloud: #e2e8f0;

    --guide-radius-md: 8px;
    --guide-radius-lg: 12px;
    --guide-radius-xl: 16px;
    --guide-radius-2xl: 20px;
    --guide-radius-full: 9999px;

    --guide-space-xs: 8px;
    --guide-space-sm: 12px;
    --guide-space-md: 16px;
    --guide-space-lg: 24px;
    --guide-space-xl: 32px;
    --guide-space-2xl: 40px;
    --guide-space-3xl: 60px;
    --guide-space-4xl: 96px;

    --guide-text-fine: 12px;
    --guide-text-ui: 13px;
    --guide-text-body-sm: 14px;
    --guide-text-base: 16px;
    --guide-text-lead: 18px;
    --guide-text-h3: 22px;
    --guide-text-display: 40px;

    --guide-font-heading: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --guide-font-body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    --guide-ease-short: 0.2s ease;
    --guide-ease-medium: 0.3s ease;

    --guide-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --guide-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* Hero */
.guide-hero {
    background: linear-gradient(160deg, var(--charcoal, var(--guide-charcoal)) 0%, var(--ink, var(--guide-ink)) 100%);
    color: white;
    padding: var(--space-4xl, var(--guide-space-4xl)) 0 var(--space-3xl, var(--guide-space-3xl));
    position: relative;
    overflow: hidden;
}
.guide-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green-glow, var(--guide-green-glow)) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}
.guide-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.guide-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green, var(--guide-green)), var(--green-deep, var(--guide-green-deep)));
    color: white;
    padding: 6px var(--space-md, var(--guide-space-md));
    border-radius: var(--radius-full, var(--guide-radius-full));
    font-size: var(--text-fine, var(--guide-text-fine));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg, var(--guide-space-lg));
}
.guide-hero-text h1 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: var(--text-display, var(--guide-text-display));
    line-height: 1.15;
    margin-bottom: var(--space-md, var(--guide-space-md));
    letter-spacing: -0.3px;
    color: white;
}
.guide-hero-text > p {
    font-size: var(--text-lead, var(--guide-text-lead));
    opacity: 0.75;
    line-height: 1.7;
    margin-bottom: var(--space-lg, var(--guide-space-lg));
    color: white;
}
.guide-hero-meta {
    display: flex;
    gap: var(--space-lg, var(--guide-space-lg));
    margin-bottom: var(--space-md, var(--guide-space-md));
}
.guide-hero-meta span {
    font-size: var(--text-body-sm, var(--guide-text-body-sm));
    font-weight: 500;
    opacity: 0.7;
    padding-left: 20px;
    position: relative;
}
.guide-hero-meta span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--green, var(--guide-green));
    border-radius: 50%;
}
.guide-hero-author {
    font-size: var(--text-body-sm, var(--guide-text-body-sm));
    opacity: 0.5;
}

/* Hero Form */
.guide-hero-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-2xl, var(--guide-radius-2xl));
    padding: var(--space-2xl, var(--guide-space-2xl));
    backdrop-filter: blur(20px);
}
.guide-hero-form h3 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: var(--text-h3, var(--guide-text-h3));
    margin-bottom: var(--space-sm, var(--guide-space-sm));
    color: white;
}
.guide-hero-form > p {
    font-size: var(--text-body-sm, var(--guide-text-body-sm));
    opacity: 0.6;
    margin-bottom: var(--space-lg, var(--guide-space-lg));
    line-height: 1.6;
    color: white;
}
.guide-form-group {
    margin-bottom: var(--space-md, var(--guide-space-md));
}
.guide-form-label {
    display: block;
    font-size: var(--text-ui, var(--guide-text-ui));
    font-weight: 500;
    margin-bottom: var(--space-xs, var(--guide-space-xs));
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.guide-form-input {
    width: 100%;
    padding: var(--space-sm, var(--guide-space-sm)) var(--space-md, var(--guide-space-md));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md, var(--guide-radius-md));
    background: rgba(255,255,255,0.08);
    color: white;
    font-family: var(--font-body, var(--guide-font-body));
    font-size: var(--text-base, var(--guide-text-base));
    transition: all var(--ease-short, var(--guide-ease-short));
    box-sizing: border-box;
}
.guide-form-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.guide-form-input:focus {
    outline: none;
    border-color: var(--form-input-focus-border, var(--guide-green));
    background: rgba(255,255,255,0.12);
    box-shadow: var(--form-input-focus-shadow, 0 0 0 3px rgba(4,120,87,0.25));
}
.guide-submit-btn {
    width: 100%;
    padding: var(--space-md, var(--guide-space-md));
    background: linear-gradient(135deg, var(--green, var(--guide-green)) 0%, var(--green-deep, var(--guide-green-deep)) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md, var(--guide-radius-md));
    font-family: var(--font-body, var(--guide-font-body));
    font-size: var(--text-lead, var(--guide-text-lead));
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ease-short, var(--guide-ease-short));
    margin-top: var(--space-xs, var(--guide-space-xs));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs, var(--guide-space-xs));
    box-shadow: 0 4px 14px rgba(4,120,87,0.25);
}
.guide-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4,120,87,0.35);
}
.guide-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.guide-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.guide-trust svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}
.guide-hero-form .field-error {
    color: #fca5a5;
    font-size: 14px;
    margin-top: 4px;
}

/* Table of Contents */
.guide-toc {
    padding: 60px 0;
    background: white;
}
.guide-toc h2 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: 33px;
    text-align: center;
    margin-bottom: 32px;
    color: var(--ink, var(--guide-ink));
}
.toc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
.toc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-xl, var(--guide-radius-xl));
    border: 1px solid var(--cloud, var(--guide-cloud));
    text-decoration: none;
    color: var(--ink, var(--guide-ink));
    transition: all 0.3s ease;
    background: white;
}
.toc-item:hover {
    border-color: var(--green, var(--guide-green));
    background: var(--green-glow, var(--guide-green-glow));
    transform: translateY(-2px);
}
.toc-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green, var(--guide-green));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lead, var(--guide-text-lead));
    margin-bottom: 12px;
}
.toc-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate, var(--guide-slate));
}

/* Guide Sections */
.guide-section {
    padding: var(--space-4xl, var(--guide-space-4xl)) 0;
    background: white;
}
.guide-section-alt {
    background: var(--warm, var(--guide-warm));
}
.guide-section-label {
    color: var(--green, var(--guide-green));
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.guide-section h2 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: var(--text-display, var(--guide-text-display));
    color: var(--ink, var(--guide-ink));
    margin-bottom: var(--space-xl, var(--guide-space-xl));
    line-height: 1.15;
    letter-spacing: -0.3px;
}
.guide-prose {
    max-width: 780px;
    margin: 0 auto;
    font-size: var(--text-lead, var(--guide-text-lead));
    line-height: 1.8;
    color: var(--slate, var(--guide-slate));
}
.guide-prose h3 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: 25px;
    color: var(--ink, var(--guide-ink));
    margin: 40px 0 12px;
}
.guide-prose h3:first-child {
    margin-top: 0;
}
.guide-prose p {
    margin-bottom: 16px;
}

/* Pro Tip */
.guide-tip {
    background: var(--green-glow, var(--guide-green-glow));
    border-left: 4px solid var(--green, var(--guide-green));
    padding: var(--space-lg, var(--guide-space-lg)) var(--space-lg, var(--guide-space-lg));
    border-radius: 0 var(--radius-lg, var(--guide-radius-lg)) var(--radius-lg, var(--guide-radius-lg)) 0;
    margin: var(--space-lg, var(--guide-space-lg)) 0;
    font-style: italic;
    color: var(--ink, var(--guide-ink));
    line-height: 1.7;
}

/* Best For */
.guide-best-for {
    color: var(--green, var(--guide-green));
    font-style: italic;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Story Cards */
.guide-story {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-xl, var(--guide-radius-xl));
    padding: var(--space-xl, var(--guide-space-xl));
    margin: var(--space-lg, var(--guide-space-lg)) 0 var(--space-xl, var(--guide-space-xl));
    box-shadow: var(--shadow-sm, var(--guide-shadow-sm));
}
.guide-section-alt .guide-story {
    background: white;
}
.guide-story h4 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: 19px;
    color: var(--ink, var(--guide-ink));
    margin-bottom: 12px;
}
.guide-story p {
    font-style: italic;
    color: var(--slate, var(--guide-slate));
    line-height: 1.7;
    margin-bottom: 0;
}

/* Coverage Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}
.coverage-item {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-xl, var(--guide-radius-xl));
    padding: var(--space-lg, var(--guide-space-lg));
    box-shadow: var(--shadow-sm, var(--guide-shadow-sm));
    transition: all var(--ease-medium, var(--guide-ease-medium));
}
.coverage-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, var(--guide-shadow-md));
}
.coverage-item h4 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: 19px;
    color: var(--ink, var(--guide-ink));
    margin-bottom: 8px;
}
.coverage-item p {
    font-size: 15px;
    color: var(--slate, var(--guide-slate));
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tables */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg, var(--guide-radius-lg));
    overflow: hidden;
    box-shadow: var(--shadow-md, var(--guide-shadow-md));
    margin: var(--space-lg, var(--guide-space-lg)) 0;
}
.guide-table th {
    background: linear-gradient(135deg, var(--charcoal, var(--guide-charcoal)), var(--ink, var(--guide-ink)));
    color: white;
    padding: var(--space-md, var(--guide-space-md)) var(--space-lg, var(--guide-space-lg));
    text-align: left;
    font-weight: 600;
    font-size: var(--text-base, var(--guide-text-base));
}
.guide-table td {
    padding: var(--space-sm, var(--guide-space-sm)) var(--space-lg, var(--guide-space-lg));
    border-bottom: 1px solid var(--cloud, var(--guide-cloud));
    font-size: var(--text-ui, var(--guide-text-ui));
    color: var(--slate, var(--guide-slate));
    transition: background var(--ease-short, var(--guide-ease-short));
    background: white;
}
.guide-table tbody tr:hover td {
    background: var(--green-glow, var(--guide-green-glow));
}
.guide-table tr:nth-child(even) td {
    background: var(--warm, var(--guide-warm));
}

/* Related Articles strip */
.guide-related {
    padding: 48px 0;
    background: var(--cream, var(--guide-cream));
}
.guide-related-heading {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--ink, var(--guide-ink));
}
.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.guide-related-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--ink, var(--guide-ink));
    border: 1px solid rgba(0,0,0,0.04);
    display: block;
}
.guide-related-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--green, var(--guide-green));
    text-transform: uppercase;
}
.guide-related-title {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: 17px;
    margin-top: 6px;
    color: var(--ink, var(--guide-ink));
}
.guide-related-more {
    text-align: center;
    margin-top: 24px;
}
.guide-related-more a {
    color: var(--green, var(--guide-green));
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

/* CTA Section */
.guide-cta {
    background: linear-gradient(160deg, var(--charcoal, var(--guide-charcoal)) 0%, var(--ink, var(--guide-ink)) 100%);
    color: white;
    padding: var(--space-4xl, var(--guide-space-4xl)) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.guide-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.guide-cta h2 {
    font-family: var(--font-heading, var(--guide-font-heading));
    font-size: var(--text-display, var(--guide-text-display));
    margin-bottom: var(--space-lg, var(--guide-space-lg));
    letter-spacing: -0.3px;
    position: relative;
    color: white;
}
.guide-cta > .container > p {
    max-width: 640px;
    margin: 0 auto 16px;
    opacity: 0.75;
    line-height: 1.7;
    color: white;
}
.guide-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 32px 0;
}
.guide-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md, var(--guide-space-md)) var(--space-xl, var(--guide-space-xl));
    border-radius: var(--radius-md, var(--guide-radius-md));
    font-family: var(--font-body, var(--guide-font-body));
    font-size: var(--text-lead, var(--guide-text-lead));
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ease-short, var(--guide-ease-short));
    background: linear-gradient(135deg, var(--green, var(--guide-green)) 0%, var(--green-deep, var(--guide-green-deep)) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
    position: relative;
}
.guide-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.35);
}
.guide-cta-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.guide-cta-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}
.guide-cta-author {
    margin-top: 32px;
    font-size: 15px;
    opacity: 0.6;
    line-height: 1.6;
}
.guide-disclaimer {
    font-size: 12px;
    opacity: 0.35;
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-hero {
        padding: 80px 0 60px;
    }
    .guide-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .guide-hero-text h1 {
        font-size: 33px;
    }
    .guide-hero-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    .toc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .toc-item {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 16px 20px;
    }
    .toc-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .guide-section h2 {
        font-size: 29px;
    }
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    .guide-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .guide-cta-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .guide-hero-form {
        padding: 28px;
    }
    .guide-table {
        font-size: 14px;
    }
    .guide-table th,
    .guide-table td {
        padding: 10px 12px;
    }
}
