/* ==========================================================================
   PlayGuitar Sales Page — Component Library
   Uses design tokens from main.css (:root variables).
   Loaded conditionally on template-sales.php pages.
   ========================================================================== */

/* ==========================================================================
   LAYOUT
   ========================================================================== */

/* Base sales-page body overrides */
.sales-page {
    background-color: var(--color-bg);
}

/* Promo Banner — sticky urgent bar */
.promo-banner {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: #b71c1c;
    color: #fff;
    text-align: center;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: 0.02em;
}

.promo-banner__inner {
    max-width: var(--width-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.promo-banner__text strong {
    font-weight: var(--weight-bold);
}

.promo-banner__timer {
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-bold);
}

.promo-banner__close {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-1);
    line-height: 1;
    transition: color var(--transition-fast);
}

.promo-banner__close:hover {
    color: #fff;
}

.promo-banner.is-hidden {
    display: none;
}

/* Sales Header — logo only, no nav */
.sales-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-5) var(--space-5);
}

.sales-header__inner {
    max-width: var(--width-max);
    margin: 0 auto;
    text-align: center;
}

.sales-header__logo img {
    display: inline-block;
    height: 44px;
    width: auto;
}

/* ---------- Sales Hero Section ---------- */
.sales-hero {
    background: var(--color-bg-alt, #f8f6f3);
    padding: var(--space-12) var(--space-5) var(--space-10);
    text-align: center;
    border-bottom: 3px solid var(--color-primary);
    /* Break out of sales-content__inner max-width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: calc(-1 * var(--space-12));
    margin-bottom: var(--space-10);
}

.sales-hero__inner {
    max-width: 740px;
    margin: 0 auto;
}

/* Split hero: headline full-width, then copy left + photo right */
.sales-hero__inner--split {
    max-width: 900px;
    text-align: center;
}

.sales-hero__inner--split > .sales-headline {
    text-align: center;
    margin-bottom: var(--space-6);
}

.sales-hero__inner--split > .sales-hero__copy,
.sales-hero__inner--split > .sales-hero__photo-col {
    /* These sit in an implicit two-column layout */
}

.sales-hero__inner--split {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
}

.sales-hero__inner--split > .sales-headline {
    flex: 0 0 100%;
}

.sales-hero__inner--split > .sales-hero__copy {
    flex: 1 1 400px;
    text-align: left;
}

.sales-hero__inner--split > .sales-cta-block {
    flex: 0 0 100%;
}

.sales-hero__inner--split .sales-hero__copy {
    text-align: left;
}

.sales-hero__photo-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-hero__inner--split .sales-hero__photo {
    width: 220px;
    height: auto;
    border-radius: 4px;
    margin: 0;
}

.sales-hero__inner--split .sales-cta-block {
    max-width: 100%;
    margin: 20px 0 0;
    text-align: left;
}

.sales-hero__inner--split .sales-cta-block__sub {
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .sales-hero__inner--split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .sales-hero__inner--split .sales-hero__copy {
        text-align: center;
    }
    .sales-hero__photo-col {
        order: -1;
    }
    .sales-hero__inner--split .sales-hero__photo {
        width: 150px;
    }
    .sales-hero__inner--split .sales-cta-block {
        text-align: center;
        margin: 0 auto;
    }
}

.sales-hero .sales-headline {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.sales-hero .sales-subheadline {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.sales-hero__body {
    font-size: var(--text-md);
    line-height: var(--leading-normal);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    font-weight: var(--weight-semibold);
}

.sales-hero__social-proof {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.sales-hero__trust {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-6);
}

.sales-hero .sales-cta-block {
    max-width: 50%;
    margin: 0 auto;
}

.sales-hero__photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full, 50%);
    object-fit: cover;
    margin: var(--space-4) auto var(--space-2);
    display: block;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Sales Content — readable width */
.sales-content__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-5);
}

/* Full-width sections */
.sales-section {
    padding: var(--space-16) var(--space-5);
}

.sales-section--alt {
    background-color: var(--color-bg-alt);
}

.sales-section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.sales-section--dark h2,
.sales-section--dark h3,
.sales-section--dark h4 {
    color: var(--color-text-inverse);
}

.sales-section > .sales-content__inner {
    padding-top: 0;
    padding-bottom: 0;
}

/* Sales Footer */
.sales-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.6);
    padding: var(--space-8) var(--space-5);
    text-align: center;
    font-size: var(--text-sm);
    position: relative;
}

