/* 📲 Add to Home Screen guide (js/install.js). Lives inside .ob (css/onboard.css) for its colors and
   fonts. The demo device is drawn at fixed sizes (iPhone screen 180×380, iPad 380×270) so the touch dot's
   stops line up with the buttons; one 12 s loop, four 3 s scenes, steps light up on the same clock.
   Moves only with transform and opacity. */
.ig-overlay { z-index: 60; }
.ig { animation: ob-in .35s ease-out both; }
.ig-cols { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.ig-side { flex: 1 1 360px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 18px; }

/* the steps, lit in turn with the demo */
.ig-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ig-steps li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; border-radius: 22px; }
.ig-steps li::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 0 5px 0 var(--ink); opacity: 0; animation: ig-lit 12s linear infinite; z-index: -1; }
.ig-steps li { z-index: 0; }
.ig-steps li:nth-child(2)::before { animation-delay: 3s; }
.ig-steps li:nth-child(3)::before { animation-delay: 6s; }
.ig-steps li:nth-child(4)::before { animation-delay: 9s; }
.ig-steps i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--f-display); font-size: 21px; color: #fff; background: var(--pink); border: 3px solid var(--ink); }
.ig-steps li:nth-child(2) i { background: var(--cyan); }
.ig-steps li:nth-child(3) i { background: var(--violet); }
.ig-steps li:nth-child(4) i { background: var(--green); }
.ig-steps b { display: block; font-weight: 900; font-size: 21px; line-height: 1.2; }
.ig-steps span { display: block; font-weight: 700; font-size: 16px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
@keyframes ig-lit { 0%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }

/* App Store soon */
.ig-soon { display: flex; gap: 12px; align-items: flex-start; background: #fff8ee; border: 3px dashed #c9bfae; border-radius: 20px; padding: 12px 16px; }
.ig-soon em { flex: none; font-style: normal; font-weight: 900; font-size: 14px; color: #fff; background: var(--ink); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.ig-soon span { font-weight: 700; font-size: 15px; color: var(--muted); line-height: 1.4; }

/* not in Safari */
.ig-browser { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; background: #fff3c4; border: 3px solid var(--ink); border-radius: 20px; padding: 12px 16px; }
.ig-browser b { flex: 1 1 260px; font-weight: 900; font-size: 17px; line-height: 1.35; }

/* "You're all set": the small card */
.ig-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 30px; background: #fff; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink); padding: 16px 20px; }
.ig-card > div { flex: 1 1 280px; }
.ig-card b { font-weight: 900; font-size: 20px; }
.ig-card p { margin: 2px 0 0; font-weight: 700; font-size: 15px; color: var(--muted); line-height: 1.4; }
.ig-card-ic img { display: block; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 3px var(--ink); }

/* ☁️ sheet button */
.acct-install { width: 100%; margin-top: 10px; }

/* ---- the demo device ---- */
.ig-demo { flex: none; }
.ig-dev { background: var(--ink); border-radius: 36px; padding: 9px; box-shadow: 0 10px 0 rgba(29, 34, 51, .25); transform: rotate(-2deg); }
.ig-scr { position: relative; width: 180px; height: 380px; border-radius: 28px; overflow: hidden; background: #fdfbf7; isolation: isolate; }
.ig-pad .ig-dev { border-radius: 26px; padding: 12px; transform: rotate(-1deg); }
.ig-pad .ig-scr { width: 380px; height: 270px; border-radius: 14px; }
.ig-scr img { display: block; }
.ig-scr b, .ig-scr span, .ig-scr small { font-family: var(--f-body); }

/* Safari with Inkpop open */
.ig-page { position: absolute; inset: 0; }
.ig-site { position: absolute; left: 0; right: 0; top: 0; bottom: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  background-image: linear-gradient(rgba(220, 70, 70, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 70, 70, .10) 1px, transparent 1px); background-size: 30px 30px; }
.ig-pad .ig-site { top: 32px; bottom: 0; }
.ig-splat { position: absolute; width: 96px; height: 90px; border-radius: 46% 54% 50% 50%; background: #ff3d7f; opacity: .9; top: 50%; left: 50%; transform: translate(-50%, -92%) rotate(-12deg); }
.ig-site img { position: relative; width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--ink); }
.ig-site > b { position: relative; font-family: var(--f-display); font-weight: 400; font-size: 30px; }
.ig-site > b span { color: var(--pink); font-family: inherit; }
.ig-site > i { width: 110px; height: 10px; border-radius: 5px; background: #e8e1d6; }
.ig-site > i + i { width: 76px; background: var(--yellow); height: 18px; border-radius: 9px; border: 2px solid var(--ink); }

.ig-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: rgba(246, 244, 240, .96); border-top: 1px solid #ddd5c8; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; box-sizing: border-box; }
.ig-bar .ig-pill { font-style: normal; font-size: 9px; font-weight: 800; color: #555; background: #fff; border-radius: 8px; padding: 3px 0; width: 150px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ig-tools { display: flex; width: 100%; justify-content: space-around; margin-top: 4px; }
.ig-bar b { width: 36px; text-align: center; font-weight: 900; font-size: 14px; color: #2a7cf6; line-height: 20px; height: 20px; display: grid; place-items: center; }
.ig-bar svg { width: 18px; height: 18px; color: #2a7cf6; }
/* Safari 26 on iPhone: back, address, ••• in one row */
.ig-dots .ig-bar { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 0 6px; }
.ig-dots .ig-bar .ig-pill { width: 108px; padding: 6px 0; border-radius: 12px; }
.ig-dots .ig-bar b { width: 36px; font-size: 13px; letter-spacing: -1px; }
.ig-dots .ig-back { font-size: 22px !important; }
/* iPad: the toolbar is on top, Share at the top right */
.ig-pad .ig-bar { top: 0; bottom: auto; height: 32px; border-top: 0; border-bottom: 1px solid #ddd5c8; flex-direction: row; justify-content: flex-end; align-items: center; padding: 0 6px 0 0; }
.ig-pad .ig-bar .ig-pill { position: absolute; left: 120px; width: 140px; }
.ig-pad .ig-bar b { width: 28px; }
.ig-pad .ig-plus { font-size: 18px !important; }

/* Safari 26's ••• menu */
.ig-menu { position: absolute; right: 8px; bottom: 62px; width: 120px; background: #fff; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.22); overflow: hidden; opacity: 0; transform-origin: 90% 100%; animation: ig-menu 12s linear infinite; z-index: 3; }
.ig-menu span { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px; font-size: 11px; font-weight: 800; border-top: 1px solid #eee; }
.ig-menu span:first-child { border-top: 0; background: #eaf2ff; }
.ig-menu span:not(:first-child)::before { content: ""; width: 60px; height: 7px; border-radius: 4px; background: #e8e8e8; }
.ig-menu svg { width: 14px; height: 14px; color: #2a7cf6; }

.ig-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; animation: ig-dim 12s linear infinite; z-index: 2; }

/* the share sheet (iPhone: from the bottom; iPad: a popover under Share) */
.ig-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 210px; background: #f2f1f6; border-radius: 18px 18px 0 0; transform: translateY(105%); animation: ig-sheet 12s linear infinite; z-index: 4; }
.ig-pad .ig-sheet { left: auto; right: 8px; top: 38px; bottom: auto; width: 190px; height: 148px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transform-origin: 75% 0; animation-name: ig-pop; }
.ig-sh-head { display: flex; gap: 8px; align-items: center; height: 50px; padding: 0 12px; border-bottom: 1px solid #ddd; }
.ig-pad .ig-sh-head { height: 46px; }
.ig-sh-head img, .ig-dl-row img { width: 30px; height: 30px; border-radius: 8px; }
.ig-sh-head b, .ig-dl-row b { display: block; font-size: 11px; font-weight: 900; }
.ig-sh-head small, .ig-dl-row small { display: block; font-size: 9px; font-weight: 700; color: #888; }
.ig-sheet > span { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; margin: 0 10px; padding: 0 10px; font-size: 11px; font-weight: 800; border-bottom: 1px solid #e3e3e3; background: #fff; }
.ig-pad .ig-sheet > span { height: 34px; margin: 0; border-radius: 0; }
.ig-sheet > span:nth-of-type(1) { margin-top: 0; border-radius: 10px 10px 0 0; }
.ig-sheet > .ig-hit { border-radius: 0 0 10px 10px; border-bottom: 0; }
.ig-pad .ig-sheet > span:nth-of-type(1), .ig-pad .ig-sheet > .ig-hit { border-radius: 0; }
.ig-sheet svg { width: 16px; height: 16px; color: #1d2233; }
.ig-hit::after, .ig-add::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 194, 46, .55); box-shadow: inset 0 0 0 2px #e5a400; opacity: 0; animation: ig-hit 12s linear infinite; }
.ig-hit > b { position: relative; z-index: 1; }

/* Add to Home Screen */
.ig-dialog { position: absolute; left: 0; right: 0; top: 24px; bottom: 0; background: #f2f1f6; border-radius: 16px 16px 0 0; transform: translateY(105%); animation: ig-dialog 12s linear infinite; z-index: 5; }
.ig-pad .ig-dialog { left: 80px; right: 80px; top: 40px; bottom: auto; height: 170px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: scale(.92); opacity: 0; animation-name: ig-modal; }
.ig-dl-top { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px; }
.ig-pad .ig-dl-top { height: 36px; }
.ig-dl-top span { font-size: 9px; font-weight: 700; color: #2a7cf6; }
.ig-dl-top b { font-size: 9px; font-weight: 900; white-space: nowrap; }
.ig-add { position: relative; font-weight: 900 !important; padding: 3px 6px; border-radius: 8px; }
.ig-add::after { animation-name: ig-addhit; }
.ig-dl-row { display: flex; gap: 10px; align-items: center; margin: 6px 10px; padding: 10px; background: #fff; border-radius: 10px; }
.ig-dl-row img { width: 42px; height: 42px; border-radius: 10px; }
.ig-dl-tog { display: flex; justify-content: space-between; align-items: center; margin: 6px 10px; padding: 8px 10px; background: #fff; border-radius: 10px; font-size: 10px; font-weight: 800; }
.ig-dl-tog i { width: 28px; height: 16px; border-radius: 8px; background: #34c759; position: relative; }
.ig-dl-tog i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* the Home Screen */
.ig-home { position: absolute; inset: 0; z-index: 6; opacity: 0; animation: ig-home 12s linear infinite; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 46px; row-gap: 14px; padding: 36px 14px 0; align-content: start; justify-items: center;
  background: linear-gradient(160deg, #7a5cff, #19b6d6 55%, #2ec27e); }
.ig-pad .ig-home { grid-template-columns: repeat(6, 1fr); padding: 30px 20px 0; }
.ig-home > i { width: 32px; height: 32px; border-radius: 9px; background: hsl(var(--h) 70% 82% / .75); }
.ig-home > .ig-app { background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; height: auto; opacity: 0; transform: scale(0); animation: ig-app 12s linear infinite; }
.ig-app img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ig-app small { font-size: 8px; font-weight: 800; color: #fff; }

/* the touch dot */
.ig-touch { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 3px solid var(--ink); box-sizing: border-box; box-shadow: 0 0 0 4px rgba(255, 61, 127, .45); z-index: 10; opacity: 0; animation: ig-touch-phone 12s ease-in-out infinite; }
.ig-dots .ig-touch { animation-name: ig-touch-dots; }
.ig-pad .ig-touch { animation-name: ig-touch-pad; }

@keyframes ig-dim { 0%, 22% { opacity: 0; } 26%, 74% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes ig-sheet { 0%, 22% { transform: translateY(105%); } 27%, 47% { transform: none; } 51%, 100% { transform: translateY(105%); } }
@keyframes ig-pop { 0%, 22% { opacity: 0; transform: scale(.92); } 26%, 47% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: scale(.92); } }
@keyframes ig-hit { 0%, 37% { opacity: 0; } 39%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ig-dialog { 0%, 48% { transform: translateY(105%); opacity: 1; } 53%, 73% { transform: none; opacity: 1; } 77% { transform: none; opacity: 0; } 100% { transform: translateY(105%); opacity: 0; } }
@keyframes ig-modal { 0%, 49% { opacity: 0; transform: scale(.92); } 53%, 73% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: scale(.92); } }
@keyframes ig-addhit { 0%, 61% { opacity: 0; } 63%, 72% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes ig-home { 0%, 74% { opacity: 0; } 78%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ig-app { 0%, 79% { opacity: 0; transform: scale(0); } 84% { opacity: 1; transform: scale(1.18); } 87%, 89% { opacity: 1; transform: scale(1); } 91% { opacity: 1; transform: scale(.85); } 93%, 100% { opacity: 1; transform: scale(1); } }
@keyframes ig-menu { 0%, 9% { opacity: 0; transform: scale(.8); } 12%, 21% { opacity: 1; transform: none; } 24%, 100% { opacity: 0; transform: scale(.8); } }
/* touch stops (dot center minus 15px). iPhone: Share 90,364 · row 90,320 · Add 158,44 · icon 109,112 */
@keyframes ig-touch-phone {
  0% { opacity: 0; transform: translate(105px, 225px); }
  5% { opacity: 1; transform: translate(105px, 225px); }
  14% { transform: translate(75px, 349px); } 17% { transform: translate(75px, 349px) scale(.72); } 20%, 26% { opacity: 1; transform: translate(75px, 349px); }
  35% { transform: translate(75px, 305px); } 38% { transform: translate(75px, 305px) scale(.72); } 41%, 46% { transform: translate(75px, 305px); }
  57% { transform: translate(143px, 29px); } 61% { transform: translate(143px, 29px) scale(.72); } 64%, 68% { opacity: 1; transform: translate(143px, 29px); }
  72% { opacity: 0; transform: translate(143px, 29px); }
  80% { opacity: 0; transform: translate(94px, 97px); } 84% { opacity: 1; transform: translate(94px, 97px); }
  90% { transform: translate(94px, 97px) scale(.72); } 93% { opacity: 1; transform: translate(94px, 97px); } 98%, 100% { opacity: 0; transform: translate(94px, 97px); }
}
/* Safari 26: ••• 162,352 · Share in the menu 112,243, then as the iPhone */
@keyframes ig-touch-dots {
  0% { opacity: 0; transform: translate(105px, 225px); }
  3% { opacity: 1; transform: translate(105px, 225px); }
  8% { transform: translate(147px, 337px); } 10% { transform: translate(147px, 337px) scale(.72); } 12% { transform: translate(147px, 337px); }
  17% { transform: translate(97px, 228px); } 19% { transform: translate(97px, 228px) scale(.72); } 21%, 26% { opacity: 1; transform: translate(97px, 228px); }
  35% { transform: translate(75px, 305px); } 38% { transform: translate(75px, 305px) scale(.72); } 41%, 46% { transform: translate(75px, 305px); }
  57% { transform: translate(143px, 29px); } 61% { transform: translate(143px, 29px) scale(.72); } 64%, 68% { opacity: 1; transform: translate(143px, 29px); }
  72% { opacity: 0; transform: translate(143px, 29px); }
  80% { opacity: 0; transform: translate(94px, 97px); } 84% { opacity: 1; transform: translate(94px, 97px); }
  90% { transform: translate(94px, 97px) scale(.72); } 93% { opacity: 1; transform: translate(94px, 97px); } 98%, 100% { opacity: 0; transform: translate(94px, 97px); }
}
/* iPad: Share 330,16 · row 277,169 · Add 276,58 · icon 162,106 */
@keyframes ig-touch-pad {
  0% { opacity: 0; transform: translate(240px, 140px); }
  5% { opacity: 1; transform: translate(240px, 140px); }
  14% { transform: translate(315px, 1px); } 17% { transform: translate(315px, 1px) scale(.72); } 20%, 26% { opacity: 1; transform: translate(315px, 1px); }
  35% { transform: translate(262px, 154px); } 38% { transform: translate(262px, 154px) scale(.72); } 41%, 46% { transform: translate(262px, 154px); }
  57% { transform: translate(261px, 43px); } 61% { transform: translate(261px, 43px) scale(.72); } 64%, 68% { opacity: 1; transform: translate(261px, 43px); }
  72% { opacity: 0; transform: translate(261px, 43px); }
  80% { opacity: 0; transform: translate(147px, 91px); } 84% { opacity: 1; transform: translate(147px, 91px); }
  90% { transform: translate(147px, 91px) scale(.72); } 93% { opacity: 1; transform: translate(147px, 91px); } 98%, 100% { opacity: 0; transform: translate(147px, 91px); }
}

/* reduced motion: one still frame (the share sheet, Add to Home Screen marked), no lit steps */
@media (prefers-reduced-motion: reduce) {
  .ig, .ig *, .ig *::before, .ig *::after { animation: none !important; }
  .ig-dim { opacity: 1; }
  .ig-sheet { transform: none; opacity: 1; }
  .ig-hit::after { opacity: 1; }
  .ig-touch { opacity: 1; transform: translate(75px, 305px); }
  .ig-pad .ig-touch { transform: translate(262px, 154px); }
  .ig-steps li:nth-child(2)::before { opacity: 1; }
}

/* phones */
@media (max-width: 760px) {
  .ig-cols { gap: 26px; margin-top: 18px; }
  .ig-steps b { font-size: 19px; }
  .ig-steps li { padding: 10px 12px; }
}
@media (max-height: 520px) {
  .ig-cols { flex-wrap: nowrap; align-items: flex-start; }
}
