/* ── Stiluri comune pentru landing page-urile SEO statice ──
   Folosit de: /invata-engleza/, /invata-spaniola/
   Externalizat din <style> inline pentru a evita duplicarea (CSP: style-src 'self'). */

/* ── Tokens - aliniate cu aplicația (global.css / dark-mode.css) ── */
:root {
  --blue-deep: #29588e; /* brand-primary */
  --blue-mid: #5782a7; /* brand-accent */
  --blue-light: #dceaf4;
  --bg: #fafaf8; /* bg-page */
  --surface: #ffffff; /* bg-main */
  --bg-navbar: #f8f8f3;
  --bg-soft: #fbfcfd;
  --text: #2c333d; /* text-main */
  --text-muted: #5d6670;
  --border: #e2e8f0; /* border-color */
  --radius: 8px;

  /* CEFR - pastel, ca badge-urile aplicației */
  --a1: #75b375;
  --a2: #99d899;
  --b1: #f3dd8c;
  --b2: #f0cf59;
  --c1: #e9747d;
}
/* Dark mode - aceeași clasă .dark ca în aplicație */
.dark {
  --blue-deep: #5d8aa8;
  --blue-mid: #8eadc1;
  --blue-light: #1a2e42;
  --bg: #1c1b19;
  --surface: #1e1e1e;
  --bg-navbar: #1e1e1e;
  --bg-soft: #2d2d2d;
  --text: #f5f5f5;
  --text-muted: #b0bccb;
  --border: #3d3d3d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    'Noto Sans',
    'Liberation Sans',
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

/* ── Nav - deschis, ca în aplicație ── */
nav {
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1050;
}
nav a.brand {
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
nav a.brand .brand-dot {
  color: #91b8f3;
}
/* Identic cu .beta-badge-nav din NavBar.vue, ca landing-urile statice să arate ca aplicația. */
nav a.brand .beta-badge-nav {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1;
}
/* Butonul de autentificare/lecții din dreapta, în stilul .auth-btn (outlined, rounded). */
nav .nav-links a.nav-cta {
  border: 1px solid var(--blue-mid);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  transition:
    background 0.15s,
    color 0.15s;
}
nav .nav-links a.nav-cta:hover {
  background: var(--blue-mid);
  color: #fff;
}
nav .nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
nav .nav-links a {
  color: var(--blue-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
nav .nav-links a:hover {
  color: var(--blue-deep);
}

/* Rând informativ sub CTA-urile din hero: ce conține contul gratuit.
   Pe desktop e un rând cu separatori „·"; pe mobil se stivuiește (vezi @media). */
/* Specificitate .hero p.hero-meta: regula .hero p de mai sus (font-size 1.125rem,
   margin-bottom 2.25rem) ar câștiga altfel și ar face nota cât paragraful principal. */
.hero p.hero-meta {
  margin: 1.25rem auto 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem 0.85rem;
  max-width: 840px;
}
.hero-meta strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}
.hero-meta > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.hero-meta > span:not(:last-child)::after {
  content: '·';
  margin-left: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a3a60 100%);
  color: #fff;
  padding: 2rem 1rem 2rem;
  text-align: center;
}
.hero .eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: #99c9f3;
}
.hero p {
  max-width: 580px;
  margin: 0 auto 2.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  line-height: 1.7;
}
.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--blue-deep);
  color: #fff;
  border: none;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition:
    filter 0.15s,
    transform 0.1s;
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Stats strip ── */
.stats {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  padding: 1.5rem 2.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ── Content wrapper ── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section ── */
.section {
  padding: 2rem 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.section h2 {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}
.section p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.section p strong {
  color: var(--text);
}

/* ── Level tabs ── */
.level-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}
.level-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 0.25rem;
  cursor: default;
  letter-spacing: 0.02em;
}
.pill-a1 {
  background: var(--a1);
  color: #fff;
}
.pill-a2 {
  background: var(--a2);
  color: #2c333d;
}
.pill-b1 {
  background: var(--b1);
  color: #524700;
}
.pill-b2 {
  background: var(--b2);
  color: #524700;
}

/* ── Lessons grid ── */
.level-block {
  margin-bottom: 2.5rem;
}
.level-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.level-heading h3 {
  font-family: system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.level-heading .desc {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.lesson-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 2px 12px rgba(41, 88, 142, 0.1);
}
.lesson-ro {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
/* Traducerea lecției (engleză sau spaniolă, în funcție de pagină) */
.lesson-en,
.lesson-es {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.lesson-exercises {
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--blue-mid);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ── Coming soon placeholder ── */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.coming-soon-card {
  background: var(--blue-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
.step h4 {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.step p {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1a3a60 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
.cta-section h2 {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.cta-section p {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
footer p {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}
footer a {
  color: var(--blue-deep);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ── Vocab highlight ── */
.vocab-banner {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-deep);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}
.vocab-banner .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.vocab-banner h4 {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.vocab-banner p {
  font-family: system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Premium badge ── */
.premium-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: #e9f5e9;
  color: #3e5f3e;
  border: 1px solid #c1dbc1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── Dark mode toggle button ── */
.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.theme-toggle:hover {
  background: var(--bg-soft);
  border-color: var(--blue-mid);
}

@media (max-width: 600px) {
  /* Stats - 2 pe 2 pe ecran mic (în loc de 4 unul sub altul) */
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(2n) {
    border-right: none;
  }
  .stat-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  /* Level heading - premium-badge și desc pe rânduri separate sub h3 */
  .level-heading .premium-badge,
  .level-heading .desc {
    flex-basis: 100%;
  }

  /* Hero meta - listă stivuită, fără separatorii „·" care se rupeau urât la wrap */
  .hero p.hero-meta {
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.82rem;
    text-align: center;
  }
  .hero-meta > span {
    white-space: normal;
  }
  .hero-meta > span:not(:last-child)::after {
    content: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