.sales-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-mid) 50%, var(--color-accent) 100%);
}

.sales-footer__inner {
    max-width: var(--width-max);
    margin: 0 auto;
}

.sales-footer__links {
    margin-top: var(--space-3);
    display: flex;
    gap: var(--space-6);
    justify-content: center;
}

.sales-footer__links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sales-footer__links a:hover {
    color: #fff;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* Sales page headings — larger and more impactful */
.sales-page h1,
.sales-page h2,
.sales-page h3,
.sales-page h4 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: var(--leading-tight);
}

.sales-page h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
}

.sales-page h2 {
    font-size: var(--text-3xl);
    margin-top: var(--space-16);
    margin-bottom: var(--space-6);
}

.sales-page h3 {
    font-size: var(--text-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.sales-page h4 {
    font-size: var(--text-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

/* Hero headline */
.sales-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--weight-bold);
    line-height: 1.15;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: var(--space-6);
}

/* Subtitle */
.sales-subheadline {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-style: normal;
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-6);
    line-height: var(--leading-normal);
}

/* Consecutive headings — collapse margins (Thrive splits titles across multiple h2s) */
.sales-content__inner h1 + h1,
.sales-content__inner h1 + h2,
.sales-content__inner h2 + h2,
.sales-content__inner h2 + h3,
.sales-content__inner h3 + h3 {
    margin-top: 0;
    padding-top: 0;
}

/* Images — center by default, handle Thrive's span wrappers */
.sales-content__inner img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.sales-content__inner > span > img,
.sales-content__inner > p > img {
    margin: var(--space-6) auto;
}

/* Small inline images (author photos, product shots) — float left */
.sales-content__inner img[width="225"],
.sales-content__inner img[width="200"],
.sales-content__inner img[width="250"],
.sales-content__inner img[width="300"] {
    float: left;
    margin: 0 var(--space-6) var(--space-4) 0;
    border-radius: var(--radius-md);
}

/* Section headings — centered, clear floats */
.sales-content__inner h2 {
    clear: both;
    text-align: center;
}

/* Span wrappers from Thrive — make them transparent */
.sales-content__inner > span {
    display: block;
}

.sales-content__inner > span[style*="width: 100%"],
.sales-content__inner > span[style*="width:100%"] {
    text-align: center;
}

/* Body copy — comfortable reading */
.sales-content__inner p {
    font-size: var(--text-md);
    line-height: var(--leading-loose);
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

/* Accent highlight text */
.sales-highlight {
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

/* Callout block — indented quote style */
.sales-callout {
    border-left: 4px solid var(--color-primary);
    background: var(--color-primary-light);
    padding: var(--space-6) var(--space-8);
    margin: var(--space-8) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: var(--text-md);
    line-height: var(--leading-normal);
    font-style: italic;
    color: var(--color-text);
}

.sales-callout p:last-child {
    margin-bottom: 0;
}

/* Unordered lists — clean bullets */
.sales-content__inner ul {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.sales-content__inner ul li {
    padding: var(--space-2) 0 var(--space-2) 28px;
    font-size: var(--text-md);
    line-height: var(--leading-normal);
    position: relative;
}

.sales-content__inner ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: var(--space-2);
    color: var(--color-primary);
    font-weight: var(--weight-bold);
    font-size: 0.9em;
    width: 20px;
    text-align: center;
}

/* "Add to Cart" image buttons — center them */
.sales-content__inner a[href*="OrderBox"] {
    display: block;
    text-align: center;
    margin: var(--space-8) auto;
}

.sales-content__inner a[href*="OrderBox"] img {
    display: inline-block;
    float: none;
    margin: 0 auto;
    max-width: 300px;
    transition: transform 0.15s ease;
}

.sales-content__inner a[href*="OrderBox"]:hover img {
    transform: scale(1.05);
}

/* Order box anchor — add visual treatment to the pricing section */
.sales-content__inner a[name="OrderBox"] {
    display: block;
    margin-top: var(--space-12);
}

/* Italic and bold refinements */
.sales-content__inner em {
    font-style: italic;
}

.sales-content__inner strong {
    font-weight: var(--weight-bold);
    color: var(--color-heading);
}


/* ==========================================================================
   INSTRUCTOR BIO
   ========================================================================== */

.instructor-bio {
    overflow: hidden;
    margin: var(--space-10) 0;
}

.instructor-bio__photo {
    float: left;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 var(--space-8) var(--space-4) 0;
    border: 4px solid var(--color-border-light);
}

.instructor-bio--centered {
    text-align: center;
}

.instructor-bio--centered .instructor-bio__photo {
    float: none;
    margin: 0 auto var(--space-6);
    display: block;
}

@media (max-width: 600px) {
    .instructor-bio__photo {
        float: none;
        display: block;
        margin: 0 auto var(--space-6);
        width: 160px;
        height: 160px;
    }
}


/* ==========================================================================
   BENEFIT / FEATURE LISTS
   ========================================================================== */

/* Green checkmark list */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.benefit-list li {
    position: relative;
    padding-left: var(--space-8);
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

.benefit-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
}

/* Larger benefit list for key features */
.benefit-list--large li {
    padding-left: var(--space-10);
    margin-bottom: var(--space-5);
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
}

.benefit-list--large li::before {
    font-size: var(--text-xl);
    color: var(--color-primary);
    top: -1px;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin: var(--space-8) 0;
    list-style: none;
    padding: 0;
}

.feature-grid li {
    padding-left: var(--space-8);
    position: relative;
    font-size: var(--text-base);
    line-height: var(--leading-snug);
}

.feature-grid li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Numbered list */
.sales-content__inner ol {
    counter-reset: sales-counter;
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
}

.sales-content__inner ol li {
    counter-increment: sales-counter;
    position: relative;
    padding-left: var(--space-10);
    margin-bottom: var(--space-4);
    font-size: var(--text-md);
    line-height: var(--leading-normal);
}

.sales-content__inner ol li::before {
    content: counter(sales-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   VIDEO EMBEDS
   ========================================================================== */

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: var(--space-8) 0;
    border-radius: var(--radius-md);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-embed iframe,
.video-embed object,
.video-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hero video — larger, more prominent */
.video-embed--hero {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-12);
    box-shadow: 0 20px 60px rgba(26,31,22,0.18);
    border-radius: var(--radius-lg);
}


/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

/* Single testimonial card */
.testimonial-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-primary-light);
    position: absolute;
    top: var(--space-3);
    left: var(--space-6);
    line-height: 1;
}

.testimonial-card__body {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card__name {
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    color: var(--color-heading);
}

.testimonial-card__role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Testimonials grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

/* Inline testimonial — card style within copy */
.testimonial-inline {
    position: relative;
    background: var(--color-primary-light, #eef4ee);
    border: 1px solid rgba(26,107,60,0.12);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-8) var(--space-8) var(--space-6) var(--space-10);
    margin: var(--space-8) 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-style: normal;
    font-size: var(--text-md);
    line-height: var(--leading-normal);
}

/* Large opening quote mark */
.testimonial-inline::before {
    content: '\201C';
    position: absolute;
    top: var(--space-2);
    left: var(--space-3);
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.25;
}

.testimonial-inline blockquote {
    margin: 0;
    padding: 0;
    font-style: italic;
    color: var(--color-text);
    border: none;
}

.testimonial-inline blockquote p {
    margin-bottom: var(--space-2);
}

.testimonial-inline h2,
.testimonial-inline h3 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    font-style: normal;
    margin-bottom: var(--space-2);
    margin-top: 0;
    padding-top: 0;
    color: var(--color-heading);
}

.testimonial-inline cite {
    display: block;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(26,107,60,0.15);
    font-style: normal;
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.testimonial-inline cite::before {
    content: '• ';
    color: var(--color-primary);
}

/* Featured / large testimonial */
.testimonial-highlight {
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    text-align: center;
    margin: var(--space-10) 0;
}

.testimonial-highlight .testimonial-card__body {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto var(--space-6);
}

.testimonial-highlight .testimonial-card__footer {
    justify-content: center;
}


/* ==========================================================================
   COURSE CONTENTS
   ========================================================================== */

.course-contents {
    margin: var(--space-8) 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.course-module {
    background: var(--color-bg-alt);
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background var(--transition-fast);
}

.course-module:hover {
    background: var(--color-border-light);
}

/* Expand/collapse indicator */
.course-module::after {
    content: '+';
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: var(--weight-normal);
    color: var(--color-text-muted);
    transition: transform var(--transition-normal);
}

.course-module.is-open::after {
    content: '\2212'; /* minus */
}

/* Lesson list within a module */
.course-module__lessons {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.course-module.is-open + .course-module__lessons,
.course-module__lessons.is-open {
    max-height: 2000px;
}

.course-lesson {
    padding: var(--space-3) var(--space-6) var(--space-3) var(--space-10);
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--text-base);
    color: var(--color-text);
    position: relative;
}

.course-lesson::before {
    content: '\25B6'; /* play triangle */
    position: absolute;
    left: var(--space-6);
    top: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-primary);
}

.course-lesson:last-child {
    border-bottom: none;
}


/* ==========================================================================
   PRICING
   ========================================================================== */

/* Side-by-side pricing blocks */
.pricing-row {
    display: flex;
    gap: var(--space-6);
    align-items: stretch;
    margin: var(--space-10) 0;
}

.pricing-row .pricing-block {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Pin CTA to bottom of card regardless of content height */
.pricing-row .pricing-block .btn-cta {
    margin-top: auto;
    display: block;
    width: 100%;
}

@media (max-width: 700px) {
    .pricing-row {
        flex-direction: column;
    }
    .pricing-row .pricing-block {
        width: 100%;
    }
}

.pricing-block {
    max-width: 480px;
    margin: var(--space-10) auto;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-8) var(--space-8) var(--space-6);
    text-align: center;
    background: var(--color-bg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.pricing-block__label {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.pricing-block__price,
.sales-content__inner .pricing-block__price {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: var(--space-2);
}

.pricing-block__was {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-bottom: var(--space-2);
}

.pricing-block__save {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.pricing-block__include-list {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
    text-align: left;
}

.pricing-block__include-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 2px;
    font-size: var(--text-base);
    line-height: 1.7;
}

.pricing-block__include-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: var(--weight-bold);
    width: 20px;
    text-align: center;
}

/* Promo pricing — urgency variant */
.pricing-block--promo {
    border-color: var(--color-accent);
    position: relative;
    overflow: visible;
}

.pricing-block--promo::before {
    content: 'LIMITED OFFER';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    padding: var(--space-1) var(--space-5);
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */

.btn-cta {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    padding: var(--space-4) var(--space-10);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(26,107,60,0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    line-height: var(--leading-snug);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,107,60,0.4);
    background: var(--color-primary-dark);
    color: #fff;
    text-decoration: none;
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26,107,60,0.3);
}

/* Orange CTA variant */
.btn-cta--orange {
    background: var(--color-accent);
    box-shadow: 0 4px 14px rgba(230,126,34,0.3);
}

.btn-cta--orange:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 6px 20px rgba(230,126,34,0.4);
}

/* CTA wrapper block */
.sales-cta-block {
    text-align: center;
    margin: var(--space-8) auto;
    max-width: 70%;
}

.sales-cta-block .btn-cta {
    display: inline-block;
    min-width: 60%;
    padding: var(--space-4) var(--space-8);
}

/* Tagline under CTA button — HERO ONLY. Hide everywhere else. */
.sales-hero .sales-cta-block__sub {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* Suppress tagline on all mid-page CTAs */
.sales-content__inner .sales-cta-block__sub,
.sales-section .sales-cta-block__sub,
.pricing-block .sales-cta-block__sub {
    display: none;
}

@media (max-width: 600px) {
    .btn-cta {
        display: block;
        width: 100%;
        padding: var(--space-5) var(--space-6);
    }

    .sales-cta-block {
        padding: 0 var(--space-2);
    }
}


/* ==========================================================================
   GUARANTEE
   ========================================================================== */

.guarantee-block {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin: var(--space-10) 0;
    background: var(--color-bg-warm);
    overflow: hidden;
}

/* Badge floats left inside the text — no separate column */
.guarantee-block__badge {
    float: left;
    width: 90px;
    height: auto;
    margin: 0 var(--space-6) var(--space-2) 0;
}

.guarantee-block__text h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-heading);
    margin-bottom: var(--space-3);
}

.guarantee-block__text p {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.guarantee-block__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .guarantee-block__badge {
        float: none;
        display: block;
        width: 70px;
        margin: 0 auto var(--space-4);
    }

    .guarantee-block {
        text-align: center;
    }
}


/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-list {
    margin: var(--space-8) 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border-light);
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-5) 0;
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    line-height: var(--leading-snug);
    transition: color var(--transition-fast);
}

.faq-item__question:hover {
    color: var(--color-primary);
}

/* +/- indicator */
.faq-item__question::after {
    content: '+';
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: var(--weight-normal);
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.faq-item.is-open .faq-item__question::after {
    content: '\2212';
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item__answer__inner {
    padding: 0 0 var(--space-6);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
}

.faq-item.is-open .faq-item__answer {
    max-height: 1000px;
}


/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */

.countdown-timer {
    display: inline-flex;
    gap: var(--space-3);
    font-variant-numeric: tabular-nums;
}

.countdown-timer__segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.countdown-timer__number {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: 1;
    color: var(--color-heading);
}

.countdown-timer__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-1);
}

/* Banner variant — compact, white text */
.countdown-timer--banner {
    gap: var(--space-1);
}

.countdown-timer--banner .countdown-timer__segment {
    flex-direction: row;
    gap: 2px;
    min-width: auto;
}

.countdown-timer--banner .countdown-timer__number {
    font-size: var(--text-base);
    color: #fff;
}

.countdown-timer--banner .countdown-timer__label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.8);
    margin-top: 0;
}

