/* LingoFunLearn "Calm premium" brand layer (2026-11 redesign).
   Part 1: tokens and components for redesigned pages (lf-* classes).
   Part 2: overrides that re-skin the older Tailwind pages (loaded after styles.css). */

:root {
  --lf-indigo: #26306B;
  --lf-indigo-dark: #1D2554;
  --lf-indigo-soft: #3A4585;
  --lf-indigo-tint: #ECEEF8;
  --lf-ink: #141A33;
  --lf-gold: #C9A24A;
  --lf-gold-text: #8A6A1F;
  --lf-gold-tint: #F3ECD9;
  --lf-cream: #FAF7F0;
  --lf-cream-on-indigo: #E9DDBE;
  --lf-line: #E6E1D6;
  --lf-line-strong: #D5CFC2;
  --lf-muted: #5A6075;
  --lf-on-indigo-muted: #CFD3EA;
  --lf-correct: #2F7D5B;
  --lf-wrong: #B4432F;
  --lf-sans: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif;
  --lf-serif: "Fraunces", Georgia, "Hind Siliguri", serif;
  --lf-bangla: "Hind Siliguri", "Plus Jakarta Sans", sans-serif;
  --lf-radius: 20px;
}

/* ── Part 1: components ─────────────────────────────────────────────── */
.lf-page { margin: 0; background: var(--lf-cream); color: var(--lf-ink); font-family: var(--lf-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.lf-page *, .lf-page *::before, .lf-page *::after { box-sizing: border-box; }
.lf-page img { max-width: 100%; display: block; }
.lf-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.lf-page .hidden { display: none !important; }
.lf-skip { position: absolute; left: -9999px; top: 8px; background: var(--lf-ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.lf-skip:focus { left: 8px; }
.lf-page a { color: var(--lf-indigo); }
.lf-page a:hover { color: var(--lf-indigo-dark); }
.lf-page :focus-visible { outline: 3px solid #8C96CF; outline-offset: 2px; border-radius: 8px; }

/* Header */
.lf-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--lf-line); }
.lf-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.lf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lf-ink) !important; }
.lf-logo-word { font-family: var(--lf-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.lf-logo-word span { color: var(--lf-gold-text); }
.lf-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.lf-nav a { color: var(--lf-ink); text-decoration: none; }
.lf-nav a:hover, .lf-nav a[aria-current="page"] { color: var(--lf-indigo); }
.lf-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lf-gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lf-header-actions { display: flex; align-items: center; gap: 10px; }
.lf-menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--lf-line-strong); background: #fff; color: var(--lf-ink); align-items: center; justify-content: center; cursor: pointer; }
.lf-mobile-menu { border-top: 1px solid var(--lf-line); padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.lf-mobile-menu a { display: block; padding: 12px 4px; font-weight: 600; color: var(--lf-ink); text-decoration: none; border-bottom: 1px solid var(--lf-line); }
.lf-mobile-menu.hidden { display: none; }

/* Buttons */
.lf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 14px; font: 700 15px/1 var(--lf-sans); text-decoration: none !important; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.lf-btn:active { transform: translateY(1px); }
.lf-btn-lg { min-height: 56px; padding: 0 24px; font-size: 16px; }
.lf-btn-block { display: flex; width: 100%; white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
.lf-btn-primary { background: var(--lf-indigo); color: var(--lf-cream) !important; }
.lf-btn-primary:hover { background: var(--lf-indigo-dark); }
.lf-btn-dark { background: var(--lf-ink); color: var(--lf-cream) !important; }
.lf-btn-dark:hover { background: #000; }
.lf-btn-ghost { background: #fff; color: var(--lf-ink) !important; border-color: var(--lf-line-strong); }
.lf-btn-ghost:hover { border-color: var(--lf-ink); }
.lf-btn-outline-ink { background: transparent; color: var(--lf-ink) !important; border-color: var(--lf-ink); }
.lf-btn-outline-ink:hover { background: var(--lf-ink); color: var(--lf-cream) !important; }
.lf-btn-light { background: var(--lf-cream); color: var(--lf-ink) !important; }
.lf-btn-light:hover { background: #fff; }
.lf-btn-gold { background: var(--lf-gold); color: var(--lf-ink) !important; }
.lf-btn-gold:hover { background: #B38D38; }

/* Type */
.lf-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lf-muted); }
.lf-pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--lf-gold-text); background: var(--lf-gold-tint); padding: 6px 12px; border-radius: 999px; }
.lf-display { font-family: var(--lf-serif); font-weight: 500; letter-spacing: -1.5px; line-height: 1.04; margin: 0; font-size: clamp(40px, 6vw, 68px); }
.lf-h2 { font-family: var(--lf-serif); font-weight: 500; letter-spacing: -0.6px; line-height: 1.12; margin: 0; font-size: clamp(30px, 4vw, 42px); }
.lf-h3 { margin: 0; font-size: 20px; font-weight: 700; }
.lf-lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--lf-muted); }
.lf-bn { font-family: var(--lf-bangla); }
.lf-muted { color: var(--lf-muted); }
.lf-small { font-size: 14px; color: var(--lf-muted); }

/* Sections and cards */
.lf-section { padding: 80px 0; }
.lf-section-white { background: #fff; border-top: 1px solid var(--lf-line); border-bottom: 1px solid var(--lf-line); }
.lf-section-indigo { background: var(--lf-indigo); color: var(--lf-cream); }
.lf-section-indigo .lf-eyebrow { color: var(--lf-cream-on-indigo); }
.lf-section-indigo .lf-lead { color: var(--lf-on-indigo-muted); }
.lf-stack { display: flex; flex-direction: column; gap: 16px; }
.lf-split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.lf-split > .lf-grow { flex: 999 1 460px; min-width: 0; }
.lf-split > .lf-side { flex: 1 1 320px; min-width: 0; }
.lf-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.lf-card { background: #fff; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); padding: 28px; }
.lf-card-cream { background: var(--lf-cream); }
.lf-card .lf-card-tag { font-family: var(--lf-bangla); font-size: 15px; font-weight: 600; color: var(--lf-gold-text); }
.lf-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--lf-muted); }
.lf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lf-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.lf-checks li { display: flex; gap: 10px; align-items: flex-start; }
.lf-checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7D5B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.lf-on-indigo .lf-checks li::before, .lf-plan-featured .lf-checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A24A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* Phone preview in the hero */
.lf-phone { width: 330px; max-width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--lf-line); border-radius: 38px; padding: 18px; box-shadow: 0 40px 70px -40px rgba(20, 26, 51, .45); display: flex; flex-direction: column; gap: 14px; }
.lf-phone-title { font-family: var(--lf-serif); font-size: 22px; font-weight: 500; padding: 8px 6px 0; }
.lf-hero-card { background: var(--lf-indigo); color: var(--lf-cream); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.lf-hero-card .lf-k { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lf-cream-on-indigo); }
.lf-bar { height: 6px; border-radius: 3px; background: var(--lf-indigo-soft); overflow: hidden; }
.lf-bar > i { display: block; height: 100%; background: var(--lf-gold); border-radius: 3px; }
.lf-mini { border: 1px solid var(--lf-line); border-radius: 14px; padding: 12px; }
.lf-mini strong { display: block; font-family: var(--lf-bangla); }
.lf-mini span { font-size: 12px; color: var(--lf-muted); }

/* Stats row */
.lf-rows { display: flex; flex-direction: column; }
.lf-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--lf-line); font-size: 15px; }
.lf-rows > div:last-child { border-bottom: 0; }

