/* Landing page: split hero + course demo animation */

.hero-split,
.course-demo {
  /* 6 steps: last check ~6s; congrats 62%–92% = ~3s hold, fade 92%–96%, clear by 10s reset */
  --hero-demo-cycle: 10s;
  --hero-demo-stagger: 0.8s;
}

/* Pill nav hovers over hero, not above a blank strip */
body.landing-page,
body:has(.hero-split) {
  padding-top: 0;
  min-height: 100vh;
  background: #fff;
}

.hero-split {
  --hero-curve: clamp(2.75rem, 6vw, 5rem);
  --hero-curve-depth: var(--hero-curve);
  --hero-viewport-peek: clamp(2.75rem, 5.5vh, 4.25rem);
  color: var(--f3-text);
  min-height: calc(100vh - var(--hero-viewport-peek));
  min-height: calc(100svh - var(--hero-viewport-peek));
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: max(calc(var(--f3-nav-offset) + 1.25rem), 5.5rem) var(--f3-page-gutter, clamp(1.25rem, 4vw, 2rem)) clamp(2rem, 4vh, 3.25rem);
  margin: 0 0 calc(var(--hero-curve) * -0.55);
  overflow: hidden;
  width: 100%;
  max-width: none;
  border-radius: 0;
  position: relative;
  z-index: 1;
  background: transparent;
  isolation: isolate;
}

.hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 92% 8%, rgba(26, 188, 156, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 6% 88%, rgba(46, 134, 193, 0.16) 0%, transparent 52%),
    linear-gradient(
      165deg,
      #ffffff 0%,
      #f8fcff 28%,
      #e6f1f8 58%,
      #dcecf5 100%
    );
  border-radius: 0 0 50% 50% / 0 0 var(--hero-curve) var(--hero-curve);
}

.hero-split::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(220, 236, 245, 0.5) 0%, transparent 72%);
  border-radius: 0 0 50% 50% / 0 0 var(--hero-curve) var(--hero-curve);
}

.hero-split-inner {
  width: 100%;
  max-width: var(--f3-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-split-inner {
    text-align: center;
  }

  .hero-copy .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
  }

  .hero-copy .hero-actions .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: min(100%, 9.5rem);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    overflow: visible;
  }

  .hero-go-course .btn-label-short {
    display: inline;
  }

  .hero-go-course .btn-label-long {
    display: none;
  }

  .hero-copy .local-privacy-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.65rem 0.75rem;
    align-items: start;
    text-align: left;
    margin-inline: 0;
    width: 100%;
    max-width: 36rem;
    justify-self: center;
  }

  .hero-copy .local-privacy-banner__body {
    display: contents;
  }

  .hero-copy .local-privacy-banner__text {
    grid-column: 1 / -1;
    text-align: left;
  }

  .hero-copy .local-privacy-banner__icon {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
  }

  .hero-copy .local-privacy-banner__link {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
  }

  .course-demo {
    text-align: left;
    width: 100%;
    max-width: min(100%, 560px);
    justify-self: center;
  }

  .course-demo-header,
  .demo-step,
  .demo-step-label {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero-split {
    --hero-viewport-peek: clamp(1.25rem, 3vh, 2.25rem);
    align-items: flex-start;
    padding-top: max(calc(var(--f3-nav-offset) + 1rem), 5rem);
    padding-bottom: clamp(2.5rem, 5vh, 3.75rem);
  }
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4.5vh, 3rem);
  }
}

.hero-go-course .btn-label-short {
  display: none;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--f3-navy);
}

.hero-copy .hero-sub {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--f3-navy);
  opacity: 1;
}

