/* ==========================================================================
   0. LOCAL FONT FACES (self-hosted, no external requests)
   ========================================================================== */
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Cinzel-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/Cinzel-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/PlusJakartaSans-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/PlusJakartaSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/PlusJakartaSans-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
}

/* ==========================================================================
   1. CSS VARIABLES & SYSTEM DESIGN
   ========================================================================== */
:root {
    --bg-primary: #0F1412;
    --bg-secondary: #161D1A;
    --bg-tertiary: #1D2622;
    --bg-hover: #1D2622;
    --bg-card: rgba(29, 38, 34, 0.6);
    --bg-glass: rgba(22, 29, 26, 0.75);

    --text-primary: #ECF1EF;
    --text-secondary: #9EAEA8;
    --text-muted: #6B7B74;

    --accent-sage: #8A9A86;
    --accent-sage-light: #B4C2B1;
    --accent-sage-glow: rgba(138, 154, 134, 0.15);
    --accent-gold: #D4AF37;
    --accent-gold-soft: rgba(212, 175, 55, 0.12);

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-sage: rgba(138, 154, 134, 0.25);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(138, 154, 134, 0.12);

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max: 1140px;
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body), sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading), serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   3. TYPOGRAPHY & UTILITIES
   ========================================================================== */
.text-accent { color: var(--accent-sage-light); }
.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--accent-sage-glow);
    border: 1px solid var(--border-sage);
    color: var(--accent-sage-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.section-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

/* ==========================================================================
   4. COMPONENTS & BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.15rem 2.25rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #A3B3A0 0%, #788874 100%);
    color: #0A0F0D;
    box-shadow: 0 4px 25px rgba(138, 154, 134, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(138, 154, 134, 0.45);
    background: linear-gradient(135deg, #B4C4B1 0%, #899985 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-sage);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

.btn .btn-sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
}

.card:hover {
    border-color: var(--border-sage);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

/* Top Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #161D1A 0%, #1D2622 50%, #161D1A 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    text-align: center;
    color: var(--accent-sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.2rem 0;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: var(--font-heading), serif;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-sage);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-sage);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-sage-light);
}

.nav-cta {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    padding: 5rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 154, 134, 0.08) 0%, rgba(15, 20, 18, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.guarantee-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guarantee-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-sage);
}

/* Interactive Product Mockup Placeholder */
.hero-mockup-wrapper {
    margin-top: 2rem;
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glow);
}

.mockup-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
    min-height: 380px;
}

.mockup-preview-main {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(29, 38, 34, 0.8) 0%, rgba(22, 29, 26, 0.9) 100%);
    position: relative;
}

.mockup-badge {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-sage-light);
    margin-bottom: 1rem;
}

