*{box-sizing:border-box}
html{background:#f7f2ee;color:#2a1a24;font-family:system-ui,"Segoe UI",sans-serif}
body{margin:0;min-width:320px;height:100svh;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
/* Dark header with the white logo, like the portal's entry screen. */
header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px clamp(18px,4vw,48px);background:#2a1a24;color:#fff}
.brand{display:block;line-height:0}.brand img{height:64px;width:auto}
#step-status{font-size:13px;font-weight:700;letter-spacing:.04em;background:#ffffff1a;border:1px solid #ffffff33;border-radius:999px;padding:7px 14px}
/* Five-segment progress bar: done, current (glowing) and pending. */
.progress{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:10px clamp(18px,4vw,48px);background:#2a1a24}
.progress span{height:6px;border-radius:999px;background:#ffffff26;transition:background .3s}
.progress .done{background:#f4bd2a}.progress .current{background:#e92368;box-shadow:0 0 10px #e92368}
main{overflow:auto;padding:clamp(16px,3vw,36px) clamp(18px,4vw,48px)}
.scene{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(28px,5vw,72px);align-items:center;min-height:100%;max-width:1100px;margin:auto}
.copy{min-width:0;max-width:520px;animation:enter .45s ease-out}
.number{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#2a1a24;color:#fff;font-size:28px;font-weight:850;box-shadow:0 0 0 2px #e92368,0 0 18px #e9236866;margin-bottom:14px}
.eyebrow{font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:#b6134f;margin:0}
h1{font-size:clamp(30px,3.6vw,48px);line-height:1.08;letter-spacing:-.035em;margin:8px 0 14px}
.intro{font-size:clamp(17px,1.5vw,21px);line-height:1.45;margin:0 0 18px;color:#4a3843}
.portal-link{display:inline-block;font-weight:750;color:#b6134f;margin-bottom:14px;font-size:17px}
.note,aside{font-size:14px;line-height:1.5;padding:12px 14px;border-radius:12px;margin:10px 0 0;border-left:4px solid}
.note{background:#fff;border-color:#e92368}
aside{background:#fff4d6;border-color:#d9a521;color:#6b5015}
/* The phone: the real portal screen, with a glowing ring where you tap. */
.visual{display:grid;justify-items:center;gap:12px}
figure{position:relative;margin:0;width:clamp(210px,calc((100svh - 290px) * .462),330px);padding:12px;border-radius:44px;background:#1d1218;box-shadow:0 30px 60px #2a1a2433,inset 0 0 0 2px #3b2a33;animation:enter .45s ease-out}
figure:before{content:"";position:absolute;top:18px;left:50%;width:30%;height:16px;transform:translateX(-50%);border-radius:999px;background:#1d1218;z-index:2}
.capture-content{position:relative;border-radius:34px;overflow:hidden;line-height:0}
figure img{display:block;width:100%;height:auto}
.touch{position:absolute;left:var(--touch-x);top:var(--touch-y);width:42px;height:42px;margin:-6px 0 0 -6px;border-radius:50%;border:3px solid #e92368;background:transparent;box-shadow:0 0 14px #e92368,inset 0 0 8px #e9236866;animation:tap 1.6s ease-out infinite;pointer-events:none}
.touch:after{content:"";position:absolute;inset:-3px;border-radius:50%;border:2px solid #e92368;animation:ring 1.6s ease-out infinite}
.voucher{width:260px;max-width:100%;display:block;margin:4px 0 6px}
.voucher-example{display:inline-block;margin:4px 0 10px;color:#92243f;font-size:15px;font-weight:600}
.states{display:grid;gap:6px;width:100%;margin-top:12px}
.state{border-left:4px solid;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.4;margin:0}
.state b,.warning b{display:block;margin-bottom:3px}
.open{background:var(--open-background);border-color:var(--open-accent);color:var(--open-text)}.closed{background:var(--closed-background);border-color:var(--closed-accent);color:var(--closed-text)}.approved{background:var(--approved-background);border-color:var(--approved-accent);color:var(--approved-text)}.paid{background:var(--paid-background);border-color:var(--paid-accent);color:var(--paid-text)}.observed,.warning{background:var(--observed-background);border-color:var(--observed-accent);color:var(--observed-text)}
nav{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;padding:12px 20px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eadfe3}
#dots,.controls{display:flex;justify-content:center;gap:8px}
button{font:inherit;cursor:pointer;border:1px solid #dccbd3;background:#fff;color:#5d2440;border-radius:12px;min-height:44px;padding:9px 16px;font-weight:650}
button:disabled{opacity:.45;cursor:default}
#next{background:#e92368;border-color:#e92368;color:#fff}
#dots button{border-radius:50%;width:36px;height:36px;min-height:36px;padding:0;font-size:13px}
#dots [aria-current]{background:#2a1a24;color:#fff;border-color:#e92368;box-shadow:0 0 10px #e9236899}
button:focus-visible,a:focus-visible{outline:2px solid #e92368;outline-offset:3px}
.finish{max-width:820px;margin:auto;line-height:1.55;animation:enter .45s ease-out}
.finish h1{margin-top:4px}
.stage-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.warning{border-left:4px solid;padding:12px;border-radius:10px}
.primary{display:block;text-align:center;background:#e92368;color:#fff;border-radius:12px;padding:15px;font-weight:750;text-decoration:none;box-shadow:0 0 16px #e9236855;margin-top:14px}
.print{display:block;text-align:center;font-size:14px;padding:12px;color:#8c244e}
address{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 18px;font-style:normal;font-size:13px}address a{color:#5d2440;overflow-wrap:anywhere}
@keyframes enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes tap{0%{transform:scale(.8)}30%{transform:scale(1)}100%{transform:scale(.8)}}
@keyframes ring{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.9)}}
@media(min-width:761px) and (max-height:800px){header{padding-block:8px}.brand img{height:44px}.progress{padding-block:6px 8px}main{padding-block:14px}.number{width:48px;height:48px;font-size:22px;margin-bottom:8px}h1{font-size:clamp(28px,3vw,38px);margin-bottom:10px}.intro{margin-bottom:12px}figure{width:clamp(230px,calc((100svh - 190px) * .462),330px)}nav{padding-block:8px}}
@media(max-width:760px){
 .copy{display:contents}.scene>.copy>*{order:1}.scene>.copy>.number{display:none}.scene>.copy>.eyebrow,.scene>.copy>h1,.scene>.copy>.intro{order:-2}.visual{order:-1}.scene{gap:10px}
 header{padding:10px 16px}.brand img{height:46px}#step-status{font-size:12px;padding:5px 11px}
 .progress{padding:8px 16px 10px}
 main{padding:16px}
 .scene{display:flex;flex-direction:column;gap:16px;justify-content:flex-start}
 .copy{max-width:none;width:100%}
 .number{width:44px;height:44px;font-size:20px;border-radius:13px;margin-bottom:8px}
 h1{font-size:27px;margin:4px 0 8px}.intro{font-size:16px;margin-bottom:10px}
 .note,aside{font-size:13px;padding:9px 11px}
 figure{width:min(68vw,270px);padding:12px;border-radius:38px}
 .capture-content{border-radius:28px}figure:before{top:14px;height:13px}
 .touch{width:38px;height:38px;margin:-19px 0 0 -19px}
 .voucher{width:100%}
 .stage-list{grid-template-columns:1fr;gap:7px}.stage-list .state{font-size:12px;padding:9px}
 nav{gap:8px;padding-top:10px}.controls{gap:6px}.controls button{font-size:13px;padding-inline:11px}
 #dots button{width:32px;height:32px;min-height:32px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Inactive arrows look inactive. */
nav button:disabled{background:#efe9eb!important;color:#9b8f94!important;border-color:#efe9eb!important;cursor:default}
#pause[hidden]{display:none}

/* The original voucher photo is cropped for readability; annotations stay separate. */
.izipay-real-voucher{display:block;width:100%;max-width:560px;border:1px solid #eadde3;border-radius:12px;background:#fff;margin:12px 0;overflow:hidden}
.izipay-real-voucher img{display:block;width:100%;height:auto;max-width:100%}
.finish-actions{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.finish-actions a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;margin:0;text-decoration:none;font-size:16px;font-weight:700}
.finish-actions .secondary{border:1px solid #dcc5cf;border-radius:12px;background:#fff;color:#8c244e;padding:13px}
.finish-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.contact-pills{gap:10px;margin-top:18px}
.contact-pills a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;border:1px solid #dcc5cf;border-radius:999px;background:#fff;color:#5d2440;text-decoration:none;font-size:14px;min-width:0}
.contact-pills img{flex:none;width:20px;height:20px}
@media(max-width:760px){.finish-actions,.contact-pills{width:100%}.contact-pills{flex-direction:column}.contact-pills a{width:100%;font-size:12px}}
