/* Shared styles for standalone marketing pages (/about, /affiliate, /blog/*).
   Colors come from the :root palette in styles.css. The page-only aliases
   below intentionally keep the landing Home untouched while content pages
   use its solid-blue/white component treatment. */

.site-feature-canvas {
    --lf-page-accent: var(--lf-accent-solid);
    --lf-page-accent-text: var(--brand-blue-tint);
    --lf-page-border: var(--lf-border-strong);
    --lf-page-border-strong: rgba(var(--brand-blue-rgb), var(--a-62));
    --lf-page-focus: var(--brand-blue-tint);
    --lf-page-shadow: rgba(var(--brand-blue-rgb), var(--a-14));
    --lf-page-accent-surface: rgba(var(--brand-blue-rgb), var(--a-12));
    --lf-page-text-on-accent: var(--lf-on-accent);
    --lf-page-card: var(--surface);
    --lf-page-panel: var(--surface-low);
    --lf-page-grid: rgba(var(--brand-blue-rgb), var(--a-04));
    --lf-affiliate-apply-gradient: linear-gradient(108deg, #123d9d 0%, #1d5bc9 46%, #0d183c 100%);
    --lf-affiliate-apply-shadow: 0 12px 28px rgba(8, 49, 139, var(--a-42));
    --lf-affiliate-partner-bg: var(--lf-button-bg);
    --lf-affiliate-partner-fg: var(--lf-button-foreground);
    --lf-affiliate-partner-border: var(--lf-button-border);
}

/* Keep the shared Home-style grid visible across public content pages. */
.page-shell--affiliate-page .site-feature-canvas,
.page-shell--about-page .site-feature-canvas,
.page-shell--blog-page .site-feature-canvas,
.page-shell--resource-page .site-feature-canvas {
    --lf-page-grid: rgba(var(--brand-blue-rgb), var(--a-08));
}

.page-shell--affiliate-page,
.page-shell--about-page,
.page-shell--blog-page,
.page-shell--contact-page,
/* Documentation, Integrations and Changelog. They reuse the About card and
   hero styles, which are global; only these atmosphere tokens are per-page. */
.page-shell--resource-page {
    --lf-page-atmosphere-cool: var(--brand-blue-rgb);
    --lf-page-atmosphere-indigo: var(--brand-violet-rgb);
}

.page-shell--affiliate-page {
    --lf-affiliate-atmosphere-cool: var(--lf-page-atmosphere-cool);
    --lf-affiliate-atmosphere-indigo: var(--lf-page-atmosphere-indigo);
}

.site-feature-canvas::before {
    background-image:
        linear-gradient(var(--lf-page-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--lf-page-grid) 1px, transparent 1px);
}

.page-shell--affiliate-page .site-feature-canvas::before,
.page-shell--about-page .site-feature-canvas::before,
.page-shell--blog-page .site-feature-canvas::before,
.page-shell--contact-page .site-feature-canvas::before,
.page-shell--resource-page .site-feature-canvas::before {
    background-image:
        linear-gradient(var(--lf-page-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--lf-page-grid) 1px, transparent 1px),
        radial-gradient(ellipse 62% 88% at 100% 22%, rgba(var(--lf-page-atmosphere-cool), var(--a-18)), transparent 72%),
        radial-gradient(ellipse 48% 70% at 78% 38%, rgba(var(--lf-page-atmosphere-indigo), var(--a-12)), transparent 74%);
    background-position: 0 0, 0 0, right top, right 7vw top 88px;
    background-repeat: repeat, repeat, no-repeat, no-repeat;
    background-size:
        var(--grid-size) var(--grid-size),
        var(--grid-size) var(--grid-size),
        min(72vw, 1100px) clamp(680px, 56vw, 920px),
        min(60vw, 900px) clamp(620px, 50vw, 820px);
}

.site-feature-canvas .text-gradient {
    background: none;
    color: var(--lf-page-accent-text);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
}

.site-feature-canvas .cta-gradient {
    color: var(--lf-page-text-on-accent);
    border-color: var(--lf-page-accent);
    background: var(--lf-page-accent);
    box-shadow: 0 10px 24px var(--lf-page-shadow);
    animation: none;
}

.site-feature-canvas .cta-gradient:hover,
.site-feature-canvas .cta-gradient:focus-visible {
    color: var(--lf-page-text-on-accent);
    border-color: var(--lf-page-border-strong);
    background: var(--lf-page-accent);
    box-shadow: 0 14px 30px var(--lf-page-shadow);
    filter: brightness(1.08);
}

.site-feature-canvas .affiliate-apply-cta,
.site-feature-canvas .affiliate-partner-cta {
    border-width: 1px;
    border-style: solid;
    transition: color var(--dur-base) ease, background var(--dur-base) ease, border-color var(--dur-base) ease,
        box-shadow var(--dur-base) ease, transform var(--dur-base) ease;
}

.site-feature-canvas .affiliate-apply-cta {
    color: var(--text-primary);
    border-color: transparent;
    background: var(--lf-affiliate-apply-gradient);
    box-shadow: var(--lf-affiliate-apply-shadow), inset 0 1px rgba(255, 255, 255, var(--a-24));
    animation: none;
    font-weight: var(--weight-black);
}

.site-feature-canvas .affiliate-apply-cta:is(:hover, :focus-visible) {
    color: var(--text-primary);
    border-color: transparent;
    background: var(--lf-affiliate-apply-gradient);
    box-shadow: 0 18px 38px rgba(8, 58, 168, var(--a-55)), inset 0 1px rgba(255, 255, 255, var(--a-30));
    transform: translateY(-2px);
    filter: none;
}

.site-feature-canvas .affiliate-partner-cta {
    color: var(--lf-affiliate-partner-fg);
    border-color: var(--lf-affiliate-partner-border);
    background: var(--lf-affiliate-partner-bg);
    box-shadow: var(--shadow-2);
    animation: none;
    font-weight: var(--weight-bold);
}

.site-feature-canvas .affiliate-partner-cta:is(:hover, :focus-visible) {
    color: var(--lf-affiliate-partner-fg);
    border-color: var(--lf-page-border-strong);
    background: var(--lf-affiliate-partner-bg);
    box-shadow: var(--shadow-3), 0 0 16px var(--lf-page-shadow);
    transform: translateY(-2px);
}

.site-feature-canvas .glass-card {
    background: var(--lf-page-card);
    border-color: var(--border-subtle);
}

.site-feature-canvas .glass-card:hover,
.site-feature-canvas .glass-card:focus-visible {
    border-color: var(--lf-page-border-strong);
    box-shadow: 0 18px 40px -28px var(--lf-page-shadow);
}

.site-feature-canvas .glass-panel {
    background: var(--lf-page-panel);
    border-color: var(--border-subtle);
}

.site-feature-canvas ::selection {
    color: var(--lf-foreground);
    background: rgba(var(--brand-blue-rgb), var(--a-30));
}

/* Content pages keep the mobile menu, but the desktop app-bar links are
   intentionally omitted so the page chrome stays quiet and editorial. */
.page-shell--compact-header #main-header .site-header__links {
    display: none !important;
}

