/* 1 · Hero, dawn: the mission, and everyone behind one real Konto phone.
   Laid out on the 1440 x 900 frame (base.css .kframe). */
.ks.hero { --sky1: #F6E1C0; --sky2: #FCF4E6; }

/* ---------- sky (full bleed) ---------- */
.ks .he-sky { overflow: hidden; background: linear-gradient(180deg, #F6E1C0 0%, #FBEBD3 55%, #FCF4E6 100%); }
.ks .he-sun {
  position: absolute; inset-inline-end: 4%; top: 46%; width: 900px; height: 900px; margin: -450px -450px 0 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,150,.9) 0 15%, rgba(255,205,140,.5) 25%, rgba(255,226,180,.22) 42%, rgba(255,240,215,0) 66%);
  animation: he-sunrise 2.6s var(--ease) both;
}
.ks[dir="rtl"] .he-sun { margin: -450px 0 0 -450px; }
.ks .he-rays {
  position: absolute; inset-inline-end: 4%; top: 46%; width: 1500px; height: 1500px; margin: -750px -750px 0 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,236,200,.34) 0 4deg, rgba(255,236,200,0) 4deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 16%, transparent 50%); mask-image: radial-gradient(circle, #000 0 16%, transparent 50%);
  animation: he-turn 140s linear infinite;
}
.ks[dir="rtl"] .he-rays { margin: -750px 0 0 -750px; }
.ks .he-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; opacity: .55; }
.ks .he-bird { position: absolute; width: 16px; height: 6px; border-top: 2px solid rgba(90,70,60,.42); border-radius: 50% 50% 0 0; animation: he-fly 30s linear infinite; }
.ks .he-bird::after { content: ""; position: absolute; left: 13px; top: -2px; width: 16px; height: 6px; border-top: 2px solid rgba(90,70,60,.42); border-radius: 50% 50% 0 0; }
.ks .he-bird.b1 { top: 16%; animation-delay: -4s; }
.ks .he-bird.b2 { top: 21%; animation-delay: -13s; transform: scale(.8); }
.ks .he-bird.b3 { top: 12%; animation-delay: -22s; transform: scale(.65); }

/* ---------- copy ---------- */
.ks .he-copy { position: absolute; inset-inline-start: 96px; top: 190px; width: 600px; z-index: 4; }
.ks .he-h1 { font-size: 66px; line-height: 1.06; animation: k-rise .9s var(--ease) both; }
.ks[dir="rtl"] .he-h1 { font-size: 64px; line-height: 1.28; }
.ks .he-nb { white-space: nowrap; }
.ks .he-lead { margin-top: 26px; font-size: 20px; max-width: 30em; animation: k-rise .9s .14s var(--ease) both; }
.ks .he-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: k-rise .9s .26s var(--ease) both; }
.ks .he-cta .btn { min-height: 56px; padding: 0 26px; font-size: 17px; }
.ks[dir="rtl"] .he-cta .btn-line svg { transform: none; }
.ks .he-pills { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; animation: k-rise .9s .36s var(--ease) both; }
.ks .he-pills li { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ks .he-pills svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--c100); color: var(--c700); flex: none; }

