body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    opacity: 1;
}

.faq-item.active .faq-toggle svg {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* ============================================================
   Invoice AI Animation — Hero Component
   Loop: 9s | scan(7→40%) → highlights(13→86%) → badge+cards(34→86%) → fadeout(90→100%)
   ============================================================ */

.invoice-anim-wrapper {
    position: relative;
    min-height: 460px;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Document card (white paper) ── */
.doc-card {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 148px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.18);
    overflow: hidden;
    animation: iav-doc-enter 9s ease-in-out infinite;
}

@keyframes iav-doc-enter {
    0%   { opacity: 0; transform: translateY(10px) scale(0.985); }
    7%   { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 8px 32px rgba(30,58,138,0.18); }
    85%  { opacity: 1; box-shadow: 0 8px 32px rgba(30,58,138,0.18); }
    87%  { box-shadow: 0 0 0 3px rgba(74,222,128,0.55), 0 8px 32px rgba(30,58,138,0.18); }
    90%  { opacity: 1; box-shadow: 0 8px 32px rgba(30,58,138,0.18); }
    96%  { opacity: 0; }
    100% { opacity: 0; transform: translateY(0) scale(1); }
}

/* ── Document header ── */
.doc-hd {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.doc-hd-badge {
    flex-shrink: 0;
    width: 34px;
    height: 44px;
    border: 2px solid #1e3a8a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.doc-hd-badge-letter {
    font-size: 17px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

.doc-hd-badge-sub {
    font-size: 5px;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
}

.doc-hd-mid {
    flex: 1;
}

.doc-hd-type {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

.doc-hd-num {
    font-size: 8px;
    color: #475569;
    margin-top: 2px;
}

.doc-hd-date {
    font-size: 6.5px;
    color: #64748b;
    margin-top: 3px;
}

.doc-hd-issuer {
    text-align: right;
    font-size: 6.5px;
    color: #475569;
    line-height: 1.55;
}

.doc-hd-issuer strong {
    font-size: 8px;
    color: #1e293b;
    display: block;
    margin-bottom: 1px;
}

/* ── Recipient section ── */
.doc-recipient {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 5px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 10px;
}

.doc-rec-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-rec-lbl {
    font-size: 5.5px;
    color: #94a3b8;
    flex-shrink: 0;
    width: 30px;
}

.doc-rec-bar {
    height: 5px;
    background: #cbd5e1;
    border-radius: 2px;
    flex: 1;
}

.doc-rec-bar.s { max-width: 55%; }
.doc-rec-bar.m { max-width: 75%; }

/* ── Items table ── */
.doc-tbl {
    padding: 0 10px;
}

.doc-tbl-head {
    display: grid;
    grid-template-columns: 3fr 1fr 1.3fr 1.3fr;
    gap: 4px;
    padding: 4px 0;
    border-bottom: 1.5px solid #1e3a8a;
}

.doc-tbl-head span {
    font-size: 5.5px;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.doc-tbl-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1.3fr 1.3fr;
    gap: 4px;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.doc-tbl-desc {
    height: 5px;
    background: #e2e8f0;
    border-radius: 2px;
    width: 90%;
}

.doc-tbl-desc.s { width: 65%; }

.doc-tbl-val {
    height: 5px;
    background: #e2e8f0;
    border-radius: 2px;
}

/* ── Total row ── */
.doc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: #f8fafc;
    border-top: 1.5px solid #1e3a8a;
}

.doc-total-lbl {
    font-size: 8px;
    font-weight: 700;
    color: #1e3a8a;
}

.doc-total-amt {
    height: 9px;
    width: 60px;
    background: #1e3a8a;
    border-radius: 3px;
    opacity: 0.82;
}

/* ── CAE / QR footer ── */
.doc-cae {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.doc-qr {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 2px;
    background-color: #e2e8f0;
    background-image:
        linear-gradient(#1e3a8a 100%, transparent 0),
        linear-gradient(#1e3a8a 100%, transparent 0),
        linear-gradient(#1e3a8a 100%, transparent 0);
    background-size: 8px 8px, 8px 8px, 4px 4px;
    background-position: 1px 1px, 13px 13px, 7px 7px;
    background-repeat: no-repeat;
}

.doc-cae-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-cae-bar {
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.doc-cae-bar.s { width: 65%; }

/* ── Scan line ── */
.doc-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74,222,128,0.5) 15%,
        rgba(96,165,250,1) 35%,
        rgba(74,222,128,1) 50%,
        rgba(96,165,250,1) 65%,
        rgba(74,222,128,0.5) 85%,
        transparent 100%
    );
    box-shadow: 0 0 6px rgba(74,222,128,0.65), 0 0 14px rgba(96,165,250,0.35);
    z-index: 10;
    pointer-events: none;
    animation: iav-scan 9s ease-in-out infinite;
}

.doc-scan::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: -10px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(74,222,128,0.06), transparent);
    pointer-events: none;
}

@keyframes iav-scan {
    0%   { opacity: 0; top: 2%; }
    7%   { opacity: 0; top: 2%; }
    10%  { opacity: 1; top: 2%; }
    38%  { opacity: 1; top: 97%; }
    41%  { opacity: 0; top: 97%; }
    100% { opacity: 0; top: 2%; }
}

/* ── Field highlights ── */
.doc-fhl {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 8px;
    background: rgba(74, 222, 128, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.6);
    border-radius: 3px;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
}

/* Positions are % of doc-card height; targets visible area above the dark gradient */
.doc-fhl-1 { top: 9%;  height: 9px;  animation: iav-fhl1 9s ease-in-out infinite; }
.doc-fhl-2 { top: 19%; height: 7px;  animation: iav-fhl2 9s ease-in-out infinite; }
.doc-fhl-3 { top: 30%; height: 6px;  animation: iav-fhl3 9s ease-in-out infinite; }
.doc-fhl-4 { top: 44%; height: 10px; animation: iav-fhl4 9s ease-in-out infinite; }

@keyframes iav-fhl1 {
    0%, 13%   { opacity: 0; }
    17%, 86%  { opacity: 1; }
    91%, 100% { opacity: 0; }
}
@keyframes iav-fhl2 {
    0%, 18%   { opacity: 0; }
    22%, 86%  { opacity: 1; }
    91%, 100% { opacity: 0; }
}
@keyframes iav-fhl3 {
    0%, 24%   { opacity: 0; }
    28%, 86%  { opacity: 1; }
    91%, 100% { opacity: 0; }
}
@keyframes iav-fhl4 {
    0%, 30%   { opacity: 0; }
    34%, 86%  { opacity: 1; }
    91%, 100% { opacity: 0; }
}

/* ── AI Processing Badge ── */
.doc-ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 58, 138, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(74, 222, 128, 0.45);
    border-radius: 20px;
    padding: 5px 10px;
    z-index: 22;
    opacity: 0;
    animation: iav-badge 9s ease-in-out infinite;
}

.doc-ai-badge span {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    font-family: 'Inter', system-ui, sans-serif;
}

@keyframes iav-badge {
    0%, 34%   { opacity: 0; transform: translateY(-4px) scale(0.95); }
    39%, 86%  { opacity: 1; transform: translateY(0) scale(1); }
    91%, 100% { opacity: 0; transform: translateY(-4px) scale(0.95); }
}

.doc-ai-dot {
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    animation: iav-dot 1.2s ease-in-out infinite;
}

.doc-ai-dot:nth-child(2) { animation-delay: 0.15s; }
.doc-ai-dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes iav-dot {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50%      { transform: translateY(-3px); opacity: 1; }
}

/* ── z-index helpers ── */
.iav-overlay    { z-index: 15; pointer-events: none; }
.iav-cards-area { z-index: 25; }

/* ── Cards header ── */
.iav-cards-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 11px;
}

.iav-title-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: iav-title-pulse 1.6s ease-in-out infinite;
}

@keyframes iav-title-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); opacity: 1; }
    50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0); opacity: 0.65; }
}

