/* ============================================================================
   landing.css — public marketing landing page (landing.html).
   Reuses the warm-green design system from main.css :root + tokens.css.
   All classes are prefixed .lp- to avoid any collision with the app shell.
   Image slots use .lp-img placeholders — drop real photos in later
   (see assets/img/README.md).
   ============================================================================ */

.lp-body {
  display: block;
  min-height: 100vh;
}

/* ── Layout container ──────────────────────────────────────────────────────── */
.lp-hero,
.lp-trust,
.lp-section,
.lp-cta {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ── Top bar ───────────────────────────────────────────────────────────────── */
.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #e6e2d8;
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.lp-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--green-dark);
}
.lp-nav {
  display: flex;
  gap: 26px;
  margin-left: 8px;
}
.lp-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  transition: color var(--transition-fast);
}
.lp-nav a:hover { color: var(--green-mid); }
.lp-topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.lp-btn-lg { padding: 12px 22px; font-size: 15.5px; }
.lp-btn-primary {
  background: var(--green-mid);
  color: #fff;
  box-shadow: 0 1px 2px rgba(35, 92, 67, 0.25);
}
.lp-btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.lp-btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-pale);
}
.lp-btn-ghost:hover { background: var(--green-mist); }
.lp-btn.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ── Image placeholders (swap for real photos later) ───────────────────────── */
.lp-img {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(124, 196, 154, 0.35), transparent 60%),
    linear-gradient(135deg, #2f8a5b, #235c43);
  border: 1px solid rgba(35, 92, 67, 0.18);
}
.lp-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.lp-img-label {
  position: relative;
  margin: 12px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
}
/* Hero photo: drop the file at assets/img/hero-networking-lab.jpg.
   The brand gradient shows as a graceful fallback until the file exists. */
.lp-img-hero {
  min-height: 340px;
  background:
    url('../img/hero-networking-lab.jpg') center / cover no-repeat,
    radial-gradient(120% 90% at 80% 10%, rgba(124, 196, 154, 0.35), transparent 60%),
    linear-gradient(135deg, #2f8a5b, #235c43);
}
.lp-img-photo::before { display: none; }
.lp-course-img { min-height: 150px; }
/* Course-card photos — drop the files in assets/img/; the brand gradient is the
   graceful fallback shown until each file exists. */
.lp-course-img[data-img="course-dss"] {
  background:
    linear-gradient(160deg, rgba(20,42,31,0.10), transparent 58%),
    url('../img/student_laptop_hands_christin_hume.jpg') center / cover no-repeat,
    linear-gradient(135deg, #2f8a5b, #235c43);
}
.lp-course-img[data-img="course-comptia"] {
  background:
    linear-gradient(160deg, rgba(20,42,31,0.10), transparent 58%),
    url('../img/cpu_motherboard_nils_huenerfuerst.jpg') center / cover no-repeat,
    linear-gradient(135deg, #2f8a5b, #235c43);
}

/* Human band — "built by a student" */
.lp-human {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: center;
}
.lp-human-media {
  min-height: 280px;
  border-radius: 6px;
  border: 1px solid rgba(35, 92, 67, 0.18);
  background:
    url('../img/study_desk_laptop_notebook_nick_morrison.jpg') center / cover no-repeat,
    linear-gradient(135deg, #7cc49a, #2f8a5b);
}
.lp-human-copy { display: grid; gap: 10px; }
@media (max-width: 760px) {
  .lp-human { grid-template-columns: 1fr; }
  .lp-human-media { min-height: 200px; order: -1; }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.lp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.lp-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 14px;
}
.lp-h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0 0 18px;
}
.lp-h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green-mid);
}
.lp-lead {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 46ch;
  margin: 0 0 26px;
}
/* Typewriter "search" hero (GeeksforGeeks-style) — decorative, links to login */
.lp-typesearch {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 0 22px;
  padding: 15px 18px;
  border-radius: 6px;
  background: var(--white, #fff);
  border: 1px solid rgba(52,70,95,0.16);
  box-shadow: 0 10px 30px rgba(30,42,59,0.08);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.lp-typesearch:hover {
  border-color: var(--green-light, #7cc49a);
  box-shadow: 0 14px 36px rgba(30,42,59,0.13);
  transform: translateY(-1px);
}
.lp-typesearch-icon { width: 20px; height: 20px; flex: 0 0 auto; color: #34465f; }
.lp-typesearch-text {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark, #232c26);
  white-space: nowrap;
  overflow: hidden;
}
.lp-type-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--green-mid, #2f8a5b);
  animation: lpCaretBlink 1s step-end infinite;
}
@keyframes lpCaretBlink { 50% { opacity: 0; } }

.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ── Trust strip ───────────────────────────────────────────────────────────── */
.lp-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid #e6e2d8;
  border-bottom: 1px solid #e6e2d8;
}
.lp-trust-text { margin: 0; font-size: 15px; color: var(--text-mid); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid #e6e2d8;
  border-radius: 999px;
  padding: 5px 12px;
}
.lp-chip em { font-style: normal; color: var(--amber); font-weight: 700; }
.lp-chip.is-live {
  color: var(--green-dark);
  background: var(--green-mist);
  border-color: var(--green-pale);
}

/* ── Generic section ───────────────────────────────────────────────────────── */
.lp-section { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.lp-section-head { max-width: 640px; margin-bottom: 40px; }
.lp-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 10px;
}
.lp-h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin: 0 0 12px;
}
.lp-sub { font-size: 16px; line-height: 1.6; color: var(--text-mid); margin: 0; }

/* ── Features ──────────────────────────────────────────────────────────────── */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px;
}
.lp-feature {
  background: #fff;
  border: 1px solid #ece8df;
  border-radius: 6px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.lp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--green-mist);
  color: var(--green-dark);
  margin-bottom: 14px;
}
.lp-feature-icon svg { width: 22px; height: 22px; }
.lp-feature h3 { font-family: var(--font-heading); font-size: 17px; margin: 0 0 6px; color: var(--text-dark); }
.lp-feature p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-soft); }

