/* ===========================================
   Assignment Manager — Landing Page
   =========================================== */

/* ---------- Reset & Base ---------- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --lp-bg: #0f172a;
  --lp-text: #f1f5f9;
  --lp-text-2: #cbd5e1;
  --lp-muted: #94a3b8;
  --lp-muted-2: #64748b;
  --lp-primary: #38bdf8;
  --lp-primary-deep: #0ea5e9;
  --lp-secondary: #818cf8;
  --lp-glass: rgba(15, 23, 42, 0.7);
  --lp-glass-border: rgba(255, 255, 255, 0.08);
  --lp-glass-strong: rgba(255, 255, 255, 0.12);
  --lp-card-bg: rgba(255, 255, 255, 0.025);
  --lp-card-border: rgba(255, 255, 255, 0.06);
  --lp-btn-glass: rgba(255, 255, 255, 0.035);
  --lp-btn-glass-border: rgba(255, 255, 255, 0.08);
  --lp-selection: rgba(56, 189, 248, 0.3);
  --lp-feature-bg: rgba(15, 23, 42, 0.6);
  --lp-feature-border: rgba(255, 255, 255, 0.06);
  --lp-nav-bg: rgba(15, 23, 42, 0.85);
  --lp-section-dark: rgba(255, 255, 255, 0.015);
  --lp-section-border: rgba(255, 255, 255, 0.04);
  --lp-elevation: 0 24px 80px rgba(2, 6, 23, 0.35);
  --lp-primary-text: #0f172a;
}

body.theme-hover-dark {
  --lp-bg: #030712;
  --lp-text: #f8fafc;
  --lp-text-2: #cbd5e1;
  --lp-muted: #94a3b8;
  --lp-muted-2: #64748b;
  --lp-primary: #93c5fd;
  --lp-primary-deep: #3b82f6;
  --lp-secondary: #64748b;
  --lp-glass: rgba(8, 13, 24, 0.92);
  --lp-glass-border: rgba(148, 163, 184, 0.1);
  --lp-glass-strong: rgba(148, 163, 184, 0.18);
  --lp-card-bg: rgba(148, 163, 184, 0.04);
  --lp-card-border: rgba(148, 163, 184, 0.12);
  --lp-btn-glass: rgba(148, 163, 184, 0.06);
  --lp-btn-glass-border: rgba(148, 163, 184, 0.08);
  --lp-selection: rgba(147, 197, 253, 0.3);
  --lp-feature-bg: rgba(8, 13, 24, 0.7);
  --lp-feature-border: rgba(148, 163, 184, 0.12);
  --lp-nav-bg: rgba(3, 7, 18, 0.92);
  --lp-section-dark: rgba(148, 163, 184, 0.03);
  --lp-section-border: rgba(148, 163, 184, 0.08);
  --lp-elevation: 0 24px 80px rgba(0, 0, 0, 0.5);
  --lp-primary-text: #030712;
}

body.theme-hover-light {
  --lp-bg: #f6f8fb;
  --lp-text: #172033;
  --lp-text-2: #334155;
  --lp-muted: #64748b;
  --lp-muted-2: #556575;
  --lp-primary: #2563eb;
  --lp-primary-deep: #1d4ed8;
  --lp-secondary: #0891b2;
  --lp-glass: rgba(255, 255, 255, 0.96);
  --lp-glass-border: rgba(100, 116, 139, 0.18);
  --lp-glass-strong: rgba(37, 99, 235, 0.18);
  --lp-card-bg: rgba(255, 255, 255, 0.7);
  --lp-card-border: rgba(100, 116, 139, 0.15);
  --lp-btn-glass: rgba(100, 116, 139, 0.08);
  --lp-btn-glass-border: rgba(100, 116, 139, 0.18);
  --lp-selection: rgba(37, 99, 235, 0.25);
  --lp-feature-bg: rgba(255, 255, 255, 0.6);
  --lp-feature-border: rgba(100, 116, 139, 0.12);
  --lp-nav-bg: rgba(246, 248, 251, 0.92);
  --lp-section-dark: rgba(100, 116, 139, 0.06);
  --lp-section-border: rgba(100, 116, 139, 0.12);
  --lp-elevation: 0 16px 48px rgba(0, 0, 0, 0.08);
  --lp-primary-text: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lp-text);
  background: var(--lp-bg);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Announcement bar shown above the nav. Shifts the fixed nav + hero down so
   nothing sits underneath it. */