/* ── Data extraction cards — professional hierarchy ──
   Muted neutral label · prominent white value · green check = "field extracted ✓"
   Staggered reveal: 3% per card (≈0.27s at 9s) */
.iav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(148, 197, 253, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
}

.iav-card-check {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
}

.iav-card-check::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.iav-card-label {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(203, 213, 225, 0.62);
    padding-right: 18px;
}

.iav-card-value {
    font-size: 12px;
    font-weight: 500;
    color: #f1f5f9;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.iav-card:nth-child(1) { animation: iav-c1 9s ease-in-out infinite; }
.iav-card:nth-child(2) { animation: iav-c2 9s ease-in-out infinite; }
.iav-card:nth-child(3) { animation: iav-c3 9s ease-in-out infinite; }
.iav-card:nth-child(4) { animation: iav-c4 9s ease-in-out infinite; }
.iav-card:nth-child(5) { animation: iav-c5 9s ease-in-out infinite; }
.iav-card:nth-child(6) { animation: iav-c6 9s ease-in-out infinite; }
.iav-card:nth-child(7) { animation: iav-c7 9s ease-in-out infinite; }
.iav-card:nth-child(8) { animation: iav-c8 9s ease-in-out infinite; }

@keyframes iav-c1 {
    0%, 39%   { opacity: 0; transform: translateY(6px); }
    44%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}
@keyframes iav-c2 {
    0%, 42%   { opacity: 0; transform: translateY(6px); }
    47%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}
@keyframes iav-c3 {
    0%, 45%   { opacity: 0; transform: translateY(6px); }
    50%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}
@keyframes iav-c4 {
    0%, 48%   { opacity: 0; transform: translateY(6px); }
    53%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}
@keyframes iav-c5 {
    0%, 51%   { opacity: 0; transform: translateY(6px); }
    56%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}
@keyframes iav-c6 {
    0%, 54%   { opacity: 0; transform: translateY(6px); }
    59%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}
@keyframes iav-c7 {
    0%, 57%   { opacity: 0; transform: translateY(6px); }
    62%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}
@keyframes iav-c8 {
    0%, 60%   { opacity: 0; transform: translateY(6px); }
    65%, 86%  { opacity: 1; transform: translateY(0); }
    91%, 100% { opacity: 0; }
}

/* ── Document content build-in (synced with scan: 10%→38% of 9s loop) ──
   transform-origin: left so bars grow left-to-right, like data being written */
.doc-rec-bar,
.doc-tbl-desc,
.doc-tbl-val,
.doc-total-amt,
.doc-cae-bar {
    transform-origin: left center;
}

.doc-rec-bar   { animation: iav-bar-a 9s ease-in-out infinite; }
.doc-tbl-desc,
.doc-tbl-val   { animation: iav-bar-b 9s ease-in-out infinite; }
.doc-total-amt { animation: iav-bar-c 9s ease-in-out infinite; }
.doc-cae-bar   { animation: iav-bar-d 9s ease-in-out infinite; }

@keyframes iav-bar-a {
    0%, 14%   { transform: scaleX(0); }
    22%, 90%  { transform: scaleX(1); }
    96%, 100% { transform: scaleX(0); }
}
@keyframes iav-bar-b {
    0%, 21%   { transform: scaleX(0); }
    30%, 90%  { transform: scaleX(1); }
    96%, 100% { transform: scaleX(0); }
}
@keyframes iav-bar-c {
    0%, 29%   { transform: scaleX(0); }
    37%, 90%  { transform: scaleX(1); }
    96%, 100% { transform: scaleX(0); }
}
@keyframes iav-bar-d {
    0%, 35%   { transform: scaleX(0); }
    41%, 90%  { transform: scaleX(1); }
    96%, 100% { transform: scaleX(0); }
}

/* ============================================================
   AI Document — 3-column hero (invoice | AI core | results)
   Adapted from landing/components/invoice reference
   Brand: blue-900 #1e3a8a · blue-500 #3b82f6 · green-400 #4ade80
   Loop: 6s
   ============================================================ */

.iad-wrapper {
    background:
        radial-gradient(circle at 22% 28%, rgba(30,58,138,.45), transparent 45%),
        radial-gradient(circle at 80% 78%, rgba(37,99,235,.28), transparent 45%),
        #0a1628;
    border-radius: 20px;
    padding: 56px 40px;
    overflow: hidden;
}

.iad-container {
    display: grid;
    grid-template-columns: 1fr 210px 1fr;
    align-items: center;
    gap: 36px;
}

/* ── Glass cards ── */
.iad-invoice-card,
.iad-result-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 0 50px rgba(37,99,235,.1), inset 0 1px 0 rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
}