.gradient-text {
  background: linear-gradient(90deg, var(--f3-navy) 0%, var(--f3-blue) 45%, var(--f3-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-copy .tagline {
  margin: 0 0 1.25rem;
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--f3-muted);
  opacity: 1;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero-copy .tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
}

.hero-copy .btn-primary {
  background: var(--f3-navy);
  color: var(--f3-white);
}

.hero-copy .btn-primary:hover {
  background: var(--f3-blue-dark);
  color: var(--f3-white);
}

.hero-copy .btn-secondary {
  background: transparent;
  color: var(--f3-navy);
  border: 2px solid rgba(26, 82, 118, 0.35);
}

.hero-copy .btn-secondary:hover {
  background: rgba(26, 82, 118, 0.07);
  color: var(--f3-navy);
  border-color: rgba(26, 82, 118, 0.5);
}

.hero-flow {
  font-size: 0.85rem;
  color: var(--f3-muted);
  opacity: 1;
  margin-top: 1rem;
}

.hero-flow span {
  opacity: 0.55;
  margin: 0 0.35rem;
}

/* Privacy banner — readable on light course hero */
.hero-copy .local-privacy-banner {
  margin-top: 60px;
  max-width: 36rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(26, 82, 118, 0.14);
  box-shadow: 0 4px 18px rgba(26, 82, 118, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-copy .local-privacy-banner__copy {
  color: var(--f3-muted);
}

.hero-copy .local-privacy-banner__title {
  color: var(--f3-navy);
}

.hero-copy .local-privacy-banner__icon {
  color: var(--f3-teal);
}

.hero-copy .local-privacy-banner__link {
  background: var(--f3-navy);
  color: var(--f3-white);
}

.hero-copy .local-privacy-banner__link:hover,
.hero-copy .local-privacy-banner__link:focus-visible {
  background: var(--f3-blue-dark);
  color: var(--f3-white);
}

/* Course progress demo card */
.course-demo {
  background: var(--f3-white);
  border-radius: 32px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(26, 82, 118, 0.12);
  border: 1px solid rgba(26, 82, 118, 0.08);
  color: var(--f3-text);
  min-height: 380px;
  position: relative;
  z-index: 2;
}

.course-demo-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--f3-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--f3-light);
  opacity: 0.45;
  transform: translateX(0);
}

.demo-step:last-of-type {
  border-bottom: none;
}

.demo-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #c5d9e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  background: var(--f3-pale);
}

.demo-step-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--f3-navy);
}

.demo-step-bar {
  height: 4px;
  background: var(--f3-light);
  border-radius: 2px;
  width: 48px;
  overflow: hidden;
}

.demo-step-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--f3-teal);
  border-radius: 2px;
}

.course-demo > .demo-step:nth-child(2) { animation: stepActivate var(--hero-demo-cycle) ease-in-out infinite; }
.course-demo > .demo-step:nth-child(3) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 1) infinite; }
.course-demo > .demo-step:nth-child(4) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 2) infinite; }
.course-demo > .demo-step:nth-child(5) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 3) infinite; }
.course-demo > .demo-step:nth-child(6) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 4) infinite; }
.course-demo > .demo-step:nth-child(7) { animation: stepActivate var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 5) infinite; }

.course-demo > .demo-step:nth-child(2) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out infinite; }
.course-demo > .demo-step:nth-child(3) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 1) infinite; }
.course-demo > .demo-step:nth-child(4) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 2) infinite; }
.course-demo > .demo-step:nth-child(5) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 3) infinite; }
.course-demo > .demo-step:nth-child(6) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 4) infinite; }
.course-demo > .demo-step:nth-child(7) .demo-step-bar span { animation: barFill var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 5) infinite; }

.course-demo > .demo-step:nth-child(2) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out infinite; }
.course-demo > .demo-step:nth-child(3) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 1) infinite; }
.course-demo > .demo-step:nth-child(4) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 2) infinite; }
.course-demo > .demo-step:nth-child(5) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 3) infinite; }
.course-demo > .demo-step:nth-child(6) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 4) infinite; }
.course-demo > .demo-step:nth-child(7) .demo-step-icon { animation: iconCheck var(--hero-demo-cycle) ease-in-out calc(var(--hero-demo-stagger) * 5) infinite; }

@keyframes stepActivate {
  0%, 12% { opacity: 0.45; }
  16%, 28% { opacity: 1; transform: translateX(4px); }
  32%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes barFill {
  0%, 14% { width: 0%; }
  20%, 100% { width: 100%; }
}

@keyframes iconCheck {
  0%, 16% {
    border-color: #c5d9e8;
    background: var(--f3-pale);
    color: transparent;
  }
  20%, 100% {
    border-color: var(--f3-teal);
    background: #d4f5ef;
    color: var(--f3-navy);
  }
}

.demo-step .demo-step-icon::after { content: "\2713"; }

.demo-congrats {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.5rem 1.5rem 58px;
  opacity: 0;
  pointer-events: none;
  animation: congratsShow var(--hero-demo-cycle) ease-in-out infinite;
}

.demo-congrats-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--f3-teal), #16a085);
  color: white;
  font-size: 2.25rem;
  line-height: 72px;
  margin-bottom: 1rem;
  transform: scale(0);
  animation: checkPop var(--hero-demo-cycle) ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(26, 188, 156, 0.45);
}

