/* The home page (2026-10-07): the hero, the walkthrough of the real Keyturn screens, the rows and the list. */
.hm-hero { padding: 72px 0 28px; text-align: center; }
.hm-hero h1 { font: 760 clamp(38px, 6vw, 68px)/1.02 var(--display); letter-spacing: -.04em; max-width: 15ch; margin: 0 auto; }
.hm-lede { max-width: 58ch; margin: 22px auto 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--text-2); }
.hm-acts { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hm-demo { padding: 26px 0 40px; }
/* The walkthrough (owner, 2026-10-22: no glows, quicker, today's screens). The screens are drawn at twice their size, so the
   gentle push toward what is pressed stays sharp; the next screen fades in over the last, which stays fully drawn under it
   until the new one is in, so the frame never dims. */
.hm-window { border-radius: 18px; background: var(--dark); padding: 10px; box-shadow: 0 1px 2px rgba(23,23,26,.10), 0 28px 56px -28px rgba(23,23,26,.42); }
.hm-stage { --base: 1; --zoom: 1.05; position: relative; aspect-ratio: 1440 / 900; border-radius: 10px; overflow: hidden; background: #F3F1EC; isolation: isolate; }
.hm-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; transform: translate3d(0, 0, 0) scale(var(--base)); transform-origin: var(--ox, 50%) var(--oy, 50%); backface-visibility: hidden; will-change: transform, opacity; transition: opacity .45s var(--ease); }
.hm-stage img.was { opacity: 1; z-index: 1; transition: none; }
.hm-stage img.on { opacity: 1; z-index: 2; animation: hm-push var(--dur, 4.6s) var(--ease) forwards; }
@keyframes hm-push { 0%, 24% { transform: translate3d(0, 0, 0) scale(var(--base)); } 100% { transform: translate3d(0, 0, 0) scale(calc(var(--base) * var(--zoom))); } }
.hm-cursor { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -3px 0 0 -5px; z-index: 4; pointer-events: none; transform-origin: 5px 3px; transition: left .7s cubic-bezier(.22, 1, .36, 1), top .7s cubic-bezier(.22, 1, .36, 1), transform .14s var(--ease); filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.hm-cursor svg { display: block; }
.hm-cursor.press { transform: scale(.84); }
.hm-ring { position: absolute; left: 50%; top: 50%; z-index: 3; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 2.5px solid var(--accent); opacity: 0; pointer-events: none; }
.hm-ring.go { animation: hm-ring .75s var(--ease) forwards; }
@keyframes hm-ring { 0% { transform: scale(.35); opacity: .95; } 100% { transform: scale(1.45); opacity: 0; } }

.hm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.hm-steps button { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-align: left; font: inherit; color: var(--text); cursor: pointer; overflow: hidden; transition: transform .25s var(--ease), background .25s; }
.hm-steps button:hover { transform: translateY(-2px); }
.hm-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-steps b { font: 650 15px var(--ui); }
.hm-steps small { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.hm-fill { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); }
.hm-steps button.on .hm-fill { animation: hm-fill var(--dur, 4.6s) linear forwards; }
.hm-steps button.done .hm-fill { width: 100%; }
.hm-demo.paused .hm-steps button.on .hm-fill, .hm-demo.paused .hm-stage img.on { animation-play-state: paused; }
@keyframes hm-fill { to { width: 100%; } }

.hm-rows { padding: 64px 0 8px; }
.hm-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.hm-row.flip .hm-copy { order: 2; }
.hm-copy h2 { font: 720 clamp(26px, 3.2vw, 38px)/1.08 var(--display); letter-spacing: -.03em; max-width: 18ch; }
.hm-copy p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.hm-shot { border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; }
/* Each row plays its own few moments of the real screens (owner, 2026-10-22: every demo moves), the same way the
   walkthrough does: the pointer glides to what is pressed, the ring where it lands, the next screen fading in over it. */
.hm-stage.hm-mini { aspect-ratio: 3 / 2; border-radius: 0; --zoom: 1.035; }
.hm-mini .hm-cursor.off, .hm-mini .hm-ring.off { opacity: 0; transition: opacity .3s var(--ease); }
.hm-mini.paused img.on { animation-play-state: paused; }

.hm-more { padding: 24px 0 8px; }
.hm-more h2 { font: 720 clamp(26px, 3.2vw, 38px)/1.08 var(--display); letter-spacing: -.03em; max-width: 22ch; }
.hm-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.hm-list li { padding: 22px 22px 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.hm-list b { display: block; font: 650 16px var(--ui); }
.hm-list span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

@media (max-width: 1100px) {
  .hm-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .hm-steps::-webkit-scrollbar { display: none; }
  .hm-steps button { flex: 0 0 min(240px, 72vw); scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .hm-row, .hm-row.flip { grid-template-columns: 1fr; gap: 22px; margin-bottom: 52px; }
  .hm-row.flip .hm-copy { order: 0; }
  .hm-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hm-hero { padding-top: 44px; }
  .hm-list { grid-template-columns: 1fr; }
  .hm-steps small { display: none; }
  .hm-steps button { flex-basis: auto; }
  .hm-stage:not(.hm-mini) { --base: 1.75; --zoom: 1.04; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-stage img.on { animation: none; }
  .hm-stage img { transition: none; }
  .hm-cursor, .hm-ring { display: none; }
  .hm-steps button.on .hm-fill { animation: none; width: 100%; }
}

/* Keyturn isn't released yet (coming.html). The door lifts a little and settles, the car waits inside. */
.cs { padding: 56px 0 96px; text-align: center; }
.cs-art { width: min(440px, 90%); height: auto; margin: 0 auto 28px; display: block; }
.cs-door { animation: cs-door 3.6s var(--ease) infinite alternate; }
@keyframes cs-door { from { transform: translateY(0); } to { transform: translateY(-18px); } }
.cs-car { animation: cs-car 3.6s var(--ease) infinite alternate; }
@keyframes cs-car { from { transform: translateX(0); } to { transform: translateX(6px); } }
.cs h1 { font: 760 clamp(34px, 5vw, 56px)/1.05 var(--display); letter-spacing: -.035em; }
.cs-lede { max-width: 56ch; margin: 18px auto 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.cs-lede a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cs .hm-acts { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .cs-door, .cs-car { animation: none; } }
