/* ========================================
   PRICING PAGE — Tier Cards + Compare Matrix
   Built 4/29/26 (D-3 + matrix redesign)
   Hierarchy: hero -> 3 tier cards (DFY featured) -> matrix -> totals -> CTA
   Extends offer-pages.css design system tokens.
   ======================================== */

/* Approximate-marker tilde (used in DFY+ values pending S5 sourcing) */
.approx {
    opacity: 0.6;
    font-weight: 400;
    margin-right: 0.05em;
}

/* GLOBAL SITE HEADER + FOOTER (mirrors v2.css so /pricing matches /aios-offer + homepage).
   Variables that v2.css owns but styles.css doesn't define — declared here so the rules below resolve. */
:root {
    --header-h: 64px;
    --header-h-scrolled: 56px;
    --container: 1240px;
    --text: #FFFFFF;
    --text-muted: #B7BAC0;
    --text-dim: #6B6F76;
    --border: rgba(255, 255, 255, 0.08);
    --gold-glow: rgba(220, 153, 10, 0.32);
    --radius-pill: 999px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sticky header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: height 0.3s var(--ease-out), background 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-header.is-scrolled {
    height: var(--header-h-scrolled);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--border);
}

.site-header__inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

.nav-primary a,
.header-cta {
    text-decoration: none;
}

.brand img {
    width: 28px;
    height: 28px;
}

.nav-primary {
    display: none;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

@media (min-width: 880px) {
    .nav-primary { display: flex; }
}

.nav-primary a {
    position: relative;
    transition: color 0.2s var(--ease-out);
}

.nav-primary a:hover { color: var(--text); }

.nav-primary a::after {
    content: "";
    position: absolute;
    inset: auto 0 -6px 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--gold);
    color: #1a1304;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: -0.005em;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

@media (min-width: 640px) {
    .site-header .header-cta { display: inline-flex; }
}

.nav-mobile .header-cta { display: inline-flex; }

.header-cta:hover {
    transform: translateY(-1px);
    background: var(--gold-light);
    box-shadow: 0 8px 24px -12px var(--gold-glow);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: none;
    color: var(--text);
    cursor: pointer;
}

@media (min-width: 880px) {
    .nav-toggle { display: none; }
}

.nav-mobile {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
}

.nav-mobile.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    padding-block: 0.4rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.nav-mobile .header-cta {
    margin-top: 1rem;
    width: fit-content;
    font-size: 1rem;
    padding: 0.75rem 1.3rem;
}

/* Global footer (mirrors index.html + aios-offer footer) */
.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    background: var(--black);
}

.site-footer .container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .site-footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
}

.site-footer__brand img { width: 36px; height: 36px; margin-bottom: 0.85rem; }

.site-footer__brand h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 0 0.45rem;
}

.site-footer__brand p {
    color: var(--text-dim);
    margin: 0;
    max-width: 32ch;
    font-size: 0.9rem;
}

.site-footer__col h5 {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 500;
    margin: 0 0 0.85rem;
}

.site-footer__col a,
.site-footer__col span {
    display: block;
    color: var(--text-muted);
    padding-block: 0.3rem;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.site-footer__col a:hover { color: var(--text); }

.site-footer__service-areas {
    border-top: 1px solid var(--border);
    padding-block: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
    align-items: baseline;
}

.site-footer__service-areas .service-areas__label {
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.74rem;
    margin-right: 0.35rem;
}

.site-footer__service-areas a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.site-footer__service-areas a:hover { color: var(--text); }

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.82rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

/* Pricing-specific footer disclaimer (carried over from the previous bespoke footer) */
.pricing-page__disclaimer {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-align: center;
}

/* Matrix corner-cell label (the "Compare features" anchor sitting in the empty top-left) */
.compare-feature-col-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-60);
}

/* PRICING HERO */
.pricing-hero {
    background: var(--black);
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-border);
}

.pricing-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--type-display);
    font-weight: 700;
    color: var(--white);
    line-height: var(--lh-tight);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.pricing-hero h1 .accent { color: var(--gold); }

.pricing-hero-subhead {
    font-family: var(--font-body);
    font-size: var(--type-lead);
    color: var(--text-85);
    line-height: var(--lh-snug);
    margin: 0 0 0.5rem;
}

