/*
 * Forest Panda — calm forest productivity design system.
 * Shares the ink/paper palette and Inter typography used across /lt and /ik.
 */

:root {
    --fp-bg: #fffdf7;
    --fp-bg-alt: #eef5e8;
    --fp-ink: #16231a;
    --fp-ink-soft: #334236;
    --fp-muted: #64725f;
    --fp-line: #dfe9d7;
    --fp-brand: #2f6b3f;
    --fp-brand-hover: #255734;
    --fp-accent: #6d9151;
    --fp-green: #2f6b3f;
    --fp-green-soft: #80a96b;
    --fp-mint: #e2f0d8;
    --fp-mint-ink: #2f6b3f;
    --fp-danger: #dc2626;
    --fp-learn: #3f7a3d;
    --fp-learn-hover: #326433;
    --fp-hero-1: #2d5f3a;
    --fp-hero-2: #4f7d45;
    --fp-radius: 12px;
    --fp-radius-lg: 16px;
    --fp-shadow: 0 8px 24px rgba(37, 87, 52, 0.09);
    --fp-shadow-lg: 0 18px 45px rgba(37, 87, 52, 0.14);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--fp-bg);
    color: var(--fp-ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

.fp-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--fp-ink) !important;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0;
    text-decoration: none;
}

/* === Layout helpers === */
.fp-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navigation === */
.fp-public-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--fp-line);
}

.fp-nav-inner,
.fp-app-header {
    width: 100%;
    margin: 0;
    min-height: 60px;
    /* Keep the bar full-width but hold its contents in a centred column so the
       logo and nav sit inside the header instead of flush to the edges. */
    padding: 10px max(20px, calc((100% - 1080px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fp-public-nav .fp-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fp-public-nav .fp-nav-toggle,
.fp-public-nav .fp-nav-burger {
    display: none;
}

.fp-public-nav .fp-nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-ink);
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.15s;
}

.fp-public-nav .fp-nav-links a:hover {
    background: var(--fp-bg-alt);
}

.fp-public-nav .fp-nav-links .fp-nav-button:hover {
    background: var(--fp-brand-hover);
    border-color: var(--fp-brand-hover);
    color: #fff !important;
}

/* === Buttons === */
.fp-nav-button,
.fp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: var(--fp-radius);
    padding: 11px 22px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fp-nav-button {
    min-height: 40px;
    padding: 9px 18px;
    font-size: 14px;
}

.fp-nav-button,
.fp-button-primary {
    background: var(--fp-brand);
    color: #fff !important;
    border-color: var(--fp-brand);
}

.fp-nav-button:hover,
.fp-button-primary:hover {
    background: var(--fp-brand-hover);
    border-color: var(--fp-brand-hover);
    color: #fff !important;
}

.fp-button-secondary {
    background: var(--fp-bg);
    color: var(--fp-ink);
    border-color: var(--fp-line);
}

.fp-button-secondary:hover {
    background: var(--fp-bg-alt);
}

.fp-button-danger {
    background: var(--fp-danger);
    color: #fff;
    border-color: var(--fp-danger);
}

.fp-button:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Hero === */
.fp-hero {
    padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
}

.fp-hero-grid {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 0 clamp(32px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 48px;
    align-items: center;
}

.fp-eyebrow {
    margin: 0 0 18px;
    color: var(--fp-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.fp-hero h1 {
    margin: 0;
    /* Capped so the headline keeps its words but fits in ~2-3 lines, not 5. */
    font-size: clamp(2rem, 3.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
}

.fp-hero-copy {
    margin-top: 20px;
    color: var(--fp-muted);
    max-width: 540px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.fp-hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.fp-hero-note {
    margin-top: 16px;
    color: var(--fp-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-hero-note svg {
    color: var(--fp-green);
    flex: none;
}

.fp-landing-hero-art {
    position: relative;
}

.fp-landing-hero-art::before {
    content: "";
    position: absolute;
    inset: -26px -22px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 253, 247, 0.34), rgba(226, 240, 216, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.24);
    transform: rotate(-1deg);
}

.fp-landing-hero-art img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 24px 60px rgba(22, 35, 26, 0.28);
}

/* === Hero product preview === */
.fp-hero-panel {
    display: grid;
    gap: 16px;
}

.fp-practice-card {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    color: var(--fp-ink);
    padding: 22px;
    box-shadow: var(--fp-shadow-lg);
}

.fp-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 11px;
    background: var(--fp-mint);
    color: var(--fp-mint-ink);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fp-practice-card h2 {
    font-size: 1.7rem;
    margin: 14px 0 4px;
    line-height: 1.1;
}

.fp-practice-card > p {
    color: var(--fp-muted);
    margin: 0 0 14px;
}

.fp-audio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--fp-line);
    background: var(--fp-bg-alt);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--fp-ink);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.fp-audio-pill:hover:not(:disabled) {
    background: var(--fp-green);
    border-color: var(--fp-green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.18);
}

.fp-audio-pill:hover:not(:disabled) svg {
    color: #fff;
}

.fp-audio-pill:active:not(:disabled) {
    transform: translateY(0);
}

.fp-audio-pill:disabled {
    cursor: default;
    opacity: 0.6;
}

.fp-feature-actions {
    margin-top: 22px;
}

.fp-glossika-alt-section {
    padding-top: clamp(32px, 5vw, 58px);
}

.fp-glossika-alt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    background: var(--fp-bg);
    box-shadow: var(--fp-shadow);
}

.fp-glossika-alt h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.12;
}

.fp-glossika-alt p:not(.fp-eyebrow) {
    margin: 14px 0 0;
    max-width: 760px;
    color: var(--fp-muted);
    line-height: 1.65;
}

.fp-glossika-alt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.fp-level-chart {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.fp-level-cell {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    background: var(--fp-bg);
}

.fp-level-cell strong {
    font-size: 1rem;
}

.fp-level-cell span {
    color: var(--fp-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.fp-level-bar {
    margin-top: auto;
    height: 7px;
    border-radius: 999px;
    background: var(--fp-line);
    overflow: hidden;
}

.fp-level-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fp-brand);
}

.fp-audio-showcase {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 34px;
    align-items: center;
}

.fp-audio-showcase .fp-audio-quality {
    margin: 0;
    max-width: none;
}

.fp-audio-device {
    padding: 18px;
    border: 1px solid var(--fp-line);
    border-radius: 22px;
    background: var(--fp-bg);
    box-shadow: var(--fp-shadow-lg);
}

.fp-audio-wave {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 62px;
    padding: 14px;
    border-radius: var(--fp-radius);
    background: var(--fp-bg-alt);
}

.fp-audio-wave i {
    width: 7px;
    border-radius: 999px;
    background: var(--fp-brand);
}

.fp-audio-wave i:nth-child(1) { height: 18px; opacity: 0.45; }
.fp-audio-wave i:nth-child(2) { height: 35px; opacity: 0.7; }
.fp-audio-wave i:nth-child(3) { height: 48px; }
.fp-audio-wave i:nth-child(4) { height: 30px; opacity: 0.65; }
.fp-audio-wave i:nth-child(5) { height: 42px; opacity: 0.85; }
.fp-audio-wave i:nth-child(6) { height: 23px; opacity: 0.55; }
.fp-audio-wave i:nth-child(7) { height: 50px; }
.fp-audio-wave i:nth-child(8) { height: 26px; opacity: 0.6; }

.fp-founder-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.fp-founder-card {
    padding: 32px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    background: var(--fp-bg);
}

.fp-founder-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(160deg, #ffffff 0%, #eef5e8 100%);
}

.fp-founder-avatar {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--fp-line);
    box-shadow: var(--fp-shadow-lg);
}

.fp-founder-label {
    margin: 20px 0 0;
    color: var(--fp-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-founder-name {
    margin: 8px 0 0;
    font-size: 1.85rem;
    line-height: 1.1;
}

.fp-founder-role,
.fp-founder-card p {
    color: var(--fp-muted);
    line-height: 1.65;
}

.fp-founder-contact {
    margin-top: auto !important;
    padding-top: 20px;
    border-top: 1px solid var(--fp-line);
}

.fp-founder-contact a {
    color: var(--fp-ink);
    font-weight: 700;
    text-decoration: none;
}

.fp-founder-contact a:hover {
    text-decoration: underline;
}

.fp-founder-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.fp-founder-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 20px;
    line-height: 1.55;
}

.fp-founder-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--fp-brand);
}

.fp-guide-grid {
    display: grid;
    gap: 24px;
}

.fp-guide-shot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.fp-guide-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow);
}