.demo-congrats h3 {
  margin: 0 0 0.35rem;
  color: var(--f3-navy);
  font-size: 1.1rem;
}

.demo-congrats p {
  margin: 0;
  color: var(--f3-muted);
  font-size: 0.9rem;
}

@keyframes congratsShow {
  0%, 58% { opacity: 0; }
  62%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes checkPop {
  0%, 59% { transform: scale(0); }
  63% { transform: scale(1.15); }
  68%, 92% { transform: scale(1); }
  96%, 100% { transform: scale(0); }
}

/* Context images */
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

.split-media > .card-stack,
.split-media > .img-card {
  min-width: 0;
}

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

.context-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: var(--f3-radius);
  box-shadow: var(--f3-shadow);
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--f3-radius-lg);
  border: 1px solid rgba(26, 82, 118, 0.08);
  height: 100%;
  min-height: 280px;
  display: block;
  background: var(--f3-light);
  margin: 0;
}

.img-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(26, 82, 118, 0.85));
  color: white;
  font-size: 0.85rem;
}

.get-started-strip {
  position: relative;
  z-index: 2;
  padding: 100px var(--f3-page-gutter, clamp(1.25rem, 4vw, 2rem)) 100px;
  margin: clamp(1.5rem, 3.5vw, 2.75rem) auto 0;
  max-width: var(--f3-max);
}

.get-started-strip > .container {
  padding-inline: 0;
}

.steps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.steps-row--actionable {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.step-card {
  flex: none;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.85rem 0.9rem;
  border-radius: var(--f3-radius);
  background: var(--f3-white);
  border: 1px solid rgba(26, 82, 118, 0.1);
  box-shadow: var(--f3-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.step-card--link:hover,
.step-card--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(26, 188, 156, 0.45);
  box-shadow: 0 8px 24px rgba(26, 82, 118, 0.12);
}

.step-card--current {
  background: linear-gradient(165deg, rgba(26, 188, 156, 0.12) 0%, rgba(255, 255, 255, 1) 55%);
  border-color: rgba(26, 188, 156, 0.35);
}

.step-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.step-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--f3-navy);
}

.step-card__hint {
  font-size: 0.78rem;
  color: var(--f3-muted);
  line-height: 1.35;
}

.step-card__action {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--f3-teal);
}

.step-card__location {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--f3-teal);
  font-size: 1.15rem;
  line-height: 1;
}

.step-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--f3-teal);
  color: white;
  font-weight: 700;
  line-height: 36px;
  margin: 0 auto 0.35rem;
  flex-shrink: 0;
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--f3-navy);
  font-weight: 600;
}

.step-item .muted {
  font-size: 0.8rem;
  font-weight: 400;
}

/* Partners rolling carousel (matches EWS consortium list) */
.partners-band.section-alt,
#partners.section-alt {
  margin: 0;
  max-width: none;
  border-radius: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

#partners > .container {
  padding-inline: var(--f3-page-gutter, clamp(1.25rem, 4vw, 2rem));
  max-width: var(--f3-max);
  margin-inline: auto;
}

#partners .landing-section-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.partners-carousel--bleed {
  width: 100%;
  margin: 0;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.partners-carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
}

.partners-carousel__viewport::before,
.partners-carousel__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3rem, 10vw, 8rem);
  z-index: 2;
  pointer-events: none;
}

.partners-carousel__viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--f3-pale) 0%, rgba(245, 250, 253, 0.85) 40%, transparent 100%);
}

.partners-carousel__viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--f3-pale) 0%, rgba(245, 250, 253, 0.85) 40%, transparent 100%);
}

.partners-carousel__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding-top: 30px;
  padding-bottom: 30px;
  animation: partners-scroll 40s linear infinite;
}

.partners-carousel:hover .partners-carousel__track {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-width: 14rem;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  color: var(--f3-navy);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  opacity: 0.88;
  color: var(--f3-teal);
}

