/* Shared landing-page system for the Online Class and Online Exam entry pages. */
:root {
    --fl-ink: #10241d;
    --fl-muted: #5e6e67;
    --fl-green: #07583f;
    --fl-green-dark: #043e2d;
    --fl-lime: #dfff69;
    --fl-paper: #fbfcf8;
    --fl-line: rgba(16, 36, 29, .13);
    --fl-shadow: 0 24px 70px rgba(4, 62, 45, .12);
}

body.tx-rebuilt.tx-feature-page {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: #edf3ef !important;
    color: var(--fl-ink);
}

body.tx-feature-page .tx-rebuilt-content { overflow: hidden; }

.fl-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.fl-nav {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fl-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--fl-ink);
    font-size: 1.12rem;
    font-weight: 800;
    text-decoration: none;
}

.fl-brand img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) saturate(100%) invert(27%) sepia(27%) saturate(1262%) hue-rotate(112deg) brightness(88%) contrast(101%); }
.fl-nav__links { display: flex; align-items: center; gap: 28px; }
.fl-nav__links a { color: #3d5149; font-size: .9rem; font-weight: 700; text-decoration: none; }
.fl-nav__links a:hover { color: var(--fl-green); }

.fl-nav__cta,
.fl-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 20px;
    font: inherit;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.fl-nav__cta { min-height: 42px; border-color: var(--fl-line); color: var(--fl-ink) !important; background: rgba(255,255,255,.72); }
.fl-button--primary { color: #fff !important; background: var(--fl-green); box-shadow: 0 12px 26px rgba(7, 88, 63, .2); }
.fl-button--secondary { border-color: var(--fl-line); color: var(--fl-ink) !important; background: #fff; }
.fl-nav__cta:hover, .fl-button:hover { transform: translateY(-2px); }
.fl-button--primary:hover { background: var(--fl-green-dark); box-shadow: 0 16px 34px rgba(7, 88, 63, .26); }

.fl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
    align-items: center;
    gap: clamp(42px, 7vw, 96px);
    min-height: 680px;
    padding: 56px 0 88px;
}

.fl-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--fl-green); font-size: .74rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.fl-eyebrow::before { width: 28px; height: 2px; background: var(--fl-green); content: ""; }
.fl-hero h1 { max-width: 700px; margin: 0; font-size: clamp(3.7rem, 6.5vw, 6.55rem); line-height: .9; }
.fl-hero h1 em { color: var(--fl-green); font-style: italic; }
.fl-lede { max-width: 610px; margin: 28px 0 0; color: var(--fl-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.fl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fl-proof { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #53665e; font-size: .82rem; font-weight: 700; }
.fl-proof span { display: inline-flex; align-items: center; gap: 7px; }
.fl-proof i { color: var(--fl-green); }

.fl-product { position: relative; min-width: 0; }
.fl-product::before { position: absolute; z-index: -1; inset: -50px -80px -70px -35px; border-radius: 48% 52% 42% 58%; background: var(--fl-accent-soft, #d8f1e6); content: ""; transform: rotate(-5deg); }
.fl-window { overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 25px; background: #fff; box-shadow: 0 35px 90px rgba(4, 44, 32, .2); transform: rotate(1.5deg); }
.fl-window__top { display: flex; height: 54px; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--fl-line); background: #fbfcfa; }
.fl-dots { display: flex; gap: 6px; }
.fl-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cad4cf; }
.fl-window__label { color: #718078; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.fl-live { display: inline-flex; align-items: center; gap: 6px; color: #9d332d; font-size: .7rem; font-weight: 850; }
.fl-live::before { width: 7px; height: 7px; border-radius: 50%; background: #df544a; box-shadow: 0 0 0 4px #fde7e5; content: ""; }
.fl-window__body { min-height: 385px; padding: 18px; background: #f2f5f3; }

.fl-class-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-video { position: relative; display: flex; min-height: 158px; align-items: flex-end; overflow: hidden; border-radius: 14px; padding: 12px; background: linear-gradient(145deg, #224c3d, #122a22); color: #fff; }
.fl-video--teacher { grid-column: span 2; min-height: 172px; background: linear-gradient(135deg, #164c38, #08281d); }
.fl-avatar { position: absolute; top: 50%; left: 50%; display: grid; width: 65px; height: 65px; place-items: center; border: 2px solid rgba(255,255,255,.4); border-radius: 50%; background: #dfff69; color: #173428; font-size: 1.15rem; font-weight: 850; transform: translate(-50%,-50%); }
.fl-video span { position: relative; z-index: 1; font-size: .72rem; font-weight: 750; }
.fl-video small { position: absolute; right: 10px; bottom: 10px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(0,0,0,.35); }
.fl-toolbar { display: flex; justify-content: center; gap: 8px; padding-top: 14px; }
.fl-toolbar span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--fl-line); border-radius: 10px; background: #fff; color: #52645d; font-size: .78rem; }
.fl-toolbar span:last-child { width: auto; padding: 0 14px; color: #fff; background: #c8453d; }

.fl-exam-card { display: grid; gap: 13px; }
body.tx-feature-page .fl-exam-card { border-radius: 0; box-shadow: none; }
.fl-exam-progress { display: flex; align-items: center; justify-content: space-between; padding: 8px 3px 2px; color: #65756e; font-size: .75rem; font-weight: 750; }
.fl-exam-progress strong { color: var(--fl-ink); font-size: 1rem; }
.fl-question { border: 1px solid var(--fl-line); border-radius: 16px; padding: 22px; background: #fff; }
.fl-question__meta { color: var(--fl-green); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.fl-question h3 { margin: 12px 0 18px; font-size: 1.12rem; line-height: 1.4; }
.fl-option { display: flex; align-items: center; gap: 10px; margin-top: 8px; border: 1px solid var(--fl-line); border-radius: 10px; padding: 10px 12px; color: #52625b; font-size: .78rem; }
.fl-option i { width: 14px; height: 14px; border: 1px solid #9caaa4; border-radius: 50%; }
.fl-option--selected { border-color: rgba(7,88,63,.35); color: var(--fl-ink); background: #edf8f3; }
.fl-option--selected i { border: 4px solid var(--fl-green); }
.fl-signal-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.fl-signal { border-radius: 12px; padding: 11px; color: #5b6c64; background: #e7edea; font-size: .65rem; font-weight: 750; }
.fl-signal b { display: block; margin-bottom: 4px; color: var(--fl-ink); font-size: .76rem; }
.fl-signal i { margin-right: 5px; color: var(--fl-green); }

.fl-band { padding: 96px 0; background: var(--fl-ink); color: #fff; }
.fl-band__head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: end; margin-bottom: 48px; }
.fl-band .fl-eyebrow { color: var(--fl-lime); }
.fl-band .fl-eyebrow::before { background: var(--fl-lime); }
.fl-band h2 { max-width: 610px; margin: 0; color: #fff !important; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .96; }
.fl-band__intro { max-width: 560px; margin: 0 0 6px; color: #afbeb8; font-size: 1rem; line-height: 1.7; }
.fl-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14); }
.fl-feature { min-height: 220px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); padding: 28px; }
.fl-feature__icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 40px; border-radius: 11px; color: var(--fl-ink); background: var(--fl-lime); }
.fl-feature:nth-child(2n) .fl-feature__icon { background: var(--fl-accent-soft, #cae9dc); }
.fl-feature h3 { margin: 0 0 9px; color: #fff !important; font-size: 1rem; }
.fl-feature p { margin: 0; color: #9eafa8; font-size: .82rem; line-height: 1.58; }

.fl-paths { padding: 100px 0; }
.fl-paths__head { max-width: 680px; margin-bottom: 42px; }
.fl-paths h2 { margin: 0; font-size: clamp(2.7rem, 4.6vw, 4.7rem); line-height: .98; }
.fl-path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fl-path { display: flex; min-height: 255px; flex-direction: column; align-items: flex-start; border: 1px solid var(--fl-line); border-radius: 23px; padding: 32px; background: rgba(255,255,255,.8); }
.fl-path--accent { background: var(--fl-accent-soft, #dcefe7); }
.fl-path__top { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.fl-path__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #fff; background: var(--fl-green); }
.fl-path__number { color: #829088; font: 600 2.5rem/1 Georgia, serif; }
.fl-path h3 { margin: 32px 0 8px; font-size: 1.42rem; }
.fl-path p { max-width: 460px; margin: 0 0 24px; color: var(--fl-muted); font-size: .9rem; }
.fl-path a { margin-top: auto; color: var(--fl-green); font-weight: 850; text-decoration: none; }
.fl-path a i { margin-left: 8px; transition: transform .2s ease; }
.fl-path a:hover i { transform: translateX(4px); }

.fl-join { margin-top: 18px; border: 1px solid var(--fl-line); border-radius: 23px; padding: 28px 32px; background: #fff; }
.fl-join label { display: block; margin-bottom: 12px; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fl-join__form { display: flex; gap: 10px; }
.fl-join input { width: 100%; min-height: 50px; padding: 0 16px; }
.fl-join__help { margin: 10px 0 0; color: var(--fl-muted); font-size: .76rem; }
.fl-form-error { color: #9d332d !important; }

.fl-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--fl-line); padding: 30px 0 42px; color: #718078; font-size: .78rem; }
.fl-footer a { color: var(--fl-ink); font-weight: 750; text-decoration: none; }

@media (max-width: 980px) {
    .fl-nav__links a:not(.fl-nav__cta) { display: none; }
    .fl-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 42px; }
    .fl-product { width: min(650px, 100%); margin: 20px auto 0; }
    .fl-band__head { grid-template-columns: 1fr; gap: 24px; }
    .fl-feature-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
    .fl-shell { width: min(100% - 28px, 1240px); }
    .fl-nav { min-height: 70px; }
    .fl-nav__cta { min-height: 38px; padding: 0 13px; font-size: .78rem; }
    .fl-hero { gap: 36px; padding: 38px 0 70px; }
    .fl-hero h1 { font-size: clamp(3.15rem, 16vw, 4.3rem); }
    .fl-actions { display: grid; }
    .fl-button { width: 100%; }
    .fl-proof { display: grid; gap: 10px; }
    .fl-product::before { inset: -18px -35px -35px -18px; }
    .fl-window { border-radius: 18px; transform: none; }
    .fl-window__body { min-height: 330px; padding: 11px; }
    .fl-video { min-height: 125px; }
    .fl-video--teacher { min-height: 142px; }
    .fl-signal-row { grid-template-columns: 1fr; }
    .fl-signal:nth-child(n+3) { display: none; }
    .fl-band, .fl-paths { padding: 72px 0; }
    .fl-feature-grid, .fl-path-grid { grid-template-columns: 1fr; }
    .fl-feature { min-height: 190px; }
    .fl-feature__icon { margin-bottom: 28px; }
    .fl-join { padding: 24px 20px; }
    .fl-join__form { display: grid; }
    .fl-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .fl-window { transform: none; }
    .fl-button, .fl-nav__cta, .fl-path a i { transition: none; }
}