.fp-guide-shot h2,
.fp-guide-shot h3 {
    margin: 0 0 10px;
}

.fp-guide-shot p {
    color: var(--fp-muted);
    line-height: 1.65;
}

.fp-audio-pill svg {
    color: var(--fp-green);
}

.fp-fake-input {
    margin-top: 14px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    padding: 13px;
    background: var(--fp-bg-alt);
    color: var(--fp-muted);
}

/* === Sections === */
.fp-section {
    padding: clamp(56px, 7vw, 80px) 0;
}

.fp-section-alt {
    background: var(--fp-bg-alt);
}

.fp-section-ink {
    background: var(--fp-brand);
    color: #fff;
}

.fp-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.fp-section-head h2,
.fp-section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
}

.fp-section-head p {
    margin: 12px 0 0;
    color: var(--fp-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.fp-section-ink .fp-section-head p {
    color: rgba(255, 255, 255, 0.7);
}

.fp-section-heading {
    width: min(1200px, 100%);
    margin: 0 auto 26px;
    padding: 0 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.fp-section-heading a {
    color: var(--fp-ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.fp-section-heading a:hover {
    text-decoration: underline;
}

/* === Method / value pillars === */
.fp-pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fp-pillar {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 26px;
}

.fp-section-alt .fp-pillar {
    background: var(--fp-bg);
}

.fp-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--fp-mint);
    color: var(--fp-mint-ink);
    margin-bottom: 16px;
}

.fp-pillar h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.fp-pillar p {
    margin: 0;
    color: var(--fp-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

/* === Feature rows === */
.fp-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
}

.fp-feature-row:last-child {
    margin-bottom: 0;
}

.fp-feature-row.fp-reverse {
    direction: rtl;
}

.fp-feature-row.fp-reverse > * {
    direction: ltr;
}

.fp-feature-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.fp-feature-text p {
    color: var(--fp-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.fp-feature-visual {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 26px;
    box-shadow: var(--fp-shadow);
}

.fp-section-alt .fp-feature-visual {
    background: var(--fp-bg);
}

/* mini sentence mock used inside feature visuals */
.fp-mock-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    background: var(--fp-bg-alt);
    margin-bottom: 10px;
}

.fp-mock-line:last-child {
    margin-bottom: 0;
}

.fp-mock-line strong {
    font-weight: 600;
}

.fp-mock-line span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fp-mint-ink);
    background: var(--fp-mint);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.fp-mock-line span.fp-due {
    color: var(--fp-muted);
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
}

/* === Two practice modes === */
.fp-mode-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}

.fp-mode-tile {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 32px;
}

.fp-mode-tile .fp-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--fp-bg-alt);
    border: 1px solid var(--fp-line);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fp-muted);
}

.fp-mode-tile h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 800;
}

.fp-mode-tile p {
    margin: 0 0 14px;
    color: var(--fp-muted);
    line-height: 1.6;
}

.fp-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.fp-check-list li:last-child {
    margin-bottom: 0;
}

.fp-check-list svg {
    color: var(--fp-green);
    flex: none;
    margin-top: 2px;
}

/* === Courses grid === */
.fp-course-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.fp-course-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 22px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.fp-course-card:hover {
    border-color: #d4d4d8;
    box-shadow: var(--fp-shadow);
    transform: translateY(-2px);
}

.fp-course-emoji {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 6px;
}

.fp-course-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.fp-course-card p {
    color: var(--fp-muted);
    margin: 0;
    font-size: 0.95rem;
}

.fp-course-card .fp-muted {
    flex: 1 1 auto;
}

.fp-course-card > span {
    align-self: flex-start;
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--fp-bg-alt);
    border: 1px solid var(--fp-line);
    color: var(--fp-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.fp-course-card a {
    margin-top: auto;
    color: var(--fp-ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.fp-course-card > .fp-button {
    margin-top: auto;
    width: 100%;
}

.fp-course-card a:hover {
    text-decoration: underline;
}

/* === Pricing / comparison === */
.fp-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 860px;
    margin: 0 auto 40px;
}

.fp-plan-card {
    position: relative;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 32px;
}

.fp-plan-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--fp-bg-alt);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fp-muted);
}

.fp-plan-featured {
    border-color: var(--fp-ink);
    box-shadow: var(--fp-shadow);
}

.fp-plan-featured .fp-plan-badge {
    background: var(--fp-ink);
    color: #fff;
}

.fp-plan-badge-promo {
    background: var(--fp-brand) !important;
    color: #fff !important;
}

.fp-promo-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--fp-brand);
    font-weight: 600;
}

.fp-plan-current {
    margin-top: 6px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--fp-bg-alt);
    color: var(--fp-ink);
    font-weight: 700;
    text-align: center;
    font-size: 0.92rem;
}

.fp-promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 9px 16px;
    background: var(--fp-brand);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.fp-promo-banner-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fp-promo-cta {
    background: #fff;
    color: var(--fp-brand);
    border: 0;
    border-radius: 999px;
    padding: 5px 14px;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
}

.fp-promo-dismiss {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.fp-plan-card h2,
.fp-plan-card h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 800;
}

.fp-plan-card strong.fp-price {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 4px 0;
}

.fp-plan-card strong.fp-price small {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fp-muted);
    letter-spacing: 0;
}

.fp-plan-card > p {
    color: var(--fp-muted);
    margin: 0 0 18px;
    line-height: 1.55;
}

.fp-plan-card .fp-button {
    width: 100%;
}

.fp-plan-card .fp-field {
    margin-bottom: 16px;
}

/* comparison table */
.fp-compare {
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
}

.fp-compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.fp-compare th,
.fp-compare td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid var(--fp-line);
}

.fp-compare th {
    font-weight: 600;
    color: var(--fp-ink);
}

.fp-compare td {
    color: var(--fp-muted);
}

.fp-compare tbody tr:last-child td {
    border-bottom: none;
}

.fp-compare-highlight {
    background: rgba(24, 24, 27, 0.04);
}

.fp-compare-highlight td {
    color: var(--fp-ink);
    font-weight: 500;
}

.fp-savings-note {
    display: block;
    margin-top: 4px;
    color: var(--fp-mint-ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.fp-savings {
    max-width: 860px;
    margin: 24px auto 0;
    text-align: center;
    padding: 16px;
    background: var(--fp-mint);
    border-radius: var(--fp-radius);
    color: var(--fp-mint-ink);
    font-size: 1.05rem;
    font-weight: 600;
}

.fp-audio-quality {
    max-width: 860px;
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: end;
    padding: 24px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    background: var(--fp-bg);
}

.fp-audio-quality h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.fp-audio-quality p {
    margin: 0;
    color: var(--fp-muted);
    line-height: 1.55;
}

.fp-audio-quality-sample {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    background: var(--fp-bg-alt);
}

.fp-audio-quality-sample strong {
    display: block;
    font-size: 1.1rem;
}

.fp-audio-quality-sample span {
    display: block;
    margin-top: 3px;
    color: var(--fp-muted);
    font-size: 0.9rem;
}

.fp-audio-quality-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--fp-brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* === Pricing strip (landing) === */
.fp-pricing-strip {
    background: var(--fp-brand);
    color: #fff;
    text-align: center;
}

.fp-pricing-strip .fp-container {
    max-width: 860px;
}

.fp-pricing-strip h2 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
}

.fp-pricing-strip > .fp-container > p {
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    font-size: 1.05rem;
}

.fp-price-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.fp-price-row div {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--fp-radius-lg);
    padding: 26px;
    background: rgba(255, 255, 255, 0.04);
}

