/* Guest homepage: a single palette shared with the study workspace. */
.guest-home .top-header-right { gap: 4px; }
.guest-home .top-auth-buttons { gap: 6px; }
.guest-home .btn-top-login { padding-inline: 12px; }
.guest-home .lp-shell { gap: 72px; padding-top: 36px; }
.guest-home .lp-hero { gap: 48px; padding: 24px 0 0; align-items: stretch; }
.guest-home .lp-hero__copy { align-self: stretch; }
.guest-home .lp-hero::before { display: none; }
.guest-home .lp-hero__chip {
    align-self: flex-start; margin-bottom: 20px; padding: 6px 10px;
    color: var(--wq-accent); background: var(--wq-accent-soft);
    border: 0; border-radius: 6px; font-size: .73rem; font-weight: 600; letter-spacing: 0;
}
.guest-home .lp-hero__title { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.32; letter-spacing: -.055em; font-weight: 750; }
.guest-home .lp-hero__title-accent { background: none; -webkit-text-fill-color: var(--wq-accent); color: var(--wq-accent); }
.lp-hero__intro { color: var(--wq-text-soft); font-size: 1rem; line-height: 1.85; margin: 10px 0 22px; word-break: keep-all; }
.guest-home .lp-hero__features { gap: 7px; }
.guest-home .lp-hero__features li { font-size: .82rem; color: var(--wq-text-muted); }
.guest-home .lp-hero__sub-tag { border-bottom-style: solid; border-bottom-color: var(--wq-border); }
.guest-home .lp-hero__actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; width: 100%;
}
.guest-home .lp-hero__actions .lp-btn {
    box-sizing: border-box; width: 100%; min-width: 0; padding-inline: 10px;
    white-space: nowrap; font-size: .9rem;
}
.guest-home .lp-hero__actions .lp-btn--subject {
    height: 44px; min-height: 44px; font-size: .8rem;
    color: var(--wq-text-muted) !important;
}
.guest-home .lp-hero__actions .lp-btn--subject:hover { color: var(--wq-text) !important; }
.guest-home .lp-shell .lp-btn { border-radius: 10px; min-height: 48px; font-weight: 650; box-shadow: none; }
.guest-home .lp-shell .lp-btn--primary { background: var(--wq-accent); border-color: transparent; color: var(--wq-on-accent) !important; }
.guest-home .lp-shell .lp-btn--primary:hover { background: var(--wq-accent-hover); box-shadow: none; transform: none; }
.guest-home .lp-shell .lp-btn--ghost { background: transparent; border-color: var(--wq-border); }
.guest-home .lp-hero__search { margin-top: auto; padding-top: 20px; }
.guest-home .lp-hero__search-row {
    box-sizing: border-box; height: 52px; padding: 5px 6px 5px 16px;
    background: var(--wq-surface); border-color: var(--wq-border); border-radius: 13px;
}
.guest-home .lp-hero__search-row:focus-within {
    border-color: var(--wq-accent); box-shadow: 0 0 0 3px var(--wq-accent-soft);
}
html.dark .guest-home .lp-shell input.lp-hero__search-input {
    background: transparent !important; font-size: 16px;
}
.guest-home .lp-hero__search-submit {
    align-self: stretch; height: auto; padding-inline: 16px;
    background: transparent; border: 0; border-left: 1px solid var(--wq-border);
    color: var(--wq-text); border-radius: 0;
}
.guest-home .lp-hero__search-submit:hover { background: transparent; color: var(--wq-accent); }

.lp-card-preview {
    min-width: 0; padding: 24px; background: var(--wq-surface);
    border: 1px solid var(--wq-border); border-radius: 22px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .06);
}
.lp-card-preview__header { display: flex; justify-content: space-between; gap: 8px; color: var(--wq-text-muted); font-size: .73rem; margin-bottom: 22px; }
.guest-home .lp-study-card {
    display: block; width: 100%; height: 260px; min-height: 260px; padding: 0;
    border: 0; border-radius: 16px; background: transparent; font: inherit; cursor: pointer; perspective: 1000px;
}
.lp-study-card .lp-flash__inner { display: grid; height: 100%; min-height: 240px; }
.guest-home .lp-study-card .lp-flash__face {
    position: relative; inset: auto; grid-area: 1 / 1; min-width: 0;
    box-sizing: border-box; overflow: hidden;
    flex-direction: column; gap: 8px; padding: 20px 16px;
    background: linear-gradient(145deg, rgba(120, 189, 210, .06), transparent 70%), var(--wq-surface-2);
    color: var(--wq-text); border: 1px solid var(--wq-border); border-radius: 14px;
    box-shadow: none;
}
.lp-study-card .lp-flash__face > * { flex-shrink: 0; max-width: 100%; }
.lp-study-card__label, .lp-study-card__pronunciation { color: var(--wq-text-muted); font-size: .78rem; line-height: 1.5; }
.lp-study-card strong { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.3; margin: 4px 0; letter-spacing: -.035em; font-weight: 650; }
.lp-study-card__hint { margin-top: 8px; font-size: .7rem; line-height: 1.5; color: var(--wq-text-muted); }
.lp-study-card__example { color: var(--wq-text-soft); font-size: .8rem; line-height: 1.65; }
.lp-study-card__example span { display: block; }
.lp-study-card__example span:last-child { color: var(--wq-text-muted); font-size: .75rem; }
.lp-card-preview__caption { color: var(--wq-text-muted); text-align: center; font-size: .78rem; margin: 28px 0 16px; word-break: keep-all; }
.guest-home .lp-card-preview__link { display: flex; justify-content: space-between; gap: 10px; color: var(--wq-accent); font-size: .82rem; text-decoration: none; padding: 14px 0 0; border-top: 1px solid var(--wq-border); }