.partner-card__logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  box-shadow: 0 2px 12px rgba(26, 82, 118, 0.08);
}

.partner-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.15rem;
}

.partner-card__org {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.partner-card__country {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--f3-muted);
}

@media (max-width: 1024px) {
  .partners-carousel--bleed {
    overflow-x: clip;
    max-width: 100%;
  }

  .partners-carousel__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
  }

  .partners-carousel__viewport {
    overflow-x: clip;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .partners-carousel__viewport::before,
  .partners-carousel__viewport::after {
    display: none;
  }

  .partner-card--dup {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-step,
  .demo-step-bar span,
  .demo-step-icon,
  .demo-congrats,
  .demo-congrats-check {
    animation: none !important;
  }
  .demo-step { opacity: 1; }
  .demo-step-bar span { width: 100%; }
  .demo-congrats { display: none; }

  .partners-carousel__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
  }

  .partners-carousel__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }

  .partners-carousel__viewport::before,
  .partners-carousel__viewport::after {
    display: none;
  }

  .partner-card--dup {
    display: none;
  }
}

/* Landing page rhythm, section headers, module grid */
.landing-page .section {
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
  padding-inline: var(--f3-page-gutter, clamp(1.25rem, 4vw, 2rem));
}

.landing-page .section > .container {
  max-width: var(--f3-max);
  margin-inline: auto;
  padding-inline: 0;
}

.landing-page .section-alt {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-inline: auto;
  padding-inline: 0;
  max-width: var(--f3-max);
  width: calc(100% - 2 * var(--f3-page-gutter, clamp(1.25rem, 4vw, 2rem)));
}

.landing-page .section-alt > .container {
  padding-inline: var(--f3-page-gutter, clamp(1.25rem, 4vw, 2rem));
}

.landing-section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}

.landing-section-head--wide {
  max-width: 44rem;
}

.landing-section-head--compact {
  margin-bottom: 2rem;
}

.landing-section-head--compact .section-kicker {
  margin-bottom: 0;
  line-height: 1;
}

.landing-section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--f3-navy);
}

.landing-section-head .section-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--f3-teal);
  margin-bottom: 0.75rem;
}

.landing-section-head .section-lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--f3-muted);
}

.landing-page .card-stack {
  gap: 1.25rem;
}

.landing-page .card-stack .card {
  padding: 1.5rem 1.6rem;
}

.landing-page .stand-for {
  max-width: none;
}

.landing-page #stand-for.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

#stand-for .container {
  overflow: visible;
}

/* Principles hub: photo with glass cards on the image corners */
.principles-hub {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  overflow: visible;
}

.principles-hub__stage {
  position: relative;
}

.principles-hub__stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.25rem;
  height: 5rem;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 100% at 50% 0%,
    rgba(26, 188, 156, 0.16) 0%,
    rgba(232, 248, 245, 0.08) 48%,
    transparent 76%
  );
}

.principles-hub__figure {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border-radius: var(--f3-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 82, 118, 0.1);
  box-shadow:
    0 4px 14px rgba(26, 82, 118, 0.05),
    0 20px 48px rgba(26, 188, 156, 0.1);
  background: var(--f3-light);
  aspect-ratio: 16 / 11;
  max-height: 34rem;
}

.principles-hub__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.landing-page .stand-for.stand-for-cards {
  position: absolute;
  inset: 0;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.landing-page .principle-card {
  position: absolute;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: 17.5rem;
  min-height: 6.25rem;
  padding: 1.3rem 1.45rem;
  border-radius: var(--f3-radius);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.42) 48%,
    rgba(26, 188, 156, 0.14) 100%
  );
  box-shadow:
    0 10px 28px rgba(26, 82, 118, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  pointer-events: auto;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-sizing: border-box;
}

.landing-page .principle-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
}

.landing-page .principle-card__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--f3-navy);
}

.landing-page .principle-card__detail {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(26, 82, 118, 0.82);
}

.landing-page .stand-for.stand-for-cards .principle-card:nth-child(1) {
  top: 0;
  left: 0;
  transform: translate(-46%, -46%);
}

.landing-page .stand-for.stand-for-cards .principle-card:nth-child(2) {
  top: 0;
  right: 0;
  transform: translate(46%, -46%);
}