.countdown-timer--banner .countdown-timer__separator {
    color: rgba(255,255,255,0.5);
    font-weight: var(--weight-bold);
    margin: 0 2px;
}

/* Expired state */
.countdown-timer--expired {
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}


/* ==========================================================================
   COMPARISON TABLES
   ========================================================================== */

.sales-content__inner table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-8) 0;
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

.sales-content__inner table thead th {
    background: var(--color-bg-alt);
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 2px solid var(--color-border);
}

.sales-content__inner table tbody td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: top;
    color: var(--color-text);
}

.sales-content__inner table tbody tr:last-child td {
    border-bottom: none;
}

.sales-content__inner table tbody tr:hover {
    background: var(--color-bg-alt);
}

@media (max-width: 600px) {
    .sales-content__inner table,
    .sales-content__inner table thead,
    .sales-content__inner table tbody,
    .sales-content__inner table tr,
    .sales-content__inner table td,
    .sales-content__inner table th {
        display: block;
    }

    .sales-content__inner table thead {
        display: none;
    }

    .sales-content__inner table tbody td {
        padding-left: var(--space-4);
        border-bottom: none;
    }

    .sales-content__inner table tbody td::before {
        content: attr(data-th);
        display: block;
        font-weight: var(--weight-bold);
        color: var(--color-heading);
        margin-bottom: var(--space-1);
        font-size: var(--text-sm);
    }

    .sales-content__inner table tbody tr {
        border-bottom: 1px solid var(--color-border-light);
        padding: var(--space-4) 0;
    }
}