.iad-invoice-card { transform: rotate(-3deg); }
.iad-result-card  { transform: rotate(2.5deg); }

/* ── Invoice header ── */
.iad-inv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.iad-inv-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iad-inv-badge {
    width: 28px;
    height: 36px;
    border: 2px solid #60a5fa;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.iad-inv-badge-letter {
    font-size: 13px;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
}

.iad-inv-badge-sub {
    font-size: 4px;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
}

.iad-inv-type {
    font-size: 10px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: .5px;
}

.iad-inv-num {
    font-size: 7px;
    color: #475569;
    margin-top: 1px;
}

.iad-inv-logo {
    font-size: 9px;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: .1em;
}

/* ── Invoice rows (reveal as scan passes) ── */
.iad-inv-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    opacity: 0;
}

.iad-inv-label {
    font-size: 9px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.iad-inv-value {
    font-size: 12px;
    font-weight: 500;
    color: #f1f5f9;
}

.iad-inv-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    opacity: 0;
}

.iad-inv-total-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.iad-inv-total-val {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.iad-inv-row:nth-child(2) { animation: iad-inv1 6s ease-in-out infinite; }
.iad-inv-row:nth-child(3) { animation: iad-inv2 6s ease-in-out infinite; }
.iad-inv-row:nth-child(4) { animation: iad-inv3 6s ease-in-out infinite; }
.iad-inv-total            { animation: iad-inv4 6s ease-in-out infinite; }

@keyframes iad-inv1 {
    0%, 15%  { opacity: 0; } 22%, 82% { opacity: 1; } 90%,100% { opacity: 0; }
}
@keyframes iad-inv2 {
    0%, 27%  { opacity: 0; } 34%, 82% { opacity: 1; } 90%,100% { opacity: 0; }
}
@keyframes iad-inv3 {
    0%, 39%  { opacity: 0; } 46%, 82% { opacity: 1; } 90%,100% { opacity: 0; }
}
@keyframes iad-inv4 {
    0%, 50%  { opacity: 0; } 57%, 82% { opacity: 1; } 90%,100% { opacity: 0; }
}

/* ── Scan line ── */
.iad-scan {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74,222,128,.5) 15%,
        rgba(96,165,250,1) 35%,
        rgba(74,222,128,1) 50%,
        rgba(96,165,250,1) 65%,
        rgba(74,222,128,.5) 85%,
        transparent 100%
    );
    box-shadow: 0 0 6px rgba(74,222,128,.65), 0 0 14px rgba(96,165,250,.35);
    z-index: 10;
    pointer-events: none;
    animation: iad-scan 6s ease-in-out infinite;
}