/* Pricing */
.lf-segment { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 16px; background: var(--lf-indigo-tint); }
.lf-segment button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--lf-ink); font: 600 15px var(--lf-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.lf-segment button[aria-pressed="true"] { background: var(--lf-indigo); color: var(--lf-cream); }
.lf-segment .lf-tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--lf-gold); color: var(--lf-ink); text-transform: uppercase; letter-spacing: .4px; }
.lf-plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.lf-plan { background: #fff; border: 1px solid var(--lf-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.lf-plan-featured { background: var(--lf-indigo); color: var(--lf-cream); border-color: var(--lf-indigo); box-shadow: 0 40px 70px -40px rgba(20, 26, 51, .55); }
.lf-plan-featured .lf-muted, .lf-plan-featured .lf-plan-sub { color: var(--lf-on-indigo-muted); }
.lf-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lf-plan-sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--lf-muted); }
.lf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.lf-price b { font-family: var(--lf-serif); font-size: 50px; font-weight: 500; letter-spacing: -1px; line-height: 1; }
.lf-price-note { font-size: 14px; font-weight: 600; color: var(--lf-gold-text); }
.lf-plan-featured .lf-price-note { color: var(--lf-cream-on-indigo); }
.lf-badge-gold { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--lf-gold); color: var(--lf-ink); }
.lf-badge-soft { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--lf-gold-tint); color: var(--lf-gold-text); }
.lf-spacer { flex: 1; }
.inst-tier { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--lf-line); background: #fff; color: var(--lf-ink); font: inherit; text-align: left; cursor: pointer; }
.inst-tier:hover { border-color: var(--lf-line-strong); }
.inst-tier[aria-checked="true"] { border-color: var(--lf-indigo); background: #F4F5FB; }
.inst-tier strong { display: block; font-size: 15px; }
.inst-tier small { display: block; font-size: 13px; color: var(--lf-muted); }
.inst-tier .inst-price-tag { font-weight: 800; white-space: nowrap; }
.lf-faq { max-width: 860px; margin: 0 auto; }
.lf-faq details { border-bottom: 1px solid var(--lf-line); padding: 18px 0; }
.lf-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary::after { content: "+"; font-weight: 500; color: var(--lf-muted); font-size: 22px; line-height: 1; }
.lf-faq details[open] summary::after { content: "–"; }
.lf-faq p { margin: 10px 0 0; color: var(--lf-muted); line-height: 1.65; }
.lf-input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lf-line-strong); background: #fff; font: 500 15px var(--lf-sans); color: var(--lf-ink); flex: 1 1 220px; min-width: 0; }
.lf-input:focus { outline: none; border-color: var(--lf-indigo); box-shadow: 0 0 0 3px var(--lf-indigo-tint); }
.lf-result { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.lf-result.ok { background: #EAF4EE; color: #1F5A40; border: 1px solid #CDE5D6; }
.lf-result.err { background: #F8ECE8; color: #8A2F20; border: 1px solid #EED3CB; }
.lf-result.hidden { display: none; }

/* Footer */
.lf-footer { border-top: 1px solid var(--lf-line); padding: 40px 0; font-size: 14px; color: var(--lf-muted); }
.lf-footer-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.lf-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.lf-footer a { color: var(--lf-muted) !important; text-decoration: none; }
.lf-footer a:hover { color: var(--lf-ink) !important; }

@media (max-width: 900px) {
  .lf-nav { display: none; }
  .lf-menu-btn { display: inline-flex; }
  .lf-header-actions .lf-hide-sm { display: none; }
  .lf-section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .lf-wrap { padding-left: 16px; padding-right: 16px; }
  .lf-plan { padding: 24px; }
  .lf-btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lf-page * { transition: none !important; } }

/* ── Part 2: re-skin for older Tailwind pages ───────────────────────── */
body:not(.lf-page) { background-color: var(--lf-cream); color: var(--lf-ink); }
body:not(.lf-page) h1 { font-family: var(--lf-serif); font-weight: 500 !important; letter-spacing: -0.02em; }
.bg-brand-600, .bg-blue-600 { background-color: var(--lf-indigo) !important; }
.hover\:bg-brand-700:hover, .hover\:bg-blue-700:hover, .bg-brand-700, .bg-blue-700 { background-color: var(--lf-indigo-dark) !important; }
.bg-brand-50, .bg-blue-50, .bg-brand-50\/60 { background-color: var(--lf-indigo-tint) !important; }
.bg-brand-100, .bg-blue-100 { background-color: #DDE1F2 !important; }
.text-brand-500, .text-brand-600, .text-blue-600 { color: var(--lf-indigo) !important; }
.text-brand-700, .text-blue-700, .text-brand-800 { color: var(--lf-indigo-dark) !important; }
.border-brand-100, .border-brand-200, .border-brand-200\/80 { border-color: #DDE1F2 !important; }
.border-brand-500, .border-brand-600 { border-color: var(--lf-indigo) !important; }
.from-brand-600 { --tw-gradient-from: var(--lf-indigo) var(--tw-gradient-from-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.bg-slate-50 { background-color: var(--lf-cream) !important; }
.bg-slate-100 { background-color: #F3EFE6 !important; }
.border-slate-100, .border-slate-200 { border-color: var(--lf-line) !important; }
.text-slate-900, .text-slate-950 { color: var(--lf-ink) !important; }
.text-slate-500, .text-slate-600 { color: var(--lf-muted) !important; }
.bg-slate-900, .bg-slate-950 { background-color: var(--lf-ink) !important; }

.lf-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