.page-shell .footer-start-free {
    animation: none;
}

.site-feature-canvas .page-hero .footer-start-free,
.site-feature-canvas .page-cta .footer-start-free {
    min-height: 44px;
    color: var(--lf-page-text-on-accent);
    border: 1px solid var(--lf-page-accent);
    background: var(--lf-page-accent);
    box-shadow: 0 10px 24px var(--lf-page-shadow);
    transition: color var(--dur-base) ease, background var(--dur-base) ease, border-color var(--dur-base) ease,
        box-shadow var(--dur-base) ease, transform var(--dur-base) ease;
}

.site-feature-canvas .page-hero .footer-start-free:is(:hover, :focus-visible),
.site-feature-canvas .page-cta .footer-start-free:is(:hover, :focus-visible) {
    color: var(--lf-page-text-on-accent);
    border-color: var(--lf-page-border-strong);
    background: var(--lf-page-accent);
    box-shadow: 0 14px 30px var(--lf-page-shadow);
    filter: brightness(1.08);
}

.page-hero {
    position: relative;
    padding: 148px var(--lf-page-gutter) var(--space-10);
    max-width: var(--lf-content-max);
    margin: 0 auto;
}

.page-hero::before {
    display: none;
    content: '';
    pointer-events: none;
}

.page-hero > * {
    position: relative;
    z-index: var(--z-raised);
}

@media (min-width: 768px) {
    .page-hero {
        padding: 172px var(--lf-page-gutter-wide) var(--space-14);
    }
}

.page-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--lf-type-eyebrow);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.page-hero__breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
}

.page-hero__breadcrumb a:hover {
    color: var(--lf-page-accent-text);
}

.page-hero__breadcrumb .material-symbols-outlined {
    font-size: var(--lf-type-eyebrow);
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid var(--lf-page-border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-3);
    font-size: var(--lf-type-eyebrow);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--lf-page-accent-text);
    margin-bottom: var(--space-5);
}

.page-hero h1 {
    font-size: var(--lf-hero-title-size-mobile);
    line-height: var(--lf-hero-title-leading);
    letter-spacing: var(--tracking-tight);
    font-weight: var(--weight-bold);
    max-width: 980px;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: var(--lf-hero-title-size);
    }
}

.page-hero__lead {
    margin-top: var(--space-5);
    max-width: 720px;
    font-size: var(--lf-type-body-lg);
    line-height: var(--leading-relaxed);
    color: var(--lf-muted);
}

.blog-category-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(584px, calc(100% - (var(--lf-page-gutter) * 2)));
    min-height: 78px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--lf-page-panel);
    box-shadow: var(--shadow-3);
}

.blog-category-bar__link {
    display: flex;
    min-width: 0;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 0 var(--space-5);
    color: var(--lf-muted);
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: var(--lf-type-body-lg);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    text-decoration: none;
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease,
        box-shadow var(--duration-fast) ease;
}

.blog-category-bar__link + .blog-category-bar__link {
    border-left: 1px solid var(--border-subtle);
}

.blog-category-bar__icon {
    font-size: 28px;
    line-height: var(--leading-flat);
}

.blog-category-bar__link:hover,
.blog-category-bar__link:focus-visible {
    color: var(--text-primary);
    background: var(--lf-page-accent-surface);
    box-shadow: inset 0 0 0 1px var(--lf-page-border);
}

.blog-category-bar__link.is-active {
    color: var(--text-primary);
    background: var(--lf-page-accent);
    box-shadow: 0 0 24px var(--lf-page-shadow);
}

.blog-category-bar__link.is-active + .blog-category-bar__link {
    border-left-color: var(--lf-page-border-strong);
}

.blog-category-bar__link:focus-visible {
    outline: 3px solid var(--lf-page-focus);
    outline-offset: -4px;
}

.blog-category-bar__link.is-active:hover {
    background: var(--lf-page-accent);
    filter: brightness(1.08);
}

.blog-category-bar__link.is-active .blog-category-bar__icon,
.blog-category-bar__link:hover .blog-category-bar__icon,
.blog-category-bar__link:focus-visible .blog-category-bar__icon {
    color: currentColor;
}

.blog-category-bar__link span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Keep the control centered; unlike the page content it owns its width. */
.blog-category-bar__link > span {
    pointer-events: none;
}

.blog-page-cta {
    width: 100%;
    max-width: var(--lf-content-max);
    margin: 0 auto;
    padding: 0 var(--lf-page-gutter);
}

.blog-page-cta .page-cta {
    width: 100%;
}

.contact-page__section {
    padding-top: 0;
}

.contact-page__section .support-request {
    max-width: 1080px;
    margin: 0 auto;
}

html.js .page-shell .fade-up,
html.js .page-shell .reveal-up,
html.js .page-shell .reveal-up [data-reveal-item] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out);
}

html.js .page-shell .fade-up.visible,
html.js .page-shell .reveal-up.visible,
html.js .page-shell .reveal-up.visible [data-reveal-item] {
    opacity: 1;
    transform: translateY(0);
}

html.js .page-shell .reveal-up.visible [data-reveal-item] {
    transition-delay: calc(var(--reveal-order, 0) * 60ms);
}

