/*
 * 這是首頁專用的 CSS 樣式
 * 它包含了語言切換器和首頁卡片的樣式
 */

/* Top bar: language switcher on the left, auth chip on the right, both
   in-flow inside .homepage-container so they share the page's max-width.
   Replaces the previous floating-chip-top-right pattern that looked
   detached from the centered content on wide screens. */
#top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 1.5em;
    gap: 12px;
}

/* Language switcher container — left side of #top-bar. Contains the
   <select id="learner-select">. */
#language-switcher-container {
    font-family: inherit;
    display: flex;
    align-items: center;
}

/* Auth chip variant when it lives INLINE inside #top-bar (instead of the
   default position:fixed top-right). Chained .auth-chip.auth-chip-inline
   to beat the later .auth-chip { position: fixed } rule on specificity. */
.auth-chip.auth-chip-inline {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    top: auto;
    right: auto;
    z-index: auto;
    font-size: 0.85rem;
    gap: 8px;
}

#learner-select {
    font: inherit;
    font-size: 0.92rem;
    color: #333;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 5px 10px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
#learner-select:hover {
    border-color: #6a9acb;
}
#learner-select:focus {
    outline: none;
    border-color: #4f84b9;
    box-shadow: 0 0 0 3px rgba(79, 132, 185, 0.15);
}

/* --- 其餘的首頁樣式 --- */
body {
    background-color: var(--light-grey);
}

.homepage-container {
    max-width: 760px;
    margin: 15px auto;
    padding: 12px;
}

.intro-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 560px) {
    .intro-title {
        font-size: 1.6rem;
    }
}

.intro-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin: 30px 0 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    padding: 20px;
    text-align: left;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card p {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.tool-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
}

.tool-card:hover {
    box-shadow: 0 6px 18px var(--shadow-color);
}

.tool-card h2 {
    font-size: 1.8rem;
}

/* --- Comparison Table --- */
.compare-table {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}
.compare-header {
    display: grid;
    grid-template-columns: 0.9fr repeat(4, 1fr);
    background: #f0f4f8;
    font-weight: 600;
    color: #444;
}
.compare-header div, .compare-row div {
    padding: 10px 14px;
    text-align: center;
}
.compare-header div:first-child,
.compare-row div:first-child {
    text-align: left;
}
.compare-col-label {
    font-size: 0.85rem;
    position: relative;
}
.has-tooltip {
    cursor: pointer;
    text-decoration: underline dotted #aaa;
    text-underline-offset: 3px;
}
.col-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 14px 16px;
    width: 240px;
    text-align: left;
    z-index: 100;
    font-weight: 400;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #444;
    pointer-events: none;
}
.col-tooltip strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}
.col-tooltip p { margin: 0; }
.col-tooltip-left {
    left: auto;
    right: 0;
    transform: none;
}
.paro-tip-list {
    margin: 4px 0 0;
    padding-left: 16px;
}
.paro-tip-list li {
    margin-bottom: 4px;
    color: #4f84b9;
}
.has-tooltip:hover .col-tooltip {
    display: block;
}
.compare-col-label.paro-col {
    color: var(--primary-color);
    font-weight: 700;
    background: var(--secondary-color);
}
.compare-header div:first-child {
    background: #e8eef3;
}
.compare-row {
    display: grid;
    grid-template-columns: 0.9fr repeat(4, 1fr);
    border-top: 1px solid var(--border-color);
}
.compare-row:nth-child(even) {
    background: #fafafa;
}
.compare-feature {
    color: #222;
    font-weight: 500;
    background: #e8eef3;
}
.compare-feature small {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}
.paro-col {
    font-weight: 600;
    color: var(--primary-color);
    background: #eef4fb;
}
.col-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 560px) {
    .compare-header,
    .compare-row {
        grid-template-columns: 0.9fr repeat(4, 1fr);
        font-size: 0.78rem;
    }
    .compare-header div,
    .compare-row div {
        padding: 6px 8px;
        word-break: keep-all;
    }
    .compare-feature small {
        font-size: 0.7rem;
    }
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 20px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}