.fp-price-row strong {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0;
}

.fp-price-row span {
    color: rgba(255, 255, 255, 0.7);
}

.fp-pricing-strip .fp-button-secondary {
    background: #fff;
    border-color: #fff;
}

/* === FAQ === */
.fp-faq {
    max-width: 720px;
    margin: 0 auto;
}

.fp-faq details {
    border-bottom: 1px solid var(--fp-line);
    padding: 6px 0;
}

.fp-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 36px 18px 0;
    position: relative;
    font-weight: 600;
    font-size: 1.05rem;
}

.fp-faq summary::-webkit-details-marker {
    display: none;
}

.fp-faq summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--fp-muted);
}

.fp-faq details[open] summary::after {
    content: "\2013";
}

.fp-faq details p {
    margin: 0 0 18px;
    color: var(--fp-muted);
    line-height: 1.7;
}

/* === Steps === */
.fp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fp-step {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 28px;
}

.fp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fp-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.fp-step h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.fp-step p {
    margin: 0;
    color: var(--fp-muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

/* === Final CTA === */
.fp-final-cta {
    text-align: center;
}

.fp-final-cta h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
}

.fp-final-cta p {
    margin: 0 auto 26px;
    color: var(--fp-muted);
    max-width: 520px;
    font-size: 1.1rem;
}

/* === Footer === */
.fp-footer {
    border-top: 1px solid var(--fp-line);
    padding: 32px 0;
}

.fp-footer-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--fp-muted);
    font-size: 0.9rem;
}

.fp-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.fp-footer-links a {
    color: var(--fp-ink);
    text-decoration: none;
    font-weight: 600;
}

.fp-footer-links a:hover {
    text-decoration: underline;
}

/* === Generic content pages === */
.fp-page {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 80px) 24px;
}

.fp-page h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.fp-page-copy {
    color: var(--fp-muted);
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 32px;
}

.fp-centered-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.fp-result-card {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 40px;
    max-width: 480px;
    text-align: center;
    box-shadow: var(--fp-shadow);
}

.fp-result-card h1 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.fp-result-card p {
    color: var(--fp-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}

.fp-legal {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 80px) 24px;
    line-height: 1.7;
}

.fp-legal h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 20px;
}

.fp-legal p {
    color: var(--fp-ink-soft);
}

.fp-legal a {
    color: var(--fp-ink);
    font-weight: 600;
}

/* === App shell === */
.fp-app-body {
    min-height: 100vh;
    background: var(--fp-bg-alt);
}

.fp-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--fp-muted);
}

.fp-app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fp-line);
}

.fp-app-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.fp-app-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.fp-coin-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #e6c96f;
    border-radius: 999px;
    background: #fff7d6;
    color: #7c5b08;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.fp-coin-pill svg {
    color: #b48112;
}

.fp-coin-pill span {
    color: #8a6a18;
    font-weight: 700;
}

.fp-learn-top .fp-coin-pill {
    min-height: 34px;
}

.fp-app-nav button {
    border: 0;
    background: transparent;
    color: var(--fp-ink-soft);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.fp-app-nav button:hover {
    background: var(--fp-bg-alt);
    color: var(--fp-ink);
}

/* Header anchor styled like a nav button (e.g. "vs Glossika"). */
.fp-app-nav .fp-nav-link {
    border: 0;
    background: transparent;
    color: var(--fp-ink-soft);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.fp-app-nav .fp-nav-link:hover {
    background: var(--fp-bg-alt);
    color: var(--fp-ink);
}

/* "Upgrade" CTA in the header (free accounts). */
.fp-app-nav .fp-nav-upgrade {
    background: var(--fp-brand);
    color: #fff;
}

.fp-app-nav .fp-nav-upgrade:hover {
    background: var(--fp-brand);
    color: #fff;
    filter: brightness(0.95);
}

/* Account dropdown: name + caret -> Settings / Logout. */
.fp-account {
    position: relative;
    display: inline-block;
}

.fp-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fp-account .fp-caret {
    transition: transform 0.15s;
}

.fp-account.fp-open .fp-caret {
    transform: rotate(180deg);
}

.fp-account-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 168px;
    background: var(--fp-bg, #fff);
    border: 1px solid var(--fp-border, #e4e4e7);
    border-radius: 10px;
    box-shadow: var(--fp-shadow-lg, 0 12px 32px rgba(15, 23, 42, 0.18));
    padding: 6px;
    z-index: 60;
    flex-direction: column;
}

.fp-account.fp-open .fp-account-menu {
    display: flex;
}

.fp-account-menu button {
    width: 100%;
    text-align: left;
}

.fp-app-main {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.fp-app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 20px;
    align-items: start;
}

.fp-app-panel,
.fp-history-panel {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 28px;
}

.fp-app-panel h1 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 800;
}

.fp-app-panel h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
}

/* === Onboarding and placement === */
.fp-onboarding,
.fp-placement {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(44px, 7vw, 88px) 24px;
    text-align: center;
}

.fp-onboarding h1,
.fp-placement h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
}

.fp-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 36px;
    margin-top: 48px;
}

.fp-onboarding-choice {
    min-height: 190px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    background: var(--fp-bg);
    color: var(--fp-ink);
    box-shadow: var(--fp-shadow);
    display: grid;
    place-items: center;
    gap: 24px;
    padding: 34px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.fp-onboarding-choice:hover,
.fp-placement-option:not(:disabled):hover {
    border-color: var(--fp-brand);
    box-shadow: var(--fp-shadow-lg);
    transform: translateY(-1px);
}

.fp-choice-icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--fp-mint);
    color: var(--fp-brand);
}

.fp-choice-egg {
    border-radius: 52% 48% 45% 55% / 58% 58% 42% 42%;
    background:
        radial-gradient(circle at 52% 54%, #f7b731 0 11px, transparent 12px),
        radial-gradient(circle at 34% 28%, #255734 0 18px, transparent 19px),
        radial-gradient(circle at 76% 36%, #255734 0 15px, transparent 16px),
        radial-gradient(circle at 32% 78%, #f7b731 0 13px, transparent 14px),
        #eef4ff;
}

.fp-placement-head {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.fp-placement-head .fp-text-btn {
    justify-self: start;
}

.fp-placement-head span {
    display: inline-flex;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--fp-brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.fp-placement-play-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    margin: 18px 0 28px;
}

.fp-placement-play {
    grid-column: 2;
    width: 72px;
    height: 72px;
    display: inline-grid;
    place-items: center;
    border: 8px solid #dff2cb;
    border-radius: 999px;
    background: #94c11f;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--fp-shadow);
}

.fp-placement-play.fp-audio-active {
    animation: fp-placement-play-pulse 0.9s ease-in-out infinite;
}

@keyframes fp-placement-play-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(148, 193, 31, 0.32), var(--fp-shadow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(148, 193, 31, 0.14), var(--fp-shadow-lg);
        transform: scale(1.04);
    }
}

.fp-placement-play-row strong {
    justify-self: start;
    color: var(--fp-muted);
    font-size: 1.2rem;
}

.fp-placement-options {
    display: grid;
    gap: 18px;
    width: min(680px, 100%);
    margin: 0 auto;
}

.fp-placement-option {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 66px;
    padding: 12px 18px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    background: var(--fp-bg);
    color: var(--fp-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.fp-placement-option:disabled {
    cursor: default;
}

.fp-placement-option.fp-choice-correct {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.fp-placement-option.fp-choice-correct span {
    background: #dcfce7;
    color: #15803d;
}

.fp-placement-option.fp-choice-wrong {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.fp-placement-option.fp-choice-wrong span {
    background: #fee2e2;
    color: #b91c1c;
}

.fp-placement-option span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--fp-bg-alt);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--fp-muted);
}

.fp-placement-option strong {
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    line-height: 1.3;
}

.fp-placement-actions {
    display: flex;
    justify-content: flex-end;
    width: min(680px, 100%);
    margin: 28px auto 0;
}

.fp-placement-loading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fp-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--fp-line);
    border-top-color: var(--fp-brand);
    border-radius: 999px;
    animation: fp-spin 0.8s linear infinite;
    flex: none;
}

@keyframes fp-spin {
    to {
        transform: rotate(360deg);
    }
}

.fp-placement-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.25);
}

.fp-placement-modal {
    width: min(460px, 100%);
    background: var(--fp-bg);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow-lg);
    padding: 34px;
    text-align: center;
}