html.js .page-shell--affiliate-page .reveal-up,
html.js .page-shell--affiliate-page .reveal-up [data-reveal-item] {
    transform: translateY(12px);
    transition: opacity var(--dur-reveal) var(--ease-out),
        transform var(--dur-reveal) var(--ease-out);
}

html.js .page-shell--affiliate-page .reveal-up.visible,
html.js .page-shell--affiliate-page .reveal-up.visible [data-reveal-item] {
    opacity: 1;
    transform: translateY(0);
}

html.js .page-shell--affiliate-page .reveal-up.visible [data-reveal-item] {
    transition-delay: calc(var(--reveal-order, 0) * 55ms);
}

.page-shell--affiliate-page [data-reveal-group] > :nth-child(4) {
    --reveal-order: 3;
}

.page-shell--affiliate-page [data-reveal-group] > :nth-child(5) {
    --reveal-order: 4;
}

.page-shell--affiliate-page [data-reveal-group] > :nth-child(6) {
    --reveal-order: 5;
}

[data-reveal-group] > :nth-child(1) {
    --reveal-order: 0;
}

[data-reveal-group] > :nth-child(2) {
    --reveal-order: 1;
}

[data-reveal-group] > :nth-child(3) {
    --reveal-order: 2;
}

[data-reveal-group] > :nth-child(n + 4) {
    --reveal-order: 3;
}

.page-hero__actions {
    margin-top: var(--space-8);
}

.page-hero__meta {
    margin-top: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--lf-type-eyebrow);
    color: var(--lf-muted);
}

.page-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.page-hero__meta .material-symbols-outlined {
    font-size: var(--space-4);
    color: var(--lf-page-accent-text);
}

.page-hero h1,
.page-article h2,
.page-section__title,
.page-cta h2 {
    color: var(--lf-foreground);
}

/* --- Long-form article body --- */

.page-article {
    max-width: var(--lf-reading-max);
    margin: 0 auto;
    padding: var(--space-2) var(--lf-page-gutter) 0;
}

/* The shared appbar is fixed so it remains available while reading. Keep the
   article header below it; hero pages already own their larger top spacing. */
.page-shell--blog-page .page-article {
    padding-top: calc(var(--mobile-header-height) + var(--space-8));
}

@media (min-width: 768px) {
    .page-article {
        padding: var(--space-2) var(--lf-page-gutter-wide) 0;
    }

    .page-shell--blog-page .page-article {
        padding-top: calc(108px + var(--space-8));
    }
}

.page-article h2 {
    font-size: var(--lf-type-title);
    line-height: var(--leading-snug);
    font-weight: var(--weight-semibold);
    margin: var(--lf-section-gap) 0 var(--space-4);
}

.page-article h3 {
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    font-weight: var(--weight-semibold);
    margin: var(--space-8) 0 var(--space-3);
    color: var(--lf-foreground);
}

.page-article p {
    font-size: var(--lf-type-body);
    line-height: var(--leading-relaxed);
    color: var(--lf-muted);
    margin: 0 0 var(--space-4);
}

.page-article strong {
    color: var(--lf-foreground);
    font-weight: var(--weight-semibold);
}

.page-article a {
    color: var(--lf-page-accent-text);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(130, 167, 255, var(--a-42));
    transition: text-decoration-color 0.15s ease;
}

.page-article a:hover {
    text-decoration-color: currentColor;
}

.page-article ul {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
}

.page-article ul>li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: var(--lf-type-body);
    line-height: var(--lf-leading-body);
    color: var(--lf-muted);
}

.page-article ul>li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: var(--lf-page-accent);
}

.page-article ol {
    list-style: decimal;
    margin: 0 0 var(--space-5);
    padding-left: var(--space-6);
}

.page-article ol>li {
    margin-bottom: var(--space-3);
    font-size: var(--lf-type-body);
    line-height: var(--lf-leading-body);
    color: var(--lf-muted);
}

/* --- Tables --- */

.table-scroll {
    overflow-x: auto;
    margin: var(--space-6) 0 var(--space-2);
    border: var(--lf-border-line);
    border-radius: var(--lf-card-radius);
    background: var(--lf-card-bg);
}

.page-table {
    width: 100%;
    min-width: var(--lf-table-min-width);
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: var(--leading-relaxed);
}

.page-table caption {
    caption-side: bottom;
    text-align: left;
    padding: var(--space-3) var(--space-5) var(--space-4);
    font-size: var(--lf-type-caption);
    color: var(--lf-muted);
}

.page-table th,
.page-table td {
    text-align: left;
    vertical-align: top;
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--lf-border);
    color: var(--lf-muted);
}

.page-table thead th {
    color: var(--lf-foreground);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    background: var(--lf-table-header-bg);
}

.page-table tbody th[scope="row"] {
    color: var(--lf-foreground);
    font-weight: var(--weight-medium);
    white-space: nowrap;
}

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

.page-table .is-likeflow {
    color: var(--lf-page-accent-text);
    font-weight: var(--weight-semibold);
}

/* --- Footnote / sources --- */

.page-footnote {
    margin: var(--space-8) 0 0;
    padding: var(--space-4) var(--space-5);
    border-left: 2px solid var(--lf-page-accent);
    background: var(--lf-page-panel);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: var(--text-sm);
    line-height: var(--lf-leading-body);
    color: var(--lf-muted);
}

.page-footnote a {
    color: var(--lf-page-accent-text);
}

/* --- FAQ --- */

.page-faq h3 {
    color: var(--lf-foreground);
    margin-top: var(--space-7);
}

/* --- Inline CTA panel --- */

.page-cta {
    margin: var(--lf-section-gap) 0 var(--space-2);
    padding: var(--space-10) var(--space-6);
    border-radius: var(--lf-panel-radius);
    text-align: center;
    background: var(--lf-page-panel);
    border: 1px solid var(--lf-page-border);
    box-shadow: 0 20px 48px -32px var(--lf-page-shadow);
}

.page-cta h2 {
    margin: 0 0 var(--space-2);
    font-size: var(--lf-type-title);
}

.page-cta p {
    margin: 0 auto var(--space-6);
    max-width: 560px;
}

