/* Hero iPhone walkthrough — GPU-friendly transforms/opacity only */
.ipw {
    --ipw-frame: #1c1c1e;
    --ipw-screen: #f4f7fb;
    --ipw-ink: #0b3b57;
    --ipw-muted: #5b6b7c;
    --ipw-line: #d7e0ea;
    --ipw-blue: #0877b9;
    --ipw-teal: #0b5f66;
    position: relative;
    width: min(100%, 340px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    user-select: none;
    pointer-events: none;
}
.ipw-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 6px 12px;
}
.ipw-phone {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.2;
    max-height: min(640px, 72vh);
}
.ipw-bezel {
    position: absolute;
    inset: 0;
    border-radius: 42px;
    background: linear-gradient(160deg, #3a3a3c 0%, var(--ipw-frame) 38%, #0a0a0b 100%);
    padding: 10px;
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.08),
        inset 0 0 0 5px #111,
        0 28px 60px rgba(0,0,0,.42);
}
.ipw-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 94px;
    height: 28px;
    border-radius: 20px;
    background: #000;
    z-index: 5;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.ipw-screen {
    position: relative;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: var(--ipw-screen);
    color: var(--ipw-ink);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.ipw-status-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 44px;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 22px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ipw-ink);
}
.ipw-sigs {
    width: 54px;
    height: 10px;
    border-radius: 3px;
    background:
        linear-gradient(#0b3b57,#0b3b57) 0 2px / 4px 8px no-repeat,
        linear-gradient(#0b3b57,#0b3b57) 7px 1px / 4px 9px no-repeat,
        linear-gradient(#0b3b57,#0b3b57) 14px 0 / 4px 10px no-repeat,
        linear-gradient(#0b3b57,#0b3b57) 28px 1px / 22px 8px no-repeat;
    opacity: .75;
}
.ipw-stage {
    position: absolute;
    inset: 44px 0 18px;
}
.ipw-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translate3d(12px, 0, 0);
    pointer-events: none;
    transition: opacity .45s ease, transform .45s ease;
    display: flex;
    flex-direction: column;
    background: var(--ipw-screen);
}
.ipw-slide.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    z-index: 2;
}
.ipw-slide.is-exit {
    opacity: 0;
    transform: translate3d(-10px, 0, 0);
    z-index: 1;
}
.ipw-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 10px;
    border-bottom: 1px solid var(--ipw-line);
    background: #fff;
}
.ipw-appbar strong { font-size: 14px; }
.ipw-bell {
    width: 16px; height: 16px; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #fff 0 35%, #0877b9 36%);
    position: relative;
}
.ipw-bell.has-dot::after {
    content: "";
    position: absolute; top: -2px; right: -2px;
    width: 7px; height: 7px; border-radius: 50%; background: #e11d48;
}
.ipw-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}
.ipw-body.ipw-scroll { overflow: auto; }
.ipw-splash {
    flex: 1;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 8px;
    background: linear-gradient(160deg, #043a40, #0b5f66 50%, #0877b9);
    color: #fff;
    margin: -44px 0 -18px;
    padding: 60px 20px 40px;
}
.ipw-splash img { border-radius: 16px; margin: 0 auto 6px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.ipw-splash strong { font-size: 28px; letter-spacing: -.03em; }
.ipw-splash > span { font-size: 15px; opacity: .92; }
.ipw-field { display: grid; gap: 4px; font-size: 11px; color: var(--ipw-muted); font-weight: 600; }
.ipw-input {
    background: #fff;
    border: 1px solid var(--ipw-line);
    border-radius: 10px;
    min-height: 40px;
    padding: 10px 12px;
    color: var(--ipw-ink);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}
.ipw-input-sm { min-height: 36px; font-size: 11px; }
.ipw-caret {
    width: 1.5px; height: 14px; background: var(--ipw-blue);
    animation: ipw-blink 1s step-end infinite;
    opacity: 0;
}
.ipw-slide.is-active .ipw-caret.is-on { opacity: 1; }
.ipw-type { white-space: nowrap; overflow: hidden; max-width: 100%; }
.ipw-btn {
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ipw-teal), var(--ipw-blue));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    min-height: 42px;
    box-shadow: 0 10px 20px rgba(8,119,185,.28);
}
.ipw-btn.ipw-gpay {
    background: #111;
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
}
.ipw-micro { margin: 0; font-size: 10px; color: var(--ipw-muted); line-height: 1.4; }
.ipw-hello p { margin: 0; font-size: 16px; font-weight: 800; }
.ipw-hello span { font-size: 11px; color: var(--ipw-muted); }
.ipw-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.ipw-kpis div {
    background: #fff;
    border: 1px solid var(--ipw-line);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
}
.ipw-kpis b { display: block; font-size: 16px; }
.ipw-kpis span { font-size: 9px; color: var(--ipw-muted); font-weight: 600; }
.ipw-card {
    background: #fff;
    border: 1px solid var(--ipw-line);
    border-radius: 12px;
    padding: 8px 10px;
    display: grid;
    gap: 8px;
}
.ipw-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    font-size: 11px;
}
.ipw-row strong { font-size: 11px; }
.ipw-pill {
    font-size: 9px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 7px;
    white-space: nowrap;
}
.ipw-pill.ok { background: #e8f8f0; color: #0f7a4d; }
.ipw-pill.pending { background: #fff4e5; color: #9a5b00; }
.ipw-pill.review { background: #eaf2ff; color: #1d4ed8; }
.ipw-svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ipw-svc {
    border: 1px solid var(--ipw-line);
    background: #fff;
    border-radius: 12px;
    min-height: 64px;
    display: grid;
    place-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ipw-ink);
}
.ipw-svc.is-pick {
    border-color: var(--ipw-blue);
    box-shadow: 0 0 0 2px rgba(8,119,185,.2);
    transform: scale(1.02);
}
.ipw-svc i {
    width: 22px; height: 22px; border-radius: 6px;
    display: grid; place-items: center;
    font-style: normal; font-size: 10px; font-weight: 800; color: #fff;
}
.ipw-svc i[data-p="g"] { background: #ea4335; }
.ipw-svc i[data-p="g"]::after { content: "G"; }
.ipw-svc i[data-p="f"] { background: #1877f2; }
.ipw-svc i[data-p="f"]::after { content: "f"; }
.ipw-svc i[data-p="ig"] { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.ipw-svc i[data-p="ig"]::after { content: "Ig"; font-size: 8px; }
.ipw-svc i[data-p="tt"] { background: #010101; }
.ipw-svc i[data-p="tt"]::after { content: "Tk"; font-size: 8px; }
.ipw-upload {
    border: 1px dashed #9db5c8;
    border-radius: 12px;
    background: #eef5fb;
    padding: 12px;
    display: grid;
    gap: 4px;
}
.ipw-upload strong { font-size: 12px; }
.ipw-upload span { font-size: 10px; color: var(--ipw-muted); }
.ipw-progress {
    margin-top: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d7e0ea;
    overflow: hidden;
}
.ipw-progress i {
    display: block;
    height: 100%;
    width: var(--w, 0%);
    background: linear-gradient(90deg, var(--ipw-teal), var(--ipw-blue));
    border-radius: inherit;
    transition: width .35s linear;
}
.ipw-payopts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ipw-payopts span {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--ipw-line);
    color: var(--ipw-muted);
}
.ipw-payopts span.is-on {
    background: #111;
    color: #fff;
    border-color: #111;
}
.ipw-toast {
    background: #e8f8f0;
    color: #0f7a4d;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
}
.ipw-slide.is-active .ipw-toast.is-show {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease, transform .4s ease;
}
.ipw-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.ipw-timeline li {
    position: relative;
    padding: 8px 10px 8px 28px;
    background: #fff;
    border: 1px solid var(--ipw-line);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 650;
    color: var(--ipw-muted);
}
.ipw-timeline li::before {
    content: "";
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #c5d0db;
}
.ipw-timeline li.done { color: var(--ipw-ink); }
.ipw-timeline li.done::before { background: #0f7a4d; }
.ipw-timeline li.active {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}
.ipw-timeline li.active::before { background: #1d4ed8; box-shadow: 0 0 0 4px rgba(29,78,216,.18); }
.ipw-success {
    background: linear-gradient(145deg, #043a40, #0b5f66);
    color: #fff;
    border-radius: 14px;
    padding: 16px 14px;
    display: grid;
    gap: 4px;
}
.ipw-success strong { font-size: 14px; }
.ipw-success span { font-size: 11px; opacity: .85; }
.ipw-notify {
    background: #fff;
    border: 1px solid var(--ipw-line);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 2px;
    box-shadow: 0 8px 18px rgba(7,59,87,.08);
}
.ipw-notify strong { font-size: 12px; }
.ipw-notify span { font-size: 10px; color: var(--ipw-muted); }
.ipw-finale {
    text-align: center;
    display: grid;
    gap: 6px;
    place-items: center;
    padding: 12px 8px;
}
.ipw-finale img { border-radius: 12px; }
.ipw-finale strong { font-size: 13px; line-height: 1.35; }
.ipw-finale span { font-size: 10px; color: var(--ipw-muted); }
.ipw-home-indicator {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 108px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    z-index: 4;
}
.ipw-shadow {
    position: absolute;
    left: 10%; right: 10%;
    bottom: -18px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,.35), transparent 70%);
    filter: blur(2px);
    z-index: -1;
}
.ipw-touch {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.9);
    background: rgba(8,119,185,.35);
    box-shadow: 0 0 0 6px rgba(8,119,185,.15);
    opacity: 0;
    transform: scale(.6);
    pointer-events: none;
    z-index: 8;
}
.ipw-touch.is-on {
    opacity: 1;
    transform: scale(1);
    transition: opacity .2s ease, transform .2s ease;
}
.ipw-fade-in { opacity: 0; transform: translateY(6px); }
.ipw-slide.is-active .ipw-fade-in.is-show {
    opacity: 1;
    transform: none;
    transition: opacity .4s ease, transform .4s ease;
}

@keyframes ipw-blink {
    50% { opacity: 0; }
}

.hm-hero-grid--iphone {
    grid-template-columns: 55fr 45fr;
    align-items: center;
}
.hm-hero-visual--iphone {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 24px;
}

@media (max-width: 1024px) {
    .ipw { width: min(100%, 300px); }
    .ipw-phone { max-height: min(560px, 68vh); }
}
@media (max-width: 900px) {
    .hm-hero-grid--iphone { grid-template-columns: 1fr; }
    .hm-hero-visual--iphone { order: 2; padding-top: 8px; }
    .ipw { width: min(100%, 280px); }
}
@media (max-width: 390px) {
    .ipw { width: min(100%, 250px); }
    .ipw-bezel { border-radius: 36px; padding: 8px; }
    .ipw-screen { border-radius: 28px; }
}
@media (max-width: 320px) {
    .ipw { width: min(100%, 220px); }
}

@media (prefers-reduced-motion: reduce) {
    .ipw-slide,
    .ipw-slide.is-active,
    .ipw-fade-in,
    .ipw-toast,
    .ipw-caret,
    .ipw-touch,
    .ipw-progress i {
        transition: none !important;
        animation: none !important;
    }
    .ipw-slide { opacity: 0; transform: none; }
    .ipw-slide.is-active { opacity: 1; }
}
