/* Landing hero, scoped to the existing responsive landing shell. */
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero {
  --green: #14583b;
  --hero-deep: #083d29;
  --hero-sage: #e9f1e5;
  --hero-paper: #f4f7f1;
  --hero-accent: #8bc34a;
  --hero-sky: #e3eff8;
  --hero-card-overlap: clamp(52px, 16vw, 86px);
  --hero-scene-lift: clamp(76px, 24vw, 130px);
  --hero-compact-space: 28px;
  --hero-background-fade: clamp(72px, 13vw, 112px);
  --frame: clamp(8px, 3.5vw, 24px);
  --corner: clamp(20px, 6vw, 32px);
  position: relative;
  isolation: isolate;
  width: auto;
  max-width: none;
  margin: 0 calc((100% - 100vw) / 2) 8px;
  min-height: 0;
  padding: var(--frame);
  border: 0;
  border-radius: 0 0 var(--corner) var(--corner);
  background: linear-gradient(var(--hero-paper), #d9e6d6 58%, transparent 100%) !important;
  overflow: visible;
}
@supports (height: 100svh) {
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero {
    --hero-compact-space: clamp(24px, 104px - 10svh, 36px);
  }
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero::before,
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero::after { content: none; }

html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: clamp(21px, 7vw, 42px) clamp(16px, 6vw, 40px)
    calc(clamp(412px, 104vw, 600px) - var(--hero-card-overlap) - var(--hero-scene-lift) - var(--hero-compact-space));
  border-radius: var(--corner);
  background: linear-gradient(var(--hero-sky) 36%, #e2eee2 58%,
                              #d6e3cb calc(100% - var(--hero-background-fade)), transparent);
}
.hero-desktop-scenery { display: none; }

html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 calc(clamp(112px, 32vw, 168px) - var(--hero-card-overlap));
  height: clamp(316px, 96vw, 600px);
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 19% at 17% 43%, rgb(232 242 235 / 86%) 24%, transparent 100%),
    url('/assets/laume-seated-meadow-mobile.webp') right bottom / cover no-repeat;
  mask-image: linear-gradient(transparent, #000 16%, #000 78%, transparent 91%);
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .landing-character { display: none; }

html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy {
  position: static;
  container-type: normal;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy h1.hero-title.hero-title-clarity {
  position: relative;
  width: auto;
  max-width: 100% !important;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: clamp(27px, 9.2vw, 57px) !important;
  font-weight: 800 !important;
  line-height: 1.07 !important;
  letter-spacing: -.045em !important;
  text-align: left;
  text-shadow: none;
  overflow-wrap: anywhere;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero h1.hero-title .mobile-title {
  display: block !important;
  white-space: normal !important;
  color: inherit;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero h1.hero-title .mobile-title::before,
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero h1.hero-title .prototype-title { display: none !important; }
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero h1.hero-title .hero-question-part {
  display: block;
  white-space: normal !important;
}
@media (max-width: 700px) {
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-question-part .hero-title-break { display: block; }
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy > .landing-handwritten {
  display: block;
  position: static;
  width: fit-content;
  max-width: 100%;
  margin: 12px 0 0;
  transform: none;
  font-size: clamp(17px, 5.5vw, 32px);
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  color: var(--text);
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy > .actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(65%, 320px);
  max-width: none;
  gap: 8px !important;
  margin: 20px 0 0 !important;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > :is(#heroStart, #heroGroupQuiz) {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0;
  min-height: clamp(46px, 12vw, 58px) !important;
  padding: 8px !important;
  border: 1px solid var(--green) !important;
  border-radius: 999px !important;
  gap: 8px !important;
  transition: background-color .16s ease, filter .16s ease;
  text-shadow: none !important;
  animation: none !important;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroStart {
  grid-row: 1 !important;
  position: relative;
  color: white !important;
  background: linear-gradient(160deg, var(--green), var(--hero-deep)) !important;
  box-shadow: 0 5px 12px rgb(8 61 41 / 24%) !important;
  font-size: clamp(18px, 5vw, 24px) !important;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroStart::before { content: none; }
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroStart::after {
  content: "";
  display: inline-block;
  position: static;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 1.15em;
  margin: 0;
  transform: none;
  animation: none;
  background: currentColor;
  -webkit-mask: url('/assets/hero-actions/start-leaf.svg') center / contain no-repeat;
  mask: url('/assets/hero-actions/start-leaf.svg') center / contain no-repeat;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero #heroStart.desktop-action-busy::before {
  content: "";
  display: block;
  position: absolute;
  inset: 50% 8px auto auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(transparent 18%, rgb(255 255 255 / 82%));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0);
  transform: translateY(-50%) rotate(0deg);
  animation: desktop-action-ring 1.1s linear infinite;
  pointer-events: none;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroGroupQuiz {
  grid-row: 2 !important;
  flex-direction: row-reverse;
  background: rgb(233 241 229 / 95%) !important;
  color: var(--hero-deep) !important;
  box-shadow: none !important;
  font-size: 0 !important;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero #heroGroupQuiz .mobile-group-label {
  color: var(--hero-deep);
  font-size: clamp(15px, 4.2vw, 21px) !important;
  line-height: 1.15;
  white-space: normal;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroExplainerBtn {
  grid-column: 1 !important;
  grid-row: 3 !important;
  justify-self: center !important;
  width: fit-content !important;
  max-width: 100%;
  min-height: 44px !important;
  padding: 4px 8px !important;
  gap: 6px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--hero-deep) !important;
  font-size: clamp(13px, 3.6vw, 17px) !important;
  line-height: 1.2;
  white-space: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: none;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroExplainerBtn::after {
  content: "" !important;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor !important;
  -webkit-mask: url('/assets/hero-actions/learn-bulb.svg') center / contain no-repeat;
  mask: url('/assets/hero-actions/learn-bulb.svg') center / contain no-repeat;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > .hero-tertiary-links {
  position: absolute;
  z-index: 3;
  inset: auto 12px 12px;
  width: auto;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(8px, 2vw, 16px);
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links > :is(#heroKnowledgeJourney, #heroQuickRules, #heroBrowseTopics) {
  display: grid !important;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
  align-content: start;
  width: 100% !important;
  min-width: 0;
  min-height: clamp(88px, 28vw, 128px) !important;
  height: auto !important;
  gap: 8px !important;
  padding: clamp(10px, 3vw, 18px) 4px 8px !important;
  border-radius: clamp(16px, 4vw, 24px) !important;
  border: 1px solid rgb(255 255 255 / 85%) !important;
  background: rgb(244 247 241 / 91%) !important;
  box-shadow: 0 4px 12px rgb(16 36 33 / 12%) !important;
  backdrop-filter: blur(6px);
  font-size: clamp(13px, 3.6vw, 21px) !important;
  font-weight: 550 !important;
  line-height: 1.15;
  color: var(--text) !important;
  animation: none !important;
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links > :is(#heroKnowledgeJourney, #heroQuickRules, #heroBrowseTopics)::after {
  width: clamp(24px, 7vw, 34px);
  height: clamp(24px, 7vw, 34px);
  grid-row: 1;
  color: var(--green);
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links :is(.hero-journey-label, .hero-two-word-label) {
  inline-size: auto;
  max-inline-size: 100%;
  min-block-size: 2.3em;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
}
html[lang="lt"] body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links :is(.hero-journey-label, .hero-two-word-label) {
  inline-size: min-content;
  overflow-wrap: normal;
}
body.prototype-landing .hero {
  --reference-map: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%209c0%203-4%207-4%207s-4-4-4-7a4%204%200%200%201%208%200Zm12-4c0%203-4%207-4%207s-4-4-4-7a4%204%200%200%201%208%200ZM6%209h.01M18%205h.01M9%2020h8a2%202%200%201%200%200-4h-3a2%202%200%201%201%200-4h1%22%2F%3E%3C%2Fsvg%3E');
  --reference-checklist: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%2216%22%20height%3D%2220%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m7%208%201%201%202-2m-3%207%201%201%202-2m3-5h4m-4%206h4%22%2F%3E%3C%2Fsvg%3E');
  --reference-folder: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11%2019H4a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h5l3%203h8a2%202%200%200%201%202%202v3M2%209h20m-9%204%202%209%202-4%204-2-8-3Zm4%205%204%204%22%2F%3E%3C%2Fsvg%3E');
}
body.prototype-landing .hero #heroKnowledgeJourney { --hero-action-icon: var(--reference-map); }
body.prototype-landing .hero #heroQuickRules { --hero-action-icon: var(--reference-checklist); }
body.prototype-landing .hero #heroBrowseTopics { --hero-action-icon: var(--reference-folder); }

@media (hover: hover) {
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroStart:hover { filter: brightness(1.1); }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroGroupQuiz:hover { background: var(--hero-sage) !important; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroExplainerBtn:hover { text-decoration-thickness: 2px; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links > :is(#heroKnowledgeJourney, #heroQuickRules, #heroBrowseTopics):hover {
    background: var(--hero-paper) !important;
    color: var(--hero-deep) !important;
  }
}
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroStart:active { filter: brightness(.91); }
html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions :is(button, a):focus-visible,
html body.prototype-landing.mobile-landing-preserved > header :is(button, a, summary):focus-visible {
  outline: 2px solid #14583b !important;
  outline-offset: 3px;
}

html body.prototype-landing.mobile-landing-preserved > header {
  --hero-nav-height: 68px;
  height: var(--hero-nav-height) !important;
  background: rgb(255 255 255 / 97%) !important;
  box-shadow: 0 4px 16px rgb(8 61 41 / 12%) !important;
}
html body.prototype-landing.mobile-landing-preserved > header .wrap.nav { height: 100% !important; min-height: 0 !important; padding-block: 0 !important; align-items: center; }
html body.prototype-landing.mobile-landing-preserved > header :is(.brand-wrap, .nav-right, .lang-switch) { align-items: center; }
html body.prototype-landing.mobile-landing-preserved > header :is(#brandInfoBtn, #menuTrigger, #langSwitch .lang-btn, #langSwitch .lang-future summary) {
  min-height: 44px !important;
  min-width: 44px;
}
html body.prototype-landing.mobile-landing-preserved > header #langSwitch .lang-btn {
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  --language-surface: #e9f1e5;
  position: relative;
  isolation: isolate;
  border-radius: 9px;
  border: 0;
  font-size: 12px;
  background: var(--language-surface) !important;
  color: #083d29 !important;
}
html body.prototype-landing.mobile-landing-preserved > header #langSwitch .lang-btn[aria-pressed="true"] {
  --language-surface: #14583b;
  color: #fff !important;
}
html body.prototype-landing.mobile-landing-preserved > header #langSwitch {
  padding: 0 !important;
  gap: 4px;
  min-height: 0;
  border: 0;
  background: none;
}
html body.prototype-landing.mobile-landing-preserved > header #langSwitch > span[aria-hidden="true"],
html body.prototype-landing.mobile-landing-preserved > header #langSwitch .lang-future-other-label { display: none !important; }
html body.prototype-landing.mobile-landing-preserved > header #langSwitch .lang-future summary {
  justify-content: center;
  padding: 0;
  font-size: 16px;
}
html body.prototype-landing.mobile-landing-preserved > header #menuTrigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 0;
}
html body.prototype-landing.mobile-landing-preserved > header #menuTrigger > .prototype-menu-icon { margin: 0; }
html body.prototype-landing.mobile-landing-preserved > header #brandInfoBtn {
  border: 0 !important;
  box-shadow: none !important;
  font-size: 19px !important;
}

@media (width < 1001px) {
  html body.prototype-landing.mobile-landing-preserved > header { --hero-nav-height: 55px; }
}
@media (max-width: 700px) {
  html body.prototype-landing.mobile-landing-preserved > header {
    width: calc(100% - 12px);
    inset-inline: 6px;
    margin-inline: 0;
    border-radius: 20px !important;
    animation: none !important;
    transition: none !important;
  }
  html body.prototype-landing.mobile-landing-preserved > header .wrap.nav { padding-inline: 8px !important; gap: 4px; }
  html body.prototype-landing.mobile-landing-preserved > header :is(.brand-wrap, .nav-right, .lang-switch) { gap: 4px; }
}
@media (max-width: 425px) {
  html body.prototype-landing.mobile-landing-preserved > header :is(#brandInfoBtn, #menuTrigger, #langSwitch .lang-btn, #langSwitch .lang-future summary) { min-width: 38px; }
  html body.prototype-landing.mobile-landing-preserved > header .mobile-brand { width: clamp(84px, 27vw, 110px); height: auto; aspect-ratio: 100 / 22.6; }
  html body.prototype-landing.mobile-landing-preserved > header .mobile-brand img { width: 120%; left: -19.5%; }
}
@media (max-width: 360px) {
  html body.prototype-landing.mobile-landing-preserved > header .wrap.nav { padding-inline: 6px !important; }
  html body.prototype-landing.mobile-landing-preserved > header :is(#brandInfoBtn, #menuTrigger, #langSwitch .lang-btn, #langSwitch .lang-future summary) { min-width: 34px; }
  html body.prototype-landing.mobile-landing-preserved > header :is(.brand-wrap, .nav-right, #langSwitch) { gap: 2px; }
  html body.prototype-landing.mobile-landing-preserved > header .mobile-brand { width: 76px; }
}
/* The mobile reference uses a tighter crop of the existing artwork. */
@media (max-width: 700px) {
  html body.prototype-landing.mobile-landing-preserved > header { --hero-nav-height: 50px; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero {
    padding-block-start: 0;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid {
    padding-block-start: calc(clamp(22px, 13vw - 14px, 41px) + var(--frame) + 4px);
    padding-block-end: calc(clamp(369px, 112vw - 75px, 557px) - var(--hero-card-overlap) - var(--hero-scene-lift) - var(--hero-compact-space) + 22px);
    background: linear-gradient(#dceefb, #e7f1f8 42%, #d6e3cb calc(100% - var(--hero-background-fade)), transparent);
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid::before {
    /* Lift the artwork so the face sits alongside the start button. */
    inset-block-end: calc(clamp(46px, 30vw - 62px, 98px) - var(--hero-card-overlap)
      - clamp(-37px, 120vw - 468px, 0px) - clamp(0px, 54vw - 210.6px, 22px)
      - (var(--hero-compact-space) - 24px) + 24px);
    height: clamp(380px, 119vw, 700px);
    background: url('/assets/laume-seated-meadow-mobile.webp') 67% bottom / cover no-repeat;
    mask-image: linear-gradient(transparent, #000 18%, #000 75%, transparent 94%);
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy h1.hero-title.hero-title-clarity {
    font-size: clamp(33px, 10.35vw, 46px) !important;
    letter-spacing: -.035em !important;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy > .landing-handwritten {
    font-size: clamp(18px, 6.2vw, 28px);
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy > .actions {
    width: min(66%, 320px);
    gap: 12px !important;
    margin-block-start: 10px !important;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroStart {
    min-height: clamp(50px, 13.45vw, 55px) !important;
    font-size: clamp(20px, 5.64vw, 23px) !important;
    background: linear-gradient(180deg, #176b3d, #09532f 55%, #063d25) !important;
    border: 1px solid rgb(255 255 255 / 11%) !important;
    box-shadow: 0 8px 18px rgb(5 52 30 / 21%), inset 0 1px 0 rgb(255 255 255 / 16%) !important;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroGroupQuiz {
    min-height: clamp(44px, 12vw, 48px) !important;
    background: rgb(235 246 230 / 84%) !important;
    border: 1.5px solid #245b3d !important;
    backdrop-filter: blur(4px);
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero #heroGroupQuiz .mobile-group-label {
    font-size: clamp(16px, 4.9vw, 20px) !important;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroExplainerBtn {
    position: relative;
    isolation: isolate;
    margin-block-start: -6px;
    color: #fff !important;
    font-size: clamp(16px, 4.4vw, 19px) !important;
    text-shadow: 0 1px 2px #08291d, 0 0 5px rgb(8 41 29 / 82%);
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > :is(#heroGroupQuiz, #heroExplainerBtn)::after {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroExplainerBtn::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -5px -16px;
    background: radial-gradient(ellipse, rgb(7 36 24 / 59%) 28%, transparent 74%);
    pointer-events: none;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links > :is(#heroKnowledgeJourney, #heroQuickRules, #heroBrowseTopics) {
    min-height: clamp(100px, 29vw, 120px) !important;
    padding-top: clamp(12px, 4.1vw, 19px) !important;
    font-size: clamp(13px, 4vw, 18px) !important;
    font-weight: 500 !important;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links > :is(#heroKnowledgeJourney, #heroQuickRules, #heroBrowseTopics)::after {
    width: clamp(26px, 8vw, 36px);
    height: clamp(26px, 8vw, 36px);
  }
}
@media (width > 700px) {
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero {
    --frame: clamp(16px, 2.25vw, 32px);
    margin: 0 0 32px;
    border-radius: var(--corner);
  }
  /* Keep the page's tree silhouettes behind the hero until the artwork has faded. */
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 -32px;
    width: auto;
    opacity: 1;
    mask: none;
    height: calc(var(--hero-background-fade) + var(--frame) + 96px);
    background: linear-gradient(transparent, #e8efe4 32px,
      #e8efe4 calc(100% - var(--frame) - 34px), transparent);
    pointer-events: none;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid {
    min-height: clamp(416px, 39vw, 548px);
    padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 56px) 148px;
    background: none;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid::before { content: none; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid > .hero-desktop-scenery {
    display: block;
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(90deg, #edf4eb 0%, #edf4ebdf 27%, #edf4eb00 68%),
                url('/assets/laume-panorama-balanced-desktop.webp') right center / cover no-repeat;
    mask-image: linear-gradient(#000 calc(100% - var(--hero-background-fade)), transparent);
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved > main > .hero > .grid > .hero-desktop-scenery::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: clamp(124px, 13vw, 188px);
    pointer-events: none;
    background: url('/assets/hero-meadow.webp') center top / cover no-repeat;
    mask-image: linear-gradient(transparent, #000 25%),
                linear-gradient(to right, #000 48%, transparent 66%);
    mask-composite: intersect;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy { width: 54%; max-width: 580px; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy h1.hero-title.hero-title-clarity {
    font-size: clamp(32px, 4.25vw, 66px) !important;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-copy > .actions {
    width: 100%;
    max-width: 424px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px !important;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero #heroGroupQuiz .mobile-group-label { font-size: clamp(15px, 1.7vw, 20px) !important; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroGroupQuiz { grid-column: 2 !important; grid-row: 1 !important; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > #heroExplainerBtn { grid-column: 1 / -1 !important; grid-row: 2 !important; justify-self: center; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions > .hero-tertiary-links { inset: auto 37% 16px 4%; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links > :is(#heroKnowledgeJourney, #heroQuickRules, #heroBrowseTopics) {
    min-height: clamp(68px, 7vw, 96px) !important;
    font-size: clamp(15px, 1.55vw, 21px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.prototype-landing) { scroll-behavior: auto; }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .actions :is(button, a),
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero #heroStart.desktop-action-busy::before {
    transition: none !important;
    animation: none !important;
  }
}

/* Continue the mobile landing palette below the hero. */
@media (max-width: 700px) {
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved:not(.quiz-in-progress) .race-strip.unified-community .race-strip-card {
    background: #f0f5ed !important;
    border-color: #dae6d7 !important;
    box-shadow: none;
  }
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved:not(.quiz-in-progress) .race-strip.unified-community .knowledge-duel {
    background: #e7efe3;
  }
}


/* The inline editor exposes the original title so it remains directly editable. */
html.ail-inline-active body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero h1.hero-title > .mobile-title {
  display: none !important;
}
html.ail-inline-active body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero h1.hero-title > .hero-title-line {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip-path: none !important;
  white-space: normal !important;
}

@media (width < 1001px) {
  html body.prototype-landing.desktop-landing-enabled.mobile-landing-preserved .hero .hero-tertiary-links > :is(#heroKnowledgeJourney, #heroQuickRules, #heroBrowseTopics) {
    /* Keep the frosted look without sampling adjacent compositor layers. */
    background: rgb(244 247 241 / 96%) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
