.demo-entry{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 0;margin-top:8px;color:#cc306b;font:600 14px Pretendard,sans-serif;text-decoration:underline;text-underline-offset:5px;border:0;background:none;line-height:1.6}
.card-demo{padding:76px 0 90px;color:#302831}.demo-heading{text-align:center;margin-bottom:42px}.demo-heading .eyebrow{margin-bottom:14px}.demo-heading h2{margin-bottom:0}.demo-phones{display:grid;grid-template-columns:repeat(2,minmax(0,360px));justify-content:center;align-items:start;gap:60px;scroll-margin-top:24px}.demo-example figcaption,.demo-caption{margin:0 0 18px;text-align:center;color:#9b536d;font-size:15px;font-weight:600;line-height:1.6}.demo-device{border:7px solid #252527;border-radius:45px;padding:4px;background:#080808;box-shadow:0 0 0 2px #aaa,0 15px 24px #30232b16;overflow:hidden;position:relative}.demo-device:before{content:"";position:absolute;z-index:2;top:13px;left:50%;transform:translateX(-50%);width:58px;height:16px;background:#080808;border-radius:20px}.demo-screen{position:relative;border-radius:32px;background:white;aspect-ratio:9/18;overflow:hidden;display:flex;flex-direction:column;padding:48px 20px 24px}.demo-sample{position:relative;aspect-ratio:9/18;border-radius:32px;overflow:hidden;background:#8a7861}.demo-sample img{width:100%;height:100%;object-fit:cover}.sample-wordmark{position:absolute;bottom:0;left:0;width:100%;height:9.4%;padding-top:9px;text-align:center;background:#85735e;color:#ffe0e9;font-size:13px;font-weight:600;letter-spacing:-.04em}.sample-wordmark:after{content:"";position:absolute;bottom:9px;left:34%;width:32%;height:3px;border-radius:8px;background:#fff9}
.demo-app-header{position:relative;flex-shrink:0;text-align:center;font-size:14px;font-weight:600;margin-bottom:30px;line-height:26px}.demo-app-header button{position:absolute;left:-8px;top:-10px;min-width:44px;min-height:44px;background:none;border:0;color:#655e63;font-size:27px}.demo-step{display:flex;flex:1;min-height:0;flex-direction:column}.demo-mission-card{background:#f5f2f2;border-radius:18px;padding:21px 17px;margin-top:30px}.demo-kicker{display:block;color:#a67483;letter-spacing:.07em;font-size:10px;font-weight:600;margin:0 0 10px;line-height:1.6}.demo-mission-card h3,.demo-question{font-size:16px;font-weight:600;line-height:1.65;margin:0 0 18px;word-break:keep-all}.demo-mission-card hr{border:0;border-top:1px solid #e3dfe0;margin:25px 0 19px}.demo-mission-card .demo-question{margin-bottom:0}.card-demo .button{background:#de6a89;box-shadow:none;width:100%;min-height:47px;border-radius:25px;font-size:14px;padding:13px 10px;gap:8px}.card-demo .button:hover{background:#d55278}.card-demo .button:disabled{cursor:not-allowed;transform:none;background:#bbb3b6;opacity:1}.demo-mission-card+.button{margin-top:28px}
#demo-writing textarea{width:100%;font:400 16px Pretendard,sans-serif;line-height:1.7;padding:15px;background:#fff0f5;border:1px solid transparent;border-radius:15px;color:#302831;resize:none;min-height:130px;flex-shrink:1}#demo-writing textarea::placeholder{color:#b8a4ad}#demo-writing .demo-question{margin-bottom:28px}#demo-count{font-size:10px;color:#a99aa1;text-align:right;margin:6px 0}.demo-photo-change{align-self:flex-start;padding:9px 0;font-size:11px;color:#9b7585;border:0;background:none;text-decoration:underline}#demo-complete{margin-top:auto;border-radius:13px}.demo-home-indicator{position:absolute;bottom:9px;left:34%;width:32%;height:4px;border-radius:9px;background:#29252b}.demo-message{font-size:11px;line-height:1.6;color:#a63360;margin:8px 0 0;flex-shrink:0}.demo-message:empty{display:none}
.demo-screen:has(#demo-finished:not([hidden])){padding:0}.demo-screen:has(#demo-finished:not([hidden])) .demo-app-header{position:absolute;left:15px;top:38px;z-index:3;color:white;width:30px;margin:0}.demo-screen:has(#demo-finished:not([hidden])) .demo-app-header button{color:white;text-shadow:0 1px 4px #000}.demo-screen:has(#demo-finished:not([hidden])) #demo-step-title{display:none}.demo-screen:has(#demo-finished:not([hidden])) .demo-home-indicator{background:white}.demo-screen:has(#demo-finished:not([hidden])) .demo-message{position:absolute;bottom:118px;left:14px;right:14px;background:#fffefb;padding:10px;border-radius:8px;z-index:3}
#demo-finished{position:relative}#demo-canvas{display:block;width:100%;height:100%;object-fit:cover}#demo-export{position:absolute;bottom:20px;left:17px;right:17px;background:#ffffffed;border-radius:16px;padding:10px 12px;text-align:center}#demo-export .button{min-height:40px;font-size:13px}#demo-download,#demo-reset{display:inline-block;font:400 11px Pretendard,sans-serif;text-decoration:underline;text-underline-offset:3px;color:#8b5b70;padding:12px 6px 4px;border:0;background:none;cursor:pointer;min-height:30px}
.hero-card-device{position:relative;margin:auto;border:5px solid #161616;border-radius:22px;overflow:hidden;width:145px;height:290px;box-shadow:0 5px 12px #30232b20;background:#85735e}.preview-story .hero-card-device img{width:100%;height:100%;border:0;border-radius:0;object-fit:cover;box-shadow:none}.hero-card-wordmark{position:absolute;bottom:0;left:0;width:100%;height:10%;background:#85735e;color:#ffe0e9;font-size:8px;display:grid;place-items:center}
.card-demo :is(button,a,textarea):focus-visible{outline:3px solid #cc306b;outline-offset:3px}
@media(max-width:760px){.card-demo{padding:52px 0}.demo-heading{margin-bottom:28px}.demo-heading h2{font-size:28px}.demo-phones{grid-template-columns:minmax(0,300px);gap:38px}.demo-example,.demo-live{width:100%;min-width:0;justify-self:stretch}.demo-example .sample-wordmark{font-size:10px;padding-top:4px}.demo-example figcaption,.demo-caption{font-size:13px}.demo-live{scroll-margin-top:18px}.demo-screen{padding-left:19px;padding-right:19px}.demo-entry{font-size:13px}.hero-card-device{width:100px;height:207px;border-width:4px;border-radius:17px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card-demo .button{transition:none}}
#demo-export{position:static;margin:18px 0 0;background:#fff;padding:0;border-radius:0}#demo-export .button{min-height:50px;font-size:15px}#demo-download,#demo-reset{font-size:12px;min-height:44px;padding:15px 10px}.demo-screen:has(#demo-finished:not([hidden])) .demo-message{bottom:50px}.demo-screen:has(#demo-finished:not([hidden])) #demo-back{background:#0004;border-radius:50%}
/* Both examples and exports use the same renderer, with no logo cover-up. */
.demo-sample{background:#f3eeeb}.demo-sample canvas,.hero-card-device canvas{display:block;width:100%;height:100%;object-fit:cover}.hero-card-device{background:#f3eeeb}
#demo-writing{overflow-y:auto;overscroll-behavior:contain;padding:3px 4px 8px;margin:0 -4px;display:block}.demo-screen:has(#demo-writing:not([hidden])) .demo-app-header{margin-bottom:12px}.demo-live-preview{margin:0 auto 16px;text-align:center}.demo-live-preview canvas{display:block;width:104px;height:208px;border-radius:9px;box-shadow:0 3px 10px #30232b20;margin:auto}.demo-live-preview figcaption{font-size:10px;color:#967e88;margin-top:6px}#demo-writing .demo-question{font-size:14px;margin-bottom:14px}#demo-writing .demo-kicker{margin-bottom:6px}#demo-writing textarea{min-height:70px;height:76px;font-size:16px;padding:10px 12px}#demo-writing #demo-complete{margin-top:12px}#demo-writing .demo-photo-change{padding:6px 0}.demo-screen:has(#demo-writing:not([hidden])){padding-bottom:26px}.demo-screen:has(#demo-finished:not([hidden])) .demo-app-header{top:58px;left:auto;right:18px}.demo-screen:has(#demo-finished:not([hidden])) #demo-back{font-size:23px}
@media(max-width:760px){.demo-live-preview canvas{width:92px;height:184px}.demo-screen:has(#demo-writing:not([hidden])){padding-top:38px}.demo-screen:has(#demo-writing:not([hidden])) .demo-app-header{margin-bottom:9px}}
.demo-live-preview canvas{width:128px;height:256px}@media(max-width:760px){.demo-live-preview canvas{width:112px;height:224px}}

/* A clear starting point, without enlarging the phone mockups. */
#demo-gallery{position:relative;isolation:isolate;overflow:hidden;flex-shrink:0;cursor:pointer;background:#dd397b;box-shadow:0 4px 12px #dd397b26}
#demo-gallery:hover{background:#c72b69}
#demo-gallery::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffffff45 50%,transparent 70%);transform:translateX(-130%);animation:demo-button-shine 4.8s ease-in-out infinite}
#demo-start-hint{margin:10px 0 0;text-align:center;font-size:12px;line-height:1.6;color:#956075}
@keyframes demo-button-shine{0%,65%{transform:translateX(-130%)}90%,100%{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){#demo-gallery::after{animation:none;display:none}}

/* Point to the action before the visitor reaches the button. */
#demo-start-hint.demo-start-callout{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:22px 5px 9px;color:#cc306b;font-size:14px;font-weight:700;line-height:1.4}
.demo-start-callout span{display:inline-block;font-size:27px;line-height:1;animation:demo-point 2.4s ease-in-out infinite}
@keyframes demo-point{0%,40%,100%{transform:translateY(0)}15%,30%{transform:translateY(6px)}23%{transform:translateY(1px)}}
@media(prefers-reduced-motion:reduce){.demo-start-callout span{animation:none}}

/* Compact matching phones with the invitation outside the device. */
.demo-phones{grid-template-columns:repeat(2,minmax(0,240px));gap:64px}
.demo-live{position:relative}
.demo-example figcaption,.demo-caption{min-height:62px;margin-bottom:12px;font-size:13px}
#demo-start-hint.demo-start-callout{position:absolute;top:29px;right:8px;margin:0;gap:10px;font-size:14px}
.demo-device{border-width:5px;border-radius:34px;padding:3px}
.demo-screen,.demo-sample{border-radius:26px}
.demo-device:before{top:10px;width:46px;height:12px}
.demo-screen{padding:32px 13px 22px}
.demo-app-header{font-size:12px;margin-bottom:12px}
.demo-mission-card{padding:16px 12px;margin-top:10px;border-radius:14px}
.demo-mission-card h3,.demo-mission-card .demo-question{font-size:13px;line-height:1.6}
.demo-mission-card hr{margin:18px 0 14px}
.demo-mission-card .demo-kicker{font-size:8px;letter-spacing:.03em}
.demo-mission-card+#demo-gallery{margin-top:20px}
#demo-gallery{font-size:13px;min-height:44px}
.demo-live:has(#demo-mission[hidden]) #demo-start-hint{display:none}
@media(max-width:760px){.demo-phones{grid-template-columns:minmax(0,240px);gap:28px}}

/* The invitation sits outside the phone, level with its photo button. */
#demo-start-hint.demo-start-callout{top:var(--demo-action-center,345px);left:calc(100% + 6px);right:auto;width:112px;transform:translateY(-50%);justify-content:flex-start;gap:5px;font-size:14px;pointer-events:none}
.demo-start-callout span{animation:none;font-size:24px}
.demo-start-callout .demo-callout-text{font-size:14px;line-height:1.5;word-break:keep-all}
#demo-gallery::after{display:none;animation:none}
#demo-gallery{animation:demo-button-bounce 2.8s ease-in-out infinite}
#demo-gallery:hover,#demo-gallery:focus-visible,#demo-gallery:active,#demo-gallery:disabled{animation:none}
@keyframes demo-button-bounce{0%,45%,100%{transform:translateY(0)}14%{transform:translateY(-6px)}24%{transform:translateY(0)}33%{transform:translateY(-3px)}}
@media(max-width:760px){#demo-start-hint.demo-start-callout{width:40px;flex-direction:column;gap:3px;text-align:center}.demo-start-callout .demo-callout-text{font-size:12px}.demo-start-callout span{font-size:25px}}
@media(prefers-reduced-motion:reduce){#demo-gallery{animation:none}}

/* A larger, explicit invitation beside the photo action. */
#demo-start-hint.demo-start-callout{width:158px;color:#171717;animation:none}
.demo-start-callout .demo-callout-text{font-size:18px;font-weight:800;line-height:1.5}

@media(max-width:760px){.demo-example,.demo-live{transform:translateX(-24px)}#demo-start-hint.demo-start-callout{width:72px;gap:5px}.demo-start-callout .demo-callout-text{font-size:16px;line-height:1.45}}
@media(prefers-reduced-motion:reduce){#demo-start-hint.demo-start-callout{animation:none}}
@media(min-width:761px){.demo-phones{padding-right:164px}}
@media(max-width:760px){#demo-start-hint.demo-start-callout{width:68px}}
@media(max-width:359px){.demo-phones{grid-template-columns:minmax(0,210px)}#demo-start-hint.demo-start-callout{width:60px}.demo-start-callout .demo-callout-text{font-size:15px}}

/* Keep the message still; only the arrow gently points toward the button. */
.demo-start-callout>span[aria-hidden="true"]{animation:demo-arrow-point 3.7s ease-in-out infinite}
@keyframes demo-arrow-point{0%,55%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}}
@media(prefers-reduced-motion:reduce){.demo-start-callout>span[aria-hidden="true"]{animation:none}}

/* Visible before interaction: a soft halo, without moving the button. */
#demo-gallery{animation:demo-button-glow 2.6s ease-in-out infinite;transform:none}
#demo-gallery:hover,#demo-gallery:focus-visible{animation:demo-button-glow 2.6s ease-in-out infinite;transform:none}
#demo-gallery:active,#demo-gallery:disabled{animation:none}
@keyframes demo-button-glow{0%,100%{box-shadow:0 0 0 2px #ef86ae20,0 3px 10px #dd397b25}50%{box-shadow:0 0 0 5px #ef86ae50,0 0 17px 3px #dd397b55}}
@media(prefers-reduced-motion:reduce){#demo-gallery,#demo-gallery:hover,#demo-gallery:focus-visible{animation:none;box-shadow:0 0 0 3px #ef86ae40,0 0 12px #dd397b35}}

/* One action per screen: frame the photo, then write the answer. */
#demo-cropping{gap:7px;overflow:hidden}
.demo-crop-stage{flex:1;min-height:0;display:flex;justify-content:center;background:#f7f3f5;border-radius:9px;overflow:hidden}
#demo-preview-canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:grab}
#demo-preview-canvas:active{cursor:grabbing}
.demo-crop-help{font-size:10px;line-height:1.4;text-align:center;margin:0;color:#806c76}
.demo-zoom-control{display:flex;align-items:center;gap:7px;font-size:10px;flex-shrink:0;min-height:28px}
#demo-zoom{width:100%;min-width:0;accent-color:#dd397b;min-height:28px}
#demo-zoom-value{min-width:32px;text-align:right;font-variant-numeric:tabular-nums}
#demo-cropping .demo-photo-change{padding:2px 0;min-height:24px;margin:0}
#demo-crop-next{flex-shrink:0;min-height:44px;font-size:12px;padding:10px 5px}
#demo-writing{display:flex;overflow:hidden;overscroll-behavior:auto;margin:0;padding:0}
#demo-writing textarea{height:100px;min-height:70px;flex-shrink:1}
#demo-writing #demo-complete{margin-top:auto;flex-shrink:0;min-height:44px;font-size:13px}
#demo-writing .demo-question{font-size:13px;margin-bottom:18px}
.demo-screen:has(#demo-writing:not([hidden])){padding:32px 13px 22px}
.demo-screen:has(#demo-writing:not([hidden])) .demo-app-header{margin-bottom:18px}
.demo-screen:has(#demo-cropping:not([hidden])) .demo-app-header{margin-bottom:8px}
/* Both cues run before interaction: bounce and light across the button face. */
#demo-gallery,#demo-gallery:hover,#demo-gallery:focus-visible{animation:demo-button-bounce 2.8s ease-in-out infinite;box-shadow:0 4px 12px #dd397b26}
#demo-gallery::after{display:block;animation:demo-button-shine 3.4s ease-in-out infinite;background:linear-gradient(110deg,transparent 20%,#ffffff80 50%,transparent 80%)}
#demo-gallery:active,#demo-gallery:disabled{animation:none}
@media(prefers-reduced-motion:reduce){#demo-gallery,#demo-gallery:hover,#demo-gallery:focus-visible,#demo-gallery::after{animation:none}#demo-gallery::after{display:none}}
.demo-zoom-control label{flex-shrink:0;white-space:nowrap}

/* Align the arrow itself, rather than the combined arrow/text block. */
@media(max-width:760px){#demo-start-hint.demo-start-callout{display:block;padding-left:5px}.demo-start-callout>span[aria-hidden="true"]{position:absolute;left:-13px;top:50%;margin-top:-12.5px;line-height:25px}.demo-start-callout .demo-callout-text{display:block}}
.demo-zoom-control[hidden]{display:none!important}

/* Inline framing uses the full phone display; controls sit beneath it. */
.demo-screen:has(#demo-cropping:not([hidden])){padding:0}
.demo-screen:has(#demo-cropping:not([hidden])) .demo-app-header{position:absolute;z-index:3;top:25px;left:10px;right:10px;margin:0;color:white;text-shadow:0 1px 4px #000}
.demo-screen:has(#demo-cropping:not([hidden])) #demo-step-title{display:none}
.demo-screen:has(#demo-cropping:not([hidden])) #demo-back{left:0;top:0;color:white;background:#0005;border-radius:50%}
.demo-screen:has(#demo-cropping:not([hidden])) .demo-home-indicator{background:#fff;pointer-events:none}
#demo-cropping{gap:0}
#demo-cropping .demo-crop-stage{border-radius:0;background:#eee}
#demo-crop-actions{margin-top:14px;text-align:center}
#demo-crop-actions .demo-crop-help{font-size:12px;line-height:1.6}
#demo-crop-actions .demo-photo-change{font-size:12px;min-height:40px}
#demo-crop-actions #demo-crop-next{font-size:14px;min-height:46px}
#demo-start-hint.demo-start-callout{z-index:5}
@media(max-width:760px){#demo-start-hint.demo-start-callout{padding-left:19px}.demo-start-callout>span[aria-hidden="true"]{left:0;font-size:20px}.demo-start-callout .demo-callout-text{font-size:14px}}
.demo-screen:has(#demo-cropping:not([hidden])) #demo-back{left:auto;right:0}