.donate-banner + .nav {
  top: 44px;
}

.nav-scrolled {
  background: var(--lp-nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--lp-glass-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 12px;
}

/* ---------- Donate Banner ---------- */

.donate-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 44px 0 16px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(129, 140, 248, 0.08)),
    var(--lp-bg);
  border-bottom: 1px solid var(--lp-glass-border);
}

.donate-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lp-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.donate-banner-heart {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--lp-primary);
}

.donate-banner strong {
  color: var(--lp-primary);
  font-weight: 800;
  transition: color 0.3s ease;
}

.donate-banner-link:hover strong {
  color: #7dd3fc;
}

.donate-banner-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--lp-muted-2);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.donate-banner-close:hover {
  color: var(--lp-text);
  background: var(--lp-glass-strong);
}

/* ---------- Donate banner dismissed (this session) ---------- */

html.donate-banner-closed .donate-banner {
  display: none;
}

html.donate-banner-closed .nav {
  top: 0;
}

html.donate-banner-closed .hero {
  padding-top: 80px;
}

@media (max-width: 640px) {
  .donate-banner {
    height: 40px;
    font-size: 0.74rem;
  }
  .donate-banner + .nav {
    top: 40px;
  }
}

@media (max-width: 900px) {
  html.donate-banner-closed .hero {
    padding-top: 100px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--lp-text);
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.28));
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--lp-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-cta {
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-deep));
  color: var(--lp-primary-text);
  padding: 8px 20px;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
}

.nav-getstarted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lp-text);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-getstarted:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 11px 28px;
  border-radius: 50px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-deep));
  color: var(--lp-primary-text);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lp-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 124px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, color-mix(in srgb, var(--lp-primary) 12%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, color-mix(in srgb, var(--lp-secondary) 8%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    min-height: 0;
    padding-top: 140px;
  }
}

.hero-text,
.hero-mockup {
  min-width: 0;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-tail {
  white-space: nowrap;
}

.rotating-word {
  display: block;
  min-width: 1ch;
}

.rotating-word::after {
  content: '|';
  color: var(--lp-primary);
  font-weight: 400;
}

.rotating-word.cursor-idle::after {
  animation: cursor-blink 0.7s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 500px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Mockup Frame (app preview) ---------- */

.mock-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--lp-glass-border);
  background: var(--lp-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--lp-elevation);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--lp-nav-bg);
  border-bottom: 1px solid var(--lp-glass-border);
}

.mock-nav {
  display: flex;
  gap: 2px;
  overflow: hidden;
}

.mock-nav-item {
  font-size: 12px;
  font-weight: 700;
  color: var(--lp-muted);
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.mock-nav-item.active {
  color: var(--lp-primary);
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.mock-nav-spacer {
  flex: 1;
}

.mock-nav-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.mock-nav-logout {
  color: var(--lp-secondary);
}

.mock-body {
  padding: 20px;
}

.mock-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mock-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.mock-heading {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lp-text);
}

.mock-add-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-deep));
  color: var(--lp-primary-text);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.mock-current-class {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.035);
  flex-shrink: 0;
}

.mock-cclabel {
  font-size: 10px;
  font-weight: 700;
  color: var(--lp-muted);
  letter-spacing: 0.14em;
}

.mock-ccname {
  font-size: 13px;
  font-weight: 800;
  color: var(--lp-primary);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mock-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

.mock-card-wide {
  grid-column: 1 / -1;
}

.mock-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--lp-text);
  display: block;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.mock-assignment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-assignment-row:last-child {
  border-bottom: 0;
}