/* ── Courses ───────────────────────────────────────────────────────────────── */
.lp-courses-section { background: linear-gradient(180deg, #fbfaf5, #f3f6f0); border-block: 1px solid #ece8df; }
.lp-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.lp-course {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece8df;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lp-course.is-live { border-color: var(--green-pale); }
.lp-course-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-course-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: #f1efe8;
  border-radius: 6px;
  padding: 4px 8px;
}
.lp-course-tag.is-live { color: var(--green-dark); background: var(--green-mist); }
.lp-course h3 { font-family: var(--font-heading); font-size: 18px; margin: 2px 0 0; color: var(--text-dark); }
.lp-course p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: var(--text-soft); flex: 1; }

/* ── CTA band ──────────────────────────────────────────────────────────────── */
.lp-cta {
  text-align: center;
  margin-top: 0;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 48px);
}
.lp-cta .lp-h2 { color: var(--text-dark); }
.lp-cta-actions { justify-content: center; margin-top: 22px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.lp-footer { background: var(--green-dark); color: #e7f2ea; }
.lp-footer-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 36px clamp(20px, 5vw, 48px);
  display: grid;
  gap: 8px;
}
.lp-footer-mark { color: #fff; font-size: 22px; }
.lp-footer-note { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(231, 242, 234, 0.82); max-width: 60ch; }
.lp-footer-links { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.lp-footer-links a { color: rgba(231, 242, 234, 0.7); text-decoration: none; }
.lp-footer-links a:hover { color: #fff; text-decoration: underline; }
.lp-footer-links span { color: rgba(231, 242, 234, 0.35); }
.lp-footer-copy { margin: 8px 0 0; font-size: 12.5px; color: rgba(231, 242, 234, 0.6); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero-media { order: -1; }
  .lp-img-hero { min-height: 220px; }
  .lp-nav { display: none; }
}
@media (max-width: 520px) {
  .lp-topbar-actions .lp-btn-ghost { display: none; }
}