@keyframes iad-scan {
    0%   { opacity: 0; top: 2%; }
    8%   { opacity: 1; top: 2%; }
    55%  { opacity: 1; top: 97%; }
    62%  { opacity: 0; top: 97%; }
    100% { opacity: 0; top: 2%; }
}

/* ── Field highlights ── */
.iad-fhl {
    position: absolute;
    left: 12px; right: 12px;
    background: rgba(74,222,128,.1);
    border: 1px solid rgba(74,222,128,.45);
    border-radius: 3px;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
}

.iad-fhl-1 { top: 26%; height: 16px; animation: iad-fhl1 6s ease-in-out infinite; }
.iad-fhl-2 { top: 42%; height: 16px; animation: iad-fhl2 6s ease-in-out infinite; }
.iad-fhl-3 { top: 57%; height: 16px; animation: iad-fhl3 6s ease-in-out infinite; }
.iad-fhl-4 { top: 74%; height: 18px; animation: iad-fhl4 6s ease-in-out infinite; }

@keyframes iad-fhl1 { 0%,14%{opacity:0} 20%,78%{opacity:1} 85%,100%{opacity:0} }
@keyframes iad-fhl2 { 0%,26%{opacity:0} 32%,78%{opacity:1} 85%,100%{opacity:0} }
@keyframes iad-fhl3 { 0%,37%{opacity:0} 43%,78%{opacity:1} 85%,100%{opacity:0} }
@keyframes iad-fhl4 { 0%,47%{opacity:0} 53%,78%{opacity:1} 85%,100%{opacity:0} }