/* ---------- stage: everyone, behind the phone ---------- */
.ks .he-stage { position: absolute; inset-inline-start: 640px; top: 64px; width: 800px; height: 836px; z-index: 2; }
.ks .he-arch { position: absolute; width: 188px; text-align: center; filter: drop-shadow(0 16px 24px rgba(120,72,30,.16)); }
.ks .he-arch.a0 { inset-inline-start: 0; top: 400px; animation: he-arch-in 1s .30s var(--ease) both; }
.ks .he-arch.a1 { inset-inline-start: 46px; top: 92px; animation: he-arch-in 1s .42s var(--ease) both; }
.ks .he-arch.a2 { inset-inline-start: 566px; top: 92px; animation: he-arch-in 1s .48s var(--ease) both; }
.ks .he-arch.a3 { inset-inline-start: 612px; top: 400px; animation: he-arch-in 1s .36s var(--ease) both; }
.ks .he-win { display: block; width: 188px; height: 251px; overflow: visible; }
.ks .he-frame { fill: none; stroke: #FFF7EA; stroke-width: 9; }
.ks .he-cap { margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ks .he-cap > b { font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.ks .he-cap > span { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-3); }
.ks .he-sway { transform-box: fill-box; transform-origin: 50% 0; animation: he-sway 4.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.ks .he-glow { animation: he-glow 3.2s ease-in-out infinite alternate; }
.ks .he-steam { animation: he-steam 3s ease-in-out infinite; }

.ks .he-street { position: absolute; left: -40px; width: 880px; top: 752px; height: 84px; }
.ks .he-ride { position: absolute; top: 676px; inset-inline-start: 0; width: 140px; z-index: 1; animation: he-ride 16s linear infinite; }
.ks[dir="rtl"] .he-ride { animation-name: he-ride-rtl; }
.ks[dir="rtl"] .he-ride-in { transform: scaleX(-1); }
.ks .he-ride svg { display: block; width: 140px; height: auto; }

/* the phone, in front of everyone */
.ks .he-phone-slot { position: absolute; inset-inline-start: 238px; top: 54px; z-index: 3; }
.ks .he-phone { --pz: .78; animation: he-phone-in 1.2s .15s var(--ease) both; }
.ks .he-halo {
  position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -330px 0 0 -310px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.7) 0 26%, rgba(255,246,230,.36) 46%, rgba(255,246,230,0) 68%); pointer-events: none;
}

/* ---------- motion ---------- */
@keyframes he-sunrise { from { transform: translateY(80px) scale(.9); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes he-turn { to { transform: rotate(360deg) } }
@keyframes he-fly { from { left: -60px } to { left: calc(100% + 60px) } }
@keyframes he-ride { from { transform: translateX(-180px) } to { transform: translateX(960px) } }
@keyframes he-ride-rtl { from { transform: translateX(180px) } to { transform: translateX(-960px) } }
@keyframes he-arch-in { from { opacity: 0; translate: 0 36px } to { opacity: 1; translate: 0 0 } }
@keyframes he-phone-in { from { opacity: 0; transform: translateY(60px) } to { opacity: 1; transform: none } }
@keyframes he-sway { from { transform: rotate(-1.6deg) } to { transform: rotate(1.6deg) } }
@keyframes he-glow { from { opacity: .75 } to { opacity: 1 } }
@keyframes he-steam { 0% { opacity: 0; transform: translateY(4px) } 40% { opacity: .9 } 100% { opacity: 0; transform: translateY(-8px) } }

/* ---------- narrow screens: the copy, then the stage scaled to the width ---------- */
html.kp-narrow .ks.hero .kframe { padding: 88px 20px 24px; }
html.kp-narrow .ks .he-copy { position: relative; inset: auto; width: auto; }
html.kp-narrow .ks .he-h1 { font-size: 44px; }
html.kp-narrow .ks[dir="rtl"] .he-h1 { font-size: 42px; }
html.kp-narrow .ks .he-lead { font-size: 17px; }
html.kp-narrow .ks .he-stage { position: relative; inset: auto; zoom: var(--kfit, .44); margin: 24px 0 0; }

/* ---------- phones (round 5): the whole first screen is one composition, the
   words above and everyone behind the phone below; a tap on the phone (or the
   Try it button) opens the real app full screen ---------- */
html.kp-narrow .ks.hero .kframe { padding: 80px 20px 16px; }
html.kp-narrow .ks .he-h1 { font-size: clamp(34px, 10.2vw, 44px); line-height: 1.04; }
html.kp-narrow .ks[dir="rtl"] .he-h1 { font-size: clamp(32px, 9.4vw, 42px); line-height: 1.26; }
html.kp-narrow .ks .he-lead { margin-top: 14px; font-size: 16px; line-height: 1.55; }
html.kp-narrow .ks .he-cta { gap: 10px; margin-top: 20px; }
html.kp-narrow .ks .he-cta .btn { min-height: 50px; padding: 0 18px; font-size: 16px; }
html.kp-narrow .ks .he-cta .btn-line { flex: 1 1 auto; }
html.kp-narrow .ks .he-pills { margin-top: 16px; gap: 6px 16px; }
html.kp-narrow .ks .he-pills li { font-size: 14px; }
html.kp-narrow .ks .he-stage { margin-top: 12px; }
html.kp-narrow .ks[dir="rtl"] .he-cta .btn { padding: 0 14px; font-size: 15px; }
@media (max-width: 374px) { html.kp-narrow .ks .he-cta .btn { padding: 0 14px; font-size: 15px; } }

/* phones: the headline wraps where it must instead of running off the screen */
html.kp-narrow .ks .he-nb { white-space: normal; }
/* phones: the hero is one screen; the town takes the room the words leave
   (kpage.js scales it to fit, by its data-h) */
html.kp-narrow .ks.hero .kframe { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding-bottom: calc(16px + var(--kbar, 0px)); }
html.kp-narrow .ks .he-stage { flex: none; margin-inline: auto; }
