/* ============================================================================
   ALG Institute — landing page templates
   Applied by assets/js/landing.js through data-landing-template on <html>.
   Each template keeps the ALG logo and content but changes the visual system,
   hero arrangement, surfaces and card language.
   ========================================================================= */

/* --------------------------------------------------------------------------
   Midnight — dark premium
   -------------------------------------------------------------------------- */
html[data-landing-template="midnight"] {
  --paper: #07080c !important;
  --paper-2: #0f1117 !important;
  --white: #141821 !important;
  --ink: #f4f7ff !important;
  --ink-2: #d6dceb !important;
  --muted: #9aa5ba !important;
  --muted-2: #6f7b91 !important;
  --blue: #7c9bff !important;
  --blue-2: #9db8ff !important;
  --blue-rgb: 124, 155, 255 !important;
  --lime: #a0ff27 !important;
  --border: rgba(255, 255, 255, 0.1) !important;
  --border-strong: rgba(255, 255, 255, 0.18) !important;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.4) !important;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.55) !important;
  color-scheme: dark;
}
html[data-landing-template="midnight"] body {
  background: radial-gradient(circle at 12% 0%, rgba(124, 155, 255, 0.13), transparent 30%), #07080c;
}
html[data-landing-template="midnight"] .site-nav {
  background: rgba(7, 8, 12, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-landing-template="midnight"] .nav-links a { color: #c5cede; }
html[data-landing-template="midnight"] .nav-links a:hover { color: #fff; }
html[data-landing-template="midnight"] .hero {
  background: radial-gradient(circle at 50% -10%, rgba(124, 155, 255, 0.24), transparent 44%), #07080c;
}
html[data-landing-template="midnight"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 0;
}
html[data-landing-template="midnight"] .hero-copy { max-width: 980px; margin-inline: auto; }
html[data-landing-template="midnight"] .hero-visual { display: none; }
html[data-landing-template="midnight"] .hero-cta,
html[data-landing-template="midnight"] .hero-trust { justify-content: center; }
html[data-landing-template="midnight"] .hero-trust li { color: #c7d2e6; }
html[data-landing-template="midnight"] .marquee { border-color: rgba(255, 255, 255, 0.08); }
html[data-landing-template="midnight"] .marquee-item { color: #8793a9; }
html[data-landing-template="midnight"] .section:nth-of-type(even) { background: rgba(255, 255, 255, 0.018); }
html[data-landing-template="midnight"] .section-head p,
html[data-landing-template="midnight"] .lede { color: #aab4c8; }
html[data-landing-template="midnight"] .course-card,
html[data-landing-template="midnight"] .feature-card,
html[data-landing-template="midnight"] .tutor-card,
html[data-landing-template="midnight"] .cohort-card,
html[data-landing-template="midnight"] .bootcamp-card,
html[data-landing-template="midnight"] .event-card,
html[data-landing-template="midnight"] .price-card,
html[data-landing-template="midnight"] .story-card,
html[data-landing-template="midnight"] .faq-item,
html[data-landing-template="midnight"] .stats-band,
html[data-landing-template="midnight"] .eco-panel,
html[data-landing-template="midnight"] .waitlist-panel,
html[data-landing-template="midnight"] .cta-band {
  background: #141821;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
html[data-landing-template="midnight"] .course-card:hover {
  border-color: rgba(124, 155, 255, 0.45);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}
html[data-landing-template="midnight"] .btn-primary {
  background: linear-gradient(135deg, #7c9bff, #5b78ff);
  color: #07080c;
  box-shadow: 0 14px 32px rgba(124, 155, 255, 0.24);
}
html[data-landing-template="midnight"] .btn-outline {
  border-color: rgba(255, 255, 255, 0.22);
  color: #e8edf8;
}
html[data-landing-template="midnight"] .eyebrow { color: #9db8ff; }
html[data-landing-template="midnight"] .grad { color: #a0ff27; }
html[data-landing-template="midnight"] .footer {
  background: #05060a;
  border-top-color: rgba(255, 255, 255, 0.08);
}
html[data-landing-template="midnight"] .footer h4 { color: #f4f7ff; }
html[data-landing-template="midnight"] .footer a,
html[data-landing-template="midnight"] .footer p,
html[data-landing-template="midnight"] .footer-bottom { color: #98a2b6; }
html[data-landing-template="midnight"] .footer-wordmark { color: rgba(255, 255, 255, 0.04); }

/* --------------------------------------------------------------------------
   Paper — minimal editorial
   -------------------------------------------------------------------------- */
html[data-landing-template="paper"] {
  --paper: #f6f2e8 !important;
  --paper-2: #ede7d8 !important;
  --white: #fffdf7 !important;
  --ink: #151515 !important;
  --ink-2: #282828 !important;
  --muted: #6c665b !important;
  --muted-2: #8d8577 !important;
  --blue: #1a1a1a !important;
  --blue-2: #000 !important;
  --blue-rgb: 26, 26, 26 !important;
  --lime: #c9f36b !important;
  --border: rgba(21, 21, 21, 0.12) !important;
  --border-strong: rgba(21, 21, 21, 0.22) !important;
  --shadow-sm: none !important;
  --shadow-md: none !important;
  --shadow-lg: none !important;
  --radius: 10px !important;
  --radius-lg: 16px !important;
}
html[data-landing-template="paper"] body {
  background: #f6f2e8;
  background-image: radial-gradient(rgba(21, 21, 21, 0.035) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
}
html[data-landing-template="paper"] .site-nav {
  background: rgba(246, 242, 232, 0.9);
  border-bottom-color: rgba(21, 21, 21, 0.12);
}
html[data-landing-template="paper"] .hero { padding-top: 132px; }
html[data-landing-template="paper"] .hero-grid {
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
}
html[data-landing-template="paper"] .hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  letter-spacing: -0.065em;
}
html[data-landing-template="paper"] .hero-copy .lede { max-width: 620px; }
html[data-landing-template="paper"] .hero-visual .orb,
html[data-landing-template="paper"] .hero-visual .orbit-ring,
html[data-landing-template="paper"] .hero-visual .float-card { display: none; }
html[data-landing-template="paper"] .hero-photo {
  border-radius: 6px;
  transform: rotate(-1.2deg);
  filter: grayscale(18%) sepia(8%);
  box-shadow: 18px 18px 0 rgba(21, 21, 21, 0.07);
}
html[data-landing-template="paper"] .hero-cta .btn-primary {
  background: #151515;
  color: #fff;
  border-radius: 999px;
}
html[data-landing-template="paper"] .hero-cta .btn-outline {
  border-color: #151515;
  color: #151515;
  border-radius: 999px;
}
html[data-landing-template="paper"] .hero-trust li { color: var(--muted); }
html[data-landing-template="paper"] .section { border-top: 1px solid rgba(21, 21, 21, 0.1); }
html[data-landing-template="paper"] .section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
html[data-landing-template="paper"] .course-card,
html[data-landing-template="paper"] .feature-card,
html[data-landing-template="paper"] .tutor-card,
html[data-landing-template="paper"] .cohort-card,
html[data-landing-template="paper"] .bootcamp-card,
html[data-landing-template="paper"] .event-card,
html[data-landing-template="paper"] .price-card,
html[data-landing-template="paper"] .story-card,
html[data-landing-template="paper"] .faq-item {
  border-radius: 7px;
  border-color: rgba(21, 21, 21, 0.14);
  background: transparent;
  box-shadow: none;
}
html[data-landing-template="paper"] .course-card:hover,
html[data-landing-template="paper"] .feature-card:hover,
html[data-landing-template="paper"] .tutor-card:hover {
  border-color: rgba(21, 21, 21, 0.34);
  transform: translateY(-2px);
}
html[data-landing-template="paper"] .course-thumb { border-radius: 4px; }
html[data-landing-template="paper"] .eyebrow { color: #151515; }
html[data-landing-template="paper"] .stats-band { background: #151515; color: #fff; border-radius: 10px; }
html[data-landing-template="paper"] .stats-band .stat b,
html[data-landing-template="paper"] .stats-band .stat span { color: #fff; }
html[data-landing-template="paper"] .footer {
  background: #151515;
  border-top-color: rgba(255, 255, 255, 0.1);
}
html[data-landing-template="paper"] .footer h4 { color: #fff; }
html[data-landing-template="paper"] .footer a,
html[data-landing-template="paper"] .footer p,
html[data-landing-template="paper"] .footer-bottom { color: rgba(255, 255, 255, 0.66); }
html[data-landing-template="paper"] .footer-wordmark { color: rgba(255, 255, 255, 0.05); }

/* --------------------------------------------------------------------------
   Ocean — cool, centered and energetic
   -------------------------------------------------------------------------- */
html[data-landing-template="ocean"] {
  --paper: #eef7fb !important;
  --paper-2: #e1eff8 !important;
  --white: #ffffff !important;
  --ink: #083344 !important;
  --ink-2: #0c4a5e !important;
  --muted: #4b7186 !important;
  --muted-2: #6b8ea2 !important;
  --blue: #0b6fa4 !important;
  --blue-2: #075985 !important;
  --blue-rgb: 11, 111, 164 !important;
  --lime: #a0ff27 !important;
  --border: rgba(8, 51, 68, 0.1) !important;
  --border-strong: rgba(8, 51, 68, 0.18) !important;
  --radius: 22px !important;
  --radius-lg: 30px !important;
}
html[data-landing-template="ocean"] body { background: #eef7fb; }
html[data-landing-template="ocean"] .site-nav {
  background: rgba(238, 247, 251, 0.9);
  border-bottom-color: rgba(8, 51, 68, 0.08);
}
html[data-landing-template="ocean"] .hero {
  background: radial-gradient(circle at 50% 118%, rgba(11, 111, 164, 0.25), transparent 56%), linear-gradient(180deg, #e6f5fc, #f8fdff);
}
html[data-landing-template="ocean"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 0;
}
html[data-landing-template="ocean"] .hero-copy { max-width: 960px; margin-inline: auto; }
html[data-landing-template="ocean"] .hero-visual { display: none; }
html[data-landing-template="ocean"] .hero-cta,
html[data-landing-template="ocean"] .hero-trust { justify-content: center; }
html[data-landing-template="ocean"] .hero-copy h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
html[data-landing-template="ocean"] .section:nth-of-type(even) { background: #f8fdff; }
html[data-landing-template="ocean"] .course-card,
html[data-landing-template="ocean"] .feature-card,
html[data-landing-template="ocean"] .tutor-card,
html[data-landing-template="ocean"] .cohort-card,
html[data-landing-template="ocean"] .bootcamp-card,
html[data-landing-template="ocean"] .event-card,
html[data-landing-template="ocean"] .price-card,
html[data-landing-template="ocean"] .story-card,
html[data-landing-template="ocean"] .faq-item {
  border-radius: 20px;
  border-color: rgba(11, 111, 164, 0.12);
  background: #fff;
  box-shadow: 0 14px 40px rgba(11, 111, 164, 0.07);
}
html[data-landing-template="ocean"] .course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 111, 164, 0.32);
  box-shadow: 0 22px 54px rgba(11, 111, 164, 0.14);
}
html[data-landing-template="ocean"] .btn-primary {
  background: linear-gradient(135deg, #0b6fa4, #075985);
  color: #fff;
  box-shadow: 0 14px 32px rgba(11, 111, 164, 0.22);
}
html[data-landing-template="ocean"] .eyebrow { color: #075985; }
html[data-landing-template="ocean"] .stats-band { background: linear-gradient(135deg, #0b6fa4, #075985); }
html[data-landing-template="ocean"] .footer {
  background: #083344;
  border-top-color: rgba(255, 255, 255, 0.1);
}
html[data-landing-template="ocean"] .footer h4 { color: #fff; }
html[data-landing-template="ocean"] .footer a,
html[data-landing-template="ocean"] .footer p,
html[data-landing-template="ocean"] .footer-bottom { color: rgba(255, 255, 255, 0.68); }

/* --------------------------------------------------------------------------
   Orchard — warm, organic and community-led
   -------------------------------------------------------------------------- */
html[data-landing-template="orchard"] {
  --paper: #f7f2e6 !important;
  --paper-2: #efe7d6 !important;
  --white: #fffdf6 !important;
  --ink: #253226 !important;
  --ink-2: #354637 !important;
  --muted: #6f7463 !important;
  --muted-2: #909683 !important;
  --blue: #2f6b4f !important;
  --blue-2: #24543d !important;
  --blue-rgb: 47, 107, 79 !important;
  --lime: #c9f06a !important;
  --border: rgba(37, 50, 38, 0.12) !important;
  --border-strong: rgba(37, 50, 38, 0.2) !important;
  --radius: 24px !important;
  --radius-lg: 36px !important;
}
html[data-landing-template="orchard"] body { background: #f7f2e6; }
html[data-landing-template="orchard"] .site-nav {
  background: rgba(247, 242, 230, 0.9);
  border-bottom-color: rgba(37, 50, 38, 0.1);
}
html[data-landing-template="orchard"] .hero {
  background: radial-gradient(circle at 85% 15%, rgba(201, 240, 106, 0.28), transparent 38%), linear-gradient(135deg, #f7f2e6, #fbf8ef);
}
html[data-landing-template="orchard"] .hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
html[data-landing-template="orchard"] .hero-copy h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
html[data-landing-template="orchard"] .hero-visual .orb,
html[data-landing-template="orchard"] .hero-visual .orbit-ring,
html[data-landing-template="orchard"] .hero-visual .float-card { display: none; }
html[data-landing-template="orchard"] .hero-photo {
  border-radius: 48% 52% 44% 56% / 56% 44% 56% 44%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(47, 107, 79, 0.16);
}
html[data-landing-template="orchard"] .course-card,
html[data-landing-template="orchard"] .feature-card,
html[data-landing-template="orchard"] .tutor-card,
html[data-landing-template="orchard"] .cohort-card,
html[data-landing-template="orchard"] .bootcamp-card,
html[data-landing-template="orchard"] .event-card,
html[data-landing-template="orchard"] .price-card,
html[data-landing-template="orchard"] .story-card,
html[data-landing-template="orchard"] .faq-item {
  border-radius: 22px;
  border-color: rgba(47, 107, 79, 0.14);
  background: #fffdf6;
  box-shadow: 0 10px 30px rgba(47, 107, 79, 0.06);
}
html[data-landing-template="orchard"] .course-card:hover {
  border-color: rgba(47, 107, 79, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(47, 107, 79, 0.12);
}
html[data-landing-template="orchard"] .btn-primary {
  background: #2f6b4f;
  color: #fff;
  box-shadow: 0 14px 32px rgba(47, 107, 79, 0.2);
}
html[data-landing-template="orchard"] .btn-outline { border-color: #2f6b4f; color: #2f6b4f; }
html[data-landing-template="orchard"] .eyebrow { color: #2f6b4f; }
html[data-landing-template="orchard"] .stats-band { background: linear-gradient(135deg, #2f6b4f, #24543d); }
html[data-landing-template="orchard"] .footer {
  background: #253226;
  border-top-color: rgba(255, 255, 255, 0.1);
}
html[data-landing-template="orchard"] .footer h4 { color: #fff; }
html[data-landing-template="orchard"] .footer a,
html[data-landing-template="orchard"] .footer p,
html[data-landing-template="orchard"] .footer-bottom { color: rgba(255, 255, 255, 0.68); }

@media (max-width: 980px) {
  html[data-landing-template="paper"] .hero-grid,
  html[data-landing-template="orchard"] .hero-grid { grid-template-columns: 1fr; }
  html[data-landing-template="paper"] .hero-photo,
  html[data-landing-template="orchard"] .hero-photo { transform: none; }
}
@media (max-width: 760px) {
  html[data-landing-template="midnight"] .hero-copy h1,
  html[data-landing-template="ocean"] .hero-copy h1 { font-size: clamp(2.35rem, 10vw, 3.6rem); }
  html[data-landing-template="paper"] .hero-copy h1 { font-size: clamp(2.4rem, 11vw, 3.8rem); }
}

html[data-landing-template="paper"] .hero-photo::after { background: linear-gradient(160deg, rgba(21, 21, 21, 0.02), rgba(21, 21, 21, 0.2)); }
html[data-landing-template="orchard"] .hero-photo::after { background: linear-gradient(160deg, rgba(47, 107, 79, 0.02), rgba(47, 107, 79, 0.2)); }
html[data-landing-template="paper"] .hero::before { background: radial-gradient(50% 40% at 80% 10%, rgba(21, 21, 21, 0.05), transparent 70%); }
html[data-landing-template="orchard"] .hero::before { background: radial-gradient(50% 40% at 80% 10%, rgba(201, 240, 106, 0.18), transparent 70%); }
html[data-landing-template="midnight"] .hero::before,
html[data-landing-template="ocean"] .hero::before { display: none; }

html[data-landing-template="midnight"] .grad { background: linear-gradient(100deg, #a0ff27 0%, #7c9bff 55%, #dbeafe 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-landing-template="paper"] .grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: #151515; -webkit-text-fill-color: #151515; }
html[data-landing-template="orchard"] .grad { background: linear-gradient(100deg, #2f6b4f 0%, #6fae55 45%, #c9f06a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Midnight — contrast repairs for accent surfaces and media badges */
html[data-landing-template="midnight"] .btn-lime,
html[data-landing-template="midnight"] .cta-band .btn-lime,
html[data-landing-template="midnight"] .cohort-media .badge,
html[data-landing-template="midnight"] .audience-pill,
html[data-landing-template="midnight"] .audience-visual .pill {
  background: #a0ff27;
  color: #07080c;
}
html[data-landing-template="midnight"] .bootcamp-media .badge {
  background: #a0ff27;
  color: #07080c;
}
html[data-landing-template="midnight"] .course-thumb .chip-light {
  background: rgba(20, 24, 33, 0.9);
  color: #e8edf8;
}
html[data-landing-template="midnight"] .audience-tab.active {
  background: #243a99;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
html[data-landing-template="midnight"] .price-card.popular::before {
  background: #243a99;
  color: #fff;
}
html[data-landing-template="midnight"] .stats-band {
  background: linear-gradient(135deg, #1b2a6b, #141821);
}
html[data-landing-template="midnight"] .cta-band {
  background: linear-gradient(120deg, #0b123a, #1b2b7a 55%, #1229ad);
}
html[data-landing-template="midnight"] .nextgen {
  background: linear-gradient(180deg, #141821 0%, #0f1117 55%, #07080c 100%);
  border-block-color: rgba(255, 255, 255, 0.08);
}
html[data-landing-template="midnight"] .age-card h3,
html[data-landing-template="midnight"] .age-card p,
html[data-landing-template="midnight"] .age-card a,
html[data-landing-template="midnight"] .age-card .age-icon i {
  color: #171717;
}
html[data-landing-template="midnight"] .age-card a { color: #1229ad; }
html[data-landing-template="midnight"] .age-card .age-chip {
  background: rgba(255, 255, 255, 0.55);
  color: #171717;
}
html[data-landing-template="midnight"] .story-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
}
html[data-landing-template="midnight"] .story-outcome {
  background: rgba(124, 155, 255, 0.16);
  color: #c9d7ff;
}
html[data-landing-template="midnight"] .story-small .story-body .story-verified { color: #6ee7b7; }
html[data-landing-template="midnight"] .eco-node.three { color: #07080c; }
html[data-landing-template="midnight"] .waitlist-form select option {
  background: #fff;
  color: #171717;
}

html[data-landing-template="midnight"] .skeleton {
  background: linear-gradient(90deg, #141821 25%, #202736 50%, #141821 75%);
  background-size: 200% 100%;
}

html[data-landing-template="midnight"] .age-badge {
  background: rgba(124, 155, 255, 0.16);
  color: #c9d7ff;
}

/* Centered hero lede for the centered templates */
html[data-landing-template="midnight"] .hero .lede,
html[data-landing-template="ocean"] .hero .lede {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
