.hm-hero { position: relative; padding-top: 40px; padding-bottom: 64px; gap: 48px; }
.hm-aura {
  position: absolute; inset: -30% -20% auto; height: 140%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 40% at 72% 38%, color-mix(in oklab, var(--c) var(--aura), transparent), transparent 70%),
    radial-gradient(24% 28% at 90% 72%, color-mix(in oklab, var(--c) calc(var(--aura) * .65), transparent), transparent 70%),
    radial-gradient(28% 30% at 8% 4%, color-mix(in oklab, var(--c) calc(var(--aura) * .3), transparent), transparent 70%);
  animation: hm-drift 24s ease-in-out infinite alternate;
}
@keyframes hm-drift { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }

.hm-h1 { font-size: clamp(34px, 10.4vw, 60px); line-height: .98; letter-spacing: -.04em; font-weight: 780; max-width: 14ch; text-wrap: balance; }
.hm-rot { display: inline-grid; vertical-align: bottom; }
.hm-rot > span {
  grid-area: 1 / 1; justify-self: start; display: inline-flex; white-space: nowrap; align-items: center; gap: .16em;
  padding: .02em .3em .1em .22em; border-radius: .34em; color: var(--c-ink);
  background: color-mix(in oklab, var(--c) 12%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--c) 35%, transparent), 0 12px 28px -16px color-mix(in oklab, var(--c) 70%, transparent);
  opacity: 0; transform: translateY(.3em); filter: blur(6px);
  transition: opacity .42s cubic-bezier(.2,.7,.2,1), transform .42s cubic-bezier(.2,.7,.2,1), filter .42s;
}
.hm-rot > span::before { content: ""; flex: none; width: .42em; height: .42em; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .9) 0 6%, transparent 32%), radial-gradient(circle at 42% 42%, color-mix(in oklab, var(--c) 55%, #fff), var(--c)); }
.hm-rot > span[data-w]::after { content: attr(data-w); }
.hm-rot > span.is-on { opacity: 1; transform: none; filter: none; }
.hm-rot > span.is-out { opacity: 0; transform: translateY(-.3em); filter: blur(6px); }
.hm-control { display: grid; gap: 18px; width: 100%; }
.hm-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.hm-course:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hm-course {
  display: grid; gap: 8px; align-content: start; padding: 18px 18px 17px; border-radius: 16px; text-decoration: none;
  color: var(--ink) !important; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  transition: transform .25s, box-shadow .25s, background .3s, color .3s;
}
.hm-course b { font-size: clamp(22px, 6vw, 28px); line-height: 1; font-weight: 750; letter-spacing: -.02em; color: var(--c-ink); transition: color .3s; }
.hm-course span { font-size: 13px; color: var(--muted); line-height: 1.4; transition: color .3s; }
.hm-course:hover { transform: translateY(-2px); box-shadow: var(--sh-2), inset 0 0 0 1px color-mix(in oklab, var(--c) 40%, transparent); }
.hm-course.is-on { background: var(--c); box-shadow: var(--hi), var(--sh-c); }
.hm-course.is-on b { color: var(--c-on); }
.hm-course:focus { outline: none; }
.hm-course:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.hm-course.is-on span { color: color-mix(in oklab, var(--c-on) 78%, transparent); }

.hm-pick { display: grid; gap: 12px; align-content: start; }
.hm-swap { display: grid; }
.hm-swap > * { grid-area: 1 / 1; }
.hm-swap > .is-off { visibility: hidden; }
.hm-pick-note { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 52ch; }
.hm-pick-note a { font-weight: 650; }

.hm-exams-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; width: 100%; padding-top: 6px; }
.hm-exams-line b { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-inline-end: 4px; }
.hm-exams-line a { padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-1); color: var(--ink) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.hm-exams-line a:hover { box-shadow: var(--sh-2); }

.lp .lp-hero-art { justify-items: center; }
.hm-stage { position: relative; width: min(420px, 100%); padding: 0 14px 14px 0; }
.hm-stage::before {
  content: ""; position: absolute; inset: 14px 0 0 14px; border-radius: 24px; transform: rotate(3deg);
  background: var(--glass-2); box-shadow: var(--sh-1);
}
.hm-demo {
  position: relative; display: grid; gap: 16px; padding: 24px; border-radius: 24px;
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  box-shadow: var(--hi), var(--sh-2), 0 40px 80px -28px color-mix(in oklab, var(--c) 45%, transparent);
}
.hm-sticker {
  position: absolute; top: -14px; inset-inline-end: 18px; padding: 8px 12px; border-radius: 999px; transform: rotate(-4deg);
  background: var(--surface); box-shadow: var(--sh-2); font-size: 13px; font-weight: 650; color: var(--ink);
}
.hm-demo-head { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hm-demo-lang::after { content: " · " var(--code); color: var(--c-ink); }
.hm-rec { display: inline-flex; align-items: center; gap: 6px; }
.hm-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 color-mix(in oklab, var(--c) 50%, transparent); animation: hm-pulse 1.6s ease-out infinite; }
@keyframes hm-pulse { to { box-shadow: 0 0 0 8px transparent; } }
.hm-demo-body { display: grid; gap: 8px; }
.hm-bubble { font-family: var(--font-phrase); font-weight: 500; font-size: 26px; line-height: 1.4; letter-spacing: -.01em; }
.hm-w { padding: 0 .08em; border-radius: 6px; color: var(--muted); background: var(--tint); transition: color .25s, background .25s; }
.hm-w.is-said { color: var(--ink); background: transparent; }
.hm-gap {
  display: inline-block; vertical-align: .2em; max-width: 0; overflow: hidden; white-space: nowrap; margin: 0 .22em; padding: 4px 0; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .04em; background: var(--pause-bg); color: var(--pause-fg);
  transition: max-width .9s linear, padding .2s;
}
.hm-gap.is-said { max-width: 14em; padding: 4px 10px; }
.hm-tr { font-size: 14px; color: var(--muted); }
.hm-meter { display: grid; grid-template-columns: repeat(32, 1fr); align-items: end; gap: 3px; height: 40px; }
.hm-meter i { display: block; border-radius: 99px; height: var(--h, 14%); background: linear-gradient(var(--c), color-mix(in oklab, var(--c) 50%, #fff)); transition: height .18s ease; }
.hm-meter i.is-gap { background: var(--muted); opacity: .4; }
.hm-tip { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: color-mix(in oklab, var(--c) 7%, var(--surface)); font-size: 14px; line-height: 1.45; color: var(--muted); }
.hm-tip b { color: var(--ink); font-weight: 650; }

.hm-exam-grid { display: grid; gap: 12px; }
.hm-exam {
  display: grid; align-content: start; overflow: hidden; border-radius: 20px; text-decoration: none; color: var(--ink) !important;
  background: var(--surface); box-shadow: var(--sh-1); transition: transform .25s, box-shadow .25s;
}
.hm-exam:hover { transform: translateY(-2px); box-shadow: var(--sh-2), var(--sh-c); }
.hm-plate {
  position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
  height: 104px; padding: 16px 18px;
  background:
    radial-gradient(60% 90% at 85% 10%, color-mix(in oklab, var(--c) 45%, transparent), transparent 70%),
    radial-gradient(50% 80% at 10% 100%, color-mix(in oklab, var(--c) 22%, transparent), transparent 70%),
    color-mix(in oklab, var(--c) 6%, var(--surface));
  background-size: 120% 120%; background-position: 0 0; transition: background-position .5s;
}
.hm-exam:hover .hm-plate { background-position: 20% 20%; }
.hm-plate::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .16; pointer-events: none; }
.hm-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--c) 45%, #fff), var(--c)); box-shadow: 0 4px 10px -3px color-mix(in oklab, var(--c) 60%, transparent); }
.hm-plate small { display: inline-flex; align-items: center; gap: 6px; }
.hm-plate b { font: 600 48px/1 var(--mono); letter-spacing: -.04em; color: var(--c-ink); }
.hm-plate small { font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); text-align: end; }
.hm-exam-body { display: grid; gap: 8px; padding: 18px 18px 22px; }
.hm-exam h3 { font-size: 20px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.hm-exam p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0; }
.hm-exam em { font-style: normal; font-weight: 650; font-size: 15px; color: var(--c-ink); margin-top: 6px; }

.hm-modes {
  display: grid; gap: 28px; padding: 40px 24px; border-radius: 28px;
  background: color-mix(in oklab, var(--ink) 4%, var(--surface)); box-shadow: var(--sh-1); transition: background .5s;
}
.hm-modes:has(#hm-exam:checked) { background: color-mix(in oklab, var(--c) 8%, var(--surface)); }
.hm-modes fieldset { position: relative; border: 0; margin: 0; padding: 4px; display: inline-grid; grid-template-columns: 1fr 1fr; border-radius: 999px; background: var(--tint); justify-self: start; }
.hm-modes fieldset::before { content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--surface); box-shadow: var(--sh-1); transition: transform .35s cubic-bezier(.3,.7,.2,1); }
.hm-modes:has(#hm-exam:checked) fieldset::before { transform: translateX(100%); }
[dir="rtl"] .hm-modes:has(#hm-exam:checked) fieldset::before { transform: translateX(-100%); }
.hm-modes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hm-modes input { position: absolute; opacity: 0; pointer-events: none; }
.hm-modes label { position: relative; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 15px; text-align: center; cursor: pointer; color: var(--muted); transition: color .3s; }
.hm-modes input:checked + label { color: var(--ink); }
.hm-modes input:focus-visible + label { outline: 2px solid var(--c); outline-offset: 2px; }
.hm-mode { display: none; gap: 28px; animation: hm-fade .4s ease; }
@keyframes hm-fade { from { opacity: 0; transform: translateY(8px); } }
.hm-modes:has(#hm-zen:checked) .hm-mode.zen, .hm-modes:has(#hm-exam:checked) .hm-mode.exam { display: grid; }
.hm-mode ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.hm-mode li { position: relative; display: grid; gap: 4px; padding-inline-start: 26px; }
.hm-mode li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, color-mix(in oklab, var(--c) 55%, #fff), var(--c)); }
.hm-mode.zen li::before { background: radial-gradient(circle at 40% 40%, #fff, var(--muted)); }
.hm-mode li b { font-size: 18px; font-weight: 650; }
.hm-mode li span { color: var(--muted); font-size: 16px; line-height: 1.5; }
.hm-mode-art { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--hi), var(--sh-2); display: grid; gap: 14px; align-content: start; }
.hm-mode-art small { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hm-zen-cards { display: grid; gap: 8px; }
.hm-zen-cards div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 16px; }
.hm-zen-cards div span { font: 500 11px/1 var(--mono); color: var(--muted); }
.hm-pace { display: grid; gap: 10px; }
.hm-pace-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.hm-pace-top b { font-weight: 650; }
.hm-pace-top span { font: 500 11px/1 var(--mono); color: var(--muted); }
.hm-pace-bar { position: relative; height: 12px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.hm-pace-bar i { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in oklab, var(--c) 55%, #fff), var(--c)); }
.hm-pace-bar s { position: absolute; top: 0; bottom: 0; inset-inline-start: 55%; width: 2px; background: var(--ink); opacity: .6; }
.hm-pace-ok { font-size: 14px; color: var(--muted); }
.hm-pace-ok b { color: var(--ink); }

.js-rv .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js-rv .rv.is-in { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .hm-hero { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 112px; gap: 72px; }
  .hm-hero .lp-hero-art { justify-items: center; }
  .hm-h1 { font-size: clamp(44px, 5vw, 64px); }
  .hm-courses { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hm-courses:has(> :nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-course { border-radius: 16px; padding: 18px 12px 17px; }
  .hm-course:last-child:nth-child(odd) { grid-column: auto; }
  .hm-course b { font-size: 21px; }
  .hm-exam-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hm-modes { padding: 64px 56px; }
  .hm-mode { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 56px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .hm-course b { font-size: 17px; } }
@media (min-width: 1024px) {
  .hm-hero { grid-template-columns: 1.25fr .75fr; }
  .hm-hero .lp-hero-art { justify-items: end; }
}
@media (min-width: 760px) and (max-width: 1099px) { .hm-exam:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .hm-exam-grid { grid-template-columns: repeat(5, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .hm-rec::before { animation: none; }
  .hm-rot > span { filter: none; transition: none; }
  .hm-w, .hm-gap, .hm-meter i, .hm-course, .hm-course b, .hm-course span, .hm-exam, .hm-plate, .hm-modes, .hm-modes fieldset::before { transition: none; }
  .hm-mode { animation: none; }
  .js-rv .rv { opacity: 1; transform: none; transition: none; }
}

.hm-meter i:nth-child(1) { --h: 30%; }
.hm-meter i:nth-child(2) { --h: 55%; }
.hm-meter i:nth-child(3) { --h: 40%; }
.hm-meter i:nth-child(4) { --h: 70%; }
.hm-meter i:nth-child(5) { --h: 85%; }
.hm-meter i:nth-child(6) { --h: 60%; }
.hm-meter i:nth-child(7) { --h: 45%; }
.hm-meter i:nth-child(8) { --h: 75%; }
.hm-meter i:nth-child(9) { --h: 90%; }
.hm-meter i:nth-child(10) { --h: 65%; }
.hm-meter i:nth-child(11) { --h: 35%; }
.hm-meter i:nth-child(12) { --h: 50%; }
.hm-meter i:nth-child(13) { --h: 80%; }
.hm-meter i:nth-child(14) { --h: 95%; }
.hm-meter i:nth-child(15) { --h: 70%; }
.hm-meter i:nth-child(16) { --h: 40%; }
.hm-meter i:nth-child(17) { --h: 55%; }
.hm-meter i:nth-child(18) { --h: 85%; }
.hm-meter i:nth-child(19) { --h: 60%; }
.hm-meter i:nth-child(20) { --h: 30%; }
.hm-meter i:nth-child(21) { --h: 45%; }
.hm-meter i:nth-child(22) { --h: 75%; }
.hm-meter i:nth-child(23) { --h: 65%; }
.hm-meter i:nth-child(24) { --h: 50%; }
.hm-meter i:nth-child(25) { --h: 85%; }
.hm-meter i:nth-child(26) { --h: 70%; }
.hm-meter i:nth-child(27) { --h: 40%; }
.hm-meter i:nth-child(28) { --h: 60%; }
.hm-meter i:nth-child(29) { --h: 35%; }
.hm-meter i:nth-child(30) { --h: 55%; }
.hm-meter i:nth-child(31) { --h: 45%; }
.hm-meter i:nth-child(32) { --h: 25%; }

.hm-band .hm-course { background: rgb(255 255 255 / .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hm-band .hm-course.is-on { background: var(--c); }
.hm-band .hm-exams-line a { background: rgb(255 255 255 / .7); }
@media (prefers-color-scheme: dark) {
  .hm-band .hm-course, .hm-band .hm-exams-line a { background: rgb(20 20 19 / .55); }
  .hm-band .hm-course.is-on { background: var(--c); }
}
.hm-stage { margin-top: 120px; }
.hm-doodle-hero { position: absolute; z-index: 1; width: 300px; top: -170px; inset-inline-end: -40px; pointer-events: none; }

.hm-dark {
  position: relative; isolation: isolate; overflow: hidden; margin: 16px 12px 0; border-radius: 32px; color: var(--dark-ink);
  background: radial-gradient(60% 50% at 50% 100%, color-mix(in oklab, #2E8B62 45%, transparent), transparent 70%), var(--dark);
  padding-block: clamp(72px, 10vw, 136px);
}
.hm-dark .lp-wrap { padding-inline: 16px; }
.hm-dark .lp-section-head { margin-bottom: 48px; }
.hm-dark .lp-section-head p { color: rgb(239 237 232 / .7); font-size: 18px; max-width: 52ch; }
.hm-dark .lp-source { color: rgb(239 237 232 / .6); }
.hm-dark .lp-eyebrow { color: #86CFAE; }
.hm-dark .lp-h2 { color: #fff; }
.hm-shots { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 0; max-width: 960px; margin: 0 auto 64px; }
.hm-shot { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .08); }
.hm-shot img { display: block; width: 100%; height: auto; }
.hm-shot-a { transform: translate(18%, -6%) rotate(-5deg); z-index: 1; }
.hm-shot-b { z-index: 2; border-radius: 20px; }
.hm-shot-c { transform: translate(-18%, -30%) rotate(5deg); z-index: 1; }
[dir="rtl"] .hm-shot-a { transform: translate(-18%, -6%) rotate(5deg); }
[dir="rtl"] .hm-shot-c { transform: translate(18%, -30%) rotate(-5deg); }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.hm-steps li { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .14); }
.hm-steps span { font: 500 12px/1 var(--mono); color: #86CFAE; letter-spacing: .08em; }
.hm-steps b { font-size: 20px; font-weight: 650; color: #fff; }
.hm-steps p { color: rgb(239 237 232 / .68); font-size: 16px; line-height: 1.5; }

.hm-mode-art .hm-doodle { width: 220px; justify-self: center; margin: -8px 0 4px; }

.hm-final { position: relative; isolation: isolate; overflow: hidden; margin: 0 12px 24px; border-radius: 32px; padding-block: clamp(56px, 8vw, 104px); }
.hm-final-in { display: grid; gap: 24px; align-items: center; }
.hm-final .hm-doodle { max-width: 320px; justify-self: center; }
.hm-final p { color: var(--muted); font-size: 18px; margin: 12px 0 20px; }

@media (min-width: 760px) {
  .hm-dark { margin-inline: 24px; } .hm-final { margin-inline: 24px; }
  .hm-dark .lp-wrap { padding-inline: 40px; }
  .hm-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .hm-final-in { grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .hm-doodle-hero { width: 360px; top: -210px; inset-inline-end: -60px; }
}
@media (max-width: 759px) {
  .hm-control > .hm-swap { order: -1; }
  .hm-shots { grid-template-columns: 1fr 1.3fr 1fr; margin-bottom: 40px; }
  .hm-shot { border-radius: 12px; } .hm-shot-b { border-radius: 16px; }
  .hm-stage { margin-top: 150px; }
  .hm-doodle-hero { width: 240px; top: -150px; inset-inline-end: -8px; }
}
.hm-demo { z-index: 2; }
