/* The home page: "Where learning comes alive". Builds on the .hp-* styles in shule.css (cards, schools, prices). */
.hm { --navy: #13294B; --sky-bg: #EAF3FC; --orange: #D2461F; }
.hm-section { padding-top: 104px; display: flex; flex-direction: column; gap: 32px; }
.hm h2 { margin: 10px 0 0; font: 800 44px/1.1 Outfit, sans-serif; letter-spacing: -.02em; }
.hm h3 { margin: 0; font: 700 24px Outfit, sans-serif; }

/* buttons */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 999px; font: 700 19px Outfit, sans-serif; text-decoration: none; box-sizing: border-box; }
.hm-btn-sm { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.hm-btn-gold { background: var(--gold); color: var(--ink); }
.hm-btn-gold:hover { background: var(--gold-dark); color: var(--ink); }
.hm-btn-line { border: 2px solid var(--navy); color: var(--navy); }
.hm-btn-line:hover { background: var(--navy); color: #fff; }
.hm-btn-white { background: #fff; color: var(--navy); }
.hm-btn-green { background: var(--green); color: #fff; }
.hm-btn-green:hover { background: var(--green-dark); color: #fff; }
.hm-btn-outline-white { border: 2px solid #fff; color: #fff; }
.hm-btn-outline-white:hover { background: #fff; color: var(--green); }
.hm-self { align-self: flex-start; }

/* hero */
.hm-hero-wrap { padding-top: 40px; }
.hm-hero { background: var(--sky-bg); border-radius: 36px; overflow: hidden; display: flex; flex-wrap: wrap; }
.hm-hero-text { flex: 1 1 560px; padding: 64px 40px 64px 56px; display: flex; flex-direction: column; gap: 24px; justify-content: center; box-sizing: border-box; min-width: 0; }
.hm-eyebrow { font: 700 14px 'DM Sans', sans-serif; letter-spacing: .16em; color: #1D5C9A; }
.hm h1 { margin: 0; font: 800 66px/1.02 Outfit, sans-serif; letter-spacing: -.03em; color: var(--navy); }
.hm h1 span { color: var(--orange); }
.hm-lead { margin: 0; font-size: 21px; line-height: 1.5; color: #33445E; max-width: 520px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hm-paths { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-paths > span { font-size: 15px; font-weight: 700; color: #33445E; margin-right: 4px; }
.hm-paths a { background: #fff; color: var(--navy); font: 700 15px Outfit, sans-serif; padding: 10px 16px; border-radius: 999px; border: 1px solid #C9DCF0; text-decoration: none; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.hm-paths a:hover { border-color: var(--navy); }
.hm-hero-art { flex: 1 1 460px; min-height: 600px; position: relative; overflow: hidden; }
.hm-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }

.hm-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 28px 8px 0; }
.hm-icons a { display: flex; align-items: center; gap: 14px; padding: 8px; color: var(--ink); text-decoration: none; font: 700 19px Outfit, sans-serif; border-radius: 18px; }
.hm-icons a:hover { background: #fff; }
.hm-ic { flex: none; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }

/* games */
.hm-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hm-split-text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hm-body { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 470px; }
.hm-game { flex: 1 1 560px; position: relative; padding: 0 0 28px 28px; min-width: 0; }
.hm-game-screen { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 10; background: #2B7FD1; box-shadow: 0 24px 50px rgba(19,41,75,.18); }
.hm-game-screen > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-game-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 8px; }
.hm-game-top span { background: rgba(255,255,255,.95); font: 700 15px Outfit, sans-serif; padding: 6px 14px; border-radius: 999px; }
.hm-game-top .dark { background: #17241D; color: var(--gold); }
.hm-q { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 70%; background: #fff; border-radius: 22px; padding: 20px; box-sizing: border-box; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.hm-q strong { display: block; font: 800 40px/1 Outfit, sans-serif; color: #17241D; }
.hm-q-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hm-q-opts span { font: 700 22px Outfit, sans-serif; border-radius: 14px; padding: 10px 0; background: var(--sky-tint); color: #1D5C9A; }
.hm-q-opts .ok { background: #1F9D57; color: #fff; }
.hm-leo { position: absolute; right: 14px; bottom: 0; height: 42%; width: auto; }
.hm-level { position: absolute; left: 0; bottom: 0; background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: 0 14px 30px rgba(19,41,75,.2); display: flex; flex-direction: column; gap: 8px; width: 240px; box-sizing: border-box; }
.hm-level .row { display: flex; justify-content: space-between; align-items: center; font: 700 17px Outfit, sans-serif; }
.hm-level .stars { color: #E39A0B; font-size: 18px; }
.hm-level .bar { height: 10px; border-radius: 999px; background: var(--green-tint); overflow: hidden; display: block; }
.hm-level .bar span { display: block; height: 100%; background: #1F9D57; }
.hm-level .small { font-size: 13px; color: var(--muted); }
.hm-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hm-world { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .15s; }
.hm-world:hover { transform: translateY(-3px); }
.hm-world img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hm-world > span { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.hm-world strong { font: 700 22px Outfit, sans-serif; }
.hm-world > span > span { font-size: 15px; color: var(--muted); }
.hm-more { align-self: center; display: inline-flex; align-items: center; gap: 8px; font: 700 18px Outfit, sans-serif; color: var(--green); min-height: 44px; }

/* labs */
.hm-labs { background: var(--navy); color: #fff; border-radius: 32px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hm-labs-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hm-labs-text h2 { color: #fff; margin: 0; }
.hm-labs-text p { margin: 0; font-size: 18px; line-height: 1.55; color: #CFDCEE; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chips span { background: rgba(255,255,255,.12); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.hm-labs-demo { flex: 1 1 480px; display: flex; flex-wrap: wrap; gap: 16px; min-width: 0; }
.hm-specimen { flex: 1 1 260px; position: relative; background: #fff; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; }
.hm-specimen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-specimen .pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font: 700 15px Outfit, sans-serif; }
.hm-specimen .pin.hot { background: var(--orange); }
.hm-labq { flex: 1 1 200px; background: #fff; color: var(--ink); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hm-labq .k { font: 700 12px 'DM Sans', sans-serif; letter-spacing: .14em; color: #8A4300; }
.hm-labq strong { font: 700 20px/1.25 Outfit, sans-serif; }
.hm-labq .opt { border: 2px solid var(--line-strong); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.hm-labq .opt.ok { border-color: #1F9D57; background: #EAF7EE; color: #0F5A33; }

/* tutor and teachers */
.hm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.hm-tile { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.hm-tile-art { height: 300px; position: relative; display: flex; align-items: center; justify-content: center; padding: 28px; box-sizing: border-box; }
.hm-tile-art.green { background: var(--green); padding: 0; }
.hm-tile-art.green img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 30%; }
.hm-tile-art.coral { background: var(--coral-tint); }
.hm-tile-body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.hm-tile-body p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.hm-tile-body > a { margin-top: auto; align-self: flex-start; font: 700 18px Outfit, sans-serif; color: var(--green); min-height: 44px; display: inline-flex; align-items: center; }
.hm-class { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; box-shadow: 0 14px 30px rgba(162,58,34,.16); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.hm-class .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hm-class .k { font: 700 12px 'DM Sans', sans-serif; letter-spacing: .14em; color: #A23A22; }
.hm-class .seats { font: 700 13px 'DM Sans', sans-serif; background: #E3F4EA; color: #0F5A33; padding: 4px 10px; border-radius: 999px; }
.hm-class > strong { font: 700 21px/1.25 Outfit, sans-serif; }
.hm-class .small { color: var(--muted); font-size: 15px; }
.hm-class .row > strong { font: 700 18px Outfit, sans-serif; }
.hm-class .row > strong small { font: 500 14px 'DM Sans', sans-serif; color: var(--muted); }

/* every learner */
.hm-learners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hm-learner { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.hm-learner img { width: 100%; height: 200px; object-fit: cover; object-position: center 30%; display: block; }
.hm-learner > span { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.hm-learner strong { font: 700 22px Outfit, sans-serif; }
.hm-learner > span > span { color: var(--muted); line-height: 1.5; }

/* closing */
.hm-cta { background: #FFF0CC; color: var(--ink); border-radius: 32px; padding: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.hm-cta h2 { margin: 0; }
.hm-cta p { margin: 8px 0 0; font-size: 19px; color: var(--muted); }

@media (max-width: 720px) {
  .hm-hero-wrap { padding-top: 16px; }
  .hm-hero { border-radius: 26px; flex-direction: column-reverse; }
  .hm-hero-text { padding: 24px 20px 26px; gap: 14px; flex-basis: auto; }
  .hm h1 { font-size: 40px; }
  .hm h2 { font-size: 30px; }
  .hm-eyebrow { font-size: 11px; letter-spacing: .12em; }
  .hm-lead { font-size: 17px; }
  .hm-actions .hm-btn { width: 100%; }
  .hm-hero-art { min-height: 240px; flex-basis: 240px; }
  .hm-hero-art img { object-position: 55% center; }
  .hm-icons { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 4px; padding: 16px 0 0; }
  .hm-icons a { flex-direction: column; gap: 6px; font-size: 13px; text-align: center; padding: 4px; line-height: 1.2; }
  .hm-ic { width: 52px; height: 52px; border-radius: 16px; }
  .hm-section { padding-top: 56px; gap: 22px; }
  .hm-split { gap: 22px; }
  .hm-game { padding: 0 0 52px 0; flex-basis: 100%; }
  .hm-game-screen { border-radius: 20px; }
  .hm-game-top span { font-size: 12px; padding: 4px 10px; }
  .hm-q { width: 82%; padding: 10px; border-radius: 14px; }
  .hm-q strong { font-size: 24px; }
  .hm-q-opts { gap: 6px; margin-top: 8px; }
  .hm-q-opts span { font-size: 16px; padding: 4px 0; border-radius: 10px; }
  .hm-level { width: 210px; padding: 10px 14px; }
  .hm-labs, .hm-cta { padding: 26px 20px; border-radius: 26px; gap: 22px; }
  .hm-specimen .pin { width: 26px; height: 26px; font-size: 13px; }
  .hm-tile-art { height: 240px; padding: 18px; }
  .hm-tile-body { padding: 20px 20px 24px; }
  .hm-learner img { height: 150px; }
  .hm-cta .hm-actions { width: 100%; }
  .hm-long { display: none; }
  .hm-worlds { gap: 12px; }
  .hm-world { flex-direction: row; align-items: center; border-radius: 18px; }
  .hm-world img { width: 120px; flex: none; aspect-ratio: 16 / 10; }
  .hm-world > span { padding: 10px 14px; }
  .hm-world strong { font-size: 18px; }
  .hm-world > span > span { font-size: 13px; }
}
.sh-lite .hm-hero-art, .sh-lite .hm-learner img, .sh-lite .hm-world img { display: none; }
.hm-free { margin: 0; color: var(--muted); font-size: 16px; }
.hm-free a { color: var(--green); font-weight: 700; }
