/* Get Konto: the store chooser at the shop door, at dawn. Prefix gt-.
   States on the section: gt-live gt-desk (stores + scan code), gt-live gt-phone
   (that phone's store first, no scan code), gt-soon (not in the stores yet). */

/* ---------- the page frame: 48 px targets in the bar and the footer ---------- */
.ks.gt-page .brand { min-height: 48px; min-width: 48px; justify-content: center; }
.ks.gt-page .langs button { min-height: 48px; min-width: 48px; }
.ks.gt-page .nav .btn { min-height: 48px; }
.ks.gt-page .nav-links a { display: inline-flex; align-items: center; min-height: 48px; }
.ks.gt-foot .fi-brand, .ks.gt-foot .fi-links a { min-height: 48px; }
.ks.gt-foot .fi-langs button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 700; color: #C9DCE2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ks.gt-foot .fi-langs button.on { background: #fff; color: #06141C; box-shadow: none; }
.ks.gt-foot .fi-legal { line-height: 1.6; }
.ks.gt-foot .fi-legal a { display: inline-flex; align-items: center; min-height: 48px; margin-block: -12px; }
html.kp-narrow .ks.gt-foot .fi-foot-in { padding: 26px 20px 30px; }
html.kp-narrow .ks.gt-foot .fi-f1 { flex-direction: column; align-items: flex-start; }

/* ---------- sky ---------- */
.ks.gt-get { background: #FCF4E6; }
.ks .gt-sky { overflow: hidden; background: linear-gradient(180deg, #F6E1C0 0%, #FBEBD3 55%, #FCF4E6 100%); }
.ks .gt-sun { position: absolute; inset-inline-end: 18%; top: 40%; width: 760px; height: 760px; margin: -380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,150,.85) 0 16%, rgba(255,205,140,.45) 27%, rgba(255,226,180,.2) 44%, rgba(255,240,215,0) 66%); animation: gt-sunrise 2.4s var(--ease) both; }
.ks .gt-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; opacity: .5; }
.ks .gt-bird { position: absolute; width: 16px; height: 6px; border-top: 2px solid rgba(90,70,60,.42); border-radius: 50% 50% 0 0; animation: gt-fly 32s linear infinite; }
.ks .gt-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 .gt-bird.b1 { top: 16%; animation-delay: -5s; }
.ks .gt-bird.b2 { top: 22%; animation-delay: -18s; transform: scale(.75); }

/* ---------- words ---------- */
.ks .gt-copy { position: absolute; z-index: 3; inset-inline-start: 96px; top: 72px; bottom: 24px; width: 580px; display: flex; flex-direction: column; justify-content: center; }
.ks .gt-in { animation: k-rise .8s var(--ease) var(--d, 0s) both; }
.ks .gt-eyemark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(150deg, #0BBAD8, #06707F); }
.ks .gt-eyemark .gt-mk { width: 15px; height: 17px; }
.ks .gt-h1 { font-size: 84px; line-height: 1.0; }
.ks[dir="rtl"] .gt-h1 { font-size: 76px; line-height: 1.28; }
.ks .gt-lede { margin-top: 22px; font-size: 21px; }
.ks .gt-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.ks.pf-android .gt-stores, .ks.pf-ios .gt-stores { flex-direction: column; align-items: flex-start; }
/* the badge artwork keeps its proportions; the Play image's transparent margin is left out of its height */
.ks .gt-store { --bh: 56px; display: flex; flex: none; align-items: center; justify-content: center; inline-size: calc(var(--bh) * 564 / 168); block-size: var(--bh); overflow: hidden; border-radius: 10px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ks .gt-store:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,29,34,.18); }
.ks .gt-store img { display: block; flex: none; block-size: 100%; inline-size: auto; max-width: none; }
.ks .gt-store[data-store="play"] img { block-size: calc(var(--bh) * 250 / 168); }
.ks.pf-android .gt-store.main, .ks.pf-ios .gt-store.main { --bh: 64px; }
.ks .gt-note { display: flex; gap: 14px; align-items: flex-start; max-width: 30em; margin: 26px 0 0; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(15,29,34,.08), var(--shadow-1); font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.ks .gt-noteic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--warn-50); color: var(--warn-800); box-shadow: inset 0 0 0 1px var(--warn-200); }
.ks .gt-noteic svg { width: 20px; height: 20px; }
.ks .gt-pills { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ks .gt-pills li { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ks .gt-pills svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--c100); color: var(--c700); flex: none; }