/* ==========================================================================
   TWO-COLUMN LAYOUTS
   ========================================================================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
    margin: var(--space-10) 0;
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse > * {
    direction: ltr;
}

.two-col img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .two-col,
    .two-col--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-6);
    }
}


/* ==========================================================================
   DIVIDERS & SEPARATORS
   ========================================================================== */

.sales-divider {
    border: none;
    height: 1px;
    background: var(--color-border-light);
    margin: var(--space-12) 0;
}

.sales-divider--ornament {
    border: none;
    height: auto;
    background: none;
    text-align: center;
    margin: var(--space-12) 0;
    overflow: visible;
}

.sales-divider--ornament::before {
    content: '\2022 \2022 \2022';
    color: var(--color-border);
    font-size: var(--text-xl);
    letter-spacing: 0.5em;
}


/* ==========================================================================
   IMAGES
   ========================================================================== */

.sales-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--space-6) 0;
}

.sales-img--rounded {
    border-radius: var(--radius-lg);
}

.sales-img--shadow {
    box-shadow: var(--shadow-lg);
}

.sales-img--float-left {
    float: left;
    max-width: 45%;
    margin: 0 var(--space-8) var(--space-4) 0;
}

.sales-img--float-right {
    float: right;
    max-width: 45%;
    margin: 0 0 var(--space-4) var(--space-8);
}