.feature-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* --- CTA Button --- */
.cta-btn {
    display: inline-block;
    background-color: #4f84b9;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin: 4px auto 40px;
    display: block;
    text-align: center;
    max-width: 320px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.cta-btn:hover {
    background-color: #3a6fa3;
    transform: translateY(-2px);
}

/* --- Pricing Modal --- */
.pricing-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pricing-modal[hidden] {
    display: none;
}
.pricing-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.pricing-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.pricing-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
    text-align: center;
}
.pricing-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
}
.pricing-close-btn:hover { color: #555; }

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.plan-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}
.plan-icon { font-size: 1.4rem; margin-bottom: 4px; }
.plan-name { font-size: 0.8rem; font-weight: 600; color: #444; margin-bottom: 6px; }
.plan-price { font-size: 1.3rem; font-weight: 700; color: #4f84b9; }
.plan-period { font-size: 0.75rem; font-weight: 400; color: #888; }
/* Optional struck-through original price shown immediately before the
   special-offer price. Smaller + greyed so the eye still lands on the
   sale number; the strikethrough does the "before vs now" job. */
.plan-original-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    margin-right: 4px;
    vertical-align: 1px;
}
/* Annual / Beta promo tagline. Sits between price and feature desc as a
   secondary call-out — pale amber background, rounded, compact. */
.plan-beta-offer {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: #fff4dc;
    color: #8a5a14;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.5;
}
.plan-desc { font-size: 0.75rem; color: #777; margin-top: 6px; line-height: 1.4; }

.pricing-cta { margin: 0 auto; }

/* --- Guide Modal --- */
.guide-modal-card { max-width: 520px; }

.guide-step { margin-bottom: 20px; }
.guide-step-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4f84b9;
    margin-bottom: 6px;
}
.guide-step-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 10px;
}
.guide-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.guide-item {
    background: #f0f4f8;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    color: #4f84b9;
    font-weight: 500;
}
.guide-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: #888;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin: 16px 0 0;
}

/* Clickable feature card */
.feature-card-pricing {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card-pricing:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.feature-card-hint {
    font-size: 0.8rem;
    color: #4f84b9;
    margin-top: 10px;
    font-weight: 500;
}

/* --- Auth chip --- */
.auth-chip {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.auth-signin-btn {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
}
.auth-user { display: inline-flex; align-items: center; gap: 8px; }
.auth-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.auth-avatar-emoji {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; font-size: 16px; line-height: 1; user-select: none;
}
.auth-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Same as /v1: name is a link to /user dashboard. No underline by default,
   subtle underline + accent color on hover. */
.auth-name-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.auth-name-link:hover {
  text-decoration: underline;
  color: #4f84b9;
}
.auth-link {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
}
.auth-link:hover { color: #1f2937; }

/* --- Language cards: taster variant (rotation-free cards get a badge) --- */
.card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #0c7a89;
    background: #e0f2f7;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.card-taster {
    border: 2px solid #b3e0e9;
    position: relative;
}
.card-taster:hover {
    border-color: var(--primary-color);
}

/* "Most Popular" featured plan card */
.plan-card-featured {
    position: relative;
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(79, 132, 185, 0.18);
}
.plan-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Learning Center / B2B "Contact us" plan card */
.plan-card-contact {
    background: linear-gradient(135deg, #f9fafb 0%, #e0f2f7 100%);
    border: 1px dashed #93c5fd;
}
.plan-contact {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: #fff;
    color: #0c7a89;
    border: 1px solid #b3e0e9;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background var(--transition-speed) ease;
}
.plan-contact:hover {
    background: #e0f2f7;
}


/* Inline pricing section — reuses .plans-grid + .plan-card from the modal,
   but lives directly in the page flow (between Languages and Footer).
   Wider grid breakpoint than the modal: 4-up on desktop, 2-up on tablet,
   stacked on phone. */
#pricingInlineGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
    margin-bottom: 36px;
}
@media (max-width: 720px) {
    #pricingInlineGrid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 420px) {
    #pricingInlineGrid {
        grid-template-columns: 1fr;
    }
}

/* Page footer — legal links + copyright. Subtle, sticks to bottom of
   content (page is short on tall screens, so it's not a fixed footer). */
.page-footer {
    margin-top: 40px;
    padding: 24px 16px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafafa;
}
.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #888;
    font-size: 0.82rem;
}
.footer-links {
    margin-bottom: 8px;
}
.footer-link {
    color: #6a9acb;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
    color: #4f84b9;
}
.footer-sep {
    margin: 0 8px;
    color: #ccc;
}
.footer-copy {
    color: #999;
    font-size: 0.75rem;
}

/* ─── 2026-04-30: Demo / Testimonials / FAQ / About / Contact / dual-CTA ─── */

/* Dual CTA row — main CTA + secondary "Try free lesson" side by side. */
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 8px 0 24px;
}
.cta-btn-secondary {
    background: transparent;
    color: #4f84b9;
    border: 1.5px solid #4f84b9;
    box-shadow: none;
}
.cta-btn-secondary:hover {
    background: #eef4fb;
    transform: translateY(-1px);
}