.lp-experience { min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--wq-border); border-radius: 22px; background: var(--wq-surface); box-shadow: 0 14px 44px rgba(0, 0, 0, .06); }
.lp-experience__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lp-experience__eyebrow { font-size: .8rem; font-weight: 650; color: var(--wq-text); }
.lp-experience__note { color: var(--wq-text-muted); font-size: .7rem; }
.lp-experience__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--wq-border); border-radius: 11px; background: var(--wq-bg); }
.lp-experience__tabs button { min-width: 0; min-height: 40px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--wq-text-muted); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.lp-experience__tabs button[aria-selected="true"] { background: var(--wq-surface-2); color: var(--wq-accent); }
.lp-experience__tabs button:hover { color: var(--wq-text); }
.lp-experience__body { min-height: 310px; display: grid; flex: 1; }
.lp-experience [role="tabpanel"] { min-width: 0; display: flex; flex-direction: column; }
.lp-experience [role="tabpanel"][hidden] { display: none !important; }
.guest-home .lp-experience .lp-card-preview { width: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; flex: 1; }
.guest-home .lp-experience .lp-study-card { height: auto; min-height: 240px; flex: 1; }
.guest-home .lp-experience .lp-card-preview__header { margin-bottom: 14px; }
.guest-home .lp-experience .lp-card-preview__caption { margin: 22px 0 12px; }
.guest-home .lp-experience .lp-writing { padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; gap: 14px; flex: 1; }
.lp-experience .lp-writing__form { flex-direction: column; gap: 12px; }
.lp-experience .lp-writing__head { align-items: center; }
.lp-experience .lp-writing__eyebrow { display: none; }
.lp-experience .lp-writing__title { font-weight: 600; font-size: .88rem; }
.lp-experience .lp-writing__prompt { padding: 18px; line-height: 1.7; font-size: 1rem; margin: 0; }
.guest-home .lp-experience textarea.lp-writing__input { min-height: 88px !important; font-size: 16px; }
.lp-experience .lp-writing__submit { width: 100%; min-height: 44px; }
.lp-experience .lp-writing__hint { text-align: center; font-size: .75rem; line-height: 1.6; }
.guest-home .lp-ai { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; gap: 32px; }
.guest-home .lp-ai__copy { max-width: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.guest-home .lp-ai__copy .lp-link-arrow { margin-top: 22px; }
.lp-material { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 12px 8px; }
.lp-material__heading { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: var(--wq-accent); font-size: .73rem; }
.lp-material__heading small { color: var(--wq-text-muted); font-size: .65rem; }
.lp-material__source { min-width: 0; padding: 16px; display: flex; flex-direction: column; background: var(--wq-bg); border: 1px solid var(--wq-border); border-radius: 12px; }
.lp-material__label { display: flex; align-items: center; gap: 8px; font-size: .73rem; color: var(--wq-text-muted); }
.lp-material__label svg { flex-shrink: 0; }
.lp-material__title { font-size: .9rem; font-weight: 650; color: var(--wq-text); margin: 16px 0 10px; }
.lp-material__line { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 8px 0; border-top: 1px solid var(--wq-border); font-size: .76rem; line-height: 1.5; }
.lp-material__line strong { font-weight: 500; color: var(--wq-text-soft); }
.lp-material__line span { color: var(--wq-text-muted); font-size: .7rem; }
.lp-material__flow { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--wq-accent); }
.lp-material__quiz { min-width: 0; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--wq-border); border-radius: 12px; background: var(--wq-bg); }
.guest-home .lp-material .lp-study-card { height: auto; min-height: 160px; margin: 12px 0; flex: 1; }
.lp-material .lp-study-card .lp-flash__inner { min-height: 160px; }
.guest-home .lp-material .lp-study-card .lp-flash__face { padding: 16px 8px; }
.lp-material .lp-study-card strong { font-size: 1.2rem; overflow-wrap: anywhere; }
.lp-material .lp-study-card__label { font-size: .68rem; }
.lp-material .lp-study-card__hint { font-size: .65rem; }
.lp-material__formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: .63rem; color: var(--wq-text-muted); }