.landing-page .stand-for.stand-for-cards .principle-card:nth-child(3) {
  bottom: 0;
  left: 0;
  transform: translate(-46%, 46%);
}

.landing-page .stand-for.stand-for-cards .principle-card:nth-child(4) {
  bottom: 0;
  right: 0;
  transform: translate(46%, 46%);
}

.landing-page .stand-for.stand-for-cards li::before {
  content: none;
  display: none;
}

.landing-page .stand-for li:not(.principle-card) {
  padding: 0.85rem 0 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Problem & solution — unified feature panel (screenshot-style card) */
.landing-page #problem .split-media,
.landing-page #solution .split-media {
  --panel-r: 30px;
  --panel-edge-inset: 0;
  --panel-content-inset: clamp(1.25rem, 2.5vw, 2rem);
  --frame-r-outer: var(--panel-r);
  --frame-r-inner: calc(var(--panel-r) - var(--panel-content-inset));

  background: #fff;
  border-radius: var(--panel-r);
  box-shadow:
    0 2px 4px rgba(26, 82, 118, 0.04),
    0 16px 48px rgba(26, 82, 118, 0.09);
  padding-block: 12px;
  padding-inline: 12px;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  row-gap: 14px;
  align-items: stretch;
}

.landing-page #problem .split-media {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  column-gap: clamp(0.85rem, 1.6vw, 1.35rem);
  padding-left: 24px;
  padding-right: 12px;
}

.landing-page #solution .split-media {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  column-gap: clamp(0.85rem, 1.6vw, 1.35rem);
  padding-right: 24px;
  padding-left: 12px;
}

.landing-page #problem .card-stack,
.landing-page #solution .offer-stack {
  gap: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-page #problem .card-stack .card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(26, 82, 118, 0.08);
}

.landing-page #problem .card-stack .card:first-child {
  padding-top: 0;
}

.landing-page #problem .card-stack .card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landing-page #problem .card-stack .card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--f3-navy);
  font-weight: 700;
}

.landing-page #problem .card-stack .card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--f3-muted);
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.landing-page #problem .img-card,
.landing-page #solution .img-card {
  position: relative;
  overflow: hidden;
  border: none;
  background: #e8f0fe;
  padding: 0;
  align-self: stretch;
  display: block;
  box-sizing: border-box;
  border-radius: var(--frame-r-outer);
  min-height: clamp(21rem, 100%, 32rem);
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  isolation: isolate;
}

.landing-page #problem .img-card img,
.landing-page #solution .img-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--frame-r-outer);
}

.landing-page #problem .img-card figcaption,
.landing-page #solution .img-card figcaption {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 2.25rem 0.9rem 0.7rem 0.9rem;
  background: linear-gradient(
    to top,
    rgba(26, 82, 118, 0.92) 0%,
    rgba(26, 82, 118, 0.62) 42%,
    rgba(26, 82, 118, 0.15) 78%,
    transparent 100%
  );
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 500;
  text-align: left;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: 0 0 var(--frame-r-outer) var(--frame-r-outer);
}

.landing-page #problem.section-alt,
.landing-page #solution.section-alt {
  padding-block: clamp(3.5rem, 7vw, 100px);
}

.landing-page #solution.section-alt {
  border-radius: 30px;
}

.landing-page #solution .offer-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem 1.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(26, 82, 118, 0.08);
}

.landing-page #solution .offer-stack .offer-card:first-child {
  padding-top: 0;
}

.landing-page #solution .offer-stack .offer-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landing-page #solution .offer-card__body {
  flex: 1 1 62%;
  min-width: 0;
}

.landing-page #solution .offer-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}

.landing-page #solution .offer-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.landing-page #solution .offer-card__action {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  line-height: 1.25;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5625rem 1rem;
  min-height: 2.625rem;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.landing-page #solution .offer-card__action .icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  margin: 0;
  font-size: inherit;
  display: block;
}

.landing-page #solution .offer-card__action.btn-outline {
  border-color: var(--f3-blue);
}