.mockup-title {
    font-family: var(--font-heading), serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mockup-pages {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mockup-page-mini {
    flex: 1;
    background: rgba(15, 20, 18, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    height: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    width: 100%;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.accent { background: var(--border-sage); width: 80%; }

.mockup-preview-side {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.feature-item-mini {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-item-mini svg {
    width: 18px;
    height: 18px;
    color: var(--accent-sage-light);
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item-mini p {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.feature-item-mini span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   7. PROBLEM & IDENTIFICATION SECTION
   ========================================================================== */
.section-problem {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.problem-grid {
    margin-top: 3rem;
}

.problem-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.problem-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-sage);
    flex-shrink: 0;
}

.problem-icon svg { width: 20px; height: 20px; }

.problem-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
}

.problem-card p {
    font-size: 0.95rem;
    line-height: 1.55;
}

.agitation-box {
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(29, 38, 34, 0.5) 0%, rgba(22, 29, 26, 0.8) 100%);
    border: 1px solid var(--border-sage);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.agitation-box h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--accent-sage-light);
}

.agitation-box p {
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* ==========================================================================
   8. MECHANISM & SOLUTION SECTION
   ========================================================================== */
.section-solution {
    padding: 7rem 0;
}

.mechanism-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.mechanism-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.mechanism-content p {
    margin-bottom: 1.5rem;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-sage-glow);
    border: 1px solid var(--border-sage);
    color: var(--accent-sage-light);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text h4 {
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.step-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.comparison-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comp-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.comp-header div:last-child {
    color: var(--accent-sage-light);
}

.comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

.comp-row:last-child { border-bottom: none; }

.comp-bad { color: var(--text-muted); text-decoration: line-through; }
.comp-good { color: var(--text-primary); font-weight: 500; }

/* ==========================================================================
   9. PRODUCT BREAKDOWN SECTION
   ========================================================================== */
.section-product {
    padding: 7rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.chapter-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
}

.chapter-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-sage-light);
    margin-bottom: 0.75rem;
    display: block;
}

.chapter-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
}

.chapter-card p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.chapter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapter-list li::before {
    content: '•';
    color: var(--accent-sage);
}

/* ==========================================================================
   10. OFFER & BONUSES SECTION
   ========================================================================== */
.section-bonuses {
    padding: 6rem 0;
}

.bonus-card {
    background: var(--bg-card);
    border: 1px solid var(--border-sage);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bonus-card h3 {
    font-family: var(--font-body), sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bonus-badge {
    align-self: flex-start;
    background: var(--accent-gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.bonus-val {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 1rem;
    display: block;
}

/* Pricing Card Component */
.pricing-wrapper {
    max-width: 780px;
    margin: 4rem auto 0 auto;
    background: linear-gradient(145deg, #1A231F 0%, #121815 100%);
    border: 1px solid var(--border-sage);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    position: relative;
    text-align: center;
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #A3B3A0 0%, #788874 100%);
    color: #0F1412;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 1.5rem;
    border-radius: var(--radius-pill);
}

.price-display {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.price-old {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-family: var(--font-heading), serif;
    font-size: 3.8rem;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--accent-sage-light);
    display: block;
    margin-top: 0.5rem;
}

.stack-list {
    text-align: left;
    max-width: 520px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.75rem 0;
}

.stack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98rem;
}

.stack-item span:first-child {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.stack-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-sage);
}

.stack-val {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ==========================================================================
   11. FAQ & OBJECTION HANDLING
   ========================================================================== */
.section-faq {
    padding: 7rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.faq-accordion {
    max-width: 780px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-sage);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
    color: var(--accent-sage);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   12. FOOTER & FINAL CTA
   ========================================================================== */
.final-cta {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

footer {
    background: #090C0B;
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3, .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mechanism-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .mockup-container {
        grid-template-columns: 1fr;
    }
    .mockup-preview-side {
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }

    .grid-2, .grid-3, .chapters-grid {
        grid-template-columns: 1fr;
    }

    .hero-title { font-size: 2.2rem; }
    .hero { padding: 3rem 0 4rem 0; }

    .pricing-wrapper {
        padding: 2.5rem 1.25rem;
    }

    .price-current {
        font-size: 3rem;
    }

    .problem-card {
        flex-direction: column;
    }
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }

    .grid-2, .grid-3, .chapters-grid {
        grid-template-columns: 1fr;
    }

    .hero-title { font-size: 2.2rem; }
    .hero { padding: 3rem 0 4rem 0; }

    .pricing-wrapper {
        padding: 2.5rem 1.25rem;
    }

    .price-current {
        font-size: 3rem;
    }

    .problem-card {
        flex-direction: column;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu.active {
        display: flex;
    }
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.checkout-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.checkout-summary, .checkout-form {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.checkout-summary h2, .checkout-form h2 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.4rem;
}

.checkout-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-sage);
    margin: 1rem 0;
}

.checkout-item-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.checkout-item-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.checkout-form .form-group { margin-bottom: 1.2rem; }

.checkout-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.checkout-btn-pay {
    display: block;
    width: 100%;
    background-color: var(--accent-sage);
    color: var(--bg-primary);
    font-weight: bold;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.checkout-btn-pay:hover {
    background-color: var(--accent-sage-light);
}

.checkout-secure-badge {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.checkout-alert {
    grid-column: 1 / -1;
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #f8d7da;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   THANK YOU PAGE
   ========================================================================== */
.thankyou-card {
    background-color: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.thankyou-card .icon { font-size: 3rem; margin-bottom: 1rem; }
.thankyou-card h1 { color: #ffffff; margin-bottom: 1rem; }
.thankyou-card p { color: var(--text-secondary); margin-bottom: 2rem; }

.thankyou-download-list {
    text-align: left;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thankyou-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.thankyou-download-item span { font-weight: bold; }

.thankyou-btn-download {
    background-color: var(--accent-sage);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.thankyou-btn-download:hover {
    background-color: var(--accent-sage-light);
}

/* Versteckt das Source-Template */
.chapter-source.hidden {
    display: none !important;
}

/* Stil für die geöffnete Karte */
.chapter-card.expanded {
    grid-column: 1 / -1; /* Nimmt im Grid die volle Breite ein */
    cursor: default;
}

.chapter-card.expanded .chapter-teaser {
    display: none !important;
}

.chapter-card.expanded .chapter-source.hidden {
    display: block !important;
}

.chapter-card.expanded .chapter-badge,
.chapter-card.expanded .chapter-detail-view > h2 {
    cursor: pointer;
}

.chapter-detail-view {
    /* Verhindert, dass lange Wörter über den Rand hinausstehen */
    overflow-wrap: break-word;
    word-break: break-word;

    /* Aktiviert automatische Silbentrennung mit Bindestrich */
    hyphens: auto;
    -webkit-hyphens: auto;
    position: relative;
}

/* Bestehendes CSS für Desktop */
.btn-close-chapter {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-close-chapter:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

/* Anpassung für mobile Geräte */
@media (max-width: 640px) {
    /* Ausreichend Platz oben für den Button schaffen */
    .chapter-detail-view {
        position: relative;
        padding-top: 4rem; /* Erhöht den Innenabstand oben */
        /* Verhindert, dass lange Wörter über den Rand hinausstehen */
        overflow-wrap: break-word;
        word-break: break-word;

        /* Aktiviert automatische Silbentrennung mit Bindestrich */
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .btn-close-chapter {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.6rem;
    }
}

.chapter-detail-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
}

.btn-close-chapter-bottom {
    position: static;
}

.step-list {
    padding-left: 1.5rem; /* Schiebt die Ziffern nach rechts auf Höhe des Fließtexts */
    margin-left: 0;
    list-style-position: outside; /* Hält den Einzug für mehrzeiligen Text sauber */
}

/* Optional: Besserer Abstand zwischen den einzelnen Punkten */
.step-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem; /* Etwas Abstand zwischen Zahl und Text */
}

.chapter-detail-view {
    /* Verhindert, dass lange Wörter über den Rand hinausstehen */
    overflow-wrap: break-word;
    word-break: break-word;

    /* Aktiviert automatische Silbentrennung mit Bindestrich */
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Blog navigation - sticky sidebar */
.blog-nav {
    position: sticky;
    top: 5rem;
    float: left;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}
.blog-nav a {
    display: block;
    word-break: break-word;
    line-height: 1.25;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
}
.blog-nav a:hover {
    color: var(--accent-sage-light);
    background: var(--bg-glass);
}

/* Mobile overlay for blog nav */
.blog-nav-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    background: var(--accent-sage);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

@media (max-width: 992px) {
    .blog-nav {
        position: fixed;
        top: 0; left: 0;
        width: 260px;
        height: 100vh;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border-subtle);
        padding: 2rem 1.25rem;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .blog-nav.open {
        transform: translateX(0);
    }
    body > div[style*="display:grid"] {
        display: block !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    body > div[style*="display:grid"] > main {
        max-width: 100% !important;
        width: 100% !important;
    }
    .blog-nav-toggle {
        display: block;
    }
}
