/* Statement checker hero film: a looping demo of a check, played on the statement itself. */
.sv-film-slot { position: relative; }
.sv-film-slot[data-sv-film-slot="drop"] { display: none; }
.statement-hero.sv-film-on .hero-points { display: none; }

/* Computer: the headline across the top, then the film and the upload card side by side at one height. */
@media (min-width: 981px) {
    .statement-shell.sv-film-shell { padding-top: 16px; }
    .statement-hero.sv-film-on {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "copy copy" "film card";
        align-items: stretch;
        column-gap: 28px;
        row-gap: 18px;
        min-height: 0;
    }
    .statement-hero.sv-film-on .hero-copy { grid-area: copy; text-align: center; }
    .statement-hero.sv-film-on .eyebrow { margin: 0 auto; }
    body.has-global-nav .statement-hero.sv-film-on .hero-copy h1 {
        max-width: none;
        margin: 12px auto 8px;
        font-size: clamp(2.6rem, 3.9vw, 3.9rem) !important;
        line-height: 1.02 !important;
        text-wrap: balance;
    }
    .statement-hero.sv-film-on .hero-copy p {
        max-width: 860px;
        margin: 0 auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .statement-hero.sv-film-on .sv-film-slot[data-sv-film-slot="hero"] { grid-area: film; min-height: 540px; }
    .statement-hero.sv-film-on .sv-film-slot[data-sv-film-slot="hero"] > .svf { position: absolute; inset: 0; }
    .statement-hero.sv-film-on .upload-card { grid-area: card; display: flex; flex-direction: column; }
    .statement-hero.sv-film-on .upload-card .drop-zone { flex: 1 1 auto; min-height: 150px; }
}

@media (max-width: 980px) {
    .sv-film-slot[data-sv-film-slot="hero"] { display: none; }
    .sv-film-slot[data-sv-film-slot="drop"] { display: block; min-height: 214px; margin: -4px -4px 8px; }
    .drop-zone.sv-film-host { padding: 10px; min-height: 0; place-items: stretch; grid-template-columns: minmax(0, 1fr); }
    .drop-zone.sv-film-host > span,
    .sv-film-slot { min-width: 0; }
    .drop-zone.sv-film-host > span > i { display: none; }
    .drop-zone.sv-film-host > span > strong { margin: 0; font-size: .92rem; text-align: center; }
    .drop-zone.sv-film-host > span > span:not(.sv-film-slot) { margin-top: 2px; font-size: .78rem; text-align: center; }
    .drop-zone.sv-film-host.sv-film-done .sv-film-slot { display: none; }
    /* Keep the upload button on the first phone screen: the film already says what the eyebrow, the
       format line and the empty file line say. They come back once a file is chosen. The "tap to
       choose" line stays: without it nothing on the screen says the film is where the file goes. */
    /* Static, not the .sv-film-phone class the film adds after load: hiding the eyebrow late pushed the
       whole hero up ~40px about 3 s in (CLS 0.23 on phones). */
    .statement-hero .eyebrow { display: none; }
    .statement-hero .hero-copy h1 { margin-top: 0; }
    .drop-zone.sv-film-host:not(.sv-film-done) > span > span:not(.sv-film-slot) { display: none; }
    .drop-zone.sv-film-host:not(.sv-film-done) + .file-meta { display: none; }
    .drop-zone.sv-film-host.sv-film-done > span > i { display: inline-grid; }
}

/* The film window */
.svf {
    --g: #31e274; --g2: #89f7a9; --amber: #f2cc5d; --red: #ff4d6d; --ink: #f5f7f6; --mute: #9fb0a7;
    position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; min-height: 214px; border-radius: 14px;
    border: 1px solid rgba(80, 235, 139, .32);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(49, 226, 116, .16), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(49, 226, 116, .08), transparent 60%),
        linear-gradient(180deg, rgba(10, 26, 19, .96), rgba(4, 12, 9, .98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
    color: var(--ink); font-family: Inter, system-ui, sans-serif; text-align: left; line-height: 1.4; cursor: pointer; user-select: none;
    transition: border-color .5s ease, box-shadow .5s ease;
}
.svf.is-bad { border-color: rgba(255, 77, 109, .6); box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 70px rgba(255, 77, 109, .16); }
.svf.is-good { border-color: rgba(49, 226, 116, .65); box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 70px rgba(49, 226, 116, .18); }
.svf * { box-sizing: border-box; }
.svf em { font-style: normal; }
.svf-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.svf-top { flex: none; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .78rem; }
.svf-dots { display: flex; gap: 6px; }
.svf-dots em { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.svf-dots em:first-child { background: rgba(255, 77, 109, .7); } .svf-dots em:nth-child(2) { background: rgba(242, 204, 93, .7); } .svf-dots em:nth-child(3) { background: rgba(49, 226, 116, .7); }
.svf-file { display: flex; align-items: center; min-width: 0; color: var(--mute); }
.svf-file b { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svf-upload { flex: 1; min-width: 30px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.svf-upload em { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g), var(--g2)); box-shadow: 0 0 12px var(--g); }
.svf.is-uploading .svf-upload em { width: 100%; transition: width .6s cubic-bezier(.3, .7, .2, 1); }
.svf-tag { padding: 2px 7px; border-radius: 6px; background: rgba(242, 204, 93, .16); color: var(--amber); font-size: .66rem; font-weight: 800; letter-spacing: .06em; }
.svf-time { color: var(--g2); font-weight: 700; min-width: 42px; text-align: right; }

/* The desk the statement lies on, and the statement drawn at design size (scaled by the script) */
.svf-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
    background:
        radial-gradient(70% 60% at 50% 45%, rgba(49, 226, 116, .07), transparent 70%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 24px); }
.svf-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.svf-paper { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; padding: 22px 24px 14px;
    border-radius: 6px; background: #fff; color: #1b2430; font-family: "Helvetica Neue", Arial, sans-serif; line-height: 1.35;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06);
    opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.svf.is-doc .svf-paper { opacity: 1; transform: none; }
.svf.is-bad.is-verdict .svf-paper { animation: svf-thud .45s ease .1s; }

.svf-p-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.svf-logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.svf-logo img { display: block; height: 26px; width: auto; max-width: 200px; object-fit: contain; }
.svf-logo b { display: none; font-size: 17px; font-weight: 800; color: #1b2430; white-space: nowrap; }
.svf-logo.has-name b, .svf-logo.no-img b { display: block; }
.svf-logo.no-img img { display: none; }
.svf-p-title { text-align: right; }
.svf-p-title b { display: block; font-size: 14px; font-weight: 800; }
.svf-p-title div, .svf-p-ids { font-size: 10.5px; color: #5d6b7a; }
.svf-t { display: inline-block; }
.svf-p-cust { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 10.5px; line-height: 1.5; color: #4b5866; }
.svf-p-cust b { font-size: 11.5px; color: #1b2430; letter-spacing: .02em; }
.svf-p-ids { text-align: right; line-height: 1.5; }
.svf-p-rule { flex: none; height: 3px; margin: 12px 0; border-radius: 2px; }
.svf-p-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 9px 10px; border-radius: 6px; background: #f2f5f8; }
.svf-p-sum em { display: block; font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: #6b7785; white-space: nowrap; }
.svf-p-sum b { display: block; margin-top: 2px; font-size: 13px; font-weight: 800; color: #1b2430; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svf-p-detail { margin: 16px 0 6px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.svf-p-th, .svf-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 86px 86px; gap: 8px; align-items: center; }
.svf-p-th { padding: 0 6px 4px; border-bottom: 1px solid #d6dde4; font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: #6b7785; }
.svf-p-th > div:nth-child(n+3) { text-align: right; }
.svf-row { position: relative; height: 30px; padding: 0 6px; border-bottom: 1px solid #edf1f4; font-size: 12px; font-variant-numeric: tabular-nums; transition: background .3s ease; }
.svf-row .dt { color: #5d6b7a; font-size: 10.5px; white-space: nowrap; }
.svf-row .ds { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.svf-row .amt, .svf-row .bal { display: flex; justify-content: flex-end; white-space: nowrap; }
.svf-row .amt.in em { color: #13804a; }
.svf-row .amt.is-forged em { font-family: Georgia, "Times New Roman", serif; letter-spacing: .03em; }
.svf-row.is-ok { background: rgba(49, 226, 116, .1); }
.svf-row.is-flag { background: rgba(255, 77, 109, .12); }
.svf .is-boxed { outline: 1.5px dashed #e09a00; outline-offset: 2px; border-radius: 2px; }
.svf .is-struck { color: #d01f45; text-decoration: line-through; text-decoration-thickness: 2px; }
.svf-p-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid #e3e8ed; font-size: 9px; color: #7a8693; }

/* Reading and marking */
.svf-beam { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; pointer-events: none; opacity: 0;
    background: var(--g); box-shadow: 0 0 14px 2px rgba(49, 226, 116, .75); }
.svf-beam::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 56px; background: linear-gradient(180deg, transparent, rgba(49, 226, 116, .18)); }
.svf.is-scan .svf-beam { opacity: 1; }
.svf-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.svf-mark { position: absolute; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    font-family: Inter, system-ui, sans-serif; font-size: 9px; font-weight: 900; line-height: 1;
    box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, .25); animation: svf-pop .35s cubic-bezier(.2, .9, .3, 1.4) both; }
.svf-mark.is-ok { background: #1fbf63; } .svf-mark.is-warn { background: #ef9f00; } .svf-mark.is-bad { background: #ef3b5d; }
.svf-callout { position: absolute; left: 0; top: 0; z-index: 4; max-width: 240px; padding: 7px 11px 7px 31px; border-radius: 8px; pointer-events: none;
    background: #0e1a14; color: #c9d8cf; font-family: Inter, system-ui, sans-serif; font-size: 10.5px; line-height: 1.35;
    border: 1px solid rgba(49, 226, 116, .6); box-shadow: 0 14px 34px rgba(6, 20, 13, .35);
    opacity: 0; transform: scale(.9); transition: opacity .2s ease, transform .3s cubic-bezier(.2, .9, .3, 1.3); }
.svf-callout b { display: block; font-size: 11.5px; color: #fff; }
.svf-callout::before { content: attr(data-sym); position: absolute; left: 8px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
    display: grid; place-items: center; font-size: 9px; font-weight: 900; background: var(--g); color: #04130b; }
.svf-callout::after { content: ""; position: absolute; width: 8px; height: 8px; background: #0e1a14; border: inherit; transform: rotate(45deg); }
.svf-callout.at-left::after { right: -5px; top: 50%; margin-top: -4px; border-left: 0; border-bottom: 0; }
.svf-callout.at-below::after { top: -5px; right: 24px; border-right: 0; border-bottom: 0; }
.svf-callout.at-above::after { bottom: -5px; right: 24px; border-left: 0; border-top: 0; }
.svf-callout.is-warn { border-color: rgba(242, 177, 30, .75); } .svf-callout.is-warn::before { background: #f2b11e; color: #201700; }
.svf-callout.is-bad { border-color: rgba(255, 77, 109, .8); box-shadow: 0 14px 34px rgba(255, 77, 109, .3); } .svf-callout.is-bad::before { background: var(--red); color: #fff; }
.svf-callout.is-on { opacity: 1; transform: none; }

/* Verdict stamp, report and share */
.svf-stamp { position: absolute; z-index: 5; left: 128px; top: 318px; display: flex; align-items: center; gap: 12px; padding: 9px 18px 9px 9px;
    border: 3px solid currentColor; border-radius: 12px; background: rgba(255, 255, 255, .94); color: #e0324f;
    font-family: Inter, system-ui, sans-serif; box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
    opacity: 0; transform: rotate(-7deg) scale(1.9); transition: opacity .16s ease, transform .42s cubic-bezier(.2, 1.3, .35, 1); }
.svf.is-good .svf-stamp { color: #12a150; }
.svf.is-verdict .svf-stamp { opacity: 1; transform: rotate(-7deg); }
.svf-ring { position: relative; width: 62px; height: 62px; flex: none; }
.svf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.svf-ring circle { fill: none; stroke-width: 9; }
.svf-ring .trk { stroke: rgba(0, 0, 0, .08); }
.svf-ring .arc { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 239; stroke-dashoffset: 239; }
.svf-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.svf-stamp-txt b { display: block; font-size: 19px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.svf-stamp-txt div { font-size: 10.5px; font-weight: 700; color: #4b5866; }

.svf-report { position: absolute; z-index: 6; left: 14px; right: 14px; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    border-radius: 10px; background: #0c1913; border: 1px solid rgba(49, 226, 116, .45); color: #e9f2ec; font-family: Inter, system-ui, sans-serif;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(26px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.15); }
.svf.is-report .svf-report { opacity: 1; transform: none; }
.svf-pdf { position: relative; flex: none; width: 28px; height: 34px; border-radius: 4px; background: #fff; }
.svf-pdf::before { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 12px;
    background: repeating-linear-gradient(180deg, #c8d1da 0 2px, transparent 2px 5px); }
.svf-pdf em { position: absolute; left: -5px; bottom: 4px; padding: 1px 4px; border-radius: 3px; background: #ef3b5d; color: #fff; font-size: 8px; font-weight: 900; }
.svf-report-txt { flex: 1; min-width: 0; }
.svf-report-txt b { display: block; font-size: 12px; }
.svf-report-txt div { font-size: 10px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svf-btn { flex: none; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 11px; font-weight: 800; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.svf-btn.is-share { background: var(--g); border-color: transparent; color: #04130b; }
.svf-btn.is-share.is-done { background: #fff; color: #0c1913; }
.svf-toast { position: absolute; right: 8px; bottom: calc(100% + 8px); padding: 6px 10px; border-radius: 8px; background: #fff; color: #0c1913;
    font-size: 10.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
    opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .3s ease; }
.svf-toast.is-on { opacity: 1; transform: none; }
.svf-cursor { position: absolute; left: 0; top: 0; z-index: 8; width: 20px; height: 20px; pointer-events: none; opacity: 0;
    transition: transform .75s cubic-bezier(.45, 0, .2, 1), opacity .2s ease; }
.svf-cursor.is-on { opacity: 1; }
.svf-cursor svg { display: block; width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); transition: transform .12s ease; }
.svf-cursor.is-press svg { transform: scale(.8); }
.svf-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--g); opacity: 0; }
.svf-cursor.is-press::after { animation: svf-ripple .55s ease-out; }

/* Progress steps, evenly spread */
.svf-steps { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; height: 42px; padding: 0 8px;
    border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .25); }
.svf-step { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; color: var(--mute); font-size: .76rem; white-space: nowrap; transition: color .3s ease; }
.svf-step b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.svf-step em { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 900;
    border: 1.5px solid rgba(255, 255, 255, .2); transition: background .3s ease, border-color .3s ease, color .3s ease; }
.svf-step.is-done { color: #cfe9da; }
.svf-step.is-done em { background: rgba(49, 226, 116, .18); border-color: var(--g); color: var(--g2); }
.svf-step.is-on { color: var(--g2); }
.svf-step.is-on em { background: var(--g); border-color: var(--g); color: #04130b; box-shadow: 0 0 12px rgba(49, 226, 116, .6); }

.svf-wipe { position: absolute; inset: 0; z-index: 9; pointer-events: none; transform: translateX(-102%); background: linear-gradient(90deg, transparent, rgba(49, 226, 116, .18) 30%, #06140d 45%, #06140d 100%); }
.svf.is-wipe .svf-wipe { transform: translateX(0); transition: transform .45s cubic-bezier(.6, 0, .4, 1); }

/* Compact film inside the phone drop zone (design size 320 x 184) */
.svf.is-compact { height: 214px; border-radius: 10px; }
.svf.is-compact .svf-top { height: 28px; padding: 0 10px; gap: 8px; font-size: .68rem; }
.svf.is-compact .svf-dots, .svf.is-compact .svf-time { display: none; }
.svf.is-compact .svf-paper { padding: 9px 17px 6px 10px; border-radius: 5px; }
.svf.is-compact .svf-p-head { min-height: 22px; gap: 8px; }
.svf.is-compact .svf-logo img { height: 16px; max-width: 120px; }
.svf.is-compact .svf-logo b { font-size: 11px; }
.svf.is-compact .svf-p-ids { font-size: 8px; line-height: 1.4; }
.svf.is-compact .svf-p-rule { height: 2px; margin: 6px 0 4px; }
.svf.is-compact .svf-row { grid-template-columns: 36px minmax(0, 1fr) 60px 58px; gap: 5px; height: 23px; padding: 0 3px; font-size: 9.5px; }
.svf.is-compact .svf-row .dt { font-size: 8.5px; }
.svf.is-compact .svf-p-foot { padding-top: 4px; font-size: 7px; }
.svf.is-compact .svf-mark { width: 11px; height: 11px; font-size: 7px; box-shadow: 0 0 0 1.5px #fff, 0 2px 5px rgba(0, 0, 0, .25); }
.svf.is-compact .svf-callout { max-width: 170px; padding: 5px 8px 5px 22px; border-radius: 6px; font-size: 8.5px; }
.svf.is-compact .svf-callout b { font-size: 9.5px; }
.svf.is-compact .svf-callout::before { left: 6px; top: 5px; width: 12px; height: 12px; font-size: 7px; }
.svf.is-compact .svf-callout::after { width: 6px; height: 6px; }
.svf.is-compact .svf-callout.at-left::after { margin-top: -3px; right: -4px; }
.svf.is-compact .svf-stamp { left: 52px; top: 76px; gap: 6px; padding: 4px 10px 4px 4px; border-width: 2px; border-radius: 8px; }
.svf.is-compact .svf-ring { width: 36px; height: 36px; }
.svf.is-compact .svf-ring b { font-size: 13px; }
.svf.is-compact .svf-stamp-txt b { font-size: 11px; }
.svf.is-compact .svf-stamp-txt div { font-size: 7.5px; }
.svf.is-compact .svf-report { left: 6px; right: 6px; bottom: 6px; gap: 6px; padding: 5px 6px; border-radius: 7px; }
.svf.is-compact .svf-pdf { width: 16px; height: 20px; border-radius: 3px; }
.svf.is-compact .svf-pdf::before { left: 3px; right: 3px; top: 4px; height: 7px; }
.svf.is-compact .svf-pdf em { left: -3px; bottom: 2px; padding: 0 2px; font-size: 5px; }
.svf.is-compact .svf-report-txt b { font-size: 9px; }
.svf.is-compact .svf-report-txt div { display: none; }
.svf.is-compact .svf-btn { padding: 3px 7px; font-size: 8px; }
.svf.is-compact .svf-toast { right: 4px; bottom: calc(100% + 5px); padding: 3px 7px; border-radius: 5px; font-size: 8px; }
.svf.is-compact .svf-cursor, .svf.is-compact .svf-cursor svg { width: 14px; height: 14px; }

@keyframes svf-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes svf-thud { 0%, 100% { transform: none; } 25% { transform: translate(-3px, 1px) rotate(-.4deg); } 60% { transform: translate(3px, -1px) rotate(.3deg); } }
@keyframes svf-ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }

@media (prefers-reduced-motion: reduce) {
    .svf *, .svf { animation: none !important; transition: none !important; }
}