.pricing-hero-tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-60);
    margin: 0 0 2.25rem;
}

/* HERO VIDEO — mirrors /demo player */
.pricing-hero-video {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(220, 153, 10, 0.2);
    box-shadow: 0 0 60px rgba(220, 153, 10, 0.1);
}

.pricing-hero-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

@media (max-width: 600px) {
    .pricing-hero-video {
        margin: 0 auto 2rem;
        border-radius: 10px;
    }
}

/* BOOK A CALL — sits between video and "pick the tier" tagline */
.pricing-hero-book {
    margin: 0 0 2rem;
    text-align: center;
}

.pricing-hero-book-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 40px rgba(220, 153, 10, 0.25);
    min-height: 60px;
}

.pricing-hero-book-cta:hover {
    background: var(--gold-light);
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(220, 153, 10, 0.4);
}

.pricing-hero-book-cta:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .pricing-hero-book {
        margin: 0 0 1.75rem;
    }

    .pricing-hero-book-cta {
        font-size: 0.95rem;
        padding: 1rem 2rem;
        min-height: 56px;
    }
}

/* GLOBAL BILLING TOGGLE */
.billing-toggle-global {
    display: inline-flex;
    background: var(--gray-dark);
    border: 1px solid var(--gray-border);
    border-radius: var(--offer-pill-radius);
    padding: 0.35rem;
    gap: 0.25rem;
}

.billing-toggle-global .billing-toggle-option {
    background: transparent;
    border: 0;
    color: var(--text-60);
    padding: 0.7rem 1.5rem;
    border-radius: var(--offer-pill-radius);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.billing-toggle-global .billing-toggle-option:hover { color: var(--white); }

.billing-toggle-global .billing-toggle-option.active {
    background: var(--gold);
    color: var(--black);
}

.billing-toggle-global .billing-toggle-savings {
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.18);
    padding: 0.18rem 0.5rem;
    border-radius: var(--offer-pill-radius);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* TIER CARDS SECTION */
.tier-cards-section {
    background: var(--black);
    padding: 3rem 1.5rem 4rem;
}

.tier-cards-inner {
    max-width: var(--offer-max);
    margin: 0 auto;
}

.tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.tier-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid var(--offer-card-border);
    border-radius: var(--offer-card-radius);
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tier-card:hover { border-color: var(--offer-card-border-hover); }

.tier-card.featured {
    background: linear-gradient(180deg, rgba(220, 153, 10, 0.07) 0%, rgba(220, 153, 10, 0.015) 100%);
    border: 1.5px solid var(--gold);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 50px rgba(220, 153, 10, 0.08);
    transform: translateY(-8px);
}

.tier-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.95rem;
    border-radius: var(--offer-pill-radius);
}

.tier-card-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.tier-card-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1;
}

.tier-card-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-60);
    line-height: 1.45;
    margin: 0 0 1.5rem;
    min-height: 44px;
}

.tier-card-pricing {
    margin: 0 0 1.5rem;
    min-height: 96px;
}

.tier-price-monthly,
.tier-price-yearly { display: none; }

.tier-price-monthly.active,
.tier-price-yearly.active { display: block; }

/* Matrix-row toggle spans (bp = "billing-pair") — only one shows at a time */
.bp-monthly,
.bp-yearly { display: none; }

.bp-monthly.active,
.bp-yearly.active { display: inline; }

.tier-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    color: var(--white);
    font-family: var(--font-heading);
    line-height: 1;
}

.tier-card-price-currency {
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 700;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.tier-card-price-amount {
    font-size: clamp(2.5rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tier-card-price-period {
    font-size: 1rem;
    color: var(--text-60);
    font-weight: 500;
    margin-left: 0.25rem;
}

.tier-card-billed {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-60);
    margin: 0.5rem 0 0;
}

.tier-card-cta {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.95rem 1rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 0 1.5rem;
    min-height: 48px;
    line-height: 1.2;
}

.tier-card-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.32);
}

.tier-card-cta.tier-card-cta-primary {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.tier-card-cta.tier-card-cta-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.tier-card-stack {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.tier-card-stack-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: -0.01em;
    line-height: 1;
}

.tier-card-stack-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-60);
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