.mock-class-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--mock-class, var(--lp-primary));
  background: color-mix(in srgb, var(--mock-class, var(--lp-primary)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--mock-class, var(--lp-primary)) 26%, transparent);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.mock-assignment-title {
  flex: 1;
  font-size: 12px;
  color: var(--lp-text-2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-due-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mock-due-badge.due-tomorrow {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.mock-due-badge.due-upcoming {
  color: var(--lp-primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.mock-project-row {
  padding: 4px 0;
}

.mock-project-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--lp-text-2);
  display: block;
  margin-bottom: 6px;
}

.mock-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lp-primary), var(--lp-secondary));
  border-radius: 3px;
}

.mock-progress-label {
  font-size: 10px;
  color: var(--lp-muted);
  font-weight: 600;
}

.mock-calendar {
  display: flex;
  gap: 4px;
}

.mock-cal-day {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--lp-muted);
  border-radius: 8px;
  position: relative;
  gap: 2px;
}

.mock-cal-today {
  background: rgba(56, 189, 248, 0.12);
  color: var(--lp-primary);
  font-weight: 800;
}

.mock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lp-primary);
}

.mock-dot-p {
  background: var(--lp-secondary);
}

.mock-dot-hw {
  background: var(--lp-primary);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.mock-dot-w {
  background: #22c55e;
}

/* ---------- Sections ---------- */

.section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-dark {
  max-width: none;
  background: var(--lp-section-dark);
  border-top: 1px solid var(--lp-section-border);
  border-bottom: 1px solid var(--lp-section-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.section-dark .section-header,
.section-dark > .steps,
.section-dark > .themes-row {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-sub {
  font-size: 17px;
  color: var(--lp-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Features Grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--lp-feature-bg);
  border: 1px solid var(--lp-feature-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--lp-feature-border);
}

.feature-preview {
  height: 130px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.feature-body {
  padding: 18px;
}

.feature-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 13px;
  color: var(--lp-muted);
  line-height: 1.65;
}

/* Feature Previews (mini mockups) */

/* Dashboard preview */
.fp-dashboard {
  background: rgba(15, 23, 42, 0.3);
  height: 130px;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.fp-dm-topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-dm-nav-item {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.fp-dm-nav-item.active {
  background: rgba(56, 189, 248, 0.25);
}

.fp-dm-nav-spacer {
  flex: 1;
}

.fp-dm-nav-ico {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.fp-dm-nav-ico.out {
  background: rgba(129, 140, 248, 0.2);
}

.fp-dm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.fp-dm-eyebrow {
  font-size: 7px;
  font-weight: 700;
  color: var(--lp-primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
}

.fp-dm-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.03em;
}

.fp-dm-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  margin-left: auto;
  flex-shrink: 0;
}

.fp-dm-pill span {
  font-size: 6px;
  font-weight: 700;
  color: var(--lp-muted-2);
  letter-spacing: 0.04em;
}

.fp-dm-pill strong {
  font-size: 7px;
  font-weight: 800;
  color: var(--lp-text-2);
}

.fp-dm-add {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-deep));
  color: var(--lp-primary-text);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.fp-dm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 12px 10px;
}

.fp-dm-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fp-dm-wide {
  grid-column: 1 / -1;
}

.fp-dm-card-title {
  font-size: 7px;
  font-weight: 700;
  color: var(--lp-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fp-dm-assign {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fp-dm-badge {
  font-size: 6px;
  font-weight: 700;
  color: var(--c, var(--lp-primary));
  background: color-mix(in srgb, var(--c, var(--lp-primary)) 12%, transparent);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fp-dm-title {
  font-size: 7px;
  font-weight: 600;
  color: var(--lp-text-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-dm-due {
  font-size: 6px;
  font-weight: 700;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.fp-dm-project {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-dm-proj-name {
  font-size: 7px;
  font-weight: 700;
  color: var(--lp-text-2);
}

.fp-dm-prog {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.fp-dm-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lp-primary), var(--lp-secondary));
  border-radius: 4px;
}

.fp-dm-prog-label {
  font-size: 6px;
  color: var(--lp-muted-2);
  font-weight: 600;
}

.fp-dm-cal {
  display: flex;
  gap: 2px;
}

.fp-dm-cal-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  color: var(--lp-muted);
  font-weight: 600;
  padding: 2px 0;
  border-radius: 4px;
}

.fp-dm-today {
  background: rgba(56, 189, 248, 0.08);
  color: var(--lp-primary);
  font-weight: 700;
}

.fp-dm-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.fp-dm-dot.hw {
  background: var(--lp-primary);
}

/* Assignments preview */
.fp-assignments {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-assign-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fp-badge {
  font-size: 7px;
  font-weight: 800;
  color: var(--c, var(--lp-primary));
  background: color-mix(in srgb, var(--c, var(--lp-primary)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--lp-primary)) 26%, transparent);
  padding: 1px 5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.fp-assign-title {
  font-size: 8px;
  font-weight: 600;
  color: var(--lp-text-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.fp-due {
  font-size: 7px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.fp-due.today {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.fp-due.soon {
  color: var(--lp-primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.fp-book-ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  align-self: flex-start;
  margin: 0 2px;
}

.fp-book-ref img {
  width: 12px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.fp-book-ref span {
  font-size: 7px;
  font-weight: 600;
  color: var(--lp-primary);
}

/* Projects preview */
.fp-projects {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-proj-marker-wrap {
  display: flex;
}

.fp-proj-marker {
  font-size: 6px;
  font-weight: 800;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 1px 5px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fp-proj-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--lp-text-2);
}

.fp-proj-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-proj-due {
  font-size: 7px;
  font-weight: 700;
  color: var(--lp-muted-2);
}

.fp-prog-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.fp-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lp-primary), var(--lp-secondary));
  border-radius: 999px;
}

.fp-prog-label {
  font-size: 7px;
  color: var(--lp-muted-2);
  font-weight: 600;
}

.fp-task-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-task-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px;
  align-items: center;
  font-size: 7px;
  color: var(--lp-muted);
  padding: 1px 0;
  cursor: default;
}

.fp-task-row input[type="checkbox"] {
  display: none;
}

.fp-check {
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fp-task-row input:checked + .fp-check {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
}

.fp-task-row input:checked + .fp-check::after {
  content: '✓';
  font-size: 6px;
  color: var(--lp-primary-text);
  font-weight: 800;
  line-height: 1;
}

.fp-task-row input:checked ~ span {
  text-decoration: line-through;
  opacity: 0.5;
}

.fp-task-row small {
  color: var(--lp-muted-2);
  font-weight: 600;
  margin-left: 3px;
}

.fp-del {
  font-size: 9px;
  color: var(--lp-muted-2);
  opacity: 0.5;
  cursor: default;
}

/* Calendar preview */
.fp-calendar {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fp-cal-header span {
  font-size: 8px;
  font-weight: 700;
  color: var(--lp-muted-2);
  text-align: center;
  padding: 2px 0;
}

.fp-cal-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fp-cal-day {
  font-size: 8px;
  font-weight: 600;
  color: var(--lp-muted);
  text-align: center;
  padding: 3px 1px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 22px;
}

.fp-cal-today {
  background: rgba(56, 189, 248, 0.12);
  color: var(--lp-primary);
  font-weight: 800;
}

.fp-cal-chip {
  font-size: 5px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 2px;
  line-height: 1.2;
  background: rgba(56, 189, 248, 0.2);
  color: var(--lp-primary);
  display: inline-block;
}

.fp-cal-chip.p {
  background: rgba(129, 140, 248, 0.2);
  color: var(--lp-secondary);
}

.fp-cal-chip.w {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* Weekly preview */
.fp-weekly {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-blockquote {
  font-size: 10px;
  font-style: italic;
  color: var(--lp-muted);
  padding: 8px 10px;
  border-left: 2px solid var(--lp-primary);
  background: rgba(56, 189, 248, 0.04);
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
}

.fp-spelling-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.fp-spell-hdr,
.fp-spell-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 8px;
  padding: 3px 6px;
}

.fp-spell-hdr {
  color: var(--lp-muted-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fp-spell-row {
  color: var(--lp-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.fp-spell-row:last-child {
  border-bottom: 0;
}

.fp-spell-row span:first-child {
  font-weight: 600;
  color: var(--lp-text-2);
}

.fp-spell-row span:last-child {
  color: var(--lp-muted);
}

/* Textbooks preview */
.fp-textbooks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-tb-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fp-tb-grade {
  font-size: 8px;
  font-weight: 700;
  color: var(--lp-primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}

.fp-tb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.fp-tb-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fp-tb-thumb {
  aspect-ratio: 3/2;
  background: rgba(15,23,42,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4px;
  position: relative;
  overflow: hidden;
}

.fp-tb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.5;
}

.fp-tb-tag {
  font-family: 'Space Mono', monospace;
  font-size: 6px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.fp-tb-body {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-tb-card-title {
  font-size: 8px;
  font-weight: 700;
  color: var(--lp-text-2);
}

.fp-tb-open {
  font-size: 7px;
  font-weight: 700;
  color: var(--lp-primary);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

/* Reminders preview */
.fp-reminders {
  display: flex;
  flex-direction: column;
}

.fp-note-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.fp-note-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: default;
  font-size: 8px;
}

.fp-note-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.fp-note-circle.filled {
  background: #22c55e;
  border-color: #22c55e;
}

.fp-note-circle.filled::after {
  content: '';
  width: 4px;
  height: 2px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(0, -0.5px);
}

.fp-note-text {
  flex: 1;
  color: var(--lp-text-2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-note-row.checked .fp-note-text {
  text-decoration: line-through;
  opacity: 0.45;
}

.fp-note-badge {
  font-size: 6px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ShareView preview */
.fp-shareview {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fp-share-header-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-share-eyebrow {
  font-size: 8px;
  font-weight: 700;
  color: var(--lp-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fp-share-title {
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
}

.fp-share-week {
  font-size: 8px;
  color: var(--lp-muted-2);
  font-weight: 600;
}

.fp-share-row {
  display: flex;
  gap: 5px;
}

.fp-share-card {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-share-card-hdr {
  font-size: 8px;
  font-weight: 700;
  color: var(--lp-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fp-share-item {
  padding: 4px 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fp-share-item strong {
  font-size: 8px;
  font-weight: 700;
  color: var(--lp-text-2);
}

.fp-share-item span {
  font-size: 7px;
  color: var(--lp-muted-2);
  font-weight: 600;
}

.fp-spelling-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


/* ---------- Why Switch ---------- */

.compare-row {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .compare-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .compare-vs span {
    width: auto;
    height: auto;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--lp-muted-2);
    padding: 0 16px;
  }
  .compare-vs {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
  }
  .compare-vs::before,
  .compare-vs::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lp-glass-border);
  }
}

.compare-card {
  background: var(--lp-feature-bg);
  border: 1px solid var(--lp-feature-border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.compare-them {
  border-color: rgba(239, 68, 68, 0.12);
}

.compare-us {
  border-color: rgba(56, 189, 248, 0.2);
}

.them-content,
.us-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.3s ease;
  flex: 1;
}

.comp-track {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  overflow: hidden;
}

.comp-slide {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0.3;
  filter: grayscale(1);
  transition: opacity 0.4s ease, filter 0.4s ease;
  flex-shrink: 0;
}

.comp-slide.active {
  opacity: 1;
  filter: none;
  background: rgba(255,255,255,0.03);
}

.comp-slide-icon {
  width: 24px;
  height: 24px;
  color: #ef4444;
  flex-shrink: 0;
  transition: width 0.4s ease, height 0.4s ease;
}

.comp-slide.active .comp-slide-icon {
  width: 32px;
  height: 32px;
}

.comp-slide-icon svg {
  width: 100%;
  height: 100%;
}

.comp-slide-label {
  font-size: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: font-size 0.4s ease;
  color: var(--lp-muted);
  font-weight: 600;
}

.comp-slide.active .comp-slide-label {
  font-size: 10px;
}

.pair-logo {
  width: 44px;
  height: 44px;
  color: #ef4444;
}

.pair-logo svg {
  width: 100%;
  height: 100%;
}

.pair-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.25));
}

.pair-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.03em;
}

.pair-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pair-list li {
  font-size: 13px;
  color: var(--lp-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.them-list li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  color: #ef4444;
  font-weight: 700;
}

.us-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
}

.pair-arrows {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.pair-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--lp-muted);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Space Mono', monospace;
}

.pair-arrow:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--lp-primary);
}

.pair-footnote {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--lp-muted-2);
  line-height: 1.6;
  padding: 0 12px;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-vs span {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-muted-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ---------- Themes ---------- */
.themes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .themes-row {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tp-frame {
  border-radius: 16px;
  margin-bottom: 16px;
  height: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  border: 1px solid;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-card:hover .tp-frame {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.theme-card.theme-active .tp-frame {
  outline: 2px solid var(--lp-primary);
  outline-offset: 2px;
}

/* Wesley preview */
.tp-wesley {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.06);
}
.tp-wesley .tp-bar {
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  flex-shrink: 0;
}
.tp-wesley .tp-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-wesley .tp-eyebrow {
  font-size: 8px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tp-wesley .tp-heading {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.03em;
}
.tp-wesley .tp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  flex: 1;
}
.tp-wesley .tp-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tp-wesley .tp-card-title {
  font-size: 7px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tp-wesley .tp-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tp-wesley .tp-badge {
  font-size: 6px;
  font-weight: 700;
  color: var(--c, #38bdf8);
  background: color-mix(in srgb, var(--c, #38bdf8) 12%, transparent);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tp-wesley .tp-label {
  font-size: 7px;
  font-weight: 600;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-wesley .tp-prog {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.tp-wesley .tp-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 2px;
}
.tp-wesley .tp-cbox {
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  flex-shrink: 0;
}
.tp-wesley .tp-task {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tp-wesley .tp-task .tp-label {
  color: #94a3b8;
}

/* Dark preview */
.tp-dark {
  background: #030712;
  border-color: rgba(148, 163, 184, 0.12);
}
.tp-dark .tp-bar {
  height: 4px;
  background: #93c5fd;
  flex-shrink: 0;
}
.tp-dark .tp-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-dark .tp-eyebrow {
  font-size: 8px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tp-dark .tp-heading {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
}
.tp-dark .tp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  flex: 1;
}
.tp-dark .tp-card {
  background: rgba(148,163,184,0.04);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tp-dark .tp-card-title {
  font-size: 7px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tp-dark .tp-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tp-dark .tp-badge {
  font-size: 6px;
  font-weight: 700;
  color: var(--c, #93c5fd);
  background: color-mix(in srgb, var(--c, #93c5fd) 12%, transparent);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tp-dark .tp-label {
  font-size: 7px;
  font-weight: 600;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-dark .tp-prog {
  height: 4px;
  background: rgba(148,163,184,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.tp-dark .tp-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 2px;
}
.tp-dark .tp-cbox {
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(148,163,184,0.15);
  border-radius: 2px;
  flex-shrink: 0;
}
.tp-dark .tp-task {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tp-dark .tp-task .tp-label {
  color: #94a3b8;
}

/* Light preview */
.tp-light {
  background: #f6f8fb;
  border-color: rgba(100, 116, 139, 0.15);
}
.tp-light .tp-bar {
  height: 4px;
  background: #2563eb;
  flex-shrink: 0;
}
.tp-light .tp-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-light .tp-eyebrow {
  font-size: 8px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tp-light .tp-heading {
  font-size: 14px;
  font-weight: 800;
  color: #172033;
  letter-spacing: -0.03em;
}
.tp-light .tp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  flex: 1;
}
.tp-light .tp-card {
  background: #ffffff;
  border: 1px solid rgba(100,116,139,0.15);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tp-light .tp-card-title {
  font-size: 7px;
  font-weight: 700;
  color: #556575;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tp-light .tp-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tp-light .tp-badge {
  font-size: 6px;
  font-weight: 700;
  color: var(--c, #2563eb);
  background: color-mix(in srgb, var(--c, #2563eb) 12%, transparent);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tp-light .tp-label {
  font-size: 7px;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-light .tp-prog {
  height: 4px;
  background: rgba(100,116,139,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.tp-light .tp-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 2px;
}
.tp-light .tp-cbox {
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(100,116,139,0.18);
  border-radius: 2px;
  flex-shrink: 0;
}
.tp-light .tp-task {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tp-light .tp-task .tp-label {
  color: #64748b;
}

.theme-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.theme-desc {
  font-size: 13px;
  color: var(--lp-muted);
}

/* ---------- Theme Tour ---------- */

.themes-row {
  position: relative;
}

.tour-highlight {
  position: absolute;
  border-radius: 20px;
  border: 2px solid var(--lp-primary);
  box-shadow: 0 0 40px color-mix(in srgb, var(--lp-primary) 20%, transparent),
              inset 0 0 40px color-mix(in srgb, var(--lp-primary) 6%, transparent);
  pointer-events: none;
  opacity: 0;
  transition:
    top 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    left 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  z-index: 2;
}
.tour-highlight.active {
  opacity: 1;
}

/* ---------- Steps ---------- */

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    gap: 32px;
  }
}

/* Spotlight step reveal animation */
.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step.spotlit {
  opacity: 1;
  transform: translateY(0);
}

.step-connector {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-connector.slide-in {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .step-connector { display: none; }
}

.step.spotlit .step-number {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  animation: spotlight-glow-1 1.2s ease forwards;
}
.step-2.spotlit .step-number {
  animation-name: spotlight-glow-2;
}
.step-3.spotlit .step-number {
  animation-name: spotlight-glow-3;
}

@keyframes spotlight-glow-1 {
  0%   { box-shadow: 0 0 0 0 transparent; }
  30%  { box-shadow: 0 0 50px rgba(56, 189, 248, 0.35), 0 0 100px rgba(56, 189, 248, 0.15); }
  100% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.15), 0 0 60px rgba(56, 189, 248, 0.06); }
}
@keyframes spotlight-glow-2 {
  0%   { box-shadow: 0 0 0 0 transparent; }
  30%  { box-shadow: 0 0 50px rgba(129, 140, 248, 0.35), 0 0 100px rgba(129, 140, 248, 0.15); }
  100% { box-shadow: 0 0 30px rgba(129, 140, 248, 0.15), 0 0 60px rgba(129, 140, 248, 0.06); }
}
@keyframes spotlight-glow-3 {
  0%   { box-shadow: 0 0 0 0 transparent; }
  30%  { box-shadow: 0 0 50px rgba(245, 158, 11, 0.35), 0 0 100px rgba(245, 158, 11, 0.15); }
  100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.15), 0 0 60px rgba(245, 158, 11, 0.06); }
}

/* Section header fades in before spotlight sequence */
#how-it-works .section-header {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#how-it-works .section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-deep));
  color: var(--lp-primary-text);
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-2 {
  background: linear-gradient(135deg, var(--lp-secondary), #6366f1);
}
.step-3 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
}

.step-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

.step-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 26px;
  color: #475569;
}

@media (max-width: 768px) {
  .step-connector { display: none; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.28));
  margin-bottom: 12px;
}

.footer-text {
  font-size: 14px;
  color: var(--lp-muted);
  max-width: 380px;
  line-height: 1.6;
  font-weight: 600;
}

.footer-version {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  padding-top: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--lp-muted-2);
  font-weight: 700;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--lp-muted);
}

/* ---------- Reveal Animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Selection ---------- */

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: var(--lp-text);
}

/* ---------- Confetti ---------- */

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.confetti-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 7px 16px;
  margin-top: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.confetti-btn:hover {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  transform: scale(1.04);
}
.confetti-btn svg {
  flex-shrink: 0;
}

/* ---------- Mobile Nav Toggle ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--lp-glass-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--lp-text);
  padding: 0;
  flex-shrink: 0;
  margin-left: 8px;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile Nav Overlay ---------- */

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--lp-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-muted);
  padding: 12px 24px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover {
  color: var(--lp-text);
  background: rgba(255,255,255,0.04);
}


/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .hero-title { font-size: clamp(28px, 7vw, 36px); }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-text { display: none; }
  .nav-actions { gap: 4px; margin-left: auto; }
  .nav-cta { font-size: 12px; padding: 6px 10px; }
  .nav-inner { gap: 8px; }

  .section { padding: 64px 20px 56px; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 15px; }

  .hero { padding: 96px 20px 40px; }
  .hero-title { font-size: 28px; margin-bottom: 20px; }
  .hero-title-tail { white-space: normal; }
  .hero-actions .btn { font-size: 14px; padding: 10px 22px; }
  .hero-mockup { margin-top: 8px; }

  .mock-frame { border-radius: 14px; }
  .mock-header-row { flex-wrap: wrap; gap: 8px; }
  .mock-current-class { padding: 4px 10px; }
  .mock-add-btn { width: 28px; height: 28px; font-size: 15px; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-nav { gap: 0; }
  .mock-nav-item { font-size: 10px; padding: 4px 6px; }

  .features-grid { gap: 14px; }
  .feature-preview { height: 110px; padding: 12px; }
  .feature-body { padding: 14px; }
  .feature-title { font-size: 15px; }
  .feature-desc { font-size: 12px; }

  .fp-dashboard { height: 110px; }
  .fp-dm-header { padding: 6px 10px; gap: 6px; }
  .fp-dm-grid { padding: 0 10px 8px; gap: 4px; }
  .fp-dm-card { padding: 6px 8px; }
  .fp-dm-today { background: transparent; }
  .fp-dm-add { width: 18px; height: 18px; font-size: 9px; }

  .compare-card { padding: 22px 16px; min-height: 0; }
  .pair-name { font-size: 16px; }
  .pair-list li { font-size: 12px; padding-left: 16px; }
  .pair-logo-img { width: 36px; height: 36px; }
  .pair-footnote { font-size: 11px; }
  .comp-slide { padding: 3px 6px; }
  .comp-slide.active .comp-slide-icon { width: 26px; height: 26px; }
  .comp-slide.active .comp-slide-label { font-size: 9px; }
  .pair-arrow { width: 44px; height: 44px; font-size: 18px; }

  .themes-row { gap: 20px; }
  .tp-frame { height: 160px; }
  .theme-name { font-size: 16px; }
  .theme-desc { font-size: 12px; }

  .steps { gap: 24px; }
  .step { padding: 0 8px; }
  .step-title { font-size: 18px; }
  .step-desc { font-size: 13px; max-width: 100%; }
  .step-number { width: 44px; height: 44px; font-size: 17px; }

  .footer { padding: 36px 20px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-text { max-width: 100%; font-size: 13px; }
  .footer-links { justify-content: center; }
}

@media (max-width: 400px) {
  .nav-cta { font-size: 12px; padding: 6px 10px; }
  .hero-title { font-size: 24px; }
  .section { padding: 48px 16px 40px; }
  .feature-preview { height: 100px; }
  .fp-dashboard { height: 100px; }
  .compare-card { padding: 18px 14px; }
}