.guest-home .lp-feature-ribbon { background: transparent; border-block: 1px solid var(--wq-border); border-inline: 0; border-radius: 0; padding: 24px 0; gap: 24px; }
.guest-home .lp-feature-ribbon__item,
.guest-home .lp-feature-ribbon__item:hover { background: transparent; border: 0; border-radius: 0; padding: 0; }
.guest-home .lp-feature-ribbon__icon { display: flex; color: var(--wq-accent); }
.guest-home .lp-feature-ribbon__text strong { font-weight: 650; }
.guest-home .lp-feature-ribbon__text span { font-size: .74rem; line-height: 1.65; }
.guest-home .lp-feature-ribbon + .lp-demos { margin-top: -20px; }
.guest-home .lp-section-head { text-align: left; margin-bottom: 24px; }
.guest-home .lp-section-title { font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -.04em; line-height: 1.5; font-weight: 700; }
.guest-home .lp-eyebrow { margin-bottom: 8px; color: var(--wq-text-muted); font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.guest-home .lp-section-sub { font-size: .88rem; line-height: 1.8; max-width: 640px; }
.guest-home :is(.lp-demo, .lp-exam-prep__card, .lp-pop-card, .lp-how-step, .lp-writing) { border-color: var(--wq-border); border-radius: 14px; box-shadow: none; }
.guest-home :is(.lp-demo, .lp-exam-prep__card, .lp-writing)::before { display: none; }
.guest-home .lp-demo__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--wq-accent-soft); color: var(--wq-accent); font-size: .8rem; font-weight: 600; }
.guest-home .lp-demo__mode { font-weight: 650; }
.guest-home .lp-demo__chip { color: var(--wq-accent); background: var(--wq-accent-soft); letter-spacing: 0; }
.guest-home .lp-demo--intro { min-height: 200px; }
.guest-home .lp-demo--intro .lp-demo__empty { align-items: flex-start; justify-content: flex-start; }
.guest-home .lp-shell :is(a.lp-demo__more, a.lp-link-arrow) { background: transparent; border-color: var(--wq-border); font-size: .85rem; font-weight: 600; border-radius: 9px; }
.guest-home .lp-shell :is(a.lp-demo__more, a.lp-link-arrow):hover { color: var(--wq-accent); background: var(--wq-accent-soft); border-color: var(--wq-accent); }
.guest-home .lp-exam-prep__icon { color: var(--wq-text-muted); margin-bottom: 8px; }
.guest-home .lp-exam-prep__card:hover { box-shadow: none; }
.guest-home .lp-pop-card { padding: 20px; gap: 10px; }
.guest-home .lp-pop-card__topic { background: transparent; padding: 0; font-weight: 500; }
.guest-home .lp-pop-card__count { color: var(--wq-text-muted); font-weight: 500; }
.guest-home .lp-pop-card__title { font-weight: 650; line-height: 1.6; }
.guest-home .lp-pop-card__desc { font-size: .8rem; line-height: 1.7; }
.guest-home .lp-popular__more { text-align: left; margin-top: 20px; }