.fp-placement-modal h2 {
    margin: 14px 0 10px;
    font-size: 1.25rem;
    font-weight: 800;
}

.fp-placement-modal p {
    margin: 0 0 22px;
    color: var(--fp-ink-soft);
    line-height: 1.55;
}

.fp-placement-modal-icon {
    width: 72px;
    height: 72px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--fp-mint);
    color: var(--fp-brand);
}

.fp-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border: 2px solid #94c11f;
    border-radius: 999px;
    color: #94c11f;
    display: grid;
    place-items: center;
    font-size: 3rem;
    line-height: 1;
}

/* === Auth === */
.fp-auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--fp-bg-alt);
}

.fp-auth-card {
    width: min(440px, 100%);
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 36px;
    box-shadow: var(--fp-shadow);
}

.fp-auth-card h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
}

.fp-auth-card > p {
    margin: 0 0 22px;
}

.fp-auth-card form + p,
.fp-auth-card > p:last-child {
    margin-top: 18px;
    font-size: 0.95rem;
}

.fp-auth-card a {
    color: var(--fp-ink);
    font-weight: 600;
}

/* === Forms === */
.fp-form {
    display: grid;
    gap: 14px;
}

.fp-field {
    display: grid;
    gap: 6px;
}

.fp-field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.fp-field input,
.fp-field select,
.fp-dictation-input {
    width: 100%;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    padding: 12px 14px;
    background: var(--fp-bg);
    color: var(--fp-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fp-field input:focus,
.fp-field select:focus,
.fp-dictation-input:focus {
    outline: none;
    border-color: var(--fp-ink);
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.fp-form-actions,
.fp-session-actions,
.fp-rating-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.fp-form-actions {
    margin-top: 8px;
}

.fp-alert {
    border-radius: var(--fp-radius);
    padding: 13px 15px;
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.fp-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.fp-alert-success {
    background: var(--fp-mint);
    color: var(--fp-mint-ink);
    border: 1px solid #a7f3d0;
}

.fp-muted {
    color: var(--fp-muted);
}

/* === In-app mode picker === */
.fp-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 6px 0 4px;
}

.fp-mode-card {
    border: 1px solid var(--fp-line);
    background: var(--fp-bg);
    border-radius: var(--fp-radius);
    padding: 16px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fp-mode-card strong {
    display: block;
    margin-bottom: 4px;
}

.fp-mode-card p {
    margin: 0;
    color: var(--fp-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.fp-mode-card.fp-selected {
    border-color: var(--fp-ink);
    box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.08);
}

/* === Practice session === */
.fp-session-card {
    display: grid;
    gap: 16px;
}

.fp-session-card > .fp-muted:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fp-target-sentence {
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    line-height: 1.12;
    margin: 0;
    font-weight: 800;
}

.fp-translation {
    color: var(--fp-muted);
    font-size: 1.15rem;
}

.fp-audio {
    width: 100%;
}

.fp-rating-row button {
    min-width: 92px;
    flex: 1 1 auto;
}

.fp-history-panel h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.fp-history-panel p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.fp-history-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    margin-top: 12px;
}

.fp-history-item {
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    padding: 12px;
    background: var(--fp-bg-alt);
    font-size: 0.9rem;
}

.fp-history-item strong {
    text-transform: capitalize;
}

/* === Offline banner === */
.fp-offline {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fp-ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    z-index: 80;
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 960px) {
    .fp-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fp-pillar-grid,
    .fp-steps {
        grid-template-columns: 1fr;
    }

    .fp-feature-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .fp-feature-row.fp-reverse {
        direction: ltr;
    }

    .fp-mode-tiles,
    .fp-plan-grid,
    .fp-price-row,
    .fp-audio-quality {
        grid-template-columns: 1fr;
    }

    .fp-app-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fp-nav-inner,
    .fp-app-header {
        flex-wrap: wrap;
    }

    .fp-public-nav .fp-nav-links {
        gap: 4px;
    }

    .fp-coin-pill span {
        display: none;
    }

    .fp-learn-top {
        gap: 8px;
        padding-inline: 12px;
    }

    .fp-compare table {
        min-width: 520px;
    }

    .fp-rating-row button {
        min-width: 0;
    }

    .fp-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* === Landing language strip === */
.fp-lang-strip-section {
    padding: 0 0 clamp(48px, 7vw, 72px);
}

.fp-lang-strip {
    width: min(1100px, 100%);
    margin: -40px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--fp-shadow);
}

.fp-lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--fp-line);
    border-radius: 999px;
    background: var(--fp-bg);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--fp-ink);
}

.fp-lang-chip .fp-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.fp-lang-chip-more {
    background: var(--fp-bg-alt);
    color: var(--fp-muted);
}

.fp-lang-chip-more:hover {
    border-color: #d4d4d8;
}

/* === Home landing generated illustrations === */
.fp-landing-hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-landing-hero-art img {
    display: block;
    width: min(100%, 560px);
    height: auto;
    border-radius: var(--fp-radius-lg);
    box-shadow: 0 28px 46px rgba(22, 35, 26, 0.22);
}

.fp-landing-feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-landing-feature-visual img {
    display: block;
    width: min(100%, 560px);
    height: auto;
    border-radius: var(--fp-radius-lg);
    box-shadow: 0 18px 32px rgba(22, 35, 26, 0.12);
}

.fp-landing-feature-wide img {
    width: min(100%, 620px);
}

/* === Feature-row eyebrow + visuals === */
.fp-feature-text .fp-eyebrow {
    margin-bottom: 10px;
}

.fp-course-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.fp-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fp-method-grid article,
.fp-course-example-card,
.fp-course-steps {
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    background: var(--fp-bg);
    box-shadow: var(--fp-shadow);
}

.fp-method-grid article {
    padding: 24px;
}

.fp-method-grid h3 {
    margin: 0;
    font-size: 1.18rem;
}

.fp-method-grid p:not(.fp-eyebrow) {
    margin: 12px 0 0;
    color: var(--fp-muted);
    line-height: 1.65;
}

.fp-course-examples {
    display: grid;
    gap: 12px;
}

.fp-course-example-card {
    padding: 18px;
}

.fp-course-example-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--fp-green);
    font-weight: 800;
    font-size: 0.78rem;
}

.fp-course-example-card strong {
    display: block;
    font-size: 1.18rem;
    line-height: 1.35;
}

.fp-course-example-card em {
    display: block;
    margin-top: 6px;
    color: var(--fp-muted);
    font-style: normal;
}

.fp-course-example-card p {
    margin: 8px 0 0;
    color: var(--fp-muted);
}

.fp-example-roman {
    color: var(--fp-muted);
}

