/* "How LearnLT works" feature pages. Builds on app.css + landing.css. */

.feature-page { max-width: 1040px; margin: 0 auto; }
.crumbs { font-size: 14px; color: var(--ink-muted); margin: 4px 0 20px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

.feature-hero {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, var(--sun-soft) 0%, var(--sun-pale) 60%, #EAF0D2 100%);
    border-radius: 36px;
    padding: 48px;
    margin-bottom: 48px;
}
.feature-hero h1 {
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin: 14px 0 14px;
}
.feature-hero .eyebrow { background: #fff; }
.feature-hero__lead { font-size: 18px; line-height: 1.6; color: var(--text); margin: 0 0 24px; max-width: 40em; }
.feature-hero__icon { width: 180px; height: 180px; filter: drop-shadow(0 16px 24px rgba(26, 58, 37, 0.15)); transform: rotate(-6deg); }

.feature-body { max-width: 820px; margin: 0 auto; }
.feature-section { margin-bottom: 48px; }
.feature-section h2 {
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 14px;
}
.feature-section h3 { margin: 6px 0 6px; font-size: 18px; }
.feature-section p { font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.feature-note { font-size: 14px !important; color: var(--ink-muted); }

.feature-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.feature-points > div {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.feature-points .ill { margin-bottom: 10px; }
.feature-points p { font-size: 15px !important; line-height: 1.55 !important; margin: 0 !important; color: var(--ink-muted); }
.feature-points strong { color: var(--ink); }

.feature-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-cards article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.feature-cards p { font-size: 15px !important; color: var(--ink-muted); }
.feature-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    background: var(--sun-pale);
    border-radius: 999px;
    padding: 3px 10px;
}

/* tables */
.feature-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; margin: 0 0 12px; }
.feature-table-wrap--scroll { overflow-x: auto; }
.feature-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.feature-table th, .feature-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.feature-table thead th { background: var(--sun-pale); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.feature-table tbody tr:last-child td { border-bottom: none; }
.feature-table tbody tr:nth-child(even) td { background: var(--bg); }
.feature-table--words { font-size: 14px; white-space: nowrap; }
.feature-table--words thead th { text-transform: none; letter-spacing: 0; font-size: 15px; }
.feature-table--words td:first-child { font-weight: 700; color: var(--ink); }
.feature-table .lt-word { background: none; border: none; font: inherit; font-weight: 800; color: var(--ink); padding: 0; }

/* course levels */
.course-levels { display: flex; flex-direction: column; gap: 10px; }
.course-level { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; }
.course-level summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    list-style: none;
}
.course-level summary::-webkit-details-marker { display: none; }
.course-level summary::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--ink-muted); }
.course-level[open] summary::after { content: '−'; }
.course-level__badge { background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 9px; font-weight: 800; font-size: 14px; }
.course-level__name { font-weight: 800; font-size: 18px; color: var(--ink); }
.course-level__count { font-size: 14px; color: var(--ink-muted); }
.course-level__desc { font-size: 15px !important; color: var(--ink-muted); margin: 0 0 8px !important; }
.course-level__list { columns: 2; column-gap: 32px; margin: 0 0 16px; padding-left: 22px; font-size: 15px; }
.course-level__list li { break-inside: avoid; padding: 3px 0; }
.course-level__list a { color: var(--green); text-decoration: none; font-weight: 600; }
.course-level__list a:hover { text-decoration: underline; }

