/* Live two-phone demo embedded on the landing page (index.html). Transparent: the
   landing section behind the iframe provides the navy stage. */
:root { color-scheme: light; }
html, body { background: transparent !important; margin: 0; overflow: hidden; height: 100%; }
body { -webkit-font-smoothing: antialiased; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
#fit { position: absolute; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .4s; }
#stage.ready { opacity: 1; }

/* ---- chapter tabs ---- */
#tabs { position: absolute; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; }
.tab-btn {
  position: relative; overflow: hidden; height: 46px; min-width: 168px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(147, 197, 253, .28); background: rgba(255, 255, 255, .06); color: #A9B8DD;
  font: 700 16px/1 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: color .3s, background .3s, border-color .3s;
}
.tab-btn svg { width: 18px; height: 18px; }
.tab-btn.on { color: #fff; background: rgba(37, 99, 235, .28); border-color: rgba(147, 197, 253, .55); }
.tab-btn .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #60A5FA, #DBEAFE); }
.tab-btn:focus-visible, #pp:focus-visible { outline: 2px solid #93C5FD; outline-offset: 3px; }
#pp {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(147, 197, 253, .28); background: rgba(255, 255, 255, .06);
  color: #DBEAFE; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
#pp svg { width: 18px; height: 18px; }

/* ---- phones ---- */
.side-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 800 13px/1 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #93C5FD;
  padding: 9px 14px; border-radius: 999px; background: rgba(59, 130, 246, .14); border: 1px solid rgba(147, 197, 253, .28);
}
.side-chip svg { width: 15px; height: 15px; }
.slot { position: absolute; }
.slot .phone-wrap { left: 0 !important; top: 0 !important; }
.slot-shadow { position: absolute; border-radius: 80px; background: rgba(0, 0, 0, .55); filter: blur(40px); }
.slot-glow { position: absolute; border-radius: 120px; background: radial-gradient(closest-side, rgba(37, 99, 235, .45), transparent); }
.layers { position: absolute; inset: 0; background: #000; }
.layer { position: absolute; inset: 0; will-change: transform, opacity; }
.layer.full > .scr { position: absolute; inset: 0; }

/* ---- step lists ---- */
.steps { position: absolute; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; align-items: flex-start; gap: 12px; color: rgba(169, 184, 221, .55); transition: color .35s, opacity .35s; }
.steps.right .step { flex-direction: row-reverse; text-align: right; }
.step .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 800 13px/1 'Plus Jakarta Sans', sans-serif; border: 1.5px solid rgba(147, 197, 253, .3); color: rgba(169, 184, 221, .7);
  transition: background .35s, border-color .35s, color .35s;
}
.step .t { font: 600 17px/1.35 'Inter', sans-serif; letter-spacing: -.01em; padding-top: 3px; }
.step.on { color: #fff; }
.step.on .n { background: #2563EB; border-color: #60A5FA; color: #fff; box-shadow: 0 0 18px rgba(59, 130, 246, .7); }
.step.done { color: rgba(219, 234, 254, .8); }
.step.done .n { background: rgba(59, 130, 246, .25); border-color: rgba(147, 197, 253, .5); color: #DBEAFE; }
.cap {
  position: absolute; text-align: center; color: #fff; font: 700 20px/1.3 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -.01em; transition: opacity .3s;
}

/* ---- the link between the phones ---- */
#link { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }

/* ---- iOS pieces inside the phones (natural phone points) ---- */
.tapdot {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; z-index: 80; pointer-events: none;
  background: rgba(37, 99, 235, .22); border: 2.5px solid rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.nb {
  position: absolute; left: 8px; right: 8px; top: 54px; z-index: 46; border-radius: 22px; padding: 12px 14px 13px 12px;
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(246, 246, 248, .94); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22); font-family: 'Inter', sans-serif; color: #000;
}
.nb img { width: 38px; height: 38px; border-radius: 9px; flex: none; margin-top: 1px; }
.nb .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.25px; line-height: 20px; }
.nb .h span { font-size: 13px; font-weight: 400; color: rgba(60, 60, 67, .6); }
.nb .m { font-size: 15px; line-height: 20px; letter-spacing: -.2px; color: #000; }
.dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); z-index: 60; }
.alert {
  position: absolute; left: 50%; top: 50%; width: 270px; margin-left: -135px; z-index: 61; border-radius: 14px; overflow: hidden;
  background: rgba(242, 242, 245, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); text-align: center; font-family: 'Inter', sans-serif;
}
.alert .at { padding: 19px 16px 2px; font-size: 17px; font-weight: 600; line-height: 22px; letter-spacing: -.4px; color: #000; }
.alert .am { padding: 2px 16px 19px; font-size: 13px; line-height: 17px; letter-spacing: -.08px; color: #000; }
.alert .ab { display: flex; border-top: .5px solid rgba(60, 60, 67, .3); }
.alert .ab span { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #007AFF; letter-spacing: -.4px; }
.alert .ab span + span { border-left: .5px solid rgba(60, 60, 67, .3); }
.alert .ab span.b { font-weight: 600; }
.kbd { position: absolute; left: 0; right: 0; bottom: 0; height: 292px; z-index: 30; background: #D1D3D9; padding: 6px 6px 0; }
.kbd .k {
  position: absolute; border-radius: 6px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .3); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-family: 'Inter', sans-serif; color: #000;
}
.kbd .k b { font-size: 25px; font-weight: 400; line-height: 28px; }
.kbd .k i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 2px; line-height: 12px; }
.kbd .k.fn { background: transparent; box-shadow: none; }
.kbd .k.press { background: #B5B8C1; }
.caret { display: inline-block; width: 2px; height: 30px; background: #2563EB; margin-left: 2px; vertical-align: -5px; }
.flash { animation: none; }