.lp-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: 32px; background: var(--wq-surface); border: 1px solid var(--wq-border); border-radius: 20px; }
.lp-ai__copy { min-width: 0; }
.lp-ai__copy .lp-section-sub { line-height: 1.85; margin-top: 14px; }
.lp-ai__note { color: var(--wq-text-muted); font-size: .75rem; line-height: 1.7; margin: 14px 0 0; word-break: keep-all; }
.guest-home .lp-ai .lp-writing { background: var(--wq-bg); margin: 0; }
.guest-home .lp-writing__icon { color: var(--wq-accent); }
.guest-home .lp-writing__eyebrow { color: var(--wq-accent); font-weight: 600; }
.guest-home .lp-writing__prompt { border-color: var(--wq-border); border-left-color: var(--wq-accent); }
.guest-home .lp-writing__submit { background: var(--wq-accent); color: var(--wq-on-accent); box-shadow: none; }
.guest-home .lp-writing__submit:hover { background: var(--wq-accent-hover); }
.guest-home .lp-writing__input:focus { border-color: var(--wq-accent) !important; }
.guest-home .lp-shell a.lp-writing__signup-btn { background: var(--wq-accent); color: var(--wq-on-accent) !important; box-shadow: none; }
.guest-home .lp-shell a.lp-writing__signup-btn:hover { background: var(--wq-accent-hover); box-shadow: none; }
.guest-home .lp-writing__signup-gate { background: var(--wq-accent-soft); border-color: var(--wq-border); }
.guest-home .lp-how-step { background: transparent; padding: 24px; }
.guest-home .lp-how-step__num { border-radius: 8px; width: 30px; height: 30px; background: var(--wq-accent-soft); color: var(--wq-accent); font-size: .9rem; font-weight: 600; }
.lp-faq { max-width: 780px; width: 100%; margin-inline: auto; }
.lp-faq__item { border-bottom: 1px solid var(--wq-border); }
.lp-faq__item summary { padding: 20px 28px 20px 0; position: relative; list-style: none; cursor: pointer; color: var(--wq-text); font-size: .93rem; font-weight: 600; word-break: keep-all; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after { content: '+'; position: absolute; right: 4px; color: var(--wq-accent); }
.lp-faq__item[open] summary::after { content: '−'; }
.lp-faq__item p { color: var(--wq-text-soft); line-height: 1.9; font-size: .88rem; margin: 0 0 22px; word-break: keep-all; }
.guest-home .lp-cta { background: var(--wq-surface); border: 1px solid var(--wq-border); border-radius: 20px; box-shadow: none; }
.guest-home .lp-cta__eyebrow { color: var(--wq-accent); font-size: .78rem; font-weight: 600; }
.guest-home .lp-cta__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.guest-home .lp-cta__sub { font-size: .9rem; }
.guest-home .lp-shell :is(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--wq-accent); outline-offset: 4px; }
@media (max-width: 880px) {
    .guest-home .lp-hero { grid-template-columns: 1fr; gap: 28px; }
    .guest-home .lp-card-preview { max-width: 540px; width: 100%; box-sizing: border-box; margin-inline: auto; }
    .lp-experience { max-width: 540px; width: 100%; box-sizing: border-box; margin-inline: auto; }
    .guest-home .lp-ai { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
    .guest-home .lp-hero__search { margin-top: 0; }
}
@media (max-width: 767px) {
    .guest-home .lp-shell { padding: 16px 4px 40px; gap: 40px; }
    .guest-home .lp-hero { padding: 8px 0 0; gap: 24px; }
    .guest-home .lp-hero__chip { margin-bottom: 14px; font-size: .68rem; }
    .guest-home .lp-hero__title { font-size: clamp(1.7rem, 7vw, 2.6rem); }
    .lp-hero__intro { font-size: .9rem; margin-bottom: 16px; }
    .guest-home .lp-hero__actions .lp-btn { min-height: 46px; flex: 1 1 auto; font-size: .85rem; padding-inline: 12px; }
    .guest-home .lp-hero__search { margin-top: 0; padding-top: 14px; }
    .lp-card-preview { padding: 18px; }
    .lp-experience { padding: 18px; }
    .lp-experience__tabs { margin-bottom: 18px; }
    .lp-experience__body { min-height: 310px; }
    .guest-home .lp-study-card { height: 210px; min-height: 210px; }
    .lp-card-preview__header { margin-bottom: 16px; }
    .guest-home .lp-feature-ribbon { gap: 20px 12px; padding-block: 20px; }
    .guest-home .lp-feature-ribbon__item { gap: 8px; }
    .guest-home .lp-feature-ribbon__text strong { font-size: .8rem; }
    .guest-home .lp-feature-ribbon__text span { font-size: .7rem; }
    .guest-home .lp-section-head { margin-bottom: 18px; }
    .guest-home .lp-section-title { font-size: 1.25rem; }
    .guest-home .lp-section-sub { font-size: .82rem; }
    .guest-home .lp-demos .lp-section-title { font-size: 1.05rem; }
    .guest-home .lp-pop-card { padding: 16px; }
    .guest-home .lp-ai { padding: 20px 16px; }
    .lp-material { column-gap: 5px; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); }
    .lp-material__source, .lp-material__quiz { padding: 12px 10px; }
    .lp-material__label { gap: 4px; font-size: .65rem; }
    .lp-material__label svg { display: none; }
    .lp-material__title { font-size: .78rem; margin: 14px 0 10px; }
    .lp-material .lp-study-card strong { font-size: 1.03rem; }
    .guest-home .lp-how__steps { gap: 10px; }
    .guest-home .lp-how-step { padding: 20px; }
    .guest-home .lp-cta__inner { padding: 32px 16px; }
    .guest-home .lp-cta__actions { flex-wrap: wrap; }
    .guest-home .lp-nowrap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .guest-home .lp-shell *, .guest-home .lp-shell *::before { animation: none !important; transition: none !important; }
}
