/* iPhone install walkthrough (guides/install-esim-iphone): drawn iOS screens, auto-play, js/esim-demo.js */
.ei-demo { display: grid; gap: 22px; margin-block: 8px 18px; }
@media (min-width: 760px) { .ei-demo { grid-template-columns: 290px minmax(0, 1fr); align-items: start; gap: 34px; } }
.ei-stage { display: grid; justify-items: center; gap: 14px; }
.ei-phone { position: relative; width: 262px; height: 548px; border-radius: 44px; background: #15171c; padding: 9px; box-shadow: 0 22px 50px rgba(38, 42, 51, .28), inset 0 0 0 2px #2b2f38; }
.ei-island { position: absolute; z-index: 6; top: 17px; left: 50%; translate: -50% 0; width: 76px; height: 22px; border-radius: 14px; background: #000; }
.ei-home { position: absolute; z-index: 6; bottom: 14px; left: 50%; translate: -50% 0; width: 88px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .55); }
.ei-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F2F2F7; color: #111; font-family: -apple-system, "Readex Pro", system-ui, sans-serif; font-size: 13px; }
.ei-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.ei-scene.on { opacity: 1; visibility: visible; }
.ei-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 6px; font-weight: 600; font-size: 12.5px; direction: ltr; }
.ei-nav { display: flex; justify-content: center; align-items: center; position: relative; padding: 14px 16px 12px; }
.ei-nav strong { font-size: 14px; }
.ei-back { position: absolute; inset-inline-start: 14px; color: #1a6fe0; font-size: 12.5px; }
.ei-big { font-size: 26px; font-weight: 700; padding: 14px 18px 10px; }
.ei-grp { background: #fff; border-radius: 12px; margin: 6px 14px 12px; overflow: hidden; }
.ei-cap { padding: 6px 28px 2px; font-size: 11px; color: #6c6c70; text-transform: uppercase; letter-spacing: .02em; }
.ei-row { position: relative; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid #ececf0; }
.ei-row:last-child { border-bottom: 0; }
.ei-row > span { flex: 1; }
.ei-row em { font-style: normal; color: #8a8a8e; font-size: 12.5px; }
.ei-row.link > span { color: #1a6fe0; }
.ei-chev { width: 7px; height: 7px; border-block-start: 2px solid #c4c4c8; border-inline-end: 2px solid #c4c4c8; rotate: 45deg; }
[dir="rtl"] .ei-chev { rotate: -135deg; }
.ei-tog { position: relative; width: 38px; height: 23px; border-radius: 23px; background: #d9d9de; flex: none; direction: ltr; transition: background .4s; }
.ei-tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: translate .4s; }
.ei-tog.on { background: #34c759; }
.ei-tog.on::after { translate: 15px 0; }
.ei-chk { color: #1a6fe0; font-weight: 700; }
.ei-scene.on .ei-row.hl { animation: ei-hl 1.4s ease 1.1s 2 both; }
@keyframes ei-hl { 0%, 100% { background: transparent; } 40%, 60% { background: #dbe8fb; } }
.ei-tap { position: absolute; inset-inline-end: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: rgba(26, 111, 224, .35); border: 2px solid #1a6fe0; opacity: 0; pointer-events: none; }
.ei-scene.on .ei-tap { animation: ei-tap 1.2s ease 1.5s 2 both; }
@keyframes ei-tap { 0% { opacity: 0; scale: 1.8; } 35% { opacity: 1; scale: 1; } 70% { opacity: 1; scale: .8; } 100% { opacity: 0; scale: 1.5; } }
.ei-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.ei-sheet { position: absolute; inset-inline: 0; bottom: 0; background: #F2F2F7; border-radius: 26px 26px 0 0; padding: 18px 0 38px; text-align: center; box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
.ei-scene.on .ei-sheet { animation: ei-up .5s ease both; }
.ei-sheet > strong { display: block; font-size: 16px; margin-block: 8px 12px; }
.ei-sheet .ei-grp { text-align: start; }
.ei-sim { width: 44px; height: 44px; margin: 0 auto; border-radius: 12px; background: linear-gradient(135deg, #1a6fe0, #1557b3); position: relative; }
.ei-sim::after { content: ""; position: absolute; inset: 11px 13px; border-radius: 3px; border: 2px solid rgba(255, 255, 255, .85); }
@keyframes ei-up { from { translate: 0 40px; opacity: .3; } to { translate: 0 0; opacity: 1; } }
.ei-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 4px 24px 16px; color: #6c6c70; font-size: 12.5px; }
.ei-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c9c9ce; border-top-color: #1a6fe0; animation: ei-rot 1s linear infinite; }
@keyframes ei-rot { to { rotate: 360deg; } }
.ei-btn { position: relative; margin: 0 24px; padding: 12px; border-radius: 12px; background: #1a6fe0; color: #fff; font-weight: 600; }
.ei-btn .ei-tap { background: rgba(255, 255, 255, .35); border-color: #fff; }
.ei-cam { position: absolute; inset: 0; background: #0c0d10; color: #fff; text-align: center; }
.ei-cam .ei-bar { color: #fff; }
.ei-viewfinder { position: relative; width: 168px; height: 168px; margin: 72px auto 18px; padding: 18px; background: #fff; border-radius: 10px; }
.ei-viewfinder svg { width: 100%; height: 100%; display: block; }
.ei-viewfinder i { position: absolute; width: 26px; height: 26px; border: 3px solid #ffd60a; }
.ei-c1 { top: -8px; left: -8px; border-right: 0 !important; border-bottom: 0 !important; border-radius: 10px 0 0 0; }
.ei-c2 { top: -8px; right: -8px; border-left: 0 !important; border-bottom: 0 !important; border-radius: 0 10px 0 0; }
.ei-c3 { bottom: -8px; left: -8px; border-right: 0 !important; border-top: 0 !important; border-radius: 0 0 0 10px; }
.ei-c4 { bottom: -8px; right: -8px; border-left: 0 !important; border-top: 0 !important; border-radius: 0 0 10px 0; }
.ei-scanline { position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 3px; background: #34c759; box-shadow: 0 0 12px #34c759; animation: ei-scan 1.8s ease-in-out infinite alternate; }
@keyframes ei-scan { from { top: 8px; } to { top: calc(100% - 11px); } }
.ei-cam p { margin: 0 0 6px; font-size: 13px; color: #d7d8de; }
.ei-manual { display: inline-block; margin-top: 150px; color: #ffd60a; font-size: 13px; }
.ei-sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; margin-inline-end: 2px; }
.ei-sig i { width: 3px; background: #111; border-radius: 1px; }
.ei-sig i:nth-child(1) { height: 3px; } .ei-sig i:nth-child(2) { height: 5px; } .ei-sig i:nth-child(3) { height: 7px; } .ei-sig i:nth-child(4) { height: 10px; }
.ei-ok { display: grid; justify-items: center; gap: 8px; margin-top: 70px; }
.ei-okring { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: #34c759; color: #fff; font-size: 38px; font-weight: 700; }
.ei-scene.on .ei-okring { animation: ei-pop .6s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
@keyframes ei-pop { from { scale: .3; opacity: 0; } to { scale: 1; opacity: 1; } }
.ei-ok strong { font-size: 18px; }
.ei-ok span { color: #6c6c70; }
.ei-ctrl { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 262px; direction: ltr; }
.ei-play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ei-play svg { width: 18px; height: 18px; fill: currentColor; }
.ei-play .ei-i-play { display: none; }
.ei-demo.is-paused .ei-i-play { display: block; }
.ei-demo.is-paused .ei-i-pause { display: none; }
.ei-bars { flex: 1; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ei-bars i { display: block; height: 100%; width: 0; background: var(--blue); }
.ei-bars i.run { animation: ei-fill var(--dur, 4.5s) linear forwards; }
.ei-demo.is-paused .ei-bars i.run { animation-play-state: paused; }
@keyframes ei-fill { to { width: 100%; } }
.ei-count { font-size: 12.5px; color: var(--muted); min-width: 30px; text-align: end; }
.ei-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ei; }
.ei-steps li { counter-increment: ei; }
.ei-steps button { all: unset; box-sizing: border-box; width: 100%; display: grid; gap: 2px; padding: 10px 14px; padding-inline-start: 52px; position: relative; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .25s, background .25s; }
.ei-steps button::before { content: counter(ei); position: absolute; inset-inline-start: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--seg); color: var(--ink); }
.ei-steps b { font-size: 15px; line-height: 1.6; }
.ei-steps span { font-size: 13.5px; line-height: 1.75; color: var(--muted); display: none; }
.ei-steps li.on button { border-color: var(--blue); background: var(--sel-bg); }
.ei-steps li.on button::before { background: var(--blue); color: #fff; }
.ei-steps li.on span { display: block; }
.ei-steps button:focus-visible, .ei-play:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* two-way tabs */
.ei-tabs { display: grid; gap: 10px; margin-block: 6px 16px; }
@media (min-width: 640px) { .ei-tabs { grid-template-columns: 1fr 1fr; } }
.ei-tabs button { all: unset; box-sizing: border-box; display: grid; gap: 3px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.ei-tabs button b { font-size: 15px; line-height: 1.5; }
.ei-tabs button span { font-size: 13px; line-height: 1.7; color: var(--muted); }
.ei-tabs button[aria-selected="true"] { border-color: var(--blue); background: var(--sel-bg); }
.ei-tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ei-demo[hidden] { display: none; }

/* Mail app: inbox + the opened Pinglo e-mail */
.ei-mlist { margin-top: 4px; }
.ei-mrow { position: relative; display: flex; gap: 8px; padding: 12px 14px 12px 8px; border-bottom: 1px solid #e3e3e8; background: #fff; align-items: flex-start; }
.ei-mrow.dim { opacity: .55; }
.ei-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: transparent; }
.ei-dot.on { background: #1a6fe0; }
.ei-mtxt { flex: 1; min-width: 0; }
.ei-mtop { display: flex; justify-content: space-between; gap: 8px; }
.ei-mtop b { font-size: 13.5px; }
.ei-mtop em { font-style: normal; color: #8a8a8e; font-size: 11.5px; }
.ei-msub { font-size: 12.5px; line-height: 1.5; margin-top: 1px; font-weight: 600; }
.ei-mprev { font-size: 12px; line-height: 1.5; color: #8a8a8e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ei-mrow .ei-tap { inset-inline-end: 12px; top: 50%; }
.ei-scene.on .ei-mrow.hl { animation: ei-hl 1.4s ease 1.1s 2 both; }
.ei-mailnav { padding: 6px 14px 4px; }
.ei-mail { position: absolute; inset-inline: 0; top: 72px; bottom: 0; overflow: hidden; background: #f6f5f1; padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.ei-mhead { display: grid; gap: 4px; justify-items: center; text-align: center; }
.ei-mlogo { font-weight: 800; font-size: 15px; color: #1557b3; letter-spacing: .01em; }
.ei-pill { font-size: 10px; font-weight: 700; color: #0f7a48; background: #e7f5ee; border: 1px solid #c4e8d6; border-radius: 999px; padding: 3px 9px; }
.ei-mhead strong { font-size: 15px; line-height: 1.35; }
.ei-msmart { font-size: 10.5px; color: #0f7a48; background: #e7f5ee; border-radius: 9px; padding: 4px 9px; }
.ei-ecard { display: grid; justify-items: center; gap: 4px; background: #fff; border: 1px solid #e3e0d8; border-radius: 16px; padding: 10px 12px 12px; }
.ei-ecard > small { font-size: 10.5px; font-weight: 700; color: #1557b3; }
.ei-escan { font-weight: 400 !important; color: #8a8a8e !important; text-align: center; line-height: 1.5; }
.ei-eqr { position: relative; width: 112px; height: 112px; padding: 5px; background: #fff; border: 1px solid #e3e0d8; border-radius: 10px; }
.ei-eqr svg { width: 100%; height: 100%; display: block; }
.ei-eqr.big { width: 118px; height: 118px; margin-block: 4px; }
.ei-ebtn { position: relative; width: 100%; text-align: center; font-size: 12px; font-weight: 700; color: #fff; background: #1a6fe0; border-radius: 11px; padding: 9px 6px; margin-top: 3px; }
.ei-ebtn.alt { background: #fff; color: #1557b3; border: 1px solid #e3e0d8; margin-top: 0; }
.ei-ebtn .ei-tap { inset-inline-end: 14px; background: rgba(255, 255, 255, .35); border-color: #fff; }
.ei-eview { text-align: center; font-size: 11px; font-weight: 700; color: #1557b3; border: 1px solid #e3e0d8; border-radius: 10px; background: #fff; padding: 7px; }
.ei-callout { position: absolute; z-index: 3; top: 50%; inset-inline-start: calc(100% + 6px); translate: 0 -50%; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 10.5px; font-weight: 700; color: #fff; background: #e0453a; border-radius: 8px; padding: 4px 8px; opacity: 0; }
.ei-callout i { position: absolute; inset-inline-end: 100%; top: 50%; translate: 0 -50%; border: 5px solid transparent; border-inline-end-color: #e0453a; }
[dir="rtl"] .ei-callout i { border-inline-end-color: transparent; border-inline-start-color: #e0453a; }
.ei-callout.b { top: auto; bottom: 100%; inset-inline-start: 50%; translate: -50% -4px; }
.ei-callout.b i { inset-inline-end: auto; top: 100%; left: 50%; translate: -50% 0; border-color: transparent; border-top-color: #e0453a; }
[dir="rtl"] .ei-callout.b i { border-inline-start-color: transparent; }
.ei-scene.on .ei-callout { animation: ei-call .6s ease .9s both; }
@keyframes ei-call { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
/* e-mail card is narrow in the phone: put the QR callout above the QR so it never leaves the screen */
.ei-ecard .ei-eqr .ei-callout, .ei-lbody .ei-eqr .ei-callout { top: -8px; inset-inline-start: 50%; translate: -50% -100%; }
.ei-ecard .ei-eqr .ei-callout i, .ei-lbody .ei-eqr .ei-callout i { inset-inline-end: auto; top: 100%; left: 50%; translate: -50% 0; border-color: transparent; border-top-color: #e0453a; }
[dir="rtl"] .ei-ecard .ei-eqr .ei-callout i, [dir="rtl"] .ei-lbody .ei-eqr .ei-callout i { border-inline-start-color: transparent; }

/* callouts must not cover text: on the computer screen the QR label sits under the QR, and the e-mail's button label gets room */
.ei-lbody .ei-eqr .ei-callout { top: auto; bottom: -6px; translate: -50% 100%; }
.ei-lbody .ei-eqr .ei-callout i, [dir="rtl"] .ei-lbody .ei-eqr .ei-callout i { top: auto; bottom: 100%; border-color: transparent; border-bottom-color: #e0453a; }
.ei-lbody small { margin-top: 36px; }
.ei-escan { margin-bottom: 16px; }
.ei-ebtn .ei-callout.b { translate: -50% -6px; }

/* second screen (computer) */
.ei-second { position: absolute; inset: 0; background: #1b1d22; color: #fff; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 0 12px; }
.ei-sec-tag { font-size: 11px; font-weight: 700; color: #ffd60a; letter-spacing: .02em; }
.ei-laptop { width: 100%; background: #fff; color: #111; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.ei-lbar { display: flex; gap: 4px; padding: 7px 9px; background: #e9e9ee; }
.ei-lbar i { width: 7px; height: 7px; border-radius: 50%; background: #c4c4c9; }
.ei-lbody { display: grid; justify-items: center; gap: 4px; padding: 12px 10px 14px; text-align: center; }
.ei-lbody strong { font-size: 13px; }
.ei-lbody small { font-size: 10px; color: #6c6c70; line-height: 1.5; }
.ei-lbase { width: 78%; height: 7px; border-radius: 0 0 10px 10px; background: #3a3d45; margin-top: -10px; }

@media (prefers-reduced-motion: reduce) {
  .ei-scene.on .ei-callout { animation: none; opacity: 1; }
  .ei-scene.on .ei-mrow.hl { animation: none; }
  .ei-scene, .ei-tog, .ei-tog::after { transition: none; }
  .ei-scene.on .ei-row.hl, .ei-scene.on .ei-tap, .ei-scene.on .ei-sheet, .ei-scanline, .ei-scene.on .ei-okring { animation: none; }
  .ei-scene.on .ei-tap { opacity: 1; }
  .ei-spin { animation-duration: 3s; }
}