.page-cta__microcopy {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--lf-type-caption);
    color: var(--lf-muted);
}

/* --- Card grids (blog index, affiliate steps) --- */

.page-grid {
    max-width: var(--lf-content-max);
    margin: 0 auto;
    padding: var(--space-4) var(--lf-page-gutter) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .page-grid {
        padding: var(--space-4) var(--lf-page-gutter-wide) 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .blog-page-cta {
        padding-left: var(--lf-page-gutter-wide);
        padding-right: var(--lf-page-gutter-wide);
    }
}

@media (max-width: 639px) {
    .blog-category-bar {
        min-height: 66px;
    }

    .blog-category-bar__link {
        min-height: 64px;
        gap: var(--space-2);
        padding: 0 var(--space-3);
        font-size: var(--lf-type-body);
    }

    .blog-category-bar__icon {
        font-size: 24px;
    }
}

.page-grid--wide {
    max-width: var(--lf-content-max);
}

.post-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--lf-card-radius);
    overflow: hidden;
    text-decoration: none;
    min-height: 100%;
}

.post-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card__media img {
    width: 100%;
    height: calc(100% + var(--space-2));
    margin-top: calc(-1 * var(--space-2));
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.04) translateY(calc(var(--space-1) / 2));
}

.post-card__body {
    padding: var(--space-5) var(--space-6) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex-grow: 1;
}

.post-card__category {
    font-size: var(--lf-type-eyebrow);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--lf-page-accent-text);
}

.post-card__title {
    font-size: var(--lf-type-card-title);
    line-height: var(--leading-normal);
    font-weight: var(--weight-semibold);
    color: var(--lf-foreground);
}

.post-card__excerpt {
    font-size: var(--lf-type-card-excerpt);
    line-height: var(--lf-leading-copy);
    color: var(--lf-muted);
    flex-grow: 1;
}

.post-card__date {
    font-size: var(--lf-type-caption);
    color: var(--lf-muted);
    opacity: 0.8;
}

/* --- Section wrapper for full-width blocks on standalone pages --- */

.page-section {
    max-width: var(--lf-content-max);
    margin: 0 auto;
    padding: var(--space-10) var(--lf-page-gutter) 0;
}

@media (min-width: 768px) {
    .page-section {
        padding: var(--lf-section-gap) var(--lf-page-gutter-wide) 0;
    }
}

.page-section__title {
    font-size: var(--lf-type-title);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2);
    text-wrap: balance;
}

.page-section__lead {
    color: var(--lf-muted);
    font-size: var(--lf-type-body);
    line-height: var(--lf-leading-body);
    /* 720px at this size measured 96 characters a line; the readable band is
       65-75. Note ch is the width of "0" (9.5px here, 0.63em) while the average
       character measures 7.4px, so N ch renders about 1.28N characters. 58ch
       lands at ~74 characters — measured, not assumed. */
    max-width: min(58ch, 100%);
    margin-bottom: var(--space-6);
}

.page-hero a:focus-visible,
.page-article a:focus-visible,
.page-grid a:focus-visible,
.page-cta a:focus-visible {
    outline: var(--lf-focus-width) solid var(--lf-page-focus);
    outline-offset: var(--lf-focus-offset);
}

.post-card,
.glass-panel,
.page-cta {
    border: 1px solid var(--border-subtle);
}

.post-card:hover,
.post-card:focus-visible {
    border-color: var(--lf-page-border-strong);
    box-shadow: 0 18px 40px -28px var(--lf-page-shadow);
}

@media (prefers-reduced-motion: reduce) {
    .post-card__media img,
    .fade-up,
    .reveal-up {
        transition: none;
        animation: none;
    }

    .fade-up,
    .reveal-up {
        opacity: 1;
        transform: none;
    }

    html.js .page-shell .fade-up,
    html.js .page-shell .reveal-up,
    html.js .page-shell .reveal-up [data-reveal-item] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- About / affiliate content blocks --- */

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: var(--space-8);
    align-items: stretch;
}

.about-story__copy .page-section__lead:last-child {
    margin-bottom: 0;
}

.about-story__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    padding: var(--space-8);
    border-radius: var(--lf-panel-radius);
}

.about-story__icon,
.about-value-card__icon {
    color: var(--lf-page-accent-text);
}

.about-story__icon {
    font-size: 34px;
    margin-bottom: var(--space-6);
}

.about-story__quote {
    margin: 0;
    color: var(--lf-foreground);
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
}

.about-story__caption {
    margin-top: var(--space-5);
    color: var(--lf-muted);
    font-size: var(--lf-type-caption);
}

.about-values {
    padding-top: var(--space-2);
}

.about-value-card {
    min-height: 100%;
    padding: var(--space-6);
    border-radius: var(--lf-card-radius);
}

.about-value-card__icon {
    display: block;
    font-size: 30px;
    margin-bottom: var(--space-5);
}

.about-value-card h3 {
    margin: 0 0 var(--space-2);
    color: var(--lf-foreground);
    font-size: var(--lf-type-card-title);
    line-height: var(--leading-snug);
}

.about-value-card p {
    margin: 0;
    color: var(--lf-muted);
    font-size: var(--lf-type-body);
    line-height: var(--lf-leading-copy);
}

.page-shell--about-page .review-reel,
.page-shell--about-page .partner-showcase {
    background: var(--lf-canvas);
}

.page-shell--about-page .review-reel {
    border-top-color: var(--lf-page-border);
    border-bottom-color: var(--lf-page-border);
}

.page-shell--about-page .partner-showcase::before,
.page-shell--about-page .partner-showcase::after {
    background: var(--lf-page-border);
}

.affiliate-platform-guide {
    max-width: var(--lf-content-max);
}

.platform-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.platform-guide details,
.page-faq details {
    border: 1px solid var(--border-subtle);
    border-radius: var(--lf-card-radius);
    background: var(--lf-page-card);
}

.platform-guide details[open],
.page-faq details[open] {
    border-color: var(--lf-page-border);
}

.platform-guide summary,
.page-faq summary {
    min-height: 48px;
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    color: var(--lf-foreground);
    font-weight: var(--weight-semibold);
    list-style-position: inside;
}

