:root {
  --primary: #0B1F33;
  --secondary: #176B4D;
  --accent: #D4A72C;
  --background: #F8F9F6;
  --surface: #FFFFFF;
  --text: #17202A;
  --muted: #667085;
  --border: #E5E7EB;
  
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* For sticky CTA */
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Typography */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 44px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(23, 107, 77, 0.2);
}

@media (min-width: 768px) {
    .cta-button {
        width: auto;
    }
}

.cta-button:hover, .cta-button:focus {
    background-color: #12553d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(23, 107, 77, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-subtext {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.5rem;
    text-align: center;
}

/* Layout / Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #ffffff, var(--background));
    padding: 3rem 0 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-visual {
    margin: 3rem auto 0;
    max-width: 400px;
    position: relative;
}

.real-ebook-cover {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 4px 12px 12px 4px;
    box-shadow: 
        -15px 0 20px -10px rgba(0,0,0,0.1), /* Spine shadow */
        15px 25px 50px rgba(11, 31, 51, 0.3); /* Main shadow */
    transform: perspective(1200px) rotateY(-12deg);
    transition: transform 0.5s ease;
    border-left: 12px solid #222; /* Dark spine edge */
    display: block;
    background-color: var(--primary); /* Fallback */
    min-height: 400px;
}

.real-ebook-cover:hover {
    transform: perspective(1200px) rotateY(0deg);
}

@media (min-width: 768px) {
    .hero-section {
        text-align: left;
        padding: 5rem 0;
    }
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-visual {
        margin: 0;
    }
}

/* Trust Bar */
.trust-bar {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem 0;
}

.trust-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--accent);
}

@media (min-width: 768px) {
    .trust-flex {
        flex-direction: row;
        gap: 3rem;
    }
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.problem-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.problem-icon {
    color: #e74c3c;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Transformation Section */
.transformation-section {
    background-color: var(--primary);
    color: white;
}

.transformation-section .section-title {
    color: white;
}

.transform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.transform-card {
    background-color: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.transform-card h3 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.transform-card p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

@media (min-width: 768px) {
    .transform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* E-book Preview */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.preview-card {
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: var(--muted);
    font-weight: 500;
}

.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Who is this for */
.who-for-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.who-for-card {
    background-color: var(--surface);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid var(--border);
}

.who-for-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .who-for-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Who is this NOT for */
.not-for-section {
    background-color: #fdf5f5;
    border-top: 1px solid #f9e1e1;
    border-bottom: 1px solid #f9e1e1;
}

.not-for-content {
    max-width: 700px;
    margin: 0 auto;
}

.not-for-list {
    margin: 2rem 0;
}

.not-for-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.not-for-list svg {
    color: #e74c3c;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Emotional Section */
.emotional-section {
    background-color: var(--surface);
    text-align: center;
    padding: 6rem 1.5rem;
}

.emotional-content {
    max-width: 800px;
    margin: 0 auto;
}

.emotional-text-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.emotional-text-small {
    font-size: 1.25rem;
    color: var(--muted);
}

@media (min-width: 768px) {
    .emotional-text-large {
        font-size: 3rem;
    }
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -50%;
        width: 100%;
        height: 2px;
        background-color: var(--border);
        z-index: -1;
    }
}

/* Price Section */
.price-card {
    background-color: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.price-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-subtitle {
    color: var(--muted);
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--muted);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

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

/* Final CTA */
.final-cta {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 5rem 1.5rem;
}

.final-cta .section-title {
    color: white;
    margin-bottom: 1rem;
}

.final-cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--surface);
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--muted);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    padding: 1rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    display: flex;
    justify-content: center;
}

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

@media (min-width: 769px) {
    .sticky-mobile-cta {
        display: none;
    }
}

/* Animations & Reduced Motion */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .real-ebook-cover, .real-ebook-cover:hover {
        transform: none;
    }
}