/* Demo slot — image carousel (PHASE 1) or video (PHASE 2 when mp4 lands).
   Same outer container so swapping markup later doesn't move the layout. */
.demo-section {
    margin: 8px 0 36px;
    text-align: center;
}
/* Carousel container — locked to 16:9 (matches the 1920×1080 source PNGs),
   so the slot reserves its full height immediately and the rest of the
   page doesn't reflow when slides start loading. object-fit:contain on
   the children means letterboxing on non-16:9 viewport widths instead
   of cropping — landing images have text near the edges, cropping
   would chop important content. */
.demo-carousel {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    /* Pale neutral bg shows in the letterbox bars; pure white competes
       with the white slide bgs and makes the rounded corners disappear. */
    background: #f5f5f5;
}
.demo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    /* will-change opacity: keep the GPU layer hot, avoids a flicker
       when the keyframe transitions cross composited-vs-not boundary. */
    will-change: opacity;
}
/* 1-slide case (Chinese viewer until zh_1/zh_3 land): no rotation,
   single image stays visible. Override the default opacity:0. */
.demo-carousel.count-1 .demo-slide {
    opacity: 1;
    animation: none;
}
/* 3-slide cycle (EN viewers): 21 s total, ~6 s per slide visible
   + ~1 s crossfade. Longer pause (was 4 s) so visitors actually have
   time to read the level labels + example phrases on each slide. */
.demo-carousel.count-3 .demo-slide {
    animation: carouselFade3 21s infinite;
}
.demo-carousel.count-3 .demo-slide:nth-child(2) { animation-delay: 7s; }
.demo-carousel.count-3 .demo-slide:nth-child(3) { animation-delay: 14s; }
/* 4-slide cycle (kept for future use — when zh_1/zh_3 land we can
   re-enable Chinese rotation through 3-4 slides). 28 s total cycle so
   per-slide visible time matches count-3 (~6 s). */
.demo-carousel.count-4 .demo-slide {
    animation: carouselFade4 28s infinite;
}
.demo-carousel.count-4 .demo-slide:nth-child(2) { animation-delay: 7s; }
.demo-carousel.count-4 .demo-slide:nth-child(3) { animation-delay: 14s; }
.demo-carousel.count-4 .demo-slide:nth-child(4) { animation-delay: 21s; }
/* Crossfade keyframes: fade-in over first ~4 % of cycle, hold visible
   to 30 %, fade-out by 34 %, stay hidden until the cycle wraps.
   Neighbouring slides overlap during the fade window so there's no
   blank frame between them. */
@keyframes carouselFade3 {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    30%  { opacity: 1; }
    34%  { opacity: 0; }
    100% { opacity: 0; }
}
/* count-4 fades scaled for 4-slot cycle: 3 % in / 22 % hold / 25 % out. */
@keyframes carouselFade4 {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    22%  { opacity: 1; }
    25%  { opacity: 0; }
    100% { opacity: 0; }
}
/* Accessibility — users who opted out of animation see only the first
   slide (zh_2 for Chinese viewers, en_1 for everyone else). No spinning
   loop, but the layout slot is still filled with a representative image. */
@media (prefers-reduced-motion: reduce) {
    .demo-slide { animation: none !important; opacity: 0; }
    .demo-slide:nth-child(1) { opacity: 1; }
}
.demo-caption {
    margin: 12px auto 0;
    color: #6b7280;
    font-size: 0.92rem;
    max-width: 560px;
}

/* Testimonials — responsive grid of quote cards. */
.testimonials-section { margin: 36px 0; }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.testimonial-quote {
    margin: 0 0 12px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}