.platform-guide summary::marker,
.page-faq summary::marker {
    color: var(--lf-page-accent-text);
}

.platform-guide summary:focus-visible,
.page-faq summary:focus-visible {
    outline: var(--lf-focus-width) solid var(--lf-page-focus);
    outline-offset: -3px;
}

.platform-guide summary .material-symbols-outlined {
    color: var(--lf-page-accent-text);
    font-size: 24px;
}

.platform-guide details p,
.page-faq details p {
    margin: 0;
    padding: 0 var(--space-5) var(--space-5);
    color: var(--lf-muted);
    line-height: var(--lf-leading-copy);
}

.page-faq > details {
    margin-top: var(--space-3);
}

@media (max-width: 767px) {
    .about-story,
    .platform-guide {
        grid-template-columns: 1fr;
    }

    .affiliate-hero__proof {
        grid-template-columns: 1fr;
    }

    .affiliate-hero__video {
        width: min(100%, 280px);
        justify-self: center;
    }

    .about-story__panel {
        min-height: 0;
    }

    .about-story__panel {
        padding: var(--space-6);
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .about-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



@media (prefers-reduced-motion: reduce) {
    .site-feature-canvas .page-hero .footer-start-free,
    .site-feature-canvas .page-cta .footer-start-free {
        transition: none;
    }
}

/* --- Preserve redesign: About and Affiliate --- */

.page-shell--about-page .page-hero,
.page-shell--affiliate-page .page-hero {
    padding-top: 126px;
    padding-bottom: var(--space-10);
}

.page-hero__layout {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

.page-hero__layout > * {
    min-width: 0;
}

.about-hero .page-hero__lead,
.affiliate-hero .page-hero__lead {
    max-width: 580px;
}

.about-story {
    align-items: start;
}

.about-story__copy .page-section__lead {
    margin-bottom: 0;
}

.about-story__route {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-story__route li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.about-story__route li:last-child {
    border-bottom: 0;
}

.about-story__route .material-symbols-outlined {
    grid-row: span 2;
    color: var(--lf-page-accent-text);
    font-size: 24px;
}

.about-story__route strong {
    color: var(--lf-foreground);
    font-size: var(--lf-type-body);
}

.about-story__route li > span:last-child {
    margin-top: var(--space-1);
    color: var(--lf-muted);
    font-size: var(--lf-type-caption);
}

.about-values {
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.about-value-card {
    transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease, transform var(--dur-base) ease;
}

.about-value-card--featured,
.about-value-card--accent {
    background: var(--lf-page-accent-surface) !important;
}

.about-value-card--wide {
    background: var(--lf-page-panel) !important;
}

.affiliate-terms {
    container-type: inline-size;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border-radius: var(--lf-panel-radius);
    border: 1px solid var(--lf-page-border);
}

.affiliate-terms > div {
    display: grid;
    grid-template-columns: minmax(10rem, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--lf-page-card);
}

.affiliate-terms strong {
    display: inline-block;
    color: transparent;
    background: linear-gradient(110deg, var(--brand-blue) 0%, #75b6ff 56%, #d5e7ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-size: 1.75rem;
    font-weight: 850;
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-flat);
    white-space: nowrap;
}

.affiliate-terms__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.affiliate-terms__eyebrow {
    color: var(--lf-page-accent-text);
    font-size: 0.75rem;
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-tight);
    text-transform: uppercase;
}

.affiliate-terms__detail {
    color: var(--lf-muted);
    font-size: var(--lf-type-caption);
    line-height: var(--leading-snug);
}

@media (max-width: 479px) {
    .affiliate-terms > div {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
}

@container (max-width: 34rem) {
    .affiliate-terms > div {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
}

.affiliate-features {
    margin-top: var(--lf-section-gap);
}

.affiliate-features__heading {
    max-width: 900px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.affiliate-features__heading .page-section__title {
    margin-bottom: 0;
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-tight);
}

.affiliate-features__title-line {
    display: block;
}

.affiliate-features__title-highlight,
.page-shell--affiliate-page .affiliate-title__highlight,
.affiliate-showcase__title-highlight,
.affiliate-workflow-showcase__title-highlight {
    color: transparent;
    background: linear-gradient(110deg, var(--brand-blue) 0%, #75b6ff 56%, #d5e7ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.affiliate-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-top: 0;
}

.affiliate-feature-card {
    --card-accent: var(--lf-page-accent-text);
    --card-accent-ch: var(--ch-brand-blue);
    min-width: 0;
    min-height: 260px;
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border-subtle);
    border-radius: var(--lf-card-radius);
    background: var(--lf-page-card);
    transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease, transform var(--dur-base) ease;
}

.affiliate-feature-card--catalog {
    --card-accent: #f47af5;
    --card-accent-ch: 244 122 245;
}

.affiliate-feature-card--reviews {
    --card-accent: var(--status-info);
    --card-accent-ch: 52 217 245;
}

.affiliate-feature-card--video {
    --card-accent: #ffd43b;
    --card-accent-ch: 255 212 59;
}

.affiliate-feature-card--batch {
    --card-accent: #5f98ff;
    --card-accent-ch: 95 152 255;
}

.affiliate-feature-card--tracking {
    --card-accent: var(--status-success);
    --card-accent-ch: 78 229 140;
}

.affiliate-feature-card--formats {
    --card-accent: #ff9a43;
    --card-accent-ch: 255 154 67;
}

.affiliate-feature-card:is(:hover, :focus-within) {
    border-color: rgb(var(--card-accent-ch) / var(--a-55));
    box-shadow: 0 18px 42px -32px rgb(var(--card-accent-ch) / var(--a-72));
    transform: translateY(-3px);
}

.affiliate-feature-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: var(--space-6);
    display: inline-grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / var(--a-10));
    border-radius: var(--radius-lg);
    color: var(--card-accent);
    background: rgb(var(--card-accent-ch) / var(--a-08));
    font-size: 30px;
}

.affiliate-feature-card h3 {
    margin: 0 0 var(--space-3);
    text-wrap: balance;
    color: var(--lf-foreground);
    font-size: var(--lf-type-card-title);
    line-height: var(--leading-tight);
}

.affiliate-feature-card p {
    margin: 0;
    color: var(--lf-muted);
    line-height: var(--lf-leading-copy);
}

.affiliate-showcase {
    margin-top: var(--lf-section-gap);
}

.affiliate-showcase__heading {
    max-width: 900px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.affiliate-showcase__heading .page-section__title {
    margin: 0;
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-tight);
}

.affiliate-showcase__title-line {
    display: block;
}

.affiliate-showcase__heading .page-section__lead {
    margin: var(--space-5) auto 0;
}

.affiliate-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.affiliate-showcase-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--lf-card-radius);
    background: var(--lf-page-card);
    transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease, transform var(--dur-base) ease;
}

.affiliate-showcase-card:is(:hover, :focus-within) {
    border-color: var(--lf-page-border-strong);
    box-shadow: 0 18px 42px -32px var(--lf-page-shadow);
    transform: translateY(-3px);
}

.affiliate-showcase-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--lf-page-panel);
}

