/* ==========================================================================
   eBook Sell Theme — Main Design System
   Premium, minimal, conversion-focused. No frameworks, no bloat.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 16px;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn--cta {
    background: var(--color-cta);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn--cta:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-primary);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 18px;
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 16px;
}

.site-header__logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary);
}

.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header__menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.site-header__cta {
    padding: 10px 20px;
    font-size: 14px;
}

/* ---------- Section base ---------- */
.section {
    padding: 64px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 40px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 56px 0 40px;
    background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero__headline {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.hero__desc {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.hero__social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero__social-proof .count {
    color: var(--color-text-muted);
    font-weight: 400;
}

.hero__price-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.price-original {
    color: var(--color-text-muted);
    font-size: 18px;
}

.price-sale {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--color-primary);
}

.price-badge {
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 99px;
}

.price-offer-text {
    width: 100%;
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.hero__cta {
    max-width: 420px;
}

.hero__cta-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero__trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero__mockup {
    display: flex;
    justify-content: center;
}

.ebook-3d-mockup {
    max-width: 340px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-12deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.ebook-3d-mockup:hover {
    transform: perspective(1000px) rotateY(-6deg) rotateX(1deg);
}

.ebook-3d-mockup img {
    border-radius: var(--radius-md);
}

/* ---------- Preview ---------- */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.preview-grid__item {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.preview-grid__item:hover {
    transform: translateY(-4px);
}

/* ---------- Sales Video ---------- */
.video-section {
    padding-top: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

/* 16:9 landscape sales video — full container width. */
.video-wrapper--landscape {
    max-width: 860px;
    aspect-ratio: 16 / 9;
}

/* 9:16 vertical Reel/Short-style video — capped narrow width so it
   doesn't stretch full-bleed on desktop, still full-width on mobile. */
.video-wrapper--vertical {
    max-width: 380px;
    aspect-ratio: 9 / 16;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- What You Get ---------- */
.what-you-get-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.wyg-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 24px;
}

.wyg-card span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* ---------- Benefits ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.benefit-card__icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.benefit-card__title {
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-card__desc {
    color: var(--color-text-muted);
    font-size: 15px;
}

/* ---------- Chapters ---------- */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 760px;
    margin: 0 auto;
}

.chapter-row {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.chapter-row__number {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-accent);
    min-width: 44px;
}

.chapter-row__content h3 {
    margin-bottom: 4px;
    font-size: 18px;
}

.chapter-row__content p {
    color: var(--color-text-muted);
    margin: 0;
}

/* ---------- Audience ---------- */
.audience-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.audience-item {
    background: var(--color-bg-soft);
    border-radius: 99px;
    padding: 10px 20px;
    font-weight: 600;
}

/* ---------- Bonus ---------- */
.bonus-section {
    background: #fffbeb;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.bonus-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.bonus-card__img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.bonus-card__value {
    margin-top: 10px;
}

.bonus-card__value s {
    color: var(--color-text-muted);
    margin-right: 6px;
}

.bonus-card__value strong {
    color: var(--color-cta);
}

.bonus-total {
    text-align: center;
    margin-top: 28px;
    font-size: 18px;
}

.bonus-total s {
    color: var(--color-text-muted);
    margin-right: 8px;
}

.bonus-total strong {
    color: var(--color-cta);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimonial-card__photo {
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__photo--placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-card__stars {
    font-size: 12px;
}

.testimonial-card__review {
    color: var(--color-text-muted);
    font-style: italic;
}

/* ---------- Final Offer ---------- */
.offer-section {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
}

.offer-section__inner {
    max-width: 560px;
}

.offer-section__label {
    color: #d1d5db;
    font-size: 18px;
    margin-bottom: 8px;
}

.price-original--lg {
    color: #9ca3af;
    font-size: 22px;
}

.offer-section__price {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    margin: 8px 0;
}

.offer-section__badge {
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 24px;
}

.offer-section__trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #d1d5db;
}

/* ---------- FAQ ---------- */
.faq-accordion {
    max-width: 720px;
    margin: 0 auto;
}

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

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
}

.faq-item__icon {
    font-size: 20px;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 0 18px;
    color: var(--color-text-muted);
}

/* ---------- Archive / Homepage cards ---------- */
.ebook-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.ebook-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ebook-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ebook-card__cover {
    position: relative;
    display: block;
}

.ebook-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-cta);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
}

.ebook-card__body {
    padding: 18px;
}

.ebook-card__title {
    font-size: 17px;
    margin-bottom: 8px;
}

.ebook-card__excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.ebook-card__price {
    margin-bottom: 14px;
}

.ebook-card__price s {
    color: var(--color-text-muted);
    margin-right: 8px;
}

.ebook-card__actions {
    display: flex;
    gap: 10px;
}

.ebook-card__actions .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
}

/* ---------- Home hero (multi-product homepage) ---------- */
.home-hero {
    text-align: center;
    padding: 60px 0 20px;
}

.home-hero__tagline {
    color: var(--color-text-muted);
    font-size: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    margin-top: 40px;
}

.site-footer__inner {
    text-align: center;
}

.site-footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0;
    font-size: 14px;
}

.site-footer__copyright,
.site-footer__support {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-cta__price s {
    color: var(--color-text-muted);
    font-size: 13px;
    display: block;
}

.mobile-sticky-cta__price strong {
    font-size: 18px;
}

.mobile-sticky-cta__btn {
    flex: 1;
    max-width: 220px;
    padding: 12px 20px;
}

/* ---------- Static pages (legal etc) ---------- */
.static-page-section__inner {
    max-width: 760px;
}

.static-page-title {
    margin-bottom: 24px;
}

/* ---------- Not found / errors ---------- */
.not-found-section__inner,
.payment-failed-section__inner,
.download-error-section {
    text-align: center;
}

.payment-failed-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.payment-failed-support {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ---------- Thank-you page ---------- */
.thank-you-section__inner {
    max-width: 520px;
    text-align: center;
}

.thank-you-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.thank-you-subtext {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.thank-you-card {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 20px;
}

.thank-you-card h2 {
    margin-bottom: 8px;
}

.thank-you-card p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.thank-you-note {
    font-size: 14px;
    color: var(--color-text-muted);
}

.thank-you-payment-details {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    text-align: left;
}

.thank-you-payment-details h3 {
    font-size: 16px;
    margin-bottom: 14px;
    text-align: center;
}

.payment-details-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-details-table td {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

.payment-details-table td:first-child {
    color: var(--color-text-muted);
    width: 40%;
}

.payment-details-table td:last-child {
    text-align: right;
    font-weight: 600;
    word-break: break-word;
}

.payment-details-table tr:last-child td {
    border-bottom: none;
}

.thank-you-order-id {
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}