/* flashcards demo */
.flash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.flash-card { perspective: 800px; height: 150px; cursor: pointer; outline: none; }
.flash-card__inner { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d; }
.flash-card.is-flipped .flash-card__inner { transform: rotateY(180deg); }
.flash-card__front, .flash-card__back {
    position: absolute; inset: 0;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.flash-card__front { background: #fff; }
.flash-card__back { background: var(--sun-soft); border-color: #F3D98A; transform: rotateY(180deg); }
.flash-card small { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.flash-card strong { font-size: 22px; color: var(--ink); }
.flash-card:focus-visible .flash-card__front { outline: 3px solid rgba(31, 107, 69, .35); }
.flash-card__say { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--sun-pale); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.flash-card__say svg { width: 18px; height: 18px; }
.flash-card__say:hover { background: var(--sun); }

/* true/false demo */
.tf-demo {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 520px;
    margin: 20px auto;
}
.tf-demo__progress { font-size: 14px !important; color: var(--ink-muted); font-weight: 600; }
.tf-demo__card { display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 12px 0 20px; }
.tf-demo__lt { font-size: 34px; color: var(--ink); }
.tf-demo__eq { color: var(--ink-muted); font-size: 22px; }
.tf-demo__en { font-size: 26px; font-weight: 700; color: var(--green); }
.tf-demo__buttons { display: flex; gap: 12px; justify-content: center; }
.tf-demo__btn { min-width: 130px; }
.tf-demo__btn svg { width: 18px; height: 18px; }
.tf-demo__feedback { min-height: 1.6em; margin: 14px 0 0 !important; font-weight: 700; }
.tf-demo__feedback.is-ok { color: var(--leaf); }
.tf-demo__feedback.is-bad { color: var(--coral); }

/* languages */
.lang-grid { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lang-grid li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
.lang-grid img { border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex-shrink: 0; }
.lang-grid strong { display: block; color: var(--ink); font-size: 15px; }
.lang-grid small { display: block; color: var(--ink-muted); font-size: 12px; }

/* free */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font-size: 16px; line-height: 1.55; }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; color: #fff; background: var(--leaf); border-radius: 50%; padding: 4px; margin-top: 1px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; }
.faq summary { font-weight: 800; color: var(--ink); padding: 12px 0; cursor: pointer; }
.faq details p { font-size: 16px !important; color: var(--text); }

/* related + final */
.feature-more { margin: 64px 0 40px; }
.feature-more h2 { font-size: 26px; text-align: center; margin: 0 0 20px; }
.feature-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-more__card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; text-decoration: none; color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-more__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-more__card strong { display: block; color: var(--ink); font-size: 15px; }
.feature-more__card small { display: block; color: var(--ink-muted); font-size: 13px; line-height: 1.35; }
.feature-final { margin-bottom: 24px; }

@media (max-width: 860px) {
    .feature-hero { grid-template-columns: 1fr; padding: 32px 24px; text-align: left; }
    .feature-hero__icon { display: none; }
    .feature-points { grid-template-columns: 1fr; }
    .flash-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-more__grid { grid-template-columns: 1fr; }
    .course-level__list { columns: 1; }
}
@media (max-width: 560px) {
    .feature-cards { grid-template-columns: 1fr; }
    .feature-hero { border-radius: 28px; }
    .feature-table th, .feature-table td { padding: 10px 12px; }
}
.feature-points .ill { width: 40px; height: 40px; }
.feature-cards .ill { width: 48px; height: 48px; }
.feature-more__card .ill { width: 36px; height: 36px; }
.feature-hero__icon { width: 128px; height: 128px; transform: none; filter: none; }
.feature-hero { grid-template-columns: 1fr 140px; }

/* vocabulary */
.vocab-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vocab-level { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.vocab-level h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; font-size: 16px !important; }
.vocab-level ul { list-style: none; padding: 0; margin: 0; }
.vocab-level li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.vocab-level li:last-child { border-bottom: none; }
.vocab-level li span { color: var(--text); }
.vocab-level li small { margin-left: auto; color: var(--ink-muted); font-size: 12px; }
.lt-word { font-weight: 800; color: var(--ink); }
.theme-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-chips li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink); }

/* speaking */
.say-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.say-list li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.say-list strong { display: block; color: var(--ink); font-size: 16px; }
.say-list small { display: block; color: var(--ink-muted); font-size: 13px; }
.say-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--sun-soft) !important; display: grid; place-items: center; flex-shrink: 0; }
.say-btn svg { width: 20px; height: 20px; }
.say-btn:hover { background: var(--sun) !important; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.steps > div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.steps span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps p { font-size: 15px !important; margin: 0 !important; color: var(--ink-muted); }
.steps strong { color: var(--ink); }

/* sentences: word bank */
.wb-demo, .pq-demo {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; box-shadow: var(--shadow); max-width: 620px; margin: 20px auto; text-align: center;
}
.wb-demo__progress, .pq-demo__progress { font-size: 14px !important; color: var(--ink-muted); font-weight: 600; margin: 0 0 8px !important; }
.wb-demo__en { font-size: 22px !important; font-weight: 800; color: var(--ink); margin: 0 0 16px !important; }
.wb-demo__answer { min-height: 56px; border-bottom: 2px solid var(--border-strong); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px 0; margin-bottom: 16px; }
.wb-demo__bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 44px; margin-bottom: 18px; }
.wb-chip { font: inherit; font-weight: 700; font-size: 16px; background: var(--sun-pale); border: 1px solid #F3D98A; color: var(--ink); border-radius: 12px; padding: 8px 14px; cursor: pointer; }
.wb-chip:hover { background: var(--sun-soft); }
.wb-demo__answer .wb-chip { background: #fff; border-color: var(--border-strong); }
.wb-demo__actions { display: flex; gap: 10px; justify-content: center; }
.wb-demo__feedback, .pq-demo__feedback { min-height: 1.6em; margin: 14px 0 0 !important; font-weight: 700; }
.is-ok.wb-demo__feedback, .is-ok.pq-demo__feedback { color: var(--leaf); }
.is-bad.wb-demo__feedback, .is-bad.pq-demo__feedback { color: var(--coral); }
.sent-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sent-group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.sent-group h3 { margin: 0 0 8px !important; font-size: 16px !important; }
.sent-group ul { list-style: none; padding: 0; margin: 0; }
.sent-group li { padding: 7px 0; border-bottom: 1px dashed var(--border); display: flex; flex-direction: column; gap: 1px; }
.sent-group li:last-child { border-bottom: none; }
.sent-group li span { font-size: 14px; color: var(--ink-muted); }

/* picture quiz */
.pq-demo__word { margin: 4px 0 16px !important; }
.pq-demo__word .lt-word { font-size: 32px; }
.pq-demo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pq-option { background: var(--bg); border: 2px solid var(--border); border-radius: 18px; padding: 10px; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.pq-option:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.pq-option img { width: 100%; height: auto; display: block; }
.pq-option.is-ok { border-color: var(--leaf); background: #EEF5DC; }
.pq-option.is-bad { border-color: var(--coral); background: #FCE7E2; }
.pic-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pic-list li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
.pic-list img { width: 56px; height: 56px; }
.pic-list small { display: block; color: var(--ink-muted); font-size: 13px; }

@media (max-width: 860px) {
    .feature-more__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .vocab-levels, .say-list, .sent-groups, .steps, .feature-more__grid { grid-template-columns: 1fr; }
    .pic-list { grid-template-columns: repeat(2, 1fr); }
    .pq-demo__grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-hero__meta { font-size: 14px; color: var(--ink-muted); font-weight: 600; margin: -12px 0 22px; }

/* language articles */
.cognates td:nth-child(n+2) { font-style: italic; }
.pull-quote {
    margin: 24px 0;
    padding: 22px 26px;
    background: var(--sun-pale);
    border-left: 5px solid var(--sun);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
}
.pull-quote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--ink-muted); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 20px 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 62px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 26px; padding: 8px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 57px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--bg); }
.timeline time { font-weight: 800; color: var(--ink); font-size: 15px; text-align: right; padding-top: 2px; }
.timeline p { margin: 0 !important; font-size: 16px !important; }
.fact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.fact-row > div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.fact-row strong { display: block; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.fact-row span { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
@media (max-width: 640px) {
    .fact-row { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { left: 58px; }
    .timeline li { grid-template-columns: 50px 1fr; gap: 22px; }
    .timeline li::before { left: 53px; }
    .timeline time { font-size: 13px; white-space: nowrap; }
}