.affiliate-showcase-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-reveal) var(--ease-out);
}

.affiliate-showcase-card:hover .affiliate-showcase-card__media img {
    transform: scale(1.025);
}

.affiliate-showcase-card__body {
    min-height: 104px;
    display: grid;
    place-items: center;
    padding: var(--space-5);
    text-align: center;
}

.affiliate-showcase-card h3 {
    max-width: 17ch;
    margin: 0;
    color: var(--lf-foreground);
    font-size: var(--lf-type-card-title);
    line-height: var(--leading-snug);
}

.affiliate-workflow-showcase {
    margin-top: var(--lf-section-gap);
}

.affiliate-workflow-showcase__heading {
    max-width: 1080px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.affiliate-workflow-showcase__heading .page-section__title {
    margin: 0;
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-tight);
}

.affiliate-workflow-showcase__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.affiliate-workflow-showcase__media {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--lf-card-radius);
    background: var(--lf-page-panel);
    box-shadow: none;
    justify-self: start;
}

.affiliate-workflow-showcase__media img {
    display: block;
    width: 100%;
    aspect-ratio: 950 / 900;
    height: auto;
    object-fit: contain;
}

.affiliate-workflow-showcase__steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.affiliate-workflow-showcase__steps li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.affiliate-workflow-showcase__step-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--lf-page-text-on-accent);
    background: var(--lf-page-accent);
    font-size: var(--lf-type-caption);
    font-weight: var(--weight-black);
    letter-spacing: var(--tracking-wide);
}

.affiliate-workflow-showcase__steps h3 {
    margin: 0;
    color: var(--lf-foreground);
    font-size: var(--lf-type-card-title);
    line-height: var(--leading-snug);
}

.affiliate-workflow-showcase__steps p {
    margin: var(--space-2) 0 0;
    color: var(--lf-muted);
    line-height: var(--lf-leading-copy);
}

.affiliate-workflow-showcase__cta {
    margin-top: var(--space-8);
    margin-inline: auto;
    width: max-content;
    max-width: 100%;
    justify-self: center;
    padding-inline: var(--space-6);
    white-space: nowrap;
}

.affiliate-hero__proof {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: center;
    gap: var(--space-4);
}

.affiliate-hero__video {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--lf-page-border);
    border-radius: var(--lf-card-radius);
    background: var(--lf-page-card);
    box-shadow: 0 22px 50px -34px var(--lf-page-shadow);
}

.affiliate-hero__video video {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--lf-page-panel);
}

.affiliate-hero__video figcaption {
    padding: var(--space-3) var(--space-4);
    color: var(--lf-muted);
    font-size: var(--lf-type-caption);
    line-height: var(--leading-normal);
}

.affiliate-earnings {
    margin-top: var(--lf-section-gap);
}

.affiliate-platform-guide .page-section__lead {
    max-width: 620px;
}

.platform-guide {
    gap: var(--space-3);
}

.platform-guide summary .material-symbols-outlined {
    transition: transform var(--dur-base) ease;
}

.platform-guide details[open] summary .material-symbols-outlined {
    transform: scale(1.08);
}

.site-feature-canvas .page-hero .footer-start-free:active,
.site-feature-canvas .page-cta .footer-start-free:active,
.site-feature-canvas .affiliate-apply-cta:active {
    transform: translateY(0) scale(0.98);
}

@media (min-width: 768px) {
    .page-shell--about-page .page-hero,
    .page-shell--affiliate-page .page-hero {
        padding-top: 136px;
        padding-bottom: var(--space-14);
    }

    .page-hero__layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
        gap: clamp(var(--space-8), 7vw, var(--space-14));
    }

    .page-shell--about-page .page-hero__layout {
        grid-template-columns: minmax(0, 680px);
    }

    .about-story {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
        gap: clamp(var(--space-8), 7vw, var(--space-14));
    }

    .about-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .affiliate-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 900px) {
    .affiliate-workflow-showcase__layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
        grid-template-rows: auto auto;
        gap: clamp(var(--space-8), 6vw, var(--space-16));
        align-items: start;
    }

    .affiliate-workflow-showcase__media {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: auto;
        align-self: stretch;
    }

    .affiliate-workflow-showcase__media img {
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }

    .affiliate-workflow-showcase__steps {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-self: stretch;
    }

    .affiliate-workflow-showcase__steps li {
        flex: 1 1 0;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: var(--space-3);
        padding: var(--space-3) 0;
    }

    .affiliate-workflow-showcase__step-number {
        width: 38px;
        height: 38px;
    }

    .affiliate-workflow-showcase__steps h3 {
        font-size: var(--text-base);
        line-height: var(--leading-tight);
    }

    .affiliate-workflow-showcase__steps p {
        margin-top: var(--space-1);
        font-size: var(--lf-type-card-excerpt);
        line-height: var(--leading-snug);
    }


}