@media (max-width: 600px) {
    .sales-img--float-left,
    .sales-img--float-right {
        float: none;
        max-width: 100%;
        margin: var(--space-6) 0;
    }
}


/* ==========================================================================
   STICKY CTA BAR (shown via JS after scrolling past hero)
   ========================================================================== */

.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-5);
    text-align: center;
    z-index: var(--z-sticky);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.sticky-cta-bar.is-visible {
    transform: translateY(0);
}

.sticky-cta-bar .btn-cta {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-8);
}


/* ==========================================================================
   MOBILE RESPONSIVE — GLOBAL OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
    .sales-content__inner {
        padding: var(--space-8) var(--space-5);
    }

    .sales-section {
        padding: var(--space-10) var(--space-5);
    }

    .sales-page h1 {
        font-size: var(--text-3xl);
    }

    .sales-page h2 {
        font-size: var(--text-2xl);
        margin-top: var(--space-10);
    }

    .sales-page h3 {
        font-size: var(--text-xl);
    }

    .pricing-block {
        padding: var(--space-8) var(--space-5);
    }

    .testimonial-highlight {
        padding: var(--space-8) var(--space-5);
    }
}


/* ==========================================================================
   PAGE-SPECIFIC OVERRIDES
   ========================================================================== */

/* Feature grid — use bullet dots instead of checkmarks for name lists */
.feature-grid--names li::before {
    content: '\2022';
    font-size: var(--text-xl);
    top: -2px;
}