.fp-course-steps {
    margin: 0;
    padding: 22px 24px;
    counter-reset: fp-course-step;
    list-style: none;
    display: grid;
    gap: 14px;
}

.fp-course-steps li {
    counter-increment: fp-course-step;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.fp-course-steps li::before {
    content: counter(fp-course-step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--fp-mint);
    color: var(--fp-mint-ink);
    font-weight: 800;
}

.fp-course-steps strong,
.fp-course-steps span {
    grid-column: 2;
}

.fp-course-steps strong {
    font-size: 1rem;
}

.fp-course-steps span {
    color: var(--fp-muted);
    margin-top: -8px;
}

.fp-feature-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.fp-mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.fp-mock-head strong {
    font-size: 0.95rem;
}

.fp-mock-level {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-mint-ink);
    background: var(--fp-mint);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Hands-off / hands-on toggle pills */
.fp-toggle {
    display: inline-flex;
    gap: 6px;
    background: var(--fp-bg-alt);
    border: 1px solid var(--fp-line);
    border-radius: 999px;
    padding: 5px;
    align-self: flex-start;
}

.fp-toggle-pill {
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--fp-muted);
}

.fp-toggle-pill.fp-active {
    background: var(--fp-brand);
    color: #fff;
}

/* === Testimonials === */
.fp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fp-testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 26px;
    box-shadow: var(--fp-shadow);
}

.fp-stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.fp-quote {
    margin: 0;
    color: var(--fp-ink-soft);
    line-height: 1.7;
    font-size: 1rem;
}

.fp-author {
    margin: 0;
    font-weight: 700;
    color: var(--fp-ink);
}

.fp-author small {
    display: block;
    font-weight: 500;
    color: var(--fp-muted);
    margin-top: 2px;
}

@media (max-width: 960px) {
    .fp-public-nav .fp-nav-burger {
        display: inline-grid;
        place-items: center;
        border: 0;
        background: transparent;
        color: var(--fp-ink);
        cursor: pointer;
        padding: 6px;
    }

    .fp-public-nav .fp-nav-inner {
        flex-wrap: wrap;
    }

    .fp-public-nav .fp-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-top: 8px;
    }

    .fp-public-nav .fp-nav-toggle:checked ~ .fp-nav-links {
        display: flex;
    }

    .fp-public-nav .fp-nav-links a {
        width: 100%;
    }

    .fp-glossika-alt {
        grid-template-columns: 1fr;
    }

    .fp-glossika-alt-actions {
        justify-content: flex-start;
    }

    .fp-method-grid {
        grid-template-columns: 1fr;
    }

    .fp-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .fp-lang-strip {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .fp-landing-hero-art img,
    .fp-landing-feature-visual img {
        filter: drop-shadow(0 14px 20px rgba(22, 35, 26, 0.12));
    }
}

/* === Forest hero + final CTA bands === */
.fp-hero {
    background:
        radial-gradient(circle at 78% 18%, rgba(226, 240, 216, 0.28), transparent 34%),
        linear-gradient(160deg, var(--fp-hero-1) 0%, var(--fp-hero-2) 100%);
    color: #fff;
}

.fp-hero h1 {
    color: #fff;
}

.fp-hero .fp-eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.fp-hero-copy {
    color: rgba(255, 255, 255, 0.85);
}

.fp-hero-note {
    color: rgba(255, 255, 255, 0.82);
}

.fp-hero-note svg {
    color: #fff;
}

.fp-hero .fp-button-primary {
    background: #fff;
    color: var(--fp-brand) !important;
    border-color: #fff;
}

.fp-hero .fp-button-primary:hover {
    background: #f3f8ee;
    color: var(--fp-brand) !important;
    border-color: #f3f8ee;
}

.fp-hero .fp-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.fp-hero .fp-button-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.fp-final-cta {
    background:
        radial-gradient(circle at 20% 20%, rgba(226, 240, 216, 0.22), transparent 34%),
        linear-gradient(160deg, var(--fp-hero-1) 0%, var(--fp-hero-2) 100%);
    color: #fff;
}

.fp-landing-final-cta {
    background-image:
        linear-gradient(160deg, rgba(45, 95, 58, 0.62) 0%, rgba(79, 125, 69, 0.52) 100%),
        url("/forest_panda/static/src/img/landing/cta-background.png");
    background-position: center;
    background-size: cover;
}

.fp-final-cta h2 {
    color: #fff;
}

.fp-final-cta p {
    color: rgba(255, 255, 255, 0.85);
}

.fp-final-cta .fp-muted {
    color: rgba(255, 255, 255, 0.7);
}

.fp-final-cta .fp-button-primary {
    background: #fff;
    color: var(--fp-brand) !important;
    border-color: #fff;
}

.fp-final-cta .fp-button-primary:hover {
    background: #f3f8ee;
    color: var(--fp-brand) !important;
    border-color: #f3f8ee;
}

/* Forest focus + selected states */
.fp-field input:focus,
.fp-field select:focus,
.fp-dictation-input:focus {
    border-color: var(--fp-brand);
    box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.16);
}

.fp-mode-card.fp-selected {
    border-color: var(--fp-brand);
    box-shadow: 0 0 0 2px rgba(47, 107, 63, 0.16);
}

.fp-plan-featured {
    border-color: var(--fp-brand);
}

/* === Focused learning view (listening / typing / dictation) === */
:root {
    --fp-correct: #22c55e;
    --fp-correct-soft: #dcfce7;
    --fp-warn: #ea580c;
}

.fp-learn {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--fp-bg-alt);
}

.fp-learn-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--fp-bg);
    border-bottom: 1px solid var(--fp-line);
}

.fp-learn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--fp-ink);
    margin: 0 auto;
}

.fp-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--fp-ink-soft);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex: none;
}

.fp-icon-btn:hover {
    background: var(--fp-bg-alt);
    color: var(--fp-ink);
}

.fp-progress {
    flex: 1 1 auto;
    height: 8px;
    background: var(--fp-line);
    border-radius: 999px;
    overflow: hidden;
}

.fp-progress-bar {
    height: 100%;
    background: var(--fp-brand);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.fp-progress-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fp-muted);
    min-width: 48px;
    text-align: right;
}

.fp-learn-main {
    flex: 1 1 auto;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 32px 20px 64px;
    display: flex;
    flex-direction: column;
}