/* COMPARISON SECTION */
.compare-section {
    background: var(--gray-dark);
    padding: var(--offer-section-pad-tight) 1.5rem;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.compare-section-inner {
    max-width: var(--offer-max);
    margin: 0 auto;
}

.compare-section-title {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 700;
    color: var(--white);
    margin: 0.4rem 0 0.75rem;
    letter-spacing: -0.01em;
    line-height: var(--lh-snug);
    text-align: center;
}

.compare-section-lede {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-60);
    margin: 0 auto 3rem;
    max-width: 640px;
    text-align: center;
    line-height: 1.55;
}

/* COMPARE MATRIX */
.compare-matrix {
    display: flex;
    flex-direction: column;
    background: var(--black);
    border: 1px solid var(--offer-card-border);
    border-radius: var(--offer-card-radius);
    /* overflow:hidden removed — breaks position:sticky on .compare-header-row.
       First/last child rows are styled to round their own outer corners instead. */
}

.compare-matrix > .compare-row:first-child {
    border-top-left-radius: var(--offer-card-radius);
    border-top-right-radius: var(--offer-card-radius);
}

.compare-matrix > .compare-row:last-child {
    border-bottom-left-radius: var(--offer-card-radius);
    border-bottom-right-radius: var(--offer-card-radius);
}

.compare-row {
    display: grid;
    grid-template-columns: minmax(280px, 2.2fr) 1fr 1fr 1fr;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-row:first-child { border-top: 0; }

/* HEADER ROW */
.compare-header-row {
    background: var(--black);
    position: sticky;
    top: 64px;
    z-index: 30;
    border-bottom: 1.5px solid var(--gold);
}

.compare-header-row .compare-cell {
    padding: 0.85rem 1.25rem 1rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.compare-header-row .compare-feature-col {
    border-left: 0;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
}

.compare-tier-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.compare-tier-price {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--text-85);
    margin-top: 0.3rem;
}

.compare-tier-pop-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.26rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    margin-bottom: 0.65rem;
    line-height: 1;
    align-self: center;
}

.compare-tier-col-featured {
    background: rgba(220, 153, 10, 0.06);
    border-bottom: 2px solid var(--gold) !important;
}

/* CATEGORY ROW — Linear-style: generous whitespace, no background bar */
.compare-category-row {
    grid-template-columns: 1fr;
    background: transparent;
    padding: 2rem 1.5rem 0.6rem;
    border-top: 0;
    display: flex;
    align-items: baseline;
}

.compare-category-row + .compare-feature-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-matrix > .compare-category-row:first-child,
.compare-matrix > .compare-row:first-child + .compare-category-row,
.compare-header-row + .compare-category-row {
    padding-top: 1.25rem;
}