@media (max-width: 768px) {
  .landing-page #problem .split-media,
  .landing-page #solution .split-media {
    --panel-r: 1.25rem;
    --panel-edge-inset: 0;
    --panel-content-inset: 0.75rem;
    --frame-r-outer: var(--panel-r);

    border-radius: var(--panel-r);
  }

  .landing-page #problem .img-card,
  .landing-page #solution .img-card {
    min-height: clamp(14rem, 52vw, 18rem);
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .landing-page #problem .img-card figcaption,
  .landing-page #solution .img-card figcaption {
    padding: 1.75rem 0.75rem 0.6rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0 0 var(--frame-r-outer) var(--frame-r-outer);
  }
}

@media (max-width: 720px) {
  .landing-page #solution .offer-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 1rem 0;
  }

  .landing-page #solution .offer-card__action {
    flex: none;
    max-width: none;
    width: 100%;
    align-self: stretch;
  }
}

/* Landing course grid: topic focus, less chrome */
.landing-page #course .badge-soon,
.landing-page #course .badge-available,
.landing-page #course .module-hub-meta,
.landing-page #course .time-badge {
  display: none !important;
}

.landing-page #course .module-hub-card__top {
  margin-bottom: 0.35rem;
}

.landing-page #course .module-hub-card__top .module-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--f3-teal);
}

.landing-page #course .module-hub-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.landing-page #course .module-hub-desc {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.landing-page #course .coming-soon .btn {
  display: none;
}

/* Module path cards: glow + sizing live in f3.css (.module-path-grid) */

@media (max-width: 720px) {
  .steps-row--actionable {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .landing-page .section {
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
    padding-inline: var(--f3-page-gutter, clamp(0.75rem, 2.5vw, 1rem));
  }

  .landing-page .section.section-alt#problem,
  .landing-page .section.section-alt#solution {
    padding-inline: 0;
    padding-block: clamp(2.25rem, 4.5vw, 3rem);
  }

  .landing-page .section-alt {
    width: calc(100% - 2 * var(--f3-page-gutter, clamp(0.75rem, 2.5vw, 1rem)));
  }

  .landing-page .section-alt > .container {
    padding-inline: var(--f3-page-gutter, clamp(0.75rem, 2.5vw, 1rem));
  }

  .landing-page .card-stack .card {
    padding: 1rem 0.85rem;
  }

  .landing-page #problem.section-alt,
  .landing-page #solution.section-alt {
    padding-block: clamp(2.25rem, 4.5vw, 3rem);
  }

  .landing-page #problem .split-media,
  .landing-page #solution .split-media {
    --panel-content-inset: 0.85rem;
    padding-block: clamp(0.85rem, 2vw, 1.15rem);
    padding-inline: clamp(1rem, 2.5vw, 1.25rem);
    gap: clamp(0.85rem, 2vw, 1.15rem);
  }

  .landing-page #problem .split-media {
    padding-left: clamp(1rem, 2.5vw, 1.25rem);
    padding-right: clamp(1rem, 2.5vw, 1.25rem);
  }

  .landing-page #solution .split-media {
    padding-left: clamp(1rem, 2.5vw, 1.25rem);
    padding-right: clamp(1rem, 2.5vw, 1.25rem);
  }

  .landing-page #problem .card-stack .card {
    padding: 0.85rem 0;
  }

  #partners > .container {
    padding-inline: var(--f3-page-gutter, clamp(0.65rem, 2.5vw, 0.85rem));
  }

  .partners-carousel__track {
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .partner-card {
    min-width: 9.5rem;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
  }

  .partner-card__logo {
    width: 52px;
    height: 52px;
    padding: 4px;
  }

  .partner-card__org {
    font-size: 0.9rem;
  }

  .partner-card__country {
    font-size: 0.65rem;
  }
}