.fp-card {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 28px;
    box-shadow: var(--fp-shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.fp-card.fp-correct {
    box-shadow: 0 0 0 3px var(--fp-correct), var(--fp-shadow-lg);
    transform: translateY(-2px);
}

.fp-card-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.fp-source-box {
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 1.05rem;
    background: var(--fp-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fp-target-wrap {
    position: relative;
}

.fp-target-box {
    border: 2px solid var(--fp-line);
    border-radius: var(--fp-radius);
    padding: 20px 18px;
    background: var(--fp-bg);
    transition: border-color 0.2s, box-shadow 0.2s, filter 0.2s;
}

/* Green animated border while the target audio plays. */
.fp-target-box.fp-audio-active,
.fp-source-box.fp-audio-active {
    border-color: var(--fp-correct);
    box-shadow: 0 0 0 3px var(--fp-correct-soft);
    animation: fp-audio-pulse 1s ease-in-out infinite;
}

@keyframes fp-audio-pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--fp-correct-soft); }
    50% { box-shadow: 0 0 0 5px var(--fp-correct-soft); }
}

.fp-target-sentence {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    margin: 0;
    font-weight: 800;
}

.fp-word-gloss,
.fp-hist-literal {
    margin-top: 10px;
    color: var(--fp-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.fp-word-gloss-title {
    display: block;
    margin-bottom: 6px;
    color: var(--fp-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fp-word-gloss-scroll {
    max-height: 190px;
    overflow: auto;
    border: 1px solid var(--fp-line);
    border-radius: 10px;
    background: #fffdf7;
}

.fp-word-gloss table,
.fp-hist-literal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.fp-word-gloss th,
.fp-word-gloss td,
.fp-hist-literal th,
.fp-hist-literal td {
    padding: 7px 9px;
    border-bottom: 1px solid var(--fp-line);
    text-align: left;
    vertical-align: top;
}

.fp-word-gloss th,
.fp-hist-literal th {
    color: var(--fp-accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f5f8ef;
}

.fp-word-gloss tr:last-child td,
.fp-hist-literal tr:last-child td {
    border-bottom: 0;
}

.fp-romanization {
    margin-top: 8px;
    color: var(--fp-muted);
    font-size: 1.05rem;
}

.fp-target-box.fp-blur {
    filter: blur(9px);
    user-select: none;
    pointer-events: none;
}

.fp-peek-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--fp-line);
    background: var(--fp-bg);
    color: var(--fp-ink);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--fp-shadow);
}

.fp-peek-btn:hover {
    background: var(--fp-bg-alt);
}

.fp-audio-control {
    display: flex;
}

.fp-audio-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    background: var(--fp-bg);
    color: var(--fp-brand);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.fp-audio-btn:hover {
    background: var(--fp-bg-alt);
    border-color: var(--fp-brand);
}

.fp-answer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-answer-input {
    width: 100%;
    border: 2px solid var(--fp-brand);
    border-radius: var(--fp-radius);
    padding: 14px 16px;
    font-size: 1.1rem;
    background: var(--fp-bg);
    color: var(--fp-ink);
}

.fp-answer-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 107, 63, 0.16);
}

.fp-correction {
    color: var(--fp-warn);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-correction::before {
    content: "⚠";
}

.fp-correction-label {
    color: var(--fp-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fp-correction-success {
    color: #15803d;
}

.fp-correction-success::before {
    content: "✓";
}

.fp-correction-success .fp-correction-label {
    color: #2f6b3f;
}

/* Without this the empty correction box stays visible (display:flex overrides the
   hidden attribute), showing a stray warning icon even when there's nothing wrong. */
.fp-correction[hidden] {
    display: none;
}

.fp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fp-card-foot-listening {
    justify-content: flex-start;
}

.fp-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--fp-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 4px;
}

.fp-text-btn:hover {
    color: var(--fp-ink);
}

.fp-submit-btn {
    min-width: 140px;
}

/* Session complete */
.fp-card-done {
    text-align: center;
    align-items: center;
    gap: 12px;
    padding: 48px 28px;
}

.fp-card-done h1 {
    margin: 6px 0 0;
    font-size: 1.8rem;
    font-weight: 800;
}

/* === Settings modal === */
#fp-modal-root {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.fp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.fp-modal {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--fp-bg);
    border-radius: var(--fp-radius-lg);
    padding: 28px;
    box-shadow: var(--fp-shadow-lg);
}

.fp-modal h2 {
    margin: 0 0 18px;
    font-size: 1.4rem;
    font-weight: 800;
}

.fp-modal .fp-field {
    margin-bottom: 22px;
}

.fp-modal input[type="range"] {
    width: 100%;
    accent-color: var(--fp-brand);
}

.fp-modal-busy {
    pointer-events: auto;
}

.fp-modal-busy .fp-modal-actions {
    opacity: 0.82;
}

.fp-learn-start-status {
    margin: 14px 0 0;
    text-align: right;
}

.fp-spinner-small {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.fp-help {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 8px 0 0;
}

.fp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Offline modals (building / did-you-finish / did-you-study) share this host.
   Without the fixed, centered host the dialog fell to the bottom of the page. */
#fp-offline-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 20px;
}

/* ----- Private scheduler-history audit view ----- */
.fp-hist-panel {
    max-width: 920px;
}

.fp-hist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.fp-hist-head h2 {
    margin: 0;
    flex: 1;
    font-size: 1.25rem;
}

.fp-offline-state {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #eef2e8;
    color: var(--fp-brand);
}

.fp-offline-state-ready {
    background: #dcfce7;
    color: #15803d;
}

.fp-offline-state-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.fp-offline-state-pending,
.fp-offline-state-processing {
    background: #fef3c7;
    color: #92400e;
}

.fp-offline-download-link {
    min-height: 34px;
    padding: 7px 12px;
}

.fp-offline-error td {
    color: #b91c1c;
    background: #fff1f2;
    font-size: 0.86rem;
}

.fp-hist-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 14px 0 12px;
}

.fp-hist-search {
    display: grid;
    gap: 6px;
}

.fp-hist-search span {
    color: var(--fp-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fp-hist-search input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--fp-border, #e4e4e7);
    border-radius: 10px;
    padding: 9px 12px;
    background: var(--fp-bg, #fff);
    color: var(--fp-ink);
    font: inherit;
}

.fp-hist-search input:focus {
    outline: 2px solid rgba(47, 118, 78, 0.18);
    border-color: var(--fp-brand);
}

.fp-hist-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.fp-hist-filter {
    border: 1px solid var(--fp-border, #e4e4e7);
    background: var(--fp-bg, #fff);
    color: var(--fp-ink-soft, #52525b);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.fp-hist-filter.fp-active {
    background: var(--fp-brand, #2f54eb);
    border-color: var(--fp-brand, #2f54eb);
    color: #fff;
}

/* Session history table. */
.fp-sess-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.fp-sess-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.fp-sess-table th,
.fp-sess-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f1f4;
    white-space: nowrap;
    vertical-align: top;
}

.fp-sess-table th {
    color: var(--fp-ink-soft, #71717a);
    font-weight: 600;
}

.fp-sess-type {
    font-weight: 700;
    color: var(--fp-ink, #18181b);
}

.fp-sess-breakdown {
    color: var(--fp-ink-soft, #52525b);
    white-space: normal;
}

/* ----- Glossika vs Forest Panda comparison page ----- */
/* Glossika-vs prose article readability. */
.fp-article {
    max-width: 820px;
}

.fp-article h2 {
    margin: 38px 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
}

.fp-article h3 {
    margin: 30px 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.fp-article p {
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 70ch;
}

.fp-vs-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 28px;
}

.fp-vs-wrap {
    overflow-x: auto;
}

.fp-vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--fp-bg, #fff);
    border: 1px solid var(--fp-border, #e4e4e7);
    border-radius: var(--fp-radius-lg, 14px);
    overflow: hidden;
}

.fp-vs-table th,
.fp-vs-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--fp-border, #eef0f2);
    vertical-align: top;
}

.fp-vs-table thead th {
    font-weight: 800;
    font-size: 1rem;
}

.fp-vs-table td:first-child,
.fp-vs-table th:first-child {
    font-weight: 700;
    color: var(--fp-ink, #18181b);
    width: 22%;
}

.fp-vs-table .fp-vs-us {
    background: var(--fp-bg-alt, #f1f7f2);
    color: var(--fp-ink, #18181b);
    font-weight: 600;
}

.fp-cta-band {
    margin: 40px 0 8px;
    padding: 32px;
    border-radius: var(--fp-radius-lg, 16px);
    background: var(--fp-brand, #2f54eb);
    color: #fff;
    text-align: center;
}

.fp-cta-band h2 {
    margin: 0 0 8px;
    color: #fff;
}

.fp-cta-band p {
    margin: 0 0 20px;
    opacity: 0.92;
}

.fp-hist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.fp-hist-card {
    border: 1px solid var(--fp-border, #e4e4e7);
    border-radius: var(--fp-radius, 10px);
    background: var(--fp-surface, #fff);
    overflow: hidden;
}

.fp-hist-card > summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto minmax(150px, auto);
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    font-size: 0.92rem;
}

.fp-hist-card > summary::-webkit-details-marker {
    display: none;
}

.fp-hist-rank {
    color: #71717a;
    font-variant-numeric: tabular-nums;
    min-width: 48px;
}

.fp-hist-sentence {
    font-weight: 600;
}

.fp-hist-summary-main {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(150px, 1fr);
    gap: 12px;
    align-items: baseline;
}

.fp-hist-summary-main span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-hist-summary-roman,
.fp-hist-summary-en {
    color: #71717a;
    font-size: 0.86rem;
}

.fp-hist-next {
    color: #71717a;
    font-size: 0.82rem;
    white-space: nowrap;
}

.fp-hist-state {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2fb;
    color: #2f6b3f;
    white-space: nowrap;
}

.fp-state-Review { background: #dcfce7; color: #15803d; }
.fp-state-Learning, .fp-state-Relearning { background: #fef3c7; color: #b45309; }
.fp-state-New { background: #e4e4e7; color: #52525b; }
.fp-state-Suspended { background: #e7e1d6; color: #5f4b32; }

.fp-hist-detail {
    padding: 0 14px 14px;
    border-top: 1px solid var(--fp-border, #e4e4e7);
}

.fp-hist-en {
    margin-top: 10px;
    color: #3f3f46;
}

.fp-hist-roman {
    color: #71717a;
    font-size: 0.88rem;
}

.fp-hist-literal {
    font-size: 0.86rem;
}

.fp-hist-stats {
    margin: 10px 0;
    font-size: 0.8rem;
    color: #71717a;
    font-variant-numeric: tabular-nums;
}

.fp-hist-reviews {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.fp-hist-reviews th,
.fp-hist-reviews td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #f1f1f4;
    vertical-align: top;
}

.fp-hist-reviews th {
    color: #71717a;
    font-weight: 600;
    white-space: nowrap;
}

.fp-hist-answers {
    color: #52525b;
    word-break: break-word;
}

.fp-hist-rating {
    font-weight: 700;
    text-transform: capitalize;
}

.fp-rating-again { color: #dc2626; }
.fp-rating-hard { color: #b45309; }
.fp-rating-good { color: #15803d; }
.fp-rating-easy { color: #2f6b3f; }

@media (max-width: 640px) {
    .fp-onboarding-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .fp-onboarding-choice {
        min-height: 210px;
    }

    .fp-placement-head {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fp-placement-head .fp-text-btn {
        justify-self: start;
    }

    .fp-placement-play-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fp-placement-play {
        grid-column: auto;
        justify-self: center;
    }

    .fp-placement-play-row strong,
    .fp-placement-actions {
        justify-self: center;
        justify-content: center;
    }

    .fp-submit-btn {
        min-width: 110px;
    }

    .fp-learn-main {
        padding: 20px 14px 48px;
    }

    .fp-card {
        padding: 20px;
    }
}

/* === Forest Panda dashboard === */
.fp-button-learn,
.fp-dash-practice {
    background: var(--fp-learn);
    border-color: var(--fp-learn);
    color: #fff !important;
}

.fp-button-learn:hover,
.fp-dash-practice:hover {
    background: var(--fp-learn-hover);
    border-color: var(--fp-learn-hover);
    color: #fff !important;
}

.fp-dash-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, var(--fp-hero-1) 0%, var(--fp-hero-2) 100%);
    color: #fff;
    border-radius: var(--fp-radius-lg);
    padding: 22px 26px;
    margin-bottom: 18px;
    box-shadow: var(--fp-shadow);
}

.fp-dash-banner-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.fp-dash-hi {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fp-banner-lang {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0;
}

.fp-lang-switch {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.1rem;
    font-weight: 700;
    max-width: 100%;
}

.fp-lang-switch option {
    color: #18181b;
}

.fp-dash-streak {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.fp-dash-streak svg {
    color: #ffd66b;
}

.fp-dash-streak-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.fp-dash-streak-text strong {
    font-size: 1.6rem;
    font-weight: 800;
}

.fp-dash-streak-text span {
    font-size: 0.8rem;
    opacity: 0.85;
}

.fp-dash-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.fp-dash-practice {
    flex: 1 1 auto;
    min-height: 52px;
    font-size: 1.05rem;
}

.fp-dash-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.fp-tool-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fp-button-ghost {
    background: #fff;
    color: var(--fp-brand);
    border: 1px solid var(--fp-line);
}

.fp-button-ghost:hover:not(:disabled) {
    background: var(--fp-bg-alt);
    border-color: var(--fp-brand);
}

.fp-button-ghost:disabled {
    opacity: 0.65;
    cursor: default;
}

.fp-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.fp-stat-tile {
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fp-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--fp-ink);
    letter-spacing: 0;
}

.fp-stat-label {
    font-size: 0.85rem;
    color: var(--fp-muted);
    font-weight: 600;
}

.fp-dash-chart-card h2 {
    margin: 0 0 2px;
    font-size: 1.2rem;
    font-weight: 800;
}

.fp-chart-wrap {
    position: relative;
    height: 280px;
    margin-top: 12px;
}

/* === Learn / Review CTA buttons === */
.fp-dash-learn,
.fp-dash-review {
    flex: 1 1 0;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.fp-button-review {
    background: #2f6b3f;
    color: #fff !important;
    border-color: #2f6b3f;
}

.fp-button-review:hover:not(:disabled) {
    background: #1f4c2d;
    border-color: #1f4c2d;
}

.fp-button.fp-dash-learn:disabled,
.fp-button.fp-dash-review:disabled {
    opacity: 0.55;
    cursor: default;
}

.fp-cta-title {
    font-size: 1.02rem;
    font-weight: 800;
}

.fp-cta-sub {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
}

/* === Banner current level === */
.fp-banner-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
}

.fp-banner-pct {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.8rem;
}

/* === Dashboard two-column grid (levels + progress) === */
.fp-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 820px) {
    .fp-dash-grid {
        grid-template-columns: 1fr;
    }
}

/* === Levels panel === */
.fp-levels-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fp-levels-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.fp-link {
    background: transparent;
    border: 0;
    color: var(--fp-brand);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.fp-link:hover {
    text-decoration: underline;
}

.fp-levels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fp-level-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
}

.fp-level-current {
    background: #eef2fb;
}

.fp-level-badge {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--fp-ink);
}

.fp-level-current .fp-level-badge {
    background: var(--fp-brand);
    color: #fff;
    border-color: var(--fp-brand);
}

.fp-level-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--fp-ink);
}

.fp-level-bands {
    display: flex;
    gap: 12px;
}

.fp-band {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--fp-muted);
    font-weight: 600;
}

.fp-band-name {
    min-width: 26px;
}

.fp-band-bar {
    flex: 1 1 auto;
    height: 6px;
    background: var(--fp-line);
    border-radius: 999px;
    overflow: hidden;
}

.fp-band-bar > i {
    display: block;
    height: 100%;
    background: #f7b500;
    border-radius: 999px;
}

.fp-band-pct {
    min-width: 30px;
    text-align: right;
}

.fp-band-locked {
    opacity: 0.55;
}

.fp-band-lock {
    margin-left: auto;
    display: inline-flex;
    color: var(--fp-muted);
}

/* === Pricing extras === */
.fp-price-old {
    color: var(--fp-muted);
    text-decoration: line-through;
    font-weight: 600;
    font-size: 0.62em;
    margin-right: 6px;
}

.fp-compare-title {
    margin: 40px 0 6px;
    font-size: 1.5rem;
    font-weight: 800;
}

.fp-compare-us small {
    display: block;
    font-weight: 600;
    color: var(--fp-muted);
    font-size: 0.72rem;
}

.fp-compare th.fp-compare-us,
.fp-compare td:nth-child(2) {
    background: var(--fp-mint);
}

.fp-compare-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--fp-muted);
}

/* === Hamburger / responsive nav === */
.fp-hamburger {
    display: none;
    border: 0;
    background: transparent;
    color: var(--fp-ink);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.fp-public-nav .fp-nav-toggle {
    display: none;
}

@media (max-width: 760px) {
    .fp-hero-grid,
    .fp-feature-row,
    .fp-audio-showcase,
    .fp-founder-grid,
    .fp-guide-shot {
        grid-template-columns: 1fr;
    }

    .fp-hero-grid {
        padding: 0 20px;
    }

    .fp-level-chart {
        grid-template-columns: 1fr;
    }

    .fp-audio-quality {
        grid-template-columns: 1fr;
    }

    .fp-audio-quality-sample {
        align-items: stretch;
        flex-direction: column;
    }

    .fp-founder-avatar {
        width: 180px;
        height: 180px;
    }

    .fp-hist-card > summary {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .fp-hist-summary-main {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .fp-hist-tools {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .fp-hist-state,
    .fp-hist-next {
        grid-column: 2;
        justify-self: start;
    }

    .fp-hamburger {
        display: inline-grid;
        place-items: center;
    }

    .fp-app-header {
        flex-wrap: wrap;
    }

    .fp-app-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
        gap: 2px;
        padding-top: 8px;
    }

    .fp-app-nav.fp-open {
        display: flex;
    }

    .fp-app-nav button {
        text-align: left;
        width: 100%;
        padding: 12px 10px;
    }

    .fp-app-nav .fp-nav-link {
        text-align: left;
        width: 100%;
        padding: 12px 10px;
    }

    /* Inside the mobile menu the account dropdown renders inline, not floating. */
    .fp-account {
        width: 100%;
    }

    .fp-account-menu {
        position: static;
        display: flex;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 12px;
        min-width: 0;
    }

    .fp-public-nav .fp-nav-burger {
        display: inline-grid;
        place-items: center;
        border: 0;
        background: transparent;
        color: var(--fp-ink);
        cursor: pointer;
        padding: 6px;
    }

    .fp-public-nav .fp-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-top: 8px;
    }

    .fp-public-nav .fp-nav-toggle:checked ~ .fp-nav-links {
        display: flex;
    }

    .fp-stat-num {
        font-size: 1.6rem;
    }

    .fp-dash-banner {
        padding: 18px;
    }
}

/* === Drill-to-drill transition + loading === */
@keyframes fp-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.fp-learn .fp-card {
    animation: fp-card-in 0.32s ease both;
}

.fp-learn-main {
    position: relative;
}

.fp-card-spinner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(239, 243, 254, 0.72);
    border-radius: var(--fp-radius-lg);
    z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
    .fp-learn .fp-card {
        animation: none;
    }
}

/* === Round 4: clickable course cards, listening toggle, recall rating === */
.fp-course-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.fp-course-card .fp-course-cta {
    margin-top: auto;
    align-self: flex-start;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--fp-brand);
    font-weight: 700;
    font-size: 0.95rem;
}

.fp-course-card-link:hover .fp-course-cta {
    text-decoration: underline;
}

a.fp-lang-chip:hover {
    border-color: #d4d4d8;
    box-shadow: var(--fp-shadow);
}

.fp-mock-toggle {
    display: inline-grid;
    place-items: center;
    color: var(--fp-brand);
}

/* Listening-only header toggle */
.fp-listen-toggle.fp-on {
    background: var(--fp-brand);
    color: #fff;
}

.fp-listen-toggle.fp-on:hover {
    background: var(--fp-brand-hover);
    color: #fff;
}

/* Listening-only footer */
.fp-listen-rep {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fp-muted);
    margin-right: auto;
}

.fp-listen-next {
    min-width: 110px;
}

/* Recall self-grading */
.fp-rating {
    margin-top: 10px;
}

.fp-rating-q {
    text-align: center;
    color: var(--fp-muted);
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.fp-rating-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fp-rating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 6px;
    border-radius: var(--fp-radius);
    border: 1px solid var(--fp-line);
    background: var(--fp-bg);
    color: var(--fp-ink);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.fp-rating-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--fp-shadow);
}

.fp-rating-interval {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fp-muted);
}

.fp-rating-again {
    border-color: #f0b4b4;
    color: #b91c1c;
}

.fp-rating-hard {
    border-color: #f3cf9e;
    color: #b45309;
}

.fp-rating-good {
    border-color: #a7d8b5;
    color: #15803d;
}

.fp-rating-easy {
    border-color: #aec8ef;
    color: #255734;
}

.fp-rating-btn .fp-rating-interval {
    color: inherit;
    opacity: 0.75;
}

@media (max-width: 480px) {
    .fp-rating-btn {
        padding: 10px 4px;
        font-size: 0.85rem;
    }
}

/* === Round 5: onboarding buttons, placement pending, level celebration === */
.fp-onboarding-choice strong {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.fp-spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

.fp-placement-option.fp-choice-pending {
    border-color: var(--fp-brand);
    box-shadow: var(--fp-shadow);
}

.fp-celebrate {
    text-align: center;
}

.fp-celebrate h2 {
    margin-top: 0;
}

.fp-celebrate .fp-modal-actions {
    justify-content: center;
}

/* === Round 6: recall diff + admin documentation page === */
.fp-recall-review {
    margin-top: 10px;
}

.fp-diff {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    text-align: left;
}

.fp-diff-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: baseline;
}

.fp-diff-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fp-muted);
}

.fp-diff-text {
    font-size: 1.15rem;
    line-height: 1.5;
    word-break: break-word;
}

.fp-diff-ok {
    color: var(--fp-ink);
}

.fp-diff-extra {
    color: #b91c1c;
    background: #fde8e8;
    text-decoration: line-through;
    border-radius: 3px;
}

.fp-diff-missing {
    color: #15803d;
    background: #e6f4ea;
    border-radius: 3px;
}

.fp-docs-body {
    background: var(--fp-bg-alt);
}

.fp-docs-shell {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

.fp-docs-sidebar {
    position: sticky;
    top: 24px;
    flex: 0 0 260px;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 48px);
}

.fp-docs-sidebar .fp-brand {
    font-size: 1.2rem;
}

.fp-docs-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fp-muted);
}

.fp-docs-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    font-size: 0.9rem;
    font-family: inherit;
}

.fp-docs-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    padding-right: 4px;
}

.fp-docs-link {
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fp-muted);
    cursor: pointer;
}

.fp-docs-link:hover {
    background: var(--fp-bg-alt);
    color: var(--fp-ink);
}

.fp-docs-link.is-active {
    background: var(--fp-brand);
    color: #fff;
}

.fp-docs-content {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--fp-bg);
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    padding: 32px 36px;
    line-height: 1.7;
    color: var(--fp-ink-soft);
}

.fp-docs-content h1 {
    font-size: 1.9rem;
    margin: 0 0 16px;
    color: var(--fp-ink);
}

.fp-docs-content h2 {
    font-size: 1.4rem;
    margin: 36px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--fp-line);
    color: var(--fp-ink);
}

.fp-docs-content h3 {
    font-size: 1.1rem;
    margin: 24px 0 8px;
    color: var(--fp-ink);
}

.fp-docs-content img {
    max-width: 100%;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: var(--fp-shadow);
    margin: 14px 0;
}

.fp-docs-content code {
    background: var(--fp-bg-alt);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.9em;
}

.fp-docs-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 14px 0;
}

.fp-docs-content th,
.fp-docs-content td {
    border: 1px solid var(--fp-line);
    padding: 8px 12px;
    text-align: left;
}

.fp-docs-content .fp-docs-section > h2:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.fp-docs-content mark {
    background: #fde68a;
    color: inherit;
    border-radius: 3px;
    padding: 0 2px;
}

@media (max-width: 860px) {
    .fp-docs-shell {
        flex-direction: column;
    }
    .fp-docs-sidebar {
        position: static;
        width: 100%;
        flex: none;
        max-height: none;
    }
    .fp-docs-nav {
        max-height: 220px;
    }
}