/* Pricing block — tighten internal heading spacing */
.pricing-block h2 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    font-size: var(--text-2xl);
}

.pricing-block p {
    text-align: center;
}

/* Pricing block — guarantee subtext */
.pricing-block__guarantee,
.sales-content__inner .pricing-block__guarantee {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-4);
    margin-bottom: 0;
    line-height: var(--leading-normal);
}

/* Pricing block — CTA button */
.pricing-block .btn-cta {
    display: block;
    width: 80%;
    margin: var(--space-6) auto 0;
}

/* Testimonial inline — tighter heading inside blockquote */
.testimonial-inline h3 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
    color: var(--color-heading);
}

/* Testimonial inline — cite should not be inside a p */
.testimonial-inline cite {
    display: block;
    margin-top: var(--space-3);
    font-style: normal;
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    color: var(--color-heading);
}

/* Signature image — centered, not floated */
.sales-content__inner img[src*="signature"] {
    float: none;
    display: block;
    margin: var(--space-4) 0;
}

/* Product mockup images — don't override explicit float classes */

/* Guarantee / camera angles image — centered */
.sales-content__inner img[src*="guarantee"] {
    float: none;
    display: block;
    margin: var(--space-6) auto;
    max-width: 100%;
}

/* Add to Cart button images — slightly larger on desktop */
.sales-content__inner a[href*="OrderBox"] img {
    max-width: 340px;
}

/* PS section — slightly muted */
.sales-content__inner p > strong:first-child:only-child {
    color: var(--color-heading);
}

/* Feature grid 3 columns on wider screens for long lists */
.feature-grid--names {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3) var(--space-6);
}

@media (max-width: 768px) {
    .feature-grid--names {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .feature-grid--names {
        grid-template-columns: 1fr;
    }
}
