body.is-guide-open { overflow: hidden; overscroll-behavior: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.guide-open-button { min-width: 78px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; color: var(--sage); background: #fffefa; font-size: 12px; font-weight: 850; cursor: pointer; }
.guide-open-button::before { content: "?"; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-size: 11px; }
.guide-open-button:focus-visible { outline: 3px solid rgba(89,99,74,.34); outline-offset: 2px; }

.ig-layer { position: fixed; z-index: 150; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; overflow: hidden; display: grid; place-items: center; border: 0; padding: 18px; background: transparent; }
.ig-layer[hidden] { display: none; }
.ig-layer::backdrop { background: transparent; }
.ig-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(30,34,27,.7); backdrop-filter: blur(5px); }
.ig-card { position: relative; width: min(100%,440px); max-height: calc(100dvh - 36px); overflow: auto; border: 1px solid rgba(89,99,74,.12); border-radius: 26px; padding: 17px 20px 20px; color: var(--ink); background: #fffefa; box-shadow: 0 28px 80px rgba(21,24,19,.4); text-align: center; overscroll-behavior: contain; }
.ig-head { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ig-head > span { color: var(--olive); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.ig-close { width: 44px; height: 44px; display: grid; place-items: center; margin: -8px -9px 0 0; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-size: 26px; cursor: pointer; }
.ig-stage { position: relative; height: 210px; overflow: hidden; display: grid; place-items: center; margin-top: 4px; border: 1px solid #e0e3d8; border-radius: 20px; background: radial-gradient(circle at 78% 14%,rgba(221,231,127,.28),transparent 33%),linear-gradient(150deg,#f8f6ef,#eef1e7); }
.ig-replay { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; margin: 3px auto -1px; border: 0; color: var(--olive); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.ig-copy { min-height: 102px; display: grid; align-content: start; }
.ig-kicker { margin: 4px 0 4px; color: var(--olive); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.ig-copy h2 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.045em; word-break: keep-all; }
.ig-copy > p:last-child { max-width: 365px; margin: 9px auto 0; color: var(--muted); font-size: 13px; line-height: 1.6; word-break: keep-all; }
.ig-progress { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 7px 1px 13px; }
.ig-progress > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.ig-dots { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.ig-dots button { position: relative; width: 24px; height: 24px; border: 0; border-radius: 999px; padding: 0; background: transparent; cursor: pointer; transition: width .2s ease; }
.ig-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 999px; background: #cdd1c3; transform: translate(-50%,-50%); transition: width .2s ease,background-color .2s ease; }
.ig-dots button.is-current { width: 32px; }
.ig-dots button.is-current::before { width: 24px; background: var(--sage); }
.ig-actions { display: grid; grid-template-columns: auto auto minmax(130px,1fr); gap: 8px; }
.ig-layer[data-step-position="first"] .ig-actions,.ig-layer[data-step-position="last"] .ig-actions { grid-template-columns: auto minmax(0,1fr); }
.ig-actions button { min-height: 50px; border-radius: 14px; padding: 0 14px; font-size: 13px; font-weight: 850; cursor: pointer; }
.ig-skip,.ig-back { border: 1px solid var(--line); color: var(--muted); background: #fafbf7; }
.ig-next { border: 0; color: #fff; background: var(--sage); box-shadow: 0 8px 18px rgba(89,99,74,.2); }
.ig-actions button:focus-visible,.ig-close:focus-visible,.ig-replay:focus-visible,.ig-dots button:focus-visible { outline: 3px solid rgba(89,99,74,.35); outline-offset: 2px; }

.ig-overview-flow { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; }
.ig-overview-card { width: 92px; height: 112px; overflow: hidden; border: 6px solid #fff; border-radius: 16px; box-shadow: 0 12px 26px rgba(48,53,43,.2); transform: rotate(-4deg); }
.ig-overview-card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 24%; }
.ig-overview-steps { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--sage); font-size: 10px; font-weight: 900; }
.ig-overview-steps span { display: inline-flex; align-items: center; gap: 4px; opacity: .38; }
.ig-overview-steps i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-style: normal; }
.ig-overview-steps b { color: #aab09d; font-size: 16px; }
.ig-privacy { display: inline-flex; align-items: center; gap: 5px; color: var(--olive); font-size: 9px; font-weight: 800; }
.ig-stage.is-playing .ig-overview-card { animation: ig-card-arrive 3.8s ease-in-out 2 both; }
.ig-stage.is-playing .ig-overview-steps span:nth-of-type(1) { animation: ig-step-on 3.8s ease 2 both; }
.ig-stage.is-playing .ig-overview-steps span:nth-of-type(2) { animation: ig-step-on 3.8s .75s ease 2 both; }
.ig-stage.is-playing .ig-overview-steps span:nth-of-type(3) { animation: ig-step-on 3.8s 1.5s ease 2 both; }

.ig-fit-demo { position: relative; width: 250px; height: 196px; }
.ig-round-frame { position: absolute; left: 49px; top: 9px; width: 152px; height: 152px; overflow: hidden; border-radius: 26px; background: #e6e8df; box-shadow: 0 10px 24px rgba(50,56,44,.18); }
.ig-round-frame.is-round { border-radius: 50%; }
.ig-fit-baby { position: absolute; inset: -20px; background: url("../guide-assets/baby-guide.webp") 50% 20%/92% auto no-repeat; transform-origin: 50% 42%; }
.ig-frame-line { position: absolute; inset: 5px; border: 1.5px dashed rgba(89,99,74,.72); border-radius: 50%; }
.ig-touch-dot { position: absolute; z-index: 3; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(89,99,74,.76); box-shadow: 0 5px 14px rgba(37,43,32,.22); }
.ig-touch-one { left: 91px; top: 75px; }
.ig-touch-two { left: 131px; top: 75px; }
.ig-touch-path { position: absolute; z-index: 2; left: 99px; top: 88px; width: 52px; height: 1px; border-top: 2px dashed rgba(89,99,74,.42); }
.ig-motion-label { position: absolute; left: 0; right: 0; bottom: 5px; color: var(--muted); font-size: 10px; }
.ig-motion-label b { color: var(--sage); }
.ig-stage.is-playing .ig-fit-baby { animation: ig-fit-photo 4.2s ease-in-out 2 both; }
.ig-stage.is-playing .ig-touch-one { animation: ig-touch-left 4.2s ease-in-out 2 both; }
.ig-stage.is-playing .ig-touch-two { animation: ig-touch-right 4.2s ease-in-out 2 both; }
.ig-stage.is-playing .ig-touch-path { animation: ig-touch-line 4.2s ease-in-out 2 both; }

.ig-edge-demo { position: relative; width: 280px; height: 196px; }
.ig-edge-frame { position: absolute; left: 49px; top: 7px; width: 182px; height: 154px; overflow: hidden; border: 1px solid #d8ddce; border-radius: 22px; background-color: #f7f6f0; background-image: linear-gradient(45deg,#e1e4da 25%,transparent 25%),linear-gradient(-45deg,#e1e4da 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e1e4da 75%),linear-gradient(-45deg,transparent 75%,#e1e4da 75%); background-position: 0 0,0 7px,7px -7px,-7px 0; background-size: 14px 14px; }
.ig-edge-baby { position: absolute; inset: 5px 17px -18px; border-radius: 75px 75px 32px 32px; background: url("../guide-assets/baby-guide.webp") 50% 14%/145px auto no-repeat; }
.ig-soft-residue { position: absolute; left: 19px; top: 32px; width: 34px; height: 72px; border-radius: 50% 13px 17px 50%; background: rgba(250,247,239,.96); box-shadow: 6px 0 8px rgba(250,247,239,.74); }
.ig-hard-residue { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 52px; border-radius: 9px 24px 7px 12px; background: #faf7ef; }
.ig-restore-hole { position: absolute; left: 89px; bottom: 2px; width: 43px; height: 36px; border-radius: 55% 45% 14px 12px; background: inherit; opacity: 1; }
.ig-eraser-cursor,.ig-restore-cursor { position: absolute; z-index: 5; width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 5px 13px rgba(37,43,32,.26); }
.ig-eraser-cursor { left: 23px; top: 47px; background: rgba(89,99,74,.82); }
.ig-eraser-cursor::after { content: ""; position: absolute; inset: 9px 7px; border: 2px solid #fff; border-radius: 3px; transform: rotate(-35deg); }
.ig-restore-cursor { left: 93px; top: 112px; background: #78907c; opacity: 0; }
.ig-restore-cursor::before,.ig-restore-cursor::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 2px; background: #fff; }
.ig-restore-cursor::after { transform: rotate(90deg); }
.ig-edge-labels { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 14px; color: var(--muted); font-size: 9px; font-weight: 800; }
.ig-edge-labels span { display: flex; align-items: center; gap: 5px; }
.ig-edge-labels i { width: 17px; height: 17px; display: block; border-radius: 50%; background: rgba(89,99,74,.7); }
.ig-edge-labels i.soft { box-shadow: 0 0 7px rgba(89,99,74,.55); }
.ig-edge-labels i.hard { box-shadow: inset 0 0 0 2px #fff; }
.ig-stage.is-playing .ig-soft-residue { animation: ig-soft-erase 5s ease-in-out 2 both; }
.ig-stage.is-playing .ig-hard-residue { animation: ig-hard-erase 5s ease-in-out 2 both; }
.ig-stage.is-playing .ig-restore-hole { animation: ig-restore-hole 5s ease-in-out 2 both; }
.ig-stage.is-playing .ig-eraser-cursor { animation: ig-eraser-move 5s ease-in-out 2 both; }
.ig-stage.is-playing .ig-restore-cursor { animation: ig-restore-move 5s ease-in-out 2 both; }

.ig-polish-demo { position: relative; width: 245px; height: 196px; }
.ig-polish-frame { position: absolute; left: 58px; top: 7px; width: 130px; height: 142px; overflow: hidden; border: 7px solid #fff; border-radius: 20px; background: #eee; box-shadow: 0 11px 24px rgba(48,53,43,.2); transform: rotate(-7deg); filter: brightness(.74); }
.ig-polish-baby { position: absolute; inset: 0; background: url("../guide-assets/baby-guide.webp") 50% 18%/100% auto no-repeat; }
.ig-cheek { position: absolute; z-index: 3; top: 61px; width: 28px; height: 17px; border-radius: 50%; background: radial-gradient(ellipse,rgba(240,132,151,.58),rgba(247,178,190,0) 72%); opacity: 0; }
.ig-cheek.left { left: 20px; }.ig-cheek.right { right: 20px; }
.ig-control-preview { position: absolute; left: 27px; right: 27px; bottom: 10px; height: 30px; display: flex; align-items: center; gap: 9px; color: var(--sage); font-size: 15px; }
.ig-control-preview > i { position: relative; flex: 1; height: 5px; border-radius: 999px; background: #ced3c4; }
.ig-control-preview > i b { position: absolute; left: 15%; top: -5px; width: 15px; height: 15px; border-radius: 50%; background: var(--sage); }
.ig-blush-chip { position: absolute; right: 17px; top: 17px; display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 999px; color: #80555d; background: #fff3f5; box-shadow: 0 5px 12px rgba(97,65,73,.16); font-size: 9px; font-weight: 900; opacity: 0; }
.ig-blush-chip i { width: 9px; height: 6px; display: block; border-radius: 50%; background: radial-gradient(ellipse,rgba(239,139,158,.74),rgba(249,196,205,0)); }
.ig-stage.is-playing .ig-polish-frame { animation: ig-polish-frame 4.4s ease-in-out 2 both; }
.ig-stage.is-playing .ig-control-preview > i b { animation: ig-polish-slider 4.4s ease-in-out 2 both; }
.ig-stage.is-playing .ig-cheek { animation: ig-cheek-on 4.4s ease-in-out 2 both; }
.ig-stage.is-playing .ig-blush-chip { animation: ig-chip-on 4.4s ease-in-out 2 both; }

.ig-share-demo { position: relative; width: 270px; height: 196px; }
.ig-invite-sheet { position: absolute; left: 85px; top: 4px; width: 100px; height: 140px; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 9px; border-radius: 8px; background: #fffdf8; box-shadow: 0 12px 28px rgba(48,53,43,.24); }
.ig-sheet-title { color: var(--sage); font: 700 13px/1.2 Georgia,"Batang",serif; }
.ig-sheet-photo { width: 70px; height: 78px; overflow: hidden; border-radius: 5px; }
.ig-sheet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ig-invite-sheet > i { width: 64px; height: 3px; border-radius: 3px; background: #d9ddcf; }
.ig-invite-sheet > i:last-child { width: 44px; }
.ig-share-chip { position: absolute; left: 20px; right: 20px; bottom: 7px; min-height: 35px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; color: #fff; background: var(--sage); font-size: 10px; font-weight: 900; box-shadow: 0 8px 17px rgba(89,99,74,.25); }
.ig-success-mark { position: absolute; right: 61px; top: 21px; width: 36px; height: 36px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; color: var(--sage); background: var(--petal); box-shadow: 0 6px 15px rgba(49,55,42,.18); font-weight: 900; opacity: 0; }
.ig-stage.is-playing .ig-invite-sheet { animation: ig-sheet-ready 3.8s ease-in-out 2 both; }
.ig-stage.is-playing .ig-share-chip { animation: ig-share-pulse 3.8s ease-in-out 2 both; }
.ig-stage.is-playing .ig-success-mark { animation: ig-success-pop 3.8s ease-in-out 2 both; }

@keyframes ig-card-arrive { 0% { opacity: 0; transform: translateY(18px) rotate(-8deg) scale(.9); } 24%,100% { opacity: 1; transform: translateY(0) rotate(-4deg) scale(1); } }
@keyframes ig-step-on { 0%,18% { opacity: .35; } 30%,100% { opacity: 1; } }
@keyframes ig-fit-photo { 0%,14% { transform: scale(.84) translateY(5px); } 52% { transform: scale(1.14) translateY(6px); } 76%,100% { transform: scale(1.14) translate(0,13px); } }
@keyframes ig-touch-left { 0%,14% { transform: translate(0,0); } 50% { transform: translate(-28px,-4px); } 70%,100% { transform: translate(18px,11px); } }
@keyframes ig-touch-right { 0%,14% { transform: translate(0,0); } 50% { transform: translate(28px,-4px); } 70%,100% { transform: translate(18px,11px); opacity: 0; } }
@keyframes ig-touch-line { 0%,14% { transform: scaleX(.4); opacity: 0; } 50% { transform: scaleX(1.6); opacity: 1; } 70%,100% { opacity: 0; } }
@keyframes ig-soft-erase { 0%,15% { opacity: 1; filter: blur(0); } 36%,100% { opacity: 0; filter: blur(7px); } }
@keyframes ig-hard-erase { 0%,38% { opacity: 1; } 54%,100% { opacity: 0; } }
@keyframes ig-restore-hole { 0%,62% { opacity: 1; } 82%,100% { opacity: 0; } }
@keyframes ig-eraser-move { 0%,10% { transform: translate(0,0); opacity: 1; } 34% { transform: translate(4px,42px); opacity: 1; } 38% { transform: translate(112px,54px); opacity: 1; } 56%,100% { transform: translate(112px,54px); opacity: 0; } }
@keyframes ig-restore-move { 0%,58% { opacity: 0; transform: translate(0,0); } 64% { opacity: 1; transform: translate(0,0); } 82%,100% { opacity: 1; transform: translate(6px,-22px); } }
@keyframes ig-polish-frame { 0%,18% { transform: rotate(-7deg); filter: brightness(.74); } 62%,100% { transform: rotate(0); filter: brightness(1); } }
@keyframes ig-polish-slider { 0%,18% { left: 15%; } 62%,100% { left: 62%; } }
@keyframes ig-cheek-on { 0%,65% { opacity: 0; } 82%,100% { opacity: 1; } }
@keyframes ig-chip-on { 0%,68% { opacity: 0; transform: translateY(-6px) scale(.9); } 82%,100% { opacity: 1; transform: none; } }
@keyframes ig-sheet-ready { 0% { opacity: .2; transform: translateY(14px) scale(.94); } 35%,100% { opacity: 1; transform: none; } }
@keyframes ig-share-pulse { 0%,38% { opacity: 0; transform: translateY(10px); } 55% { opacity: 1; transform: none; } 70% { transform: scale(.96); } 84%,100% { transform: scale(1); } }
@keyframes ig-success-pop { 0%,64% { opacity: 0; transform: scale(.4) rotate(-15deg); } 78%,100% { opacity: 1; transform: scale(1) rotate(0); } }

@media (max-width: 600px) {
  .ig-layer { place-items: end center; padding: 0; }
  .ig-card { width: 100%; max-height: 100dvh; border-width: 1px 0 0; border-radius: 26px 26px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
  .ig-stage { height: 198px; }
  .ig-copy { min-height: 99px; }
}

@media (max-width: 360px), (max-height: 620px) {
  .ig-card { padding-top: 9px; }
  .ig-head { min-height: 31px; }
  .ig-stage { height: 164px; border-radius: 17px; }
  .ig-replay { min-height: 44px; margin-block: -4px -3px; }
  .ig-copy { min-height: 88px; }
  .ig-copy h2 { font-size: 19px; }
  .ig-copy > p:last-child { margin-top: 6px; font-size: 12px; line-height: 1.48; }
  .ig-progress { margin-block: 3px 8px; }
  .ig-actions button { min-height: 48px; padding-inline: 10px; font-size: 12px; }
  .ig-overview-flow { gap: 7px; }
  .ig-overview-card { width: 86px; height: 104px; }
  .ig-round-frame { top: 0; transform: scale(.82); transform-origin: 50% 0; }
  .ig-fit-demo,.ig-edge-demo,.ig-polish-demo,.ig-share-demo { transform: scale(.82); transform-origin: 50% 0; }
}

@media (max-width: 390px) {
  .site-header { padding-inline: 12px; }
  .brand { gap: 7px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand small { display: none; }
  .guide-open-button { min-width: 70px; padding-inline: 10px; }
  .preview-badge { display: none; }
  .ig-actions { grid-template-columns: auto auto minmax(118px,1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ig-stage * { animation: none!important; transition: none!important; }
  .ig-overview-card { opacity: 1; transform: rotate(-4deg); }
  .ig-overview-steps span { opacity: 1; }
  .ig-fit-baby { transform: scale(1.14) translateY(13px); }
  .ig-touch-dot,.ig-touch-path,.ig-eraser-cursor,.ig-restore-cursor { display: none; }
  .ig-soft-residue,.ig-hard-residue,.ig-restore-hole { opacity: 0; }
  .ig-polish-frame { transform: rotate(0); filter: brightness(1); }
  .ig-control-preview > i b { left: 62%; }
  .ig-cheek,.ig-blush-chip,.ig-success-mark { opacity: 1; }
  .ig-replay { display: none; }
}
