* { box-sizing: border-box; }
body.landing {
  --ink: #18283e;
  --muted: #52657e;
  --paper: #f6f7fa;
  --line: #dce6f0;
  --primary: #0a287c;
  --tint: #dceefc;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "DM Sans", "Segoe UI", sans-serif;
}
h1,h2,h3,p { margin: 0; }
a { color: inherit; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 2px solid #2873af; outline-offset: 4px; }
.landing-wrap { width: min(1260px, calc(100% - 72px)); margin-inline: auto; }
.landing-nav { min-height: 78px; display: flex; align-items: center; gap: clamp(12px, 3vw, 38px); border-bottom: 1px solid var(--line); }
.landing-nav a { text-decoration: none; }
.landing-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.landing-brand img { width: 32px; }
.landing-brand img + img { width: 132px; filter: brightness(.24); }
.landing-login { font-weight: 650; white-space: nowrap; }
.landing-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 9px 18px; border: 1px solid var(--primary); border-radius: 6px;
  background: var(--primary); color: white; font-weight: 650; text-decoration: none;
}
.landing-button:hover { background: #163d96; }
.landing-button.secondary { color: var(--primary); background: transparent; border-color: #a9bedb; }
.landing-button.secondary:hover { background: #eaf3fc; }
.landing-intro {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.12fr);
  align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: clamp(36px, 6vw, 94px);
}
.landing-intro h1 { font: 400 clamp(54px, 7.5vw, 112px)/.9 "Instrument Serif", Georgia, serif; letter-spacing: -.065em; }
.landing-intro h1 em { color: #2357a3; font-weight: 400; }
.landing-intro p { max-width: 38ch; margin: 26px 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.landing-hero-visual { position: relative; align-self: stretch; min-height: 410px; overflow: hidden; border-radius: 6px 72px 6px 6px; background: var(--primary); }
.landing-hero-visual > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.landing-hero-course {
  position: absolute; inset: auto 18px 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 5px;
  background: var(--tint); text-decoration: none; color: #18283e;
}
.landing-hero-course small,.landing-hero-course strong { display: block; }
.landing-hero-course strong { font-size: 20px; }
.landing-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: white; }
.landing-hero-course:hover .landing-arrow { background: #2357a3; }
@media (prefers-reduced-motion: no-preference) {
  .landing-hero-visual > img { animation: hero-reveal 1.2s ease-out both; }
  .landing-hero-course { animation: hero-caption .65s .15s ease-out both; }
}
@keyframes hero-reveal { from { scale: 1.08; opacity: .6; } to { scale: 1; opacity: 1; } }
@keyframes hero-caption { from { translate: 0 14px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
main section { margin-bottom: clamp(42px, 7vw, 96px); }
.landing h2 { font: 400 clamp(34px, 4.4vw, 62px)/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.045em; margin-bottom: 20px; }
.landing-course-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.landing-course-heading h2 { margin: 0; }
.course-controls { display: flex; gap: 6px; }
.course-controls button { min-height: 42px; min-width: 42px; font: inherit; color: var(--primary); background: transparent; border: 1px solid #a9bedb; border-radius: 6px; cursor: pointer; }
.course-controls button:hover { background: var(--tint); }
.landing-grid { display: grid; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }
#course-list { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 32px)/3); overflow: hidden; }
.landing-card { background: var(--landing-card, white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.landing-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.landing-card > div { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.landing-card h3 { margin-block: 4px 8px; font-size: 22px; }
.landing-card p,.landing-features p,.landing-steps p,.landing-faq p { color: var(--muted); }
.landing-course-category { color: #2357a3; font-size: 13px; font-weight: 650; }
.landing-card a { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--primary); font-weight: 650; text-decoration: none; }
.landing-card a:hover { text-decoration: underline; }
.landing-features article,.landing-steps li { padding: 22px; border-top: 1px solid #b3c7df; }
.landing-feature-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); margin-bottom: 12px; color: var(--primary); }
.landing-features h3,.landing-steps h3 { margin-bottom: 6px; }
.landing-steps ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; }
.landing-steps a,.landing-faq a { color: var(--primary); font-weight: 650; }
.landing-faq details { padding: 14px 0; border-block-start: 1px solid var(--line); }
.landing-faq summary { cursor: pointer; font-weight: 650; }
.landing-faq p { margin-top: 8px; }
.landing-enroll { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: clamp(24px,5vw,62px); border-radius: 6px; background: var(--primary); color: white; }
.landing-enroll h2 { margin-bottom: 8px; }
.landing-enroll .landing-button { background: var(--tint); color: var(--ink); border-color: var(--tint); }
.landing-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.landing-footer .landing-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media(max-width:850px) {
  .landing-wrap { width: calc(100% - 36px); }
  .landing-intro { grid-template-columns: 1fr; }
  .landing-hero-visual { min-height: clamp(240px,52vw,410px); }
  .landing-grid,.landing-steps ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #course-list { grid-auto-columns: calc((100% - 16px)/2); }
}
@media(max-width:540px) {
  .landing-nav { flex-wrap: wrap; padding-block: 12px; gap: 10px 16px; }
  .landing-brand { flex-basis: 100%; }
  .landing-grid,.landing-steps ol { grid-template-columns: 1fr; }
  #course-list { grid-auto-columns: 100%; }
  .landing-hero-visual { border-top-right-radius: 36px; }
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.landing-nav { border-bottom: 0; }
.landing main section[id] { scroll-margin-top: 94px; }
@media (max-width: 540px) {
  .landing main section[id] { scroll-margin-top: 140px; }
}

.landing-features .landing-grid { gap: 14px; }
.landing-features article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 14px;
  padding: clamp(16px, 2vw, 25px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--landing-card, #fff);
  box-shadow: 0 3px 12px #0a287c08;
}
.landing-features .landing-feature-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 12px;
  background: var(--tint);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}
.landing-features h3 { color: var(--primary); font-size: 17px; line-height: 1.3; }
.landing-features p { font-size: 14px; line-height: 1.55; }

body.landing { isolation: isolate; }
body.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--glow-x, -600px) var(--glow-y, -600px), #4da5d840, #537fce17 44%, transparent 72%);
  transition: opacity .3s ease;
}
body.landing.has-cursor-glow::before { opacity: 1; }
.landing-features {
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid #d9e6f8;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--landing-card, #fff), var(--tint));
}
.landing-features article {
  grid-template-columns: 1fr;
  min-height: 170px;
}
.landing-steps li, .landing-faq details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--landing-card, #fff);
}
.landing-faq details + details { margin-top: 10px; }
.landing :is(.landing-features article, .landing-card, .landing-steps li, .landing-faq details) {
  transition: background-color .24s ease, color .24s ease, border-color .24s ease, translate .24s ease, box-shadow .24s ease;
}
.landing :is(.landing-features article, .landing-card, .landing-steps li, .landing-faq details):is(:hover,:focus-within) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px #0a287c29;
}
.landing :is(.landing-features article, .landing-card, .landing-steps li, .landing-faq details):is(:hover,:focus-within) :is(h3,p,a,.landing-course-category) {
  color: #fff;
}
.landing-features article:is(:hover,:focus-within) .landing-feature-icon {
  background: #4da5d8;
  color: #102346;
}
@media (prefers-reduced-motion: no-preference) {
  .landing :is(.landing-features article, .landing-steps li):hover { translate: 0 -4px; }
  .landing .section-arrived { animation: landing-section-in .55s ease-out both; }
  .landing .section-arrived:nth-child(3n+2) { animation-delay: 70ms; }
  .landing .section-arrived:nth-child(3n+3) { animation-delay: 140ms; }
}
@keyframes landing-section-in {
  from { opacity: .45; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .landing :is(.landing-features article, .landing-card, .landing-steps li, .landing-faq details) { transition: none; }
}

#course-list { padding: 4px 2px 18px; }
#course-list .landing-card {
  position: relative;
  border-radius: 18px;
  background: var(--landing-card, #fff);
  box-shadow: 0 5px 16px #0a287c0d;
}
#course-list .landing-card img {
  aspect-ratio: 1.85;
  transition: filter .25s ease;
}
#course-list .landing-card > div { padding: 18px 20px 20px; }
#course-list .landing-course-category {
  align-self: flex-start;
  background: var(--tint);
  color: var(--primary);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}
#course-list .landing-card h3 { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.15; margin-block: 10px 8px; }
#course-list .landing-card p { flex: 1; line-height: 1.5; font-size: 14px; }
#course-list .landing-card a {
  align-items: center;
  padding: 8px 0 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
#course-list .landing-card a > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}
#course-list .landing-card:is(:hover, :focus-within) { background: var(--primary); }
#course-list .landing-card:is(:hover, :focus-within) img { filter: saturate(1.18) brightness(.94); }
#course-list .landing-card:is(:hover, :focus-within) a { border-color: #ffffff47; }
#course-list .landing-card:is(:hover, :focus-within) a > span { color: var(--primary); background: var(--landing-card, #fff); }
@media (prefers-reduced-motion: no-preference) {
  #course-list .landing-card:hover { translate: 0 -3px; }
}

.landing-steps ol { counter-reset: learning-step; }
.landing-steps li {
  counter-increment: learning-step;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(155deg, var(--landing-card, #fff) 55%, var(--tint));
}
.landing-steps li::before {
  content: counter(learning-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
}
.landing-steps li:is(:hover,:focus-within) { background: var(--primary); }
.landing-steps li a { margin-top: auto; padding-top: 14px; text-underline-offset: 4px; }
.landing-faq {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 10px 32px;
  align-items: start;
}
.landing-faq h2 { grid-row: span 2; }
.landing-faq details + details { margin: 0; }
.landing-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
.landing-faq details[open] summary::after { content: "−"; }
.landing-faq details[open] { border-color: #79a9cf; }
.landing-footer { background: #eaf2fc; }
.landing-footer .landing-wrap { align-items: center; }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.landing-footer nav a { text-decoration: none; font-weight: 650; }
.landing-footer nav a:hover { text-decoration: underline; }
.landing-footer small { color: var(--muted); }
@media (max-width: 760px) {
  .landing-faq { grid-template-columns: minmax(0, 1fr); }
  .landing-faq h2 { grid-row: auto; }
}

/* Shared spacing rhythm for the landing page. */
.landing main {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(32px, 5vw, 64px);
}
.landing main > section { margin-bottom: 0; }
.landing-intro {
  padding-block: clamp(32px, 5vw, 72px);
}
.landing-course-heading { padding-top: clamp(16px, 2vw, 24px); }
.landing h2 { margin-bottom: clamp(14px, 2vw, 22px); }
.landing-course-heading h2, .landing-faq h2 { margin-bottom: 0; }
.landing-steps ol { margin: 0; }
.landing-enroll h2 { margin-bottom: 8px; }
.landing-intro { min-height: calc(100svh - var(--landing-header-height, 78px)); }

.landing-linked-step { position: relative; }
.landing-linked-step a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.landing-linked-step a:focus-visible { outline: none; }
.landing-linked-step:has(a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 4px; }

.landing-device-preview {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 0; padding: clamp(12px, 2.5vw, 30px);
  background: radial-gradient(ellipse at 55% 45%, #fff, #dceafc);
  border: 1px solid var(--line);
}
.landing-device-stage { position: relative; aspect-ratio: 1.32; }
.landing-device {
  position: absolute; padding: clamp(3px, .55vw, 7px);
  background: #142241; border-radius: 9px; box-shadow: 0 12px 24px #152e6840;
}
.landing-device.laptop { width: 83%; height: 65%; top: 8%; left: 5%; }
.landing-device.laptop::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -5px;
  height: 8px; border-radius: 2px 2px 9px 9px; background: #7b8da7;
}
.landing-device.tablet { width: 43%; height: 51%; right: 0; bottom: 5%; }
.landing-device.phone { width: 23%; height: 48%; left: 1%; bottom: 2%; border-radius: 12px; }
.device-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: inherit; background: #f6f7fa;
}
.device-screen iframe {
  position: absolute; inset: 0 auto auto 0; border: 0;
  transform-origin: top left; pointer-events: none;
}

.landing-device-preview {
  background: transparent;
  border: 0;
  overflow: visible;
}
.landing-device-stage { aspect-ratio: 1.28; }
.landing-device {
  background: linear-gradient(145deg, #46536a, #151821 38%, #080d16);
  border: 1px solid #8f9cae;
  box-shadow: 0 14px 28px #0009;
}
.landing-device.laptop { height: 62%; border-radius: 10px; }
.landing-device.laptop::after {
  left: -7%; right: -7%; bottom: -7px; height: 10px;
  background: linear-gradient(#c5cbd5, #8791a1 55%, #4a5363);
}
.landing-device.tablet { width: 46%; height: 54%; border-radius: 13px; }
.landing-device.phone { width: 24%; height: 53%; border-radius: 15px; }
.landing-device.phone::after {
  content: ""; position: absolute; top: 7px; left: 38%; width: 24%; height: 3px;
  background: #111827; border-radius: 5px; pointer-events: none;
}

#hero-headline-phrase { display: inline-block; }

/* MacBook, iPad and iPhone silhouettes around the live LMS. */
.landing-device-preview { padding: 0; min-width: 0; }
.landing-device-stage { aspect-ratio: 1.42; }
.landing-device.laptop {
  top: 4%; left: 2%; width: 90%; height: auto; aspect-ratio: 1.55;
  padding: 5px; border-radius: 13px 13px 4px 4px;
  border-color: #858f9f; background: #12151c;
}
.landing-device.laptop::before {
  content: ""; position: absolute; z-index: 1; left: 45%; top: 3px;
  width: 10%; height: 6px; border-radius: 0 0 4px 4px; background: #10131a;
}
.landing-device.laptop::after {
  left: -5%; right: -5%; bottom: -8px; height: 9px;
  background: linear-gradient(#dce1e8 12%, #99a3b1 52%, #626c7a);
}
.landing-device.tablet {
  z-index: 1; right: 0; bottom: 0; width: 41%; height: auto; aspect-ratio: .81;
  border-radius: 13px; padding: 5px; border-color: #9da6b5; background: #111620;
}
.landing-device.phone {
  z-index: 2; left: 12%; bottom: 0; width: 22%; height: auto; aspect-ratio: .5;
  border-radius: clamp(10px, 1.8vw, 22px); padding: 4px; border-color: #a0a9b6; background: #111620;
}
.landing-device.phone::after {
  top: 7px; left: 35%; width: 30%; height: 5px; background: #111620;
}
.landing-device .device-screen { border-radius: inherit; }
@media (min-width: 851px) {
  .landing-intro { grid-template-columns: minmax(0, .73fr) minmax(0, 1.35fr); gap: clamp(26px, 3.5vw, 54px); }
  .landing-intro h1 { font-size: clamp(53px, 6.2vw, 96px); }
}


@media (min-width: 1280px) {
  .landing-header .landing-nav, .landing-hero .landing-intro {
    width: min(94%, 1880px);
  }
  .landing-hero .landing-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
    gap: clamp(32px, 4vw, 80px);
    padding-block: clamp(24px, 4svh, 64px);
  }
  .landing-intro h1 { font-size: clamp(76px, 5.35vw, 118px); }
  .landing-device-preview {
    width: 100%;
    max-width: calc((100svh - var(--landing-header-height, 78px) - 95px) * 1.42);
    align-self: center;
    justify-self: end;
  }
}

html { scroll-padding-top: calc(var(--landing-header-height, 78px) + 16px); }
.landing main section[id] { scroll-margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (min-width: 1280px) {
  .landing main.landing-wrap, .landing-footer .landing-wrap { width: min(94%, 1880px); }
  .landing main { gap: clamp(40px, 3.35vw, 64px); }
  .landing-features .landing-grid, .landing-steps ol { gap: clamp(16px, 1.5vw, 26px); }
  .landing-features p, .landing-steps p { max-width: 52ch; }
  .landing-card img { aspect-ratio: 2.15; }
}

.landing-menu-toggle { display: none; }
#landing-mobile-menu {
  position: fixed; inset: 0; margin: 0; width: 100%; max-width: none;
  height: 100dvh; max-height: none; border: 0; overflow: auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: var(--paper); color: var(--ink);
}
html:has(#landing-mobile-menu[open]) { overflow: hidden; }
.landing-menu-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.landing-menu-heading button, .landing-menu-toggle {
  min-height: 44px; min-width: 44px; padding: 8px 13px; border: 1px solid var(--line);
  border-radius: 8px; background: white; color: var(--primary); font: inherit; cursor: pointer;
}
#landing-mobile-menu nav { display: grid; gap: 8px; padding-top: 18px; }
#landing-mobile-menu nav a { display: flex; justify-content: space-between; gap: 12px; padding: 14px; text-decoration: none; font-weight: 650; }
#landing-mobile-menu nav a:not(.landing-button) { border-bottom: 1px solid var(--line); }

.landing-faq { grid-template-columns: minmax(180px,.5fr) minmax(0,1.5fr); }
.landing-faq details { padding: 0; }
.landing-faq summary { padding: 15px 18px; }
.landing-faq details p { padding: 0 18px 16px; margin: 0; }
.landing-enroll {
  border-radius: 18px;
  padding: clamp(24px, 4vw, 52px);
  background: radial-gradient(ellipse at 86% 0%, #2863b6, transparent 68%), var(--primary);
}
.landing-footer { padding: 30px 0; }
.landing-footer .landing-wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.landing-footer .landing-brand { margin: 0; }
.landing-footer small { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 760px) {
  .landing-nav { min-height: 64px; flex-wrap: nowrap; padding-block: 8px; }
  .landing-nav > a:not(.landing-brand) { display: none; }
  .landing-nav .landing-brand { flex-basis: auto; }
  .landing-menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .landing-faq, .landing-footer .landing-wrap { grid-template-columns: minmax(0, 1fr); }
  .landing-faq h2 { margin-bottom: 6px; }
  .landing main { gap: 32px; }
  .landing-intro h1 { font-size: clamp(42px, 9.8vw, 70px); }
  .landing-device-preview { width: calc(100% - 12px); justify-self: center; }
  .landing-enroll .landing-button { width: 100%; }
}

/* Keep the hero copy and mockups together when the layout stacks. */
.landing-intro { align-content: center; }
.landing-actions .landing-button { min-width: 0; }
#course-list { padding-inline: 4px; }
#course-list a:focus-visible { outline-offset: 0; }
.landing-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 850px) {
  .landing-intro { gap: clamp(26px, 5vw, 44px); }
  .landing-device-preview { width: min(100%, 590px); justify-self: center; }
}
@media (max-width: 540px) {
  .landing-intro { min-height: 0; padding-block: 32px; }
  .landing-intro p { margin-block: 20px; }
  .landing-actions { gap: 8px; }
  .landing-actions .landing-button { gap: 8px; padding-inline: 12px; font-size: 14px; }
  .landing-features article { min-height: 0; }
  .landing-steps li::before { margin-bottom: 12px; }
  .landing-footer nav { column-gap: 16px; row-gap: 0; }
}

@media (min-width: 1280px) {
  .landing-intro p { max-width: 46ch; }
  .landing-device-preview { max-width: min(980px, calc((100svh - var(--landing-header-height, 78px) - 95px) * 1.42)); }
  #course-list .landing-card img { aspect-ratio: 2.15; }
}
@media (max-width: 760px) {
  .landing-hero-copy, .landing main, .landing-footer { text-align: center; }
  .landing-hero-copy p, .landing-features p, .landing-steps p { margin-inline: auto; }
  .landing-actions, .landing-footer nav { justify-content: center; }
  .landing-course-heading { flex-direction: column; }
  .landing-features .landing-feature-icon, .landing-steps li a { margin-inline: auto; }
  .landing-steps li { align-items: center; }
  .landing-enroll { justify-content: center; }
  .landing-footer .landing-brand { justify-self: center; }
  .landing-card a { justify-content: center; }
}

@media (hover: hover) and (pointer: fine) {
  .landing, .landing :is(a, button, summary) {
    cursor: url("../../images/hexalabs-cursor.png") 16 16, auto;
  }
}

.landing-cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .landing.has-cursor-glow, .landing.has-cursor-glow :is(a, button, summary) { cursor: none; }
  .landing.has-cursor-glow .landing-cursor {
    display: grid; place-items: center; position: fixed;
    top: var(--glow-y); left: var(--glow-x); translate: -50% -50%;
    width: 34px; height: 34px; border: 1px solid #4da5d8;
    border-radius: 50%; background: var(--landing-card, #fff); z-index: 100; pointer-events: none;
  }
  .landing-cursor img { width: 24px; height: 24px; animation: monogram-spin 2.8s linear infinite; }
}
@keyframes monogram-spin { to { transform: rotate(360deg); } }

.landing-nav > a[href^="#"]:not(.landing-brand) {
  padding: 8px 10px;
  border-radius: 6px;
}
.landing-nav > a[href^="#"]:not(.landing-brand):is(:hover, :focus-visible),
#landing-mobile-menu nav a:not(.landing-button):is(:hover, :focus-visible) {
  background: var(--tint);
  color: var(--primary);
}

.landing-nav { gap: clamp(12px, 2vw, 28px); }
.landing-nav .landing-brand { margin-right: 0; }
.landing-nav-links, .landing-nav-actions { display: flex; align-items: center; gap: 8px; }
.landing-nav-links { margin-inline: auto; }
.landing-nav-links a {
  display: grid; place-items: center; min-height: 44px; padding: 6px 12px;
  border-radius: 8px; white-space: nowrap; font-weight: 600;
}
.landing-nav-actions .landing-button { min-height: 44px; padding-inline: 15px; border-radius: 9px; }
.landing-nav-links a:is(:hover,:focus-visible,[aria-current]),
#landing-mobile-menu nav a[aria-current] { background: var(--tint); color: var(--primary); }
#landing-mobile-menu nav .landing-button { min-height: 48px; border-radius: 9px; }
#landing-mobile-menu nav .landing-button.secondary { margin-top: 10px; }
.landing-menu-toggle:hover, .landing-menu-heading button:hover { background: var(--tint); }
.landing-button:active, .landing-menu-toggle:active { filter: brightness(.94); }
@media (max-width: 850px) {
  .landing-nav-links, .landing-nav-actions { display: none; }
  .landing-nav { justify-content: space-between; flex-wrap: nowrap; }
  .landing-nav .landing-brand { flex-basis: auto; }
  .landing-menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
}

@media (min-width: 851px) {
  .landing main > :is(#courses, .landing-features) {
    min-height: calc(100svh - var(--landing-header-height, 78px));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.landing-features h2 { font-size: clamp(38px, 4.6vw, 68px); }
.landing-features .landing-grid { gap: clamp(14px, 1.5vw, 24px); grid-auto-rows: 1fr; }
.landing-features article { padding: clamp(20px, 2.4vw, 36px); gap: 16px; }
.landing-features .landing-feature-icon {
  width: clamp(50px, 4vw, 64px);
  height: clamp(50px, 4vw, 64px);
  font-size: clamp(25px, 2.4vw, 34px);
}
.landing-features h3 { font-size: clamp(18px, 1.6vw, 24px); }
.landing-features p { font-size: clamp(14px, 1.15vw, 17px); }
.landing .landing-features article:is(:hover, :focus-within) {
  background: var(--primary);
  border-color: var(--primary);
}
@media (max-width: 540px) {
  .landing-features .landing-grid { grid-auto-rows: auto; }
}

.landing-header.is-stuck {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 16px #0a287c30;
}
.landing-header.is-stuck .landing-brand img { filter: brightness(0) invert(1); }
.landing-header.is-stuck .landing-nav-links a:is(:hover,:focus-visible,[aria-current]) {
  background: #ffffff26;
  color: white;
}
.landing-header.is-stuck .landing-login { color: white; border-color: #ffffff80; }
.landing-header.is-stuck .landing-login:hover { background: #ffffff26; }
.landing-header.is-stuck .landing-nav-actions > .landing-button:not(.secondary) {
  background: white;
  color: var(--primary);
  border-color: white;
}
.landing-header.is-stuck :is(a, button):focus-visible { outline-color: white; }
.landing-footer { background: #eaf2fc; border-top: 1px solid #d4e1f2; }
.landing-footer .landing-wrap { align-items: center; column-gap: 24px; row-gap: 14px; }
.landing-footer nav { gap: 4px 20px; }
.landing-footer nav a:is(:hover,:focus-visible) { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.landing-footer small { width: 100%; }
@media (max-width: 760px) {
  .landing-footer .landing-wrap { justify-items: center; }
  .landing-footer .landing-brand { justify-content: center; }
}


.landing-steps h2, .landing-steps-intro { text-align: center; }
.landing-steps-intro { max-width: 54ch; margin: 0 auto clamp(20px, 3vw, 34px); }
.landing-steps ol { gap: clamp(14px, 2vw, 24px); }
.landing .landing-steps li {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 4px 14px #0a287c0a;
  padding: clamp(20px, 2.5vw, 36px);
}
.landing-steps li::before { border-radius: 50%; }
.landing-steps h3 { font-size: clamp(18px, 1.5vw, 23px); }
.landing .landing-steps li:is(:hover, :focus-within) {
  background: var(--primary);
  border-color: var(--primary);
}
@media (max-width: 850px) {
  .landing-steps ol { grid-template-columns: 1fr; }
}

.landing-section-heading h2 { margin-bottom: 0; }
.landing-section-heading p {
  max-width: 52ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 17px);
}
.landing-features > .landing-section-heading { margin-bottom: clamp(16px, 2vw, 24px); }
.landing-faq > .landing-section-heading { grid-row: span 2; }
@media (max-width: 760px) {
  .landing-section-heading p { margin-inline: auto; }
  .landing-faq > .landing-section-heading { grid-row: auto; }
}

.landing-footer .landing-wrap {
  grid-template-columns: 1.1fr .7fr 1.2fr .7fr;
  align-items: start;
  gap: 24px;
}
.landing-footer h2 {
  line-height: 1.4;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--primary);
}
.landing-footer nav, .landing-footer address {
  display: grid;
  gap: 3px;
  font-style: normal;
}
.landing-footer :is(nav,address) a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  width: fit-content;
  text-decoration: none;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.landing-footer address a:hover { text-decoration: underline; }
@media (max-width: 850px) {
  .landing-footer .landing-wrap { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .landing-footer .landing-wrap { grid-template-columns: minmax(0,1fr); justify-items: center; }
  .landing-footer :is(nav,address) { justify-items: center; }
}

.landing-footer { background: white; padding: clamp(28px, 4vw, 58px) 0 22px; }
.landing-footer .landing-wrap { grid-template-columns: minmax(0,1.6fr) repeat(2,minmax(0,.8fr)) minmax(0,1.15fr); text-align: left; }
.landing-footer-brand p { max-width: 30ch; margin-top: 12px; color: var(--muted); font-size: 14px; }
.landing-footer .landing-brand { justify-content: flex-start; }
.landing-footer :is(nav,address) a { min-height: 32px; font-size: 14px; }
.landing-footer-bottom {
  grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px 24px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.landing-footer-bottom small { width: auto; border: 0; padding: 0; }
.landing-footer-bottom nav { display: flex; gap: 4px 18px; }
@media (max-width: 850px) {
  .landing-footer .landing-wrap { grid-template-columns: repeat(2,minmax(0,1fr)); justify-items: start; }
}
@media (max-width: 540px) {
  .landing-footer-brand, .landing-footer-contact { grid-column: 1 / -1; }
  .landing-footer :is(nav,address) { justify-items: start; }
}

.landing-footer address a { gap: 9px; }
.landing-footer address svg {
  width: 17px; height: 17px; flex: 0 0 17px;
  fill: none; stroke: var(--primary); stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}

.landing-whatsapp {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 21;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #087b53;
  color: #fff;
  box-shadow: 0 5px 18px #163f3640;
}
.landing-whatsapp:hover { background: #056642; }
.landing-whatsapp svg {
  width: 28px; height: 28px; fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.landing-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