.landing-course-actions {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.landing-schools {
  max-width: 36rem;
}

.landing-page #partners.section-alt {
  padding-top: clamp(3.25rem, 6vw, 5rem);
  padding-bottom: 0;
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.landing-schools-actions {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* --- Mobile / tablet (≤1024px) — airier hero --- */
@media (max-width: 1024px) {
  .hero-split {
    --hero-viewport-peek: clamp(1.25rem, 3vh, 2.25rem);
    min-height: calc(100svh - var(--hero-viewport-peek));
    min-height: calc(100vh - var(--hero-viewport-peek));
    padding-top: max(calc(var(--f3-nav-offset) + 1.25rem), 5.25rem);
    padding-bottom: clamp(2.75rem, 5.5vh, 4rem);
  }

  .hero-split-inner {
    gap: clamp(2rem, 4.5vh, 3.25rem);
  }

  .course-demo {
    min-height: 400px;
    margin-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  .hero-split {
    padding-bottom: clamp(3rem, 7vh, 4.25rem);
  }

  .course-demo {
    min-height: 380px;
  }
}

/* --- Tablet/phone stacked sections (after desktop rules above) --- */
@media (max-width: 1024px) {
  .principles-hub {
    padding: 0;
    max-width: none;
  }

  .principles-hub__stage {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .principles-hub__figure {
    order: 0;
    aspect-ratio: 16 / 10;
    max-height: none;
    min-height: 14rem;
    width: 100%;
  }

  .principles-hub__figure img {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
  }

  .principles-hub__stage::after {
    display: none;
  }

  .landing-page .stand-for.stand-for-cards {
    position: static;
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0;
    pointer-events: auto;
    width: 100%;
  }

  .landing-page .principle-card,
  .landing-page .stand-for.stand-for-cards .principle-card:nth-child(1),
  .landing-page .stand-for.stand-for-cards .principle-card:nth-child(2),
  .landing-page .stand-for.stand-for-cards .principle-card:nth-child(3),
  .landing-page .stand-for.stand-for-cards .principle-card:nth-child(4) {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: 0;
    transform: none;
    padding: 1rem 1rem;
  }

  .landing-page #problem .split-media,
  .landing-page #solution .split-media {
    display: grid;
    grid-template-columns: 1fr;
    padding-block: clamp(0.85rem, 2vw, 1.15rem);
    padding-inline: clamp(1rem, 2.5vw, 1.35rem);
    gap: clamp(0.85rem, 2vw, 1.25rem);
  }

  .landing-page #problem.section-alt,
  .landing-page #solution.section-alt {
    padding-block: clamp(2.5rem, 5vw, 3.75rem);
  }

  .landing-page .landing-section-head--compact {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  }

  .landing-page #problem .img-card,
  .landing-page #solution .img-card {
    order: -1;
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-height: clamp(14rem, 52vw, 18rem);
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 0;
    align-self: stretch;
  }

  .landing-page #problem .img-card img,
  .landing-page #solution .img-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: var(--frame-r-outer);
  }

  .landing-page #problem .img-card figcaption,
  .landing-page #solution .img-card figcaption {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 var(--frame-r-outer) var(--frame-r-outer);
  }

  .landing-page #problem .card-stack,
  .landing-page #solution .offer-stack {
    order: 1;
    width: 100%;
    grid-column: 1;
  }

  .landing-page #solution .offer-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 1rem 0;
  }

  .landing-page #solution .offer-card__action {
    flex: none;
    max-width: none;
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 640px) {
  .landing-page .section.section-alt#problem,
  .landing-page .section.section-alt#solution {
    padding-block: clamp(1.75rem, 4vw, 2.25rem);
  }

  .landing-page #problem.section-alt,
  .landing-page #solution.section-alt {
    padding-block: clamp(1.75rem, 4vw, 2.25rem);
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .landing-page .section-alt > .container {
    padding-inline: var(--f3-page-gutter, clamp(0.75rem, 3vw, 1rem));
  }

  .landing-page #problem .split-media,
  .landing-page #solution .split-media {
    padding-block: 0.85rem;
    padding-inline: 0.85rem;
    gap: 0.75rem;
  }

  .landing-page #problem .card-stack .card,
  .landing-page #solution .offer-card {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 640px) {
  .landing-page .section.section-alt#problem,
  .landing-page .section.section-alt#solution {
    padding-block: clamp(1.75rem, 4vw, 2.25rem);
  }

  .landing-page #problem.section-alt,
  .landing-page #solution.section-alt {
    padding-block: clamp(1.75rem, 4vw, 2.25rem);
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .landing-page .section-alt > .container {
    padding-inline: var(--f3-page-gutter, clamp(0.75rem, 3vw, 1rem));
  }

  .landing-page #problem .split-media,
  .landing-page #solution .split-media {
    padding-block: 0.85rem;
    padding-inline: 0.85rem;
    gap: 0.75rem;
  }

  .landing-page #problem .card-stack .card,
  .landing-page #solution .offer-card {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}