/* ── AI Core ── */
.iad-ai-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.iad-pulse {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59,130,246,.35);
    animation: iad-pulse 2.4s ease-out infinite;
}

.iad-pulse-1 { width: 130px; height: 130px; }
.iad-pulse-2 { width: 180px; height: 180px; animation-delay: .8s; }
.iad-pulse-3 { width: 230px; height: 230px; animation-delay: 1.6s; }

@keyframes iad-pulse {
    0%   { transform: scale(.85); opacity: .7; }
    100% { transform: scale(1.2);  opacity: 0; }
}

.iad-ai-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(59,130,246,.5), 0 0 100px rgba(30,58,138,.35);
    z-index: 2;
    position: relative;
}

.iad-ai-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(30,58,138,.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(74,222,128,.4);
    border-radius: 20px;
    padding: 5px 12px;
}

.iad-ai-badge span {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.iad-ai-dot {
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    animation: iad-dot 1.2s ease-in-out infinite;
}

.iad-ai-dot:nth-child(2) { animation-delay: .2s; }
.iad-ai-dot:nth-child(3) { animation-delay: .4s; }

@keyframes iad-dot {
    0%,100% { transform: translateY(0); opacity: .4; }
    50%      { transform: translateY(-3px); opacity: 1; }
}

/* ── Result card ── */
.iad-result-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(226,232,240,.72);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.iad-result-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: iad-rdot 1.6s ease-in-out infinite;
}

@keyframes iad-rdot {
    0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
    50%      { box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

.iad-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    opacity: 0;
}

.iad-field:last-of-type { border-bottom: none; }

.iad-field-label {
    font-size: 9px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-top: 2px;
}

.iad-field-val { text-align: right; }

.iad-field-val strong {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #f1f5f9;
}

.iad-field-conf {
    font-size: 9px;
    color: #4ade80;
    margin-top: 2px;
}

.iad-checks {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
}

.iad-check {
    font-size: 10px;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 6px;
}

.iad-check::before { content: '✓'; font-weight: 700; }

/* ── Result field staggered reveal ── */
.iad-field:nth-child(2) { animation: iad-f1 6s ease-in-out infinite; }
.iad-field:nth-child(3) { animation: iad-f2 6s ease-in-out infinite; }
.iad-field:nth-child(4) { animation: iad-f3 6s ease-in-out infinite; }
.iad-field:nth-child(5) { animation: iad-f4 6s ease-in-out infinite; }
.iad-checks             { animation: iad-fchk 6s ease-in-out infinite; }

@keyframes iad-f1 {
    0%, 60%  { opacity: 0; transform: translateX(8px); }
    67%, 84% { opacity: 1; transform: translateX(0); }
    90%,100% { opacity: 0; }
}
@keyframes iad-f2 {
    0%, 65%  { opacity: 0; transform: translateX(8px); }
    72%, 84% { opacity: 1; transform: translateX(0); }
    90%,100% { opacity: 0; }
}
@keyframes iad-f3 {
    0%, 70%  { opacity: 0; transform: translateX(8px); }
    77%, 84% { opacity: 1; transform: translateX(0); }
    90%,100% { opacity: 0; }
}
@keyframes iad-f4 {
    0%, 75%  { opacity: 0; transform: translateX(8px); }
    82%, 86% { opacity: 1; transform: translateX(0); }
    90%,100% { opacity: 0; }
}
@keyframes iad-fchk {
    0%, 80%  { opacity: 0; }
    87%, 90% { opacity: 1; }
    95%,100% { opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .iad-wrapper    { padding: 40px 20px; }
    .iad-container  { grid-template-columns: 1fr; gap: 40px; }
    .iad-invoice-card,
    .iad-result-card { transform: none; }
    .iad-pulse-2, .iad-pulse-3 { display: none; }
}