@media (min-width: 1101px) {
    .about-values {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: dense;
    }

    .about-values .about-value-card--featured,
    .about-values .about-value-card--wide {
        grid-column: span 2;
    }

    .about-values .about-value-card--accent {
        grid-row: span 2;
    }

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

    .affiliate-showcase-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.about-value-card:hover {
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .affiliate-terms > div,
    .about-value-card,
    .affiliate-feature-card,
    .affiliate-showcase-card,
    .affiliate-showcase-card__media img,
    .affiliate-workflow-showcase__media,
    .platform-guide summary .material-symbols-outlined {
        animation: none;
        transition: none;
    }

    .about-value-card:hover,
    .affiliate-feature-card:is(:hover, :focus-within),
    .affiliate-showcase-card:is(:hover, :focus-within),
    .affiliate-showcase-card:hover .affiliate-showcase-card__media img,
    .platform-guide details[open] summary .material-symbols-outlined {
        transform: none;
    }

    html.js .page-shell--affiliate-page .reveal-up,
    html.js .page-shell--affiliate-page .reveal-up [data-reveal-item] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Affiliate conversion page --- */

.page-shell--affiliate-page .affiliate-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding-bottom: clamp(var(--space-12), 7vw, var(--space-20));
}

.page-shell--affiliate-page .affiliate-hero::after,
.page-shell--affiliate-page .affiliate-final-cta::before {
    position: absolute;
    z-index: var(--z-base);
    content: "";
    pointer-events: none;
}

.page-shell--affiliate-page .affiliate-hero::after {
    inset: 0;
    background: linear-gradient(90deg, rgb(7 8 13 / var(--a-12)) 0%, rgb(7 8 13 / var(--a-04)) 52%, rgb(7 8 13 / var(--a-14)) 100%);
}

.page-shell--affiliate-page .affiliate-hero > .page-hero__layout,
.page-shell--affiliate-page .affiliate-final-cta .page-cta {
    position: relative;
    z-index: var(--z-raised);
}

.affiliate-hero__copy {
    max-width: 680px;
}

.page-shell--affiliate-page .affiliate-hero h1 {
    max-width: 660px;
    font-size: var(--text-5xl);
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-tighter);
}

.page-shell--affiliate-page .affiliate-faq__title {
    color: var(--lf-page-accent-text);
}

.affiliate-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.affiliate-hero__actions .affiliate-apply-cta {
    text-align: center;
}

.affiliate-secondary-cta {
    min-height: 52px;
    padding: 0 var(--space-6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--lf-foreground);
    background: var(--lf-page-panel);
    transition: color var(--dur-base) ease, border-color var(--dur-base) ease, background var(--dur-base) ease,
        transform var(--dur-base) ease;
}

.affiliate-secondary-cta:is(:hover, :focus-visible) {
    color: var(--lf-foreground);
    border-color: var(--lf-page-border-strong);
    background: var(--lf-page-accent-surface);
    transform: translateY(-2px);
}

.affiliate-secondary-cta:focus-visible {
    outline: var(--lf-focus-width) solid var(--lf-page-focus);
    outline-offset: var(--lf-focus-offset);
}

.affiliate-fit {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(var(--space-8), 7vw, var(--space-16));
    align-items: center;
}

.affiliate-fit__copy {
    min-width: 0;
}

.affiliate-fit__audiences {
    margin: var(--space-8) 0 0;
    padding: 0;
    list-style: none;
}

.affiliate-fit__audiences li {
    padding: var(--space-5) 0;
    display: grid;
    gap: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
}

.affiliate-fit__audiences strong {
    color: var(--lf-foreground);
    font-size: var(--lf-type-body);
}

.affiliate-fit__audiences span {
    color: var(--lf-muted);
    line-height: var(--lf-leading-copy);
}

.affiliate-fit__media {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-3);
}

.affiliate-fit__frame {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--lf-page-border);
    border-radius: var(--lf-card-radius);
    background: var(--lf-page-card);
}

.affiliate-fit__frame--feature {
    grid-row: span 2;
}

.affiliate-fit__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-reveal) var(--ease-out);
}

.affiliate-fit__frame:hover img {
    transform: scale(1.025);
}

.affiliate-process {
    scroll-margin-top: 104px;
}

.affiliate-flow {
    display: grid;
    gap: 0;
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
}

.affiliate-flow li {
    min-width: 0;
    padding: var(--space-8) var(--space-6) var(--space-4) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.affiliate-flow h3 {
    margin: 0 0 var(--space-2);
    color: var(--lf-foreground);
    font-size: var(--lf-type-card-title);
}

.affiliate-flow__icon {
    display: block;
    margin-bottom: var(--space-5);
    color: var(--lf-page-accent-text);
    font-size: 30px;
}

.affiliate-flow p {
    margin: 0;
    color: var(--lf-muted);
    line-height: var(--lf-leading-copy);
}

.affiliate-earnings__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: var(--space-5);
    align-items: stretch;
}

.affiliate-earnings__layout .table-scroll {
    margin: 0;
}

.affiliate-toolkit {
    padding: var(--space-8);
    border-radius: var(--lf-panel-radius);
}

.affiliate-toolkit h3 {
    margin: 0;
    color: var(--lf-foreground);
    font-size: var(--lf-type-card-title);
}

.affiliate-toolkit ul {
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
}

.affiliate-toolkit li {
    padding: var(--space-4) 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: var(--space-3);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--lf-muted);
    line-height: var(--lf-leading-copy);
}

.affiliate-toolkit li:last-child {
    border-bottom: 0;
}

.affiliate-toolkit .material-symbols-outlined {
    color: var(--lf-page-accent-text);
}

.affiliate-toolkit strong {
    color: var(--lf-foreground);
}

.affiliate-platform-guide .platform-guide {
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.affiliate-disclosure-note {
    margin-top: var(--space-5);
    padding: var(--space-8);
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
    gap: var(--space-6);
    align-items: center;
    border: 1px solid var(--lf-page-border);
    border-radius: var(--lf-panel-radius);
    background: var(--lf-page-panel);
}

.affiliate-disclosure-note h3,
.affiliate-disclosure-note p,
.affiliate-disclosure-note blockquote {
    margin: 0;
}

.affiliate-disclosure-note h3 {
    color: var(--lf-foreground);
    font-size: var(--lf-type-card-title);
}

.affiliate-disclosure-note div p,
.affiliate-disclosure-note > p {
    margin-top: var(--space-2);
    color: var(--lf-muted);
    line-height: var(--lf-leading-copy);
}

.affiliate-disclosure-note blockquote {
    padding: var(--space-5);
    border-left: none;
    color: var(--lf-foreground);
    background: var(--lf-page-accent-surface);
    font-size: var(--lf-type-body-lg);
    line-height: var(--leading-normal);
}

.affiliate-disclosure-note > p {
    grid-column: 1 / -1;
    font-size: var(--lf-type-caption);
}

.page-shell--affiliate-page .page-faq {
    max-width: 860px;
    padding-top: clamp(var(--space-12), 8vw, var(--space-20));
}

.page-shell--affiliate-page .affiliate-faq__title {
    margin: 0 auto var(--space-8);
    max-width: 720px;
    text-align: center;
    font-size: var(--text-4xl);
    line-height: var(--leading-display);
}

.page-shell--affiliate-page .affiliate-faq__list {
    border-top: 1px solid var(--border-subtle);
}

.page-shell--affiliate-page .affiliate-faq__list details {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    background: transparent;
}

.page-shell--affiliate-page .affiliate-faq__list details[open] {
    border-color: var(--border-subtle);
}

.page-shell--affiliate-page .affiliate-faq__list summary {
    min-height: 88px;
    padding: var(--space-6) 0;
    justify-content: space-between;
    color: var(--lf-foreground);
    font-size: var(--text-xl);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    list-style: none;
    transition: color var(--dur-base) ease;
}

.page-shell--affiliate-page .affiliate-faq__list summary::-webkit-details-marker {
    display: none;
}

.page-shell--affiliate-page .affiliate-faq__list summary::marker {
    content: "";
}

.page-shell--affiliate-page .affiliate-faq__list summary::after {
    content: "+";
    flex: 0 0 44px;
    margin-left: var(--space-5);
    color: var(--lf-page-accent-text);
    font-size: 2.25rem;
    font-weight: 300;
    line-height: var(--leading-flat);
    text-align: right;
}

.page-shell--affiliate-page .affiliate-faq__list details[open] > summary::after {
    content: "−";
}

.page-shell--affiliate-page .affiliate-faq__list summary:hover,
.page-shell--affiliate-page .affiliate-faq__list details[open] > summary {
    color: var(--lf-page-accent-text);
}

.page-shell--affiliate-page .affiliate-faq__list summary:focus-visible {
    outline: var(--lf-focus-width) solid var(--lf-page-focus);
    outline-offset: 6px;
}

.page-shell--affiliate-page .affiliate-faq__list details p {
    max-width: 820px;
    margin: 0;
    padding: 0 0 var(--space-7);
    color: var(--lf-muted);
    font-size: var(--lf-type-body);
    line-height: var(--lf-leading-copy);
}

.affiliate-final-cta {
    position: relative;
    isolation: isolate;
    padding-top: 0;
}

.page-shell--affiliate-page .affiliate-final-cta::before {
    inset: -40% 4% -32%;
    background:
        radial-gradient(56% 108% at 24% 56%, rgba(var(--lf-affiliate-atmosphere-cool), var(--a-30)), transparent 74%),
        radial-gradient(52% 104% at 78% 44%, rgba(var(--lf-affiliate-atmosphere-indigo), var(--a-30)), transparent 76%);
    filter: blur(30px) saturate(1.08);
}

@media (max-width: 767px) {
    .page-shell--affiliate-page .affiliate-hero h1 {
        font-size: var(--text-4xl);
    }

    .affiliate-hero__actions,
    .affiliate-hero__actions a {
        width: 100%;
    }

    .affiliate-fit,
    .affiliate-earnings__layout,
    .affiliate-disclosure-note {
        grid-template-columns: 1fr;
    }

    .affiliate-fit__media {
        min-height: 390px;
    }

    .page-shell--affiliate-page .site-feature-canvas::before,
    .page-shell--about-page .site-feature-canvas::before,
    .page-shell--blog-page .site-feature-canvas::before,
    .page-shell--contact-page .site-feature-canvas::before,
    .page-shell--resource-page .site-feature-canvas::before {
        background-position: 0 0, 0 0, right top, right 9vw top 64px;
        background-size:
            var(--grid-size-mobile) var(--grid-size-mobile),
            var(--grid-size-mobile) var(--grid-size-mobile),
            100vw 620px,
            90vw 560px;
    }

    .page-shell--affiliate-page .affiliate-hero::after {
        background: linear-gradient(180deg, rgb(7 8 13 / var(--a-12)) 0%, rgb(7 8 13 / var(--a-04)) 58%, rgb(7 8 13 / var(--a-14)) 100%);
    }

    .page-shell--affiliate-page .affiliate-final-cta::before {
        inset: -22% -24% -16%;
        filter: blur(22px) saturate(1.06);
    }

    .page-shell--affiliate-page .affiliate-faq {
        padding-top: var(--space-12);
    }

    .page-shell--affiliate-page .affiliate-faq__title {
        margin-bottom: var(--space-6);
        font-size: var(--text-3xl);
    }

    .page-shell--affiliate-page .affiliate-faq__list summary {
        min-height: 72px;
        padding: var(--space-5) 0;
        font-size: 1.125rem;
    }

    .page-shell--affiliate-page .affiliate-faq__list summary::after {
        flex-basis: 36px;
        margin-left: var(--space-4);
        font-size: 2rem;
    }

    .page-shell--affiliate-page .affiliate-faq__list details p {
        padding: 0 0 var(--space-6);
    }

    .affiliate-flow li {
        padding-right: 0;
    }

    .affiliate-disclosure-note {
        padding: var(--space-6);
    }

    .affiliate-disclosure-note > p {
        grid-column: auto;
    }
}

@media (min-width: 768px) {
    .affiliate-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .affiliate-flow li {
        border-right: 1px solid var(--border-subtle);
    }

    .affiliate-flow li + li {
        padding-left: var(--space-6);
    }

    .affiliate-flow li:last-child {
        border-right: 0;
    }
}


@media (prefers-reduced-motion: reduce) {
    .affiliate-secondary-cta,
    .affiliate-fit__frame img {
        transition: none;
    }

    .affiliate-secondary-cta:is(:hover, :focus-visible),
    .affiliate-fit__frame:hover img {
        transform: none;
    }
}