/* ---------- the shop door ---------- */
.ks .gt-stage { position: absolute; z-index: 2; inset-inline-end: 56px; top: 150px; width: 680px; height: 700px; animation: gt-stage-in 1.1s var(--ease) .1s both; }
/* the street runs toward the outer edge in both directions; the code and the mark are never mirrored */
.ks[dir="rtl"] .gt-stage { transform: scaleX(-1); }
.ks[dir="rtl"] .gt-board-in, .ks[dir="rtl"] .gt-bmark { transform: scaleX(-1); }
.ks .ab-scn { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ks .ab-fig { position: absolute; z-index: 2; }
.ks .ab-fig > svg { display: block; width: 100%; height: auto; }
.ks .ab-fig.gt-back { z-index: 1; }
.ks .gt-stage .ab-fig { animation: gt-fig-in .9s var(--ease) .5s both; }
.ks .gt-stage .ab-fig:nth-of-type(2n) { animation-delay: .75s; }
.ks .gt-awning { animation: gt-awning 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.ks .gt-plant path { transform-box: fill-box; transform-origin: 50% 100%; animation: gt-sway 4s ease-in-out infinite alternate; }

.ks .gt-board { position: absolute; z-index: 3; left: 46px; top: 236px; width: 248px; height: 300px; padding: 12px; border-radius: 18px; background: #8C6A4A; box-shadow: 0 22px 40px rgba(90,60,30,.3); animation: gt-board-in .9s var(--spring) .6s both; }
.ks .gt-board-in { width: 100%; height: 100%; border-radius: 10px; background: #24413A; display: grid; place-items: center; }
.ks .gt-qr { display: grid; justify-items: center; gap: 12px; padding: 0 10px; }
.ks .gt-qrimg { position: relative; display: block; width: 170px; height: 170px; padding: 10px; border-radius: 14px; background: #fff; overflow: hidden; }
.ks .gt-qrimg img { width: 150px; height: 150px; }
.ks .gt-sweep { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(180deg, rgba(11,186,216,0), rgba(11,186,216,.18)); animation: gt-sweep 2.6s ease-in-out 1.4s infinite; opacity: 0; }
.ks .gt-qrcap { font-size: 16px; font-weight: 800; line-height: 1.35; color: #EAF6F2; text-align: center; }
.ks .gt-soonart { display: none; position: relative; }
.ks .gt-bmark { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 32px; background: linear-gradient(150deg, #0BBAD8, #06707F); box-shadow: 0 16px 30px rgba(0,0,0,.25); }
.ks .gt-bmark .gt-mk { width: 52px; height: 58px; }
.ks .gt-clock { position: absolute; inset-inline-end: -26px; bottom: -22px; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #E8C66A; color: #3A2C10; box-shadow: 0 8px 18px rgba(0,0,0,.25); animation: gt-tick 2s ease-in-out infinite; }
.ks .gt-clock svg { width: 34px; height: 34px; }
.ks .gt-handphone { display: none; position: absolute; z-index: 3; left: 120px; top: 250px; width: 150px; height: 250px; border-radius: 30px; background: #0F1D22; box-shadow: 0 24px 44px rgba(15,29,34,.3); padding: 9px; animation: gt-float 4s ease-in-out infinite alternate; }
.ks .gt-handphone .gt-bmark { width: 100%; height: 100%; border-radius: 22px; box-shadow: none; }
.ks .gt-spark { display: none; position: absolute; z-index: 3; width: 18px; height: 18px; background: #E8C66A; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: gt-spark 2.4s ease-in-out infinite; }
.ks .gt-spark.s1 { left: 96px; top: 230px; }
.ks .gt-spark.s2 { left: 286px; top: 290px; animation-delay: .8s; }
.ks .gt-spark.s3 { left: 110px; top: 500px; animation-delay: 1.6s; width: 12px; height: 12px; }

/* states */
.ks.gt-soon .gt-qr { display: none; }
.ks.gt-soon .gt-soonart { display: block; }
.ks.gt-phone .gt-board, .ks.gt-phone .gt-stand { display: none; }
.ks.gt-phone .gt-handphone, .ks.gt-phone .gt-spark { display: block; }

/* ---------- motion ---------- */
@keyframes gt-sunrise { from { transform: translateY(70px) scale(.9); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes gt-fly { from { left: -60px } to { left: calc(100% + 60px) } }
@keyframes gt-stage-in { from { opacity: 0; translate: 0 30px } to { opacity: 1; translate: 0 0 } }
@keyframes gt-fig-in { from { opacity: 0; translate: 0 22px } to { opacity: 1; translate: 0 0 } }
@keyframes gt-board-in { from { opacity: 0; transform: translateY(30px) rotate(-4deg) } to { opacity: 1; transform: none } }
@keyframes gt-awning { from { transform: scaleY(1) } to { transform: scaleY(1.04) } }
@keyframes gt-sway { from { transform: rotate(-3deg) } to { transform: rotate(3deg) } }
@keyframes gt-sweep { 0% { top: 0; opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { top: 140px; opacity: 0 } }
@keyframes gt-tick { 0%, 100% { rotate: 0deg } 50% { rotate: 8deg } }
@keyframes gt-float { from { translate: 0 0; rotate: -3deg } to { translate: 0 -14px; rotate: 2deg } }
@keyframes gt-spark { 0%, 100% { opacity: 0; transform: scale(.4) } 50% { opacity: 1; transform: scale(1) } }

/* ---------- phones (< 760 px): the words and the stores first, then the shop door ---------- */
html.kp-narrow .ks.gt-get .kframe { padding: 88px 20px 12px; }
html.kp-narrow .ks .gt-copy { position: relative; inset: auto; width: auto; display: block; }
html.kp-narrow .ks .gt-h1 { font-size: clamp(42px, 12vw, 54px); line-height: 1.04; }
html.kp-narrow .ks[dir="rtl"] .gt-h1 { font-size: clamp(38px, 11vw, 48px); line-height: 1.3; }
html.kp-narrow .ks .gt-lede { font-size: 17px; margin-top: 14px; }
html.kp-narrow .ks .gt-stores { margin-top: 22px; }
html.kp-narrow .ks .gt-note { font-size: 16px; padding: 14px 16px; margin-top: 20px; }
html.kp-narrow .ks .gt-pills { margin-top: 20px; gap: 6px 16px; }
html.kp-narrow .ks .gt-pills li { font-size: 14px; }
html.kp-narrow .ks .gt-stage { position: relative; inset: auto; zoom: var(--kfit, .5); margin: -60px 0 0; }
html.kp-narrow .ks .gt-bird { display: none; }
@media (max-width: 370px) { .ks .gt-store { --bh: 50px; } .ks.pf-android .gt-store.main, .ks.pf-ios .gt-store.main { --bh: 58px; } }
