/* LearnForgeAI — Refined Light Lab Theme */
:root {
  --bg-white: #FAFBFC;
  --bg-silk: #F2F5F8;
  --bg-mist: #E6EBF0;
  --text-primary: #1A2234;
  --text-muted: #5C6778;
  --accent: #2D6A7E;
  --accent-hover: #245A6B;
  --accent-soft: #4A8A9E;
  --accent-light: rgba(45, 106, 126, 0.08);
  --border: #D4DCE6;
  --radius: 10px;
  --radius-pill: 999px;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Lexend', system-ui, sans-serif;
  --max-width: 1140px;
  --nav-height: 64px;
  --shadow: 0 8px 32px rgba(26, 34, 52, 0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body.site-learnforge {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.surface-white { background: var(--bg-white); color: var(--text-primary); }
.surface-silk { background: var(--bg-silk); color: var(--text-primary); }
.surface-mist { background: var(--bg-mist); color: var(--text-primary); }
.surface-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #1E5566 100%);
  color: #FFFFFF;
}
.surface-white *:not(.btn):not(.btn *), .surface-silk *:not(.btn):not(.btn *), .surface-mist *:not(.btn):not(.btn *) { color: inherit; }
.surface-white a:not(.btn), .surface-silk a:not(.btn), .surface-mist a:not(.btn) { color: var(--accent); text-decoration: none; }
.surface-white a.btn-primary, .surface-silk a.btn-primary, .surface-mist a.btn-primary,
.surface-white button.btn-primary, .surface-silk button.btn-primary, .surface-mist button.btn-primary {
  color: #FFFFFF;
}
.surface-accent a { color: #FFFFFF; text-decoration: underline; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.3rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 4rem 0; }

.section-header {
  max-width: 600px;
  margin-bottom: 2rem;
}

.section-header p { color: var(--text-muted); margin: 0; }

.eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hairline { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  border-left: 3px solid var(--accent);
  padding-left: 1.125rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
  line-height: 1.5;
}

/* Header */
.lf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.lf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.lf-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.lf-logo:hover { color: var(--accent); }
.lf-logo svg { width: 28px; height: 28px; flex-shrink: 0; }

.lf-nav-desktop {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.lf-nav-desktop a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lf-nav-desktop a:hover,
.lf-nav-desktop a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.lf-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
}

.lf-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px auto;
}

.lf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lf-overlay.open { display: flex; }

.lf-overlay ul { list-style: none; text-align: center; }
.lf-overlay li { margin: 1rem 0; }

.lf-overlay a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
}

.lf-overlay a:hover { color: var(--accent); }

.lf-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero */
.hero-pattern-f {
  padding: 2.5rem 0 3.5rem;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-pattern-f::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(45, 106, 126, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-pattern-f .hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-brand-label {
  display: none;
}

.hero-editorial { padding-top: 0; }
.hero-editorial h1 { margin-bottom: 1rem; }

.hero-editorial .sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1rem; }
.hero-trust { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.03em; }

.hero-photo-col { position: relative; }

.hero-main-photo {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-inset-photo {
  position: absolute;
  bottom: -1.25rem;
  left: -1.5rem;
  width: 38%;
  max-width: 180px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 3px solid var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-caption {
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 42px;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: #FFFFFF;
  color: var(--accent);
}

/* Stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0;
}

.stat-strip > div {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Cards */
.lab-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lab-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}

.lab-pill {
  display: inline-block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.625rem;
  font-weight: 600;
}

.lab-card img {
  width: 100%;
  max-height: 180px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.875rem;
}

.lab-card p { flex: 1; font-size: 0.9375rem; color: var(--text-muted); }
.lab-card a { font-size: 0.875rem; font-weight: 600; margin-top: 0.5rem; }

/* Grids — uniform, no stagger */
.tracks-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.prog-price {
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.4rem;
  font-size: 0.9375rem;
}

/* FAQ */
.faq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.faq-card {
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius);
}

.faq-card h3 {
  font-size: 0.9375rem;
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* CTA */
.cta-band {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-band h2 { color: #FFFFFF; margin-bottom: 0.625rem; }
.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9375rem;
}

/* Disclaimer */
.disclaimer {
  background: var(--bg-mist);
  border-left: 3px solid var(--accent);
  padding: 1.125rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}

/* Forms */
.form-group { margin-bottom: 1.125rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background: var(--bg-white);
  color: var(--text-primary);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-check { display: flex; align-items: flex-start; gap: 0.5rem; }
.form-check input { width: auto; margin-top: 0.2rem; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-alert { padding: 0.875rem 1.125rem; margin-bottom: 1.25rem; border: 1px solid; border-radius: 6px; font-size: 0.875rem; }
.form-alert-success { background: #EDF5F0; border-color: #A8D4BE; color: #1B5E3A; }
.form-alert-error { background: #FDF0EE; border-color: #E8B4AE; color: #7B2E24; }

/* Page header */
.page-hero {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.75rem; }

.page-hero .sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
}

.page-hero > .container > img,
.page-hero-img {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 280px;
  box-shadow: var(--shadow);
}

.page-hero > .container > img,
.page-hero-img img {
  width: 100%;
  max-height: 280px;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.portrait-frame {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 300px;
  max-height: 380px;
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  max-height: 380px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Legal */
.legal-prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-prose h3 { margin-top: 1.5rem; font-size: 1.0625rem; }
.legal-prose p, .legal-prose li { color: var(--text-muted); font-size: 0.9375rem; }
.legal-meta { font-size: 0.8125rem; color: var(--text-muted); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Footer */
.lf-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}

.lf-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.lf-footer-brand p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.625rem;
  line-height: 1.6;
}

.lf-footer-col h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.lf-footer-col ul { list-style: none; padding: 0; }
.lf-footer-col li { margin-bottom: 0.35rem; }
.lf-footer-col a { color: var(--text-muted); font-size: 0.8125rem; text-decoration: none; }
.lf-footer-col a:hover { color: var(--accent); }

.contact-ribbon {
  background: var(--bg-silk);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contact-ribbon a { color: var(--accent); }

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 1.25rem 0;
  line-height: 1.55;
  border-top: 1px solid var(--border);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
}

.hosting-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(26, 34, 52, 0.08);
  padding: 1.125rem 1.5rem;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}

.cookie-inner p { margin: 0; font-size: 0.8125rem; flex: 1; min-width: 200px; color: var(--text-muted); }
.cookie-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(26, 34, 52, 0.3);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal.open { display: flex; }

.cookie-modal-content {
  background: var(--bg-white);
  padding: 1.75rem;
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* 404 */
.error-page { text-align: center; padding: 4rem 0; }
.error-page h1 { font-size: 3.5rem; color: var(--accent); }

/* Responsive */
@media (max-width: 1023px) {
  .hero-pattern-f .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-inset-photo {
    position: relative;
    left: 0;
    bottom: 0;
    width: 50%;
    max-width: 200px;
    margin-top: -2rem;
    margin-left: 1rem;
  }
  .tracks-mosaic,
  .showcase-row,
  .prog-grid,
  .faq-split,
  .grid-2,
  .lf-footer-grid { grid-template-columns: 1fr; }
  .lf-nav-desktop { display: none; }
  .lf-menu-btn { display: block; }
}

@media (max-width: 767px) {
  .section-pad { padding: 2.5rem 0; }
  .stat-strip { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .hero-inset-photo { width: 60%; margin-top: -1.5rem; }
}