.compare-category-row .compare-cat-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.compare-category-row .compare-cat-value {
    font-family: var(--font-body);
    font-size: 0.74rem;
    color: var(--text-60);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.compare-cat-note {
    color: var(--text-40);
    font-style: italic;
    font-size: 0.72rem;
    margin-left: 0.4rem;
}

/* FEATURE ROW — single-line dense (no subtitles).
   border-left opacity bumped to 0.09 so the column dividers are clearly visible
   and the column alignment between header / feature / total / CTA is obvious. */
.compare-feature-row .compare-cell {
    padding: 0.45rem 1.25rem;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
}

.compare-feature-row .compare-feature-name {
    border-left: 0;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
}

.compare-check {
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.compare-dash {
    color: var(--text-40);
    font-size: 1rem;
    line-height: 1;
}

.compare-cell-value {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-60);
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.compare-cell-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-85);
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.compare-cell-featured {
    background: rgba(220, 153, 10, 0.04);
}

/* TOTAL ROWS */
.compare-total-row {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(220, 153, 10, 0.2);
    grid-template-columns: minmax(280px, 2.2fr) 1fr 1fr 1fr;
}

.compare-total-row:first-of-type {
    border-top: 2px solid var(--gold);
}

.compare-total-row .compare-cell {
    padding: 0.6rem 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.compare-total-row .compare-total-label {
    border-left: 0;
    justify-content: flex-start;
    text-align: left;
    color: var(--text-85);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.compare-total-row .compare-total-value {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.compare-total-row .compare-total-value-featured {
    color: var(--gold-light);
    background: rgba(220, 153, 10, 0.06);
    font-size: 1.3rem;
}

.compare-price-row .compare-total-value { font-size: 1.05rem; color: var(--gold-light); }
.compare-ratio-row .compare-total-value { font-size: 1.3rem; color: var(--gold); }

/* CTA ROW
   Horizontal padding (1.25rem) matches header/feature/total rows so the CTA
   buttons line up exactly under the value columns above them. */
.compare-cta-row {
    background: var(--black);
    border-top: 1px solid rgba(220, 153, 10, 0.2);
    grid-template-columns: minmax(280px, 2.2fr) 1fr 1fr 1fr;
}

.compare-cta-row .compare-cell {
    padding: 1.5rem 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.compare-cta-row .compare-cell:first-child { border-left: 0; }

.compare-cta-row .compare-cell-featured { background: rgba(220, 153, 10, 0.06); }

.cta-stripe-compare {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    display: block;
    transition: all 0.2s ease;
    min-height: 44px;
    line-height: 1.3;
}

/* FOUNDING BAND */
.founding-band-section {
    background: linear-gradient(135deg, rgba(220, 153, 10, 0.08) 0%, rgba(220, 153, 10, 0.02) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-border);
}

.founding-band-inner {
    max-width: 880px;
    margin: 0 auto;
}

.founding-band-title {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    color: var(--white);
    margin: 0.6rem 0 2rem;
    letter-spacing: -0.01em;
    line-height: var(--lh-snug);
}

.founding-band-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.founding-band-stat {
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(220, 153, 10, 0.2);
    border-radius: 12px;
}

.founding-band-stat-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.founding-band-stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-60);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.founding-band-foot {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-85);
    margin: 1.5rem auto 0;
    max-width: 640px;
    line-height: 1.55;
}

/* CLOSING CTA ROW */
.closing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: stretch;
}

.closing-cta-row .cta-button {
    flex: 1 1 220px;
    max-width: 280px;
    text-align: center;
    padding: 1.05rem 1rem;
    min-height: 56px;
}

/* ========================================
   MOBILE / TABLET BREAKPOINT
   - Tier cards stack vertically in natural price order: DIY -> DFY -> DFY+
   - Comparison matrix stays a real 4-column table that FITS the viewport
     (no horizontal scroll). Header row uses position:sticky against the page
     so it pins under the site header while scrolling features.
   - Horizontal scroll on a parent would force overflow-y to non-visible per
     CSS spec, which breaks page-relative sticky. We avoid that entirely by
     sizing columns to fit and letting long values wrap to two lines.
   ======================================== */
@media (max-width: 900px) {

    /* TIER CARDS — single column, natural DOM order (DIY -> DFY -> DFY+) */
    .tier-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .tier-card.featured {
        transform: none;
        /* No `order` override: cards follow DOM = DIY, DFY, DFY+.
           Price progression now reads small -> mid -> big. */
    }
    .tier-card { padding: 2rem 1.5rem 1.75rem; }

    /* Hero density */
    .pricing-hero { padding: 3rem 1.25rem 2rem; }
    .founding-band-grid { grid-template-columns: 1fr; }
    .closing-cta-row .cta-button { flex: 1 1 100%; max-width: 100%; }

    /* COMPARISON SECTION — tighter padding to give the table maximum width */
    .compare-section {
        padding: var(--offer-section-pad-tight) 0.6rem;
    }
    .compare-section-lede {
        margin-bottom: 1.25rem;
        font-size: 0.88rem;
    }

    .compare-matrix {
        border-radius: 12px;
    }

    /* All comparison rows share a fits-in-viewport 4-column grid.
       Feature col is wider than tier cols so feature names get more room.
       fr units shrink gracefully on narrower phones without min-width forcing scroll. */
    .compare-row,
    .compare-total-row,
    .compare-cta-row {
        grid-template-columns: 1.55fr 1fr 1fr 1fr;
    }

    /* Category rows: single-cell banner */
    .compare-category-row {
        grid-template-columns: 1fr;
        padding: 1.4rem 0.75rem 0.5rem;
        background: var(--black);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .compare-category-row .compare-cat-name {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    /* HEADER ROW — sticky directly under the 64px page header. */
    .compare-header-row {
        position: sticky;
        top: 64px;
        z-index: 20;
        background: var(--black);
        border-bottom: 1.5px solid var(--gold);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .compare-header-row .compare-cell {
        padding: 0.55rem 0.3rem 0.65rem;
        border-left: 1px solid rgba(255, 255, 255, 0.09);
        min-height: 62px;
    }
    .compare-tier-name { font-size: 0.92rem; }
    .compare-tier-price { font-size: 0.7rem; margin-top: 0.2rem; }
    .compare-tier-pop-badge {
        font-size: 0.5rem;
        padding: 0.18rem 0.4rem;
        margin-bottom: 0.3rem;
        letter-spacing: 0.08em;
    }

    /* Corner cell — left-aligned "Compare features" anchor */
    .compare-header-row .compare-feature-col {
        padding: 0.55rem 0.5rem;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        border-left: 0;
    }
    .compare-feature-col-label {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        color: var(--text-60);
    }

    /* Feature rows — compact value cells stacked under their column */
    .compare-feature-row .compare-cell {
        padding: 0.4rem 0.25rem;
        min-height: 44px;
        flex-direction: column;
        gap: 0.1rem;
        justify-content: center;
        text-align: center;
        border-left: 1px solid rgba(255, 255, 255, 0.09);
    }
    .compare-feature-row .compare-feature-name {
        padding: 0.5rem 0.6rem;
        text-align: left;
        font-size: 0.78rem;
        font-weight: 500;
        line-height: 1.25;
        background: transparent;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
    }
    .compare-feature-row .compare-cell-value {
        font-size: 0.66rem;
        white-space: normal;
        line-height: 1.15;
    }
    .compare-feature-row .compare-cell-text {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    .compare-check { font-size: 0.95rem; }
    .compare-dash { font-size: 0.9rem; }

    /* Featured DFY column accent */
    .compare-cell-featured { background: rgba(220, 153, 10, 0.05); }
    .compare-tier-col-featured { border-bottom: 2px solid var(--gold) !important; }

    /* Totals */
    .compare-total-row { background: rgba(255, 255, 255, 0.025); }
    .compare-total-row .compare-cell {
        padding: 0.6rem 0.25rem;
        border-left: 1px solid rgba(255, 255, 255, 0.09);
        min-height: 46px;
    }
    .compare-total-row .compare-total-label {
        font-size: 0.62rem;
        padding: 0.6rem 0.55rem;
        text-align: left;
        justify-content: flex-start;
        border-left: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        letter-spacing: 0.05em;
        line-height: 1.25;
    }
    .compare-total-row .compare-total-value { font-size: 0.78rem; }
    .compare-total-row .compare-total-value-featured { font-size: 0.85rem; }
    .compare-price-row .compare-total-value { font-size: 0.72rem; }
    .compare-ratio-row .compare-total-value { font-size: 0.9rem; }

    /* CTA row */
    .compare-cta-row .compare-cell {
        padding: 0.65rem 0.3rem;
        border-left: 1px solid rgba(255, 255, 255, 0.09);
    }
    .compare-cta-row .compare-cell:first-child {
        border-left: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }
    .cta-stripe-compare {
        font-size: 0.62rem;
        padding: 0.55rem 0.2rem;
        min-height: 40px;
        border-radius: 8px;
        letter-spacing: 0.02em;
    }
}

/* Smallest phones (≤380px) — tighten typography one more notch */
@media (max-width: 380px) {
    .compare-feature-row .compare-feature-name {
        font-size: 0.72rem;
        padding: 0.45rem 0.45rem;
    }
    .compare-feature-row .compare-cell-value { font-size: 0.62rem; }
    .compare-tier-name { font-size: 0.82rem; }
    .compare-tier-price { font-size: 0.62rem; }
    .compare-total-row .compare-total-label { font-size: 0.58rem; padding: 0.55rem 0.4rem; }
    .compare-total-row .compare-total-value { font-size: 0.72rem; }
    .cta-stripe-compare { font-size: 0.56rem; padding: 0.45rem 0.15rem; }

    /* Billing toggle: shrink padding so the Yearly+"save 16.7%" pill fits 320px */
    .billing-toggle-global .billing-toggle-option { padding: 0.6rem 0.85rem; font-size: 0.85rem; }
    .billing-toggle-global .billing-toggle-savings { font-size: 0.62rem; padding: 0.15rem 0.4rem; }
}
