/*
 * Forest Panda — clean, ElevenLabs-inspired design system.
 * Shares the ink/paper palette and Inter typography used across /lt and /ik.
 */

:root {
    /* Glossika-inspired blue theme */
    --fp-bg: #ffffff;
    --fp-bg-alt: #eff3fe;
    --fp-ink: #1a1f3d;
    --fp-ink-soft: #3a4066;
    --fp-muted: #6b7194;
    --fp-line: #e2e8f7;
    --fp-brand: #2f54eb;
    --fp-brand-hover: #2440c4;
    --fp-accent: #2f54eb;
    --fp-green: #2f54eb; /* accent token kept for compatibility — now theme blue */
    --fp-green-soft: #4f74ff;
    --fp-mint: #e6ecff; /* soft-blue badge background */
    --fp-mint-ink: #2440c4; /* badge text */
    --fp-danger: #dc2626;
    --fp-hero-1: #3a5bf0;
    --fp-hero-2: #2440c4;
    --fp-radius: 12px;
    --fp-radius-lg: 16px;
    --fp-shadow: 0 8px 24px rgba(35, 60, 175, 0.08);
    --fp-shadow-lg: 0 18px 45px rgba(35, 60, 175, 0.13);
    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.03em;
}

/* === Brand mark === */
.fp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fp-ink) !important;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.fp-mark {
    width: 30px;
    height: 30px;
    display: block;
    flex: none;
}

.fp-logo-large {
    width: 56px;
    height: 56px;
}

/* === 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: min(1200px, 100%);
    margin: 0 auto;
    min-height: 64px;
    padding: 12px 24px;
    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-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);
}

/* === 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(1200px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    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;
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
}

.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;
}

/* === 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);
    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;
}

.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 > 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: 6px;
    color: var(--fp-ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.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-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.03em;
    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 {
    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;
}

/* === 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.03em;
}

.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 .fp-logo-large {
    margin: 0 auto 12px;
}

.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-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);
}

.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;
}

/* === 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 .fp-logo-large {
    margin-bottom: 14px;
}

.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 {
        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-compare table {
        min-width: 520px;
    }

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

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

/* === Glossika-style 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;
}

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

.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-testimonials-grid {
        grid-template-columns: 1fr;
    }

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

/* === Glossika-style blue bands: hero + final CTA === */
.fp-hero {
    background: 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: #eaefff;
    color: var(--fp-brand) !important;
    border-color: #eaefff;
}

.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: linear-gradient(160deg, var(--fp-hero-1) 0%, var(--fp-hero-2) 100%);
    color: #fff;
}

.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: #eaefff;
    color: var(--fp-brand) !important;
    border-color: #eaefff;
}

/* Blue 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, 84, 235, 0.15);
}

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

.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-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, 84, 235, 0.15);
}

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

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

.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-done-mark .fp-logo-large {
    width: 72px;
    height: 72px;
}

.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-help {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 8px 0 0;
}

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

@media (max-width: 640px) {
    .fp-submit-btn {
        min-width: 110px;
    }

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

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