.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.testimonial-name { color: #555; font-weight: 500; }
.testimonial-lang { color: #9b6a5b; }

/* FAQ — collapsible items using <details>. */
.faq-section { margin: 36px 0; }
.faq-list {
    display: grid;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
}
.faq-item[open] { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); }
.faq-q {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
    content: "▸ ";
    color: #4f84b9;
    transition: transform 0.18s ease;
    display: inline-block;
}
.faq-item[open] .faq-q::before { content: "▾ "; }
.faq-a {
    margin-top: 10px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* About / Founder note — title aligns with FAQ, body stays readable. */
.about-section { margin: 36px 0; }
.about-details {
    max-width: 100%;
    margin: 0 auto;
}
.about-summary {
    cursor: pointer;
    list-style: none;
}
.about-summary::-webkit-details-marker { display: none; }
.about-summary::before {
    content: "▸ ";
    color: #4f84b9;
}
.about-details[open] .about-summary::before {
    content: "▾ ";
}
.about-image {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 16px auto 0;
    border-radius: 12px;
}
.about-body {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
    max-width: 720px;
    margin: 16px auto 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
}

/* Contact form — same section width as FAQ, always open. */
.contact-section { margin: 36px 0 28px; text-align: center; }
.contact-subtitle {
    color: #6b7280;
    font-size: 0.92rem;
    max-width: 720px;
    margin: 6px auto 18px;
}
.contact-form {
    display: grid;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
    font: inherit;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4f84b9;
}
.contact-form textarea { resize: vertical; min-height: 88px; }
.contact-form button { margin-top: 4px; }
.contact-thanks {
    max-width: 720px;
    margin: 0 auto;
    background: #eef7f4;
    border: 1px solid rgba(76, 153, 132, 0.18);
    color: #285b53;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.92rem;
}

/* ── Business English second block (Taiwan pro audience) ──────────────────
   Deliberately dark/premium to separate the high-end industry tracks from
   the white core-product cards above. Class names mirror the home.html +
   renderBusiness() markup. Coming-soon tracks are dimmed + badged. */
.business-section {
    background: linear-gradient(160deg, #1c2530 0%, #232f3c 100%);
    border-radius: 16px;
    padding: 36px 32px 40px;
    margin: 48px 0 56px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.business-section[hidden] { display: none; }
.biz-title {
    color: #f4f7fa;
    border-bottom: 2px solid rgba(212, 168, 87, 0.5);  /* gold underline */
    margin-top: 0;
}
.biz-subtitle {
    color: #aab9c7;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 26px;
    max-width: 70ch;
}
.biz-tracks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.biz-track {
    background: #283340;
    border: 1px solid #36475a;
    border-left: 3px solid #d4a857;          /* gold accent = premium */
    border-radius: 10px;
    padding: 20px 22px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.biz-track:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.biz-track-name {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #f4f7fa;
    line-height: 1.4;
}
.biz-track-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #9fb0c0;
}
/* Coming-soon: no lesson pools yet — dim it and badge it so it reads as roadmap. */
.biz-track-soon { opacity: 0.6; border-left-color: #5a6b7d; }
.biz-soon-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1c2530;
    background: #d4a857;
    border-radius: 999px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .business-section { padding: 26px 18px 30px; border-radius: 12px; }
}

/* ── Hero extras: custom-topic magic (main punch) + languages + biz teaser ──
   intro_magic is the hero's emotional punch (Layer 1). The business teaser is
   a visible, clickable strip that smooth-scrolls to #business-section — NOT a
   hover tooltip (mobile + crawlers must see it). */
.intro-magic {
    text-align: center;
    max-width: 680px;
    margin: -20px auto 16px;       /* tuck up under the short subtitle */
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-color);
}
.intro-languages {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin: 0 auto 26px;
    letter-spacing: 0.02em;
}
.intro-magic[hidden], .intro-languages[hidden], .biz-teaser[hidden] { display: none; }

.biz-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 680px;
    margin: 6px auto 0;
    padding: 13px 22px;
    background: linear-gradient(160deg, #1c2530 0%, #232f3c 100%);
    color: #f4f7fa;
    border: 1px solid rgba(212, 168, 87, 0.4);
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.biz-teaser:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    border-color: #d4a857;
}
.biz-teaser-arrow { color: #d4a857; font-weight: 700; transition: transform var(--transition-speed) ease; }
.biz-teaser:hover .biz-teaser-arrow { transform: translateX(4px); }

html { scroll-behavior: smooth; }

/* ── Wish modal (clicking a "coming soon" Business English track) ──────────
   Turns the dead end into seed-user research. Reuses .pricing-modal shell. */
.biz-track-soon[data-wish-track] { cursor: pointer; }
.biz-track-soon[data-wish-track]:hover {
    opacity: 0.9;
    border-left-color: #d4a857;
    transform: translateY(-4px);
}
.wish-modal-card { max-width: 460px; text-align: left; }
.wish-modal-body { color: #444; font-size: 0.95rem; line-height: 1.65; margin: 6px 0 18px; }
.wish-input, .wish-email {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
    resize: vertical;
}
.wish-input:focus, .wish-email:focus { outline: none; border-color: var(--primary-color); }
.wish-modal-card .cta-btn { width: 100%; text-align: center; box-sizing: border-box; }
.wish-thanks {
    margin-top: 6px;
    padding: 16px;
    background: #eaf5ee;
    color: #285b53;
    border-radius: 10px;
    font-size: 0.96rem;
    line-height: 1.6;
}
