/* learn-thai/style.css */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-body: #334155;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --danger-color: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

#cta-box { scroll-margin-top: 80px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HERO ===== */
.hero {
    padding: 2rem 0 1.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

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

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-benefits {
    list-style: none;
    text-align: left;
    max-width: 380px;
    margin: 0 auto 1rem;
}

.hero-benefits li {
    padding: 0.15rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.hero-benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.hero-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.hero-cta-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hero-trust {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.trust-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===== JUMP NAV BAR ===== */
#intro,
#thai-difficult,
#thai-script,
#roadmap,
#mistakes,
#cta-box {
    scroll-margin-top: 88px;
}

.jump-nav-section {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.jump-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 0.6rem;
    max-width: 920px;
    margin: 0 auto;
}

.jump-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.jump-nav a:hover {
    color: var(--primary-color);
    border-color: rgba(37, 99, 235, 0.35);
    background: #f8fbff;
}



/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 2rem 0;
}

.content-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

/* ===== PROSE CONTENT (intro, is-thai-hard, thai-script, etc.) ===== */
.content-wrapper p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.content-wrapper p:last-child {
    margin-bottom: 0;
}

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.content-wrapper a:hover {
    text-decoration-color: var(--primary-color);
}

/* Thai text + clickable audio */
.thai-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.thai-clickable {
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 4px;
    border-radius: 3px;
    position: relative;
    display: inline-block;
}

.thai-clickable:hover {
    background-color: #e0f2fe;
    transform: scale(1.05);
}

.thai-clickable:active {
    background-color: #0284c7;
    color: white;
}

/* Thai audio comparison box */
.thai-compare-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}

.thai-compare-box p.thai-compare-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-weight: 600;
}


.thai-compare-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.thai-compare-item {
    text-align: center;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.thai-compare-item:hover {
    background-color: #e0f2fe;
}

.thai-compare-item:active {
    background-color: #0284c7;
}

.thai-compare-item:active .thai-compare-thai,
.thai-compare-item:active .thai-compare-rom {
    color: white;
}

.thai-compare-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thai-compare-thai {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

/* "But Brett..." dialogue blocks */
.brett-dialogue {
    background: #f8fafc;
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    border-radius: 0 6px 6px 0;
}

.brett-dialogue p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.brett-dialogue p:last-child {
    margin-bottom: 0;
}

.brett-dialogue strong {
    color: var(--text-dark);
}

/* ===== SECTION INTRO / NOTE ===== */
.section-intro {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 540px;
    margin: -0.25rem auto 1.25rem;
    line-height: 1.5;
}

.section-note {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* ===== ABOUT AUTHOR ===== */
.about-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.about-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* ===== VIDEO ===== */
.video-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.video-section {
    text-align: center;
    margin-top: 1.5rem;
}

.video-wrapper {
    max-width: 500px;
    margin: 0.5rem auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper lite-youtube {
    border-radius: 10px;
}

/* ===== RESOURCE GRID ===== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.resource-card {
    background: white;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.resource-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
}

.resource-card p {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin: 0;
}

/* ===== MID CTA BUTTON ===== */
.mid-cta-section {
    padding: 0.5rem 0;
}

.mid-cta-btn {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.mid-cta-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== ROADMAP ===== */
.roadmap {
    position: relative;
    padding-left: 2.5rem;
}

.roadmap::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.roadmap-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    position: relative;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.roadmap-marker {
    position: absolute;
    left: -2.5rem;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
}

.roadmap-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.1rem;
}

.roadmap-time {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 0.15rem;
}

.roadmap-body p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

/* ===== COMMON MISTAKES ===== */
.mistakes-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mistake-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.mistake-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.mistake-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #b91c1c;
    margin-bottom: 0.3rem;
}

.mistake-item p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

/* ===== FAQ ===== */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    background: white;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-toggle {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    display: none;
    padding: 0 1rem 0.75rem;
}

.faq-answer p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-gray);
    margin: 0;
}

/* ===== CTA BOX ===== */
.cta-box {
    background: #f8fafc;
    border: 2px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cta-box h2,
.cta-box h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cta-box .cta-sub {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .social-proof {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cta-box .optin-form {
    max-width: 440px;
    margin: 0 auto 1rem;
}

.cta-box .optin-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: white;
    color: var(--text-dark);
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.cta-box .optin-form input[type="email"]::placeholder {
    color: #94a3b8;
}

.cta-box .optin-form input[type="email"]:focus {
    border-color: var(--primary-color);
}

.cta-box .optin-form .h-captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.cta-box .optin-form input[type="submit"],
.cta-box .optin-form .btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-box .optin-form input[type="submit"]:hover,
.cta-box .optin-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta-box .checkmarks {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.cta-box .checkmarks p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.cta-box .check {
    color: var(--success-color);
    font-weight: 700;
}

/* ===== TESTIMONIAL + UTILITY ===== */
.opt-in-testimonial {
    margin: 1rem auto 0;
    max-width: 560px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-gray);
    font-style: italic;
}

.opt-in-testimonial cite {
    display: block;
    margin-top: 0.35rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 0 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .trust-items {
        gap: 1.25rem;
    }

    .trust-number {
        font-size: 1.15rem;
    }

    .trust-label {
        font-size: 0.7rem;
    }
    
    .jump-nav-section {
        padding: 0.65rem 0;
    }

    .jump-nav {
        justify-content: center;
        gap: 0.5rem;
    }

    .jump-nav a {
        font-size: 0.8rem;
        padding: 0.48rem 0.78rem;
    }

    .content-section {
        padding: 1.5rem 0;
    }

    .section-heading {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .content-wrapper p {
        font-size: 0.95rem;
    }

    .about-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .author-photo {
        width: 100px;
        height: 100px;
    }

    .video-wrapper {
        max-width: 100%;
    }

    .resource-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .resource-card {
        padding: 0.6rem;
    }

    .roadmap-step {
        margin-bottom: 1rem;
    }

    .brett-dialogue {
        padding: 0.6rem 0.85rem;
        margin: 1rem 0;
    }

    .cta-box {
        padding: 1.5rem 1rem;
    }

    .cta-box .checkmarks {
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-benefits {
        max-width: 100%;
    }

    .trust-items {
        gap: 0.75rem;
    }

    .section-heading {
        font-size: 1.2rem;
    }

    .section-intro {
        font-size: 0.85rem;
    }

    .resource-grid {
        grid-template-columns: 1fr 1fr;
    }
}
