/* The Kidly phone, built from the Figma screens: Unbounded and Manrope with Arabic falling through to IBM Plex, since neither has Arabic letters */
.kp { --fh: 'Unbounded', 'IBM Plex Sans Arabic', sans-serif; --fb: 'Manrope', 'IBM Plex Sans Arabic', sans-serif; --pur: #9058ff; --ink: #0e0e0e; --grey: #838993; --line: #e6e6e6; position: relative; width: 375px; height: var(--h); overflow: hidden; border-radius: 47px; background: #fff; color: var(--ink); font: 500 14px/20px var(--fb); text-align: start; }
.kp button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.kp h5, .kp h6, .kp p { margin: 0; }
.kp i { font-style: normal; }
.kp u, .kp s { text-decoration: none; }
.ki { display: block; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.kp .kp-s { margin: 0; padding: 0; }
.kp-s { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; opacity: 0; visibility: hidden; transition: opacity .24s, visibility 0s .24s; }
.kp .kp-s.on { z-index: 2; opacity: 1; visibility: visible; transition-delay: 0s; }
/* the old screen stays solid under the new one, so nothing moves and the phone never flashes white */
.kp .kp-s.off { z-index: 1; opacity: 1; visibility: visible; transition: none; }
.kp-still * { transition: none !important; }
.kp-status { display: flex; flex: none; align-items: flex-start; justify-content: space-between; height: 54px; padding: 17px 24px 0 30px; direction: ltr; }
.kp-status img { display: block; }
.kp-status img + img { margin-top: 5px; }
.kp-bar { flex: none; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kp-title { display: flex; align-items: center; gap: 16px; height: 32px; margin: 8px 20px 0; }
.kp-title--home { gap: 12px; }
.kp-h { font: 500 20px/28px var(--fh); white-space: nowrap; }
.kp-title--home .kp-h { flex: 1; }
.kp-me { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #ede6ff; color: var(--pur); font: 500 12px var(--fh); }
.kp-menu { position: relative; }
.kp-menu::after { content: ""; position: absolute; top: 0; inset-inline-end: 2px; width: 8px; height: 8px; border-radius: 50%; background: #f15a61; }
.kp[dir="rtl"] .kp-back .ki { scale: -1 1; }
.kp-body { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.kp-body::-webkit-scrollbar { display: none; }
.kp-pad { padding: 20px; }
/* sign in */
.kp-login { display: flex; flex-direction: column; align-items: stretch; padding-top: 12px; }
.kp-back2 { align-self: flex-start; }
.kp-big { margin-top: 24px !important; font: 500 28px/36px var(--fh); text-align: center; white-space: nowrap; }
.kp-lead { margin: 6px 0 28px !important; color: var(--grey); font-weight: 400; text-align: center; }
.kp-field { position: relative; display: flex; flex-direction: column; justify-content: center; height: 56px; margin-bottom: 16px; padding: 0 16px; border: 1px solid rgba(28,28,28,.1); border-radius: 16px; background: #f9f9f9; }
.kp-field i { color: var(--grey); font-size: 12px; line-height: 16px; }
.kp-field b { font-size: 16px; font-weight: 500; line-height: 24px; text-align: start; unicode-bidi: plaintext; }
.kp[dir="rtl"] .kp-field b { text-align: end; }
.kp-field .ki { position: absolute; top: 15px; inset-inline-end: 15px; color: var(--grey); }
.kp-or { display: flex; align-items: center; gap: 24px; margin: 12px 0 16px; color: var(--grey); font: 500 12px/16px var(--fh); }
.kp-or::before, .kp-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kp-social { display: flex; justify-content: center; gap: 16px; }
.kp-social button { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(28,28,28,.1) !important; border-radius: 16px; transition: background-color .15s, scale .1s; }
.kp-social button:hover { background: #f5f5f5; }
.kp-social button:active, .kp-social button.hit { scale: .94; background: #f0eaff; }
.kp-social svg { display: block; width: 22px; height: 22px; }
/* bottom */
.kp-foot { flex: none; padding: 16px 20px 28px; border-top: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.kp-foot--plain { border: 0; box-shadow: none; }
.kp-foot--plain p { margin-bottom: 16px; color: var(--grey); font: 400 13px/20px var(--fh); text-align: center; }
.kp-foot--nav { padding-bottom: 16px; }
.kp-link { color: var(--pur); font-weight: 500; }
.kp-btn, .kp-outline { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; height: 56px; border-radius: 13px !important; font: 600 16px/24px var(--fh) !important; text-align: center !important; transition: opacity .2s, scale .1s, background-color .15s; }
.kp .kp-btn { background: var(--pur); color: #fff; }
.kp .kp-btn:disabled { opacity: .4; cursor: default; }
.kp-btn:active:enabled, .kp-btn.hit, .kp-outline:active, .kp-outline.hit { scale: .98; }
.kp .kp-btn:hover:enabled { background: #8047f5; }
.kp .kp-outline { border: 3px solid var(--pur); color: var(--pur); }
.kp .kp-outline:hover { background: #f7f3ff; }
.kp-btn.busy { color: transparent !important; position: relative; }
.kp-btn.busy::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: kp-spin .7s linear infinite; }
@keyframes kp-spin { to { rotate: 360deg; } }
/* home */
.kp-banner { position: relative; height: 166px; overflow: hidden; border-radius: 16px; background: #111; }
.kp-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kp-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, #000); }
.kp-banner div { position: absolute; z-index: 1; inset-inline: 16px; bottom: 14px; color: #fff; }
.kp-banner b { display: block; font: 500 16px/28px var(--fh); white-space: nowrap; }
.kp-banner i { display: block; font-size: 14px; font-weight: 400; opacity: .55; }
.kp-dots { display: flex; justify-content: center; gap: 8px; margin: 8px 0 24px; }
.kp-dots s { width: 8px; height: 4px; border-radius: 4px; background: var(--line); }
.kp-dots s:first-child { width: 32px; background: var(--ink); }
.kp-sec { margin-bottom: 20px !important; font: 500 14px/20px var(--fh); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.kp[dir="rtl"] .kp-sec { letter-spacing: 0; }
.kp-tiles { display: grid; grid-template-columns: repeat(3, 98px); justify-content: space-between; row-gap: 20px; margin-bottom: 24px; }
.kp .kp-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 98px; padding-top: 15px; border: 1px solid rgba(230,230,230,.7); border-radius: 14px; font-size: 12px; line-height: 16px; text-align: center; transition: background-color .15s, scale .1s; }
.kp .kp-tile:hover { background: #fafafa; }
.kp-tile:active, .kp-tile.hit { scale: .96; }
.kp-tile b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
.kp-nav { display: grid; flex: none; grid-template-columns: repeat(4, 1fr); padding: 14px 16px 22px; border-top: 1px solid var(--line); background: #fff; }
.kp-nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 500 10px/16px var(--fh); text-align: center; white-space: nowrap; cursor: default; }
.kp-nav [data-nav="home"], .kp-nav [data-nav="students"] { cursor: pointer; }
.kp-nav .on .ki { color: var(--pur); }
.kp-nav .on::before { content: ""; position: absolute; top: -15px; width: 56px; height: 2px; background: var(--pur); }
.kp-nav em { position: absolute; top: -2px; left: 50%; margin-left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #f15a61; color: #fff; font: 700 8px/16px var(--fb); text-align: center; }
/* lists */
.kp-search { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px; border-radius: 10px; background: #f5f5f5; color: var(--grey); font-size: 16px; font-weight: 400; }
.kp-search .ki { color: var(--ink); }
.kp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 16px var(--fb); }
.kp-sub { margin: 24px 0 !important; font: 500 14px/20px var(--fh); }
.kp-let { margin-bottom: 16px !important; color: var(--grey); font: 500 14px/20px var(--fh); }
.kp-cap { margin: 0 0 12px !important; color: var(--grey); font: 500 11px/16px var(--fh); letter-spacing: 2px; text-transform: uppercase; }
.kp[dir="rtl"] .kp-cap { letter-spacing: 0; }
.kp-list { display: flex; flex-direction: column; gap: 16px; }
.kp .kp-row { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 14px 16px; border: 1px solid rgba(230,230,230,.8); border-radius: 8px; background: #fff; transition: border-color .15s; }
.kp .kp-row[hidden] { display: none; }
.kp .kp-pick:hover { border-color: #cdb8ff; }
.kp .kp-pick.sel { padding: 13px 15px; border: 2px solid var(--pur); background: linear-gradient(to right, transparent, rgba(144,88,255,.2)); }
.kp[dir="rtl"] .kp-pick.sel { background: linear-gradient(to left, transparent, rgba(144,88,255,.2)); }
.kp-row > img, .kp-chosen > img { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.kp-txt { flex: 1; min-width: 0; }
.kp-txt b { display: block; font: 500 14px/20px var(--fh); }
.kp[dir="rtl"] .kp-txt b[dir="ltr"] { text-align: end; }
.kp-txt > i { display: block; color: var(--grey); font-size: 12px; line-height: 16px; }
.kp-av { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--grey); font-size: 20px; }
.kp-av.c { border: 0; border-radius: 8px; background: #17c14f; color: #fff; }
.kp-chev { flex: none; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-inline-end: 2px solid var(--ink); rotate: 45deg; }
.kp[dir="rtl"] .kp-chev { rotate: -45deg; }
.kp-radio { position: relative; flex: none; width: 24px; height: 24px; border: 2px solid var(--pur); border-radius: 50%; }
.kp-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--pur); scale: 0; transition: scale .18s cubic-bezier(.3,1.5,.5,1); }
.sel > .kp-radio { border-width: 6px; background: #fff; }
.sel > .kp-radio::after { display: none; }
.kp-mine.new { animation: kp-new 1.4s ease; }
@keyframes kp-new { 0%, 40% { background: #efe8ff; } 100% { background: #fff; } }
.kp-tabs { display: flex; flex: none; gap: 24px; padding: 16px 20px 0; border-bottom: 1px solid var(--line); color: var(--grey); font: 500 14px/24px var(--fh); white-space: nowrap; }
.kp-tabs span { padding-bottom: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.kp-tabs .on { border-color: var(--pur); color: var(--ink); }
.kp-tabs--in { padding: 0; margin-bottom: 20px; }
.kp-tabs--in .on { border-color: var(--ink); }
.kp-tabs--in span { padding-bottom: 10px; }
.kp-search--in { margin-bottom: 20px; }
.kp-search--in:focus-within { box-shadow: inset 0 0 0 2px var(--pur); }
.kp-chosen { display: flex; flex: none; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
/* checkout */
.kp-logo { display: grid; flex: none; place-items: center; width: 32px; }
.kp-logo img { display: block; max-width: 32px; }
.kp .kp-outline[data-newcard] { margin-top: 16px; }
.kp .kp-outline[hidden] { display: none; }
.kp-total { flex: none; padding: 14px 20px; background: #f5f5f5; }
.kp-total p { display: flex; justify-content: space-between; }
.kp-total p:first-child { font: 500 14px/20px var(--fh); }
.kp-total p:first-child b { font-weight: 500; }
.kp-total p + p { margin-top: 4px; color: var(--grey); font-size: 12px; line-height: 16px; }
/* veil and sheets */
.kp-veil { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--pur); color: #fff; font-size: 14px; opacity: 0; visibility: hidden; transition: opacity .22s, visibility 0s .22s; }
.kp-veil.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.kp-veil u { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: kp-spin .7s linear infinite; }
.kp-scrim { position: absolute; z-index: 4; inset: 0; background: rgba(14,14,14,.55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.has-sheet .kp-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
.kp-sheet { position: absolute; z-index: 5; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 40px 28px 34px; border-radius: 24px 24px 0 0; background: #fff; text-align: center; translate: 0 104%; transition: translate .36s cubic-bezier(.2,.8,.2,1); }
.kp-sheet.on { translate: 0 0; }
.kp-sheet h5 { margin: 16px 0 28px; font: 500 20px/28px var(--fh); }
.kp-seal { width: 72px; height: 72px; }
.kp-sheet--form { align-items: stretch; padding: 24px 20px 28px; text-align: start; }
.kp-sheethead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.kp-sheethead h5 { margin: 0; }
.kp-sheethead button { width: 28px; font-size: 26px; line-height: 28px; text-align: center; }
/* the iPhone 14 Pro body */
.kf { position: absolute; top: 0; left: 0; width: 397px; padding: 11px; border-radius: 58px; background: #0b0b0c; box-shadow: inset 0 0 0 2px #4a4a4e, inset 0 0 0 4px #161617; transform-origin: 0 0; }
.kf .kp { display: block; isolation: isolate; }
.kf-island { position: absolute; z-index: 8; top: 22px; left: 50%; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000; }
.kf-bar { position: absolute; z-index: 8; bottom: 19px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 5px; background: #0e0e0e; }
.kf-b { position: absolute; width: 3px; border-radius: 2px; background: #3a3a3d; }
.kf-silent, .kf-up, .kf-down { left: -3px; border-radius: 2px 0 0 2px; }
.kf-silent { top: 118px; height: 30px; }
.kf-up { top: 176px; height: 60px; }
.kf-down { top: 250px; height: 60px; }
.kf-power { top: 206px; right: -3px; height: 96px; border-radius: 0 2px 2px 0; }
/* the animated flows */
.kd { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 56px; margin: 24px 0 0; padding: 40px 0 24px; overflow: hidden; border-radius: 10px; background: #9058ff; }
.kd-fit { position: relative; }
.page .kd figcaption { flex: 0 0 100%; margin: -10px 0 0; padding: 0 24px; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.4; text-align: center; }
.kd--flip { flex-direction: row-reverse; }
.kd-steps { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 250px; color: rgba(255,255,255,.6); font: 500 17px/24px 'Figtree', sans-serif; }
.kd-steps span { padding: 4px 14px; border-radius: 99px; transition: background-color .25s, color .25s; }
.kd-steps .on { background: #fff; color: #9058ff; }
.page .kd-steps h6 { margin: 12px 0 2px 14px; color: #fff; font: 500 12px/16px 'Figtree', sans-serif; letter-spacing: .02em; }
.kd-steps h6:first-child { margin-top: 0 !important; }
.kd--two { gap: 20px 30px; }
.kd--two .kd-steps { width: 210px; }
.kd--two .kd-steps span { padding-inline: 12px; font-size: 15px; }
.page .kd--two .kd-steps h6 { margin-left: 12px; }
.kp-ring { position: absolute; z-index: 3; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1200px rgba(14,14,14,.42); opacity: 0; pointer-events: none; transition: opacity .24s; }
.kp-ring.on { opacity: 1; }
@media (max-width: 760px) {
  .kd--two { gap: 16px 12px; }
  .kd--two .kd-steps { order: -1; flex: 0 0 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; padding: 0 12px; }
  .kd--two .kd-steps h6 { display: none; }
  .kd--two .kd-steps span { font-size: 13px; line-height: 20px; }
  .kd--side, .kd--flip { flex-direction: column; }
  .kd--side .kd-steps { align-items: center; width: auto; }
}
/* the cover */
.kc { position: absolute; z-index: 1; inset: 0; overflow: hidden; border-radius: inherit; background: #9058ff; opacity: 0; }
.kc.on { opacity: 1; }
.kc-stage { position: absolute; top: 0; left: 0; width: 1000px; height: 523px; transform-origin: 0 0; }
.kc-ph { position: absolute; top: 18px; left: 369px; width: 397px; height: 738px; transform: scale(.66); transform-origin: 0 0; }
.kc-en { position: absolute !important; top: 11px; left: 11px; transition: clip-path 1.1s cubic-bezier(.65,0,.35,1); }
.kc-seam { position: absolute; z-index: 9; top: 11px; left: 11px; bottom: 11px; width: 0; opacity: 0; transition: translate 1.1s cubic-bezier(.65,0,.35,1), opacity .25s; }
.kc-seam.on { opacity: 1; }
.kc-seam::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: #9058ff; }
.kc-seam b { position: absolute; top: 50%; left: -24px; width: 48px; height: 48px; margin-top: -24px; border: 4px solid #fff; border-radius: 50%; background: #9058ff; box-shadow: 0 4px 14px rgba(14,14,14,.3); }
.kc-seam b::before, .kc-seam b::after { content: ""; position: absolute; top: 14px; width: 12px; height: 12px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; rotate: 45deg; }
.kc-seam b::before { left: 7px; }
.kc-seam b::after { right: 7px; rotate: 225deg; }
.kc-dot { position: absolute; z-index: 9; top: 0; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(14,14,14,.28); box-shadow: 0 2px 10px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: translate .55s cubic-bezier(.4,0,.2,1), opacity .2s, scale .12s; }
.kc-dot.live { opacity: 1; }
.kc-dot.press { scale: .72; }
.kc-word { position: absolute; top: 50%; width: 369px; margin-top: -32px; color: #fff; font: 500 52px/64px 'Figtree', 'IBM Plex Sans Arabic', sans-serif; letter-spacing: -.02em; text-align: center; opacity: .4; transition: opacity .5s; }
.kc-word:first-child { left: 0; }
.kc-word + .kc-word { right: 0; letter-spacing: 0; }
.kc-word.on { opacity: 1; }
.kc-still * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .kd *, .kc * { animation: none !important; } }
