/* Aadhaar eSign page (aadhaar-esign.html) only.
 * Animated product mockups ported from aadhaar.signuluone.com; every class, keyframe and
 * custom property is prefixed with "aa-" so it cannot clash with Bootstrap or theme.css. */
.aadhaar-page {
  --aa-blue: #1d4ed8; --aa-sky: #0ea5e9; --aa-gold: #ca9731; --aa-gold-soft: #fbf3e2;
  --aa-ink: #0f172a; --aa-text: #1e293b; --aa-muted: #5b6577; --aa-line: #e3e8ef; --aa-bg-2: #f5f7fb;
  --aa-green: #16a34a; --aa-green-soft: #e7f6ec;
  --aa-radius: 14px; --aa-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); --aa-shadow-lg: 0 24px 60px rgba(29, 78, 216, 0.18);
}

    /* ===== animated mockups ===== */
    .aa-browser { color: var(--aa-text); text-align: left; background: #fff; border-radius: 16px; box-shadow: var(--aa-shadow-lg); border: 1px solid #dbe3f0; overflow: hidden; }
    .aa-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--aa-line); }
    .aa-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: block; }
    .aa-browser-bar .aa-url { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--aa-line); font-size: 11px; color: var(--aa-muted); display: flex; align-items: center; padding: 0 10px; }
    .aa-app { display: grid; grid-template-columns: 120px 1fr; min-height: 340px; }
    .aa-app-side { border-right: 1px solid var(--aa-line); padding: 14px 10px; background: #fafbfd; }
    .aa-app-side .aa-who { font-size: 10px; font-weight: 700; color: var(--aa-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
    .aa-signer-chip { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--aa-line); background: #fff; margin-bottom: 6px; }
    .aa-signer-chip .aa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aa-blue); }
    .aa-signer-chip.aa-y .aa-dot { background: #eab308; }
    .aa-tile { margin-top: 14px; border: 2px dashed var(--aa-blue); border-radius: 10px; padding: 10px 8px; text-align: center; font-size: 11px; font-weight: 700; color: var(--aa-ink); background: #fff; }
    .aa-tile .aa-fp { width: 26px; height: 26px; margin: 0 auto 4px; display: block; }
    .aa-app-doc { padding: 18px; background: #eef2f7; position: relative; }
    .aa-page { background: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(15,23,42,.08); height: 300px; padding: 22px 22px; position: relative; overflow: hidden; }
    .aa-line { height: 8px; border-radius: 4px; background: #e6eaf1; margin-bottom: 10px; }
    .aa-line.aa-t { height: 12px; width: 55%; background: #d6deea; margin-bottom: 18px; }
    .aa-w90 { width: 90%; } .aa-w80 { width: 80%; } .aa-w70 { width: 70%; } .aa-w60 { width: 60%; } .aa-w40 { width: 40%; }
    .aa-abox { position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px; width: 130px; height: 44px; border: 2px solid var(--aa-blue); border-radius: 6px; background: rgba(242, 250, 255, .9); font-size: 12px; font-weight: 600; color: #000; }
    .aa-alogo { --aa-h: 24px; display: block; flex: none; height: var(--aa-h); width: calc(var(--aa-h) * 1.55); background: #fff url(/img/aadhaar-logo.png) center / calc(var(--aa-h) * 3.371) calc(var(--aa-h) * 1.685) no-repeat; border-radius: 3px; }
    .aa-ic-aadhaar { background: #fff !important; border: 1px solid var(--aa-line); }
    .aa-abox.aa-y { border-color: #eab308; }
    .aa-hero-box { left: 40px; top: 190px; animation: aa-dropIn 7s ease-in-out infinite; }
    .aa-hero-box2 { right: 30px; top: 230px; animation: aa-dropIn2 7s ease-in-out infinite; }
    .aa-toast { position: absolute; right: 16px; top: 16px; background: var(--aa-green); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 8px; box-shadow: 0 8px 18px rgba(22,163,74,.3); animation: aa-toast 7s ease-in-out infinite; }
    .aa-cursor { position: absolute; width: 18px; height: 18px; z-index: 3; animation: aa-cursor 7s ease-in-out infinite; }
    @keyframes aa-dropIn { 0%, 8% { transform: translate(-150px, -130px) scale(.85); opacity: 0; } 12% { opacity: 1; } 30% { transform: translate(0, 0) scale(1); opacity: 1; } 34% { transform: scale(1.05); } 38%, 92% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
    @keyframes aa-dropIn2 { 0%, 38% { opacity: 0; transform: translateY(-14px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
    @keyframes aa-cursor { 0%, 8% { left: 40px; top: 120px; opacity: 0; } 12% { opacity: 1; } 30% { left: 150px; top: 230px; opacity: 1; } 40%, 100% { left: 150px; top: 230px; opacity: 0; } }
    @keyframes aa-toast { 0%, 58% { opacity: 0; transform: translateY(-8px); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

    /* how it works: demo panel inside each step card */
.aa-demo { height: 150px; border-radius: 10px; background: linear-gradient(180deg, #f3f6fb, #eaf0f8); margin-bottom: 16px; position: relative; overflow: hidden; border: 1px solid #e3e9f2; }

/* demo 1: upload */
    .aa-tray { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 150px; height: 46px; border: 2px dashed #9db4e8; border-radius: 10px; background: #fff; }
    .aa-file { position: absolute; left: 50%; top: 10px; width: 34px; height: 42px; margin-left: -17px; background: #fff; border: 2px solid var(--aa-blue); border-radius: 4px; animation: aa-fileDrop 4s ease-in-out infinite; }
    .aa-file::after { content: 'PDF'; position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 800; color: var(--aa-blue); }
    .aa-bar { position: absolute; left: 50%; bottom: 30px; width: 110px; margin-left: -55px; height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
    .aa-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--aa-blue), var(--aa-sky)); animation: aa-fill 4s ease-in-out infinite; }
    .aa-check { position: absolute; right: 22px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--aa-green); animation: aa-pop 4s ease-in-out infinite; }
    .aa-check::after { content: ''; position: absolute; left: 9px; top: 6px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
    .aa-cloud-row { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
    .aa-cloud-row span { font-size: 9px; font-weight: 700; color: var(--aa-muted); background: #fff; border: 1px solid var(--aa-line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
    @keyframes aa-fileDrop { 0% { transform: translateY(-50px); opacity: 0; } 20% { opacity: 1; } 45%, 100% { transform: translateY(48px) scale(.6); opacity: 0; } }
    @keyframes aa-fill { 0%, 40% { width: 0; } 80%, 100% { width: 100%; } }
    @keyframes aa-pop { 0%, 78% { transform: scale(0); } 86% { transform: scale(1.15); } 92%, 100% { transform: scale(1); } }

    /* demo 2: signers */
    .aa-rows { position: absolute; inset: 14px; display: grid; gap: 7px; align-content: start; }
    .aa-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--aa-line); border-radius: 8px; padding: 6px 8px; font-size: 11px; font-weight: 600; opacity: 0; animation: aa-rowIn 4.5s ease-out infinite; }
    .aa-row .aa-av { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 800; }
    .aa-row .aa-pill { margin-left: auto; font-size: 9px; padding: 2px 7px; border-radius: 999px; background: #e8eefc; color: var(--aa-blue); font-weight: 700; }
    .aa-row .aa-pill.aa-cc { background: #f1f5f9; color: var(--aa-muted); }
    .aa-row:nth-child(2) { animation-delay: .5s; } .aa-row:nth-child(3) { animation-delay: 1s; } .aa-row:nth-child(4) { animation-delay: 1.5s; }
    @keyframes aa-rowIn { 0% { opacity: 0; transform: translateX(-16px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

    /* demo 3: place */
    .aa-minipage { position: absolute; top: 14px; width: 27%; height: 96px; background: #fff; border-radius: 4px; box-shadow: 0 3px 8px rgba(15,23,42,.1); padding: 8px; }
    .aa-minipage .aa-line { height: 4px; margin-bottom: 5px; }
    .aa-mp1 { left: 6%; } .aa-mp2 { left: 36.5%; } .aa-mp3 { left: 67%; }
    .aa-minibox { position: absolute; left: 12%; bottom: 10px; width: 76%; height: 18px; border: 1.5px solid var(--aa-blue); border-radius: 3px; background: #eef5ff; font-size: 8px; font-weight: 700; color: var(--aa-blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .aa-mp1 .aa-minibox { animation: aa-drag 4.5s ease-in-out infinite; }
    .aa-mp2 .aa-minibox, .aa-mp3 .aa-minibox { animation: aa-copy 4.5s ease-in-out infinite; }
    .aa-mp3 .aa-minibox { animation-delay: .15s; }
    .aa-allpages { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: 10px; font-weight: 700; background: var(--aa-blue); color: #fff; border-radius: 999px; padding: 3px 10px; animation: aa-chip 4.5s ease-in-out infinite; white-space: nowrap; }
    @keyframes aa-drag { 0% { transform: translate(40px, -70px); opacity: 0; } 15% { opacity: 1; } 40%, 100% { transform: none; opacity: 1; } }
    @keyframes aa-copy { 0%, 55% { opacity: 0; transform: scale(.6); } 68%, 100% { opacity: 1; transform: none; } }
    @keyframes aa-chip { 0%, 44% { opacity: 0; } 50%, 100% { opacity: 1; } }

    /* demo 4: send */
    .aa-env { position: absolute; left: 24px; top: 46px; width: 52px; height: 36px; background: #fff; border: 2px solid var(--aa-blue); border-radius: 5px; animation: aa-fly 4.5s ease-in-out infinite; }
    .aa-env::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; border-bottom: 2px solid var(--aa-blue); clip-path: polygon(0 0, 100% 0, 50% 100%); background: #e8eefc; }
    .aa-status-chip { position: absolute; right: 14px; bottom: 16px; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
    .aa-st1 { background: #fff4dc; color: #8a5a00; animation: aa-st1 4.5s infinite; }
    .aa-st2 { background: var(--aa-green-soft); color: var(--aa-green); animation: aa-st2 4.5s infinite; }
    .aa-mail-to { position: absolute; right: 16px; top: 16px; display: grid; gap: 5px; }
    .aa-mail-to span { font-size: 9.5px; background: #fff; border: 1px solid var(--aa-line); border-radius: 6px; padding: 2px 7px; color: var(--aa-muted); font-weight: 600; }
    @keyframes aa-fly { 0% { transform: none; opacity: 1; } 40% { transform: translate(150px, -22px) rotate(-8deg) scale(.7); opacity: 0; } 41%, 100% { opacity: 0; } }
    @keyframes aa-st1 { 0%, 38% { opacity: 0; } 44%, 68% { opacity: 1; } 72%, 100% { opacity: 0; } }
    @keyframes aa-st2 { 0%, 70% { opacity: 0; } 76%, 100% { opacity: 1; } }

    /* demo 5: Aadhaar + OTP */
    .aa-esp-card { position: absolute; left: 14px; right: 14px; top: 12px; background: #fff; border: 1px solid var(--aa-line); border-radius: 10px; padding: 8px 10px; }
    .aa-esp-head { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--aa-ink); margin-bottom: 6px; }
    .aa-mini-field { border: 1px solid var(--aa-line); border-radius: 6px; padding: 0 6px; height: 22px; display: flex; align-items: center; font-size: 10px; font-weight: 700; color: var(--aa-ink); white-space: nowrap; overflow: hidden; margin-bottom: 6px; }
    .aa-mini-field span { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: aa-type2 4.5s steps(14) infinite; }
    @keyframes aa-type2 { 0%, 5% { width: 0; } 35%, 100% { width: 14ch; } }
    .aa-mini-otp { display: flex; gap: 4px; }
    .aa-mini-otp i { flex: 1; height: 20px; border: 1.5px solid var(--aa-line); border-radius: 5px; position: relative; }
    .aa-mini-otp i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--aa-ink); opacity: 0; animation: aa-otpFill 4.5s infinite; }
    .aa-mini-otp i:nth-child(2)::after { animation-delay: .12s; } .aa-mini-otp i:nth-child(3)::after { animation-delay: .24s; }
    .aa-mini-otp i:nth-child(4)::after { animation-delay: .36s; } .aa-mini-otp i:nth-child(5)::after { animation-delay: .48s; } .aa-mini-otp i:nth-child(6)::after { animation-delay: .6s; }
    @keyframes aa-otpFill { 0%, 40% { opacity: 0; } 44%, 96% { opacity: 1; } 100% { opacity: 0; } }

    /* demo 6: tracking */
    .aa-track { position: absolute; left: 14px; right: 14px; top: 14px; display: grid; gap: 7px; }
    .aa-trow { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--aa-line); border-radius: 8px; padding: 6px 8px; font-size: 11px; font-weight: 600; }
    .aa-trow .aa-av { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 800; }
    .aa-tchip { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
    .aa-tchip.aa-ok { background: var(--aa-green-soft); color: var(--aa-green); }
    .aa-tchip.aa-wait { background: #fff4dc; color: #8a5a00; animation: aa-stw 4.5s infinite; }
    .aa-tchip.aa-late { animation: aa-st2 4.5s infinite; }
    .aa-stw { background: #fff4dc; color: #8a5a00; animation: aa-stw 4.5s infinite; }
    @keyframes aa-stw { 0%, 68% { opacity: 1; } 72%, 100% { opacity: 0; } }

    /* signer section */
    .aa-signer-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
    .aa-phone { width: 290px; height: 560px; margin: 0 auto; border-radius: 40px; background: #0f172a; padding: 14px; box-shadow: 0 30px 60px rgba(15,23,42,.3); position: relative; }
    .aa-phone::before { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 18px; background: #0f172a; border-radius: 0 0 12px 12px; z-index: 5; }
    .aa-phone::after { content: ''; position: absolute; inset: 14px; border-radius: 28px; background: #fff; }
    .aa-screen { position: absolute; inset: 14px; z-index: 1; border-radius: 28px; background: #fff; overflow: hidden; padding: 46px 18px 18px; opacity: 0; animation: aa-screen 12s infinite; }
    .aa-screen:nth-of-type(1) { animation-delay: 0s; } .aa-screen:nth-of-type(2) { animation-delay: 3s; } .aa-screen:nth-of-type(3) { animation-delay: 6s; } .aa-screen:nth-of-type(4) { animation-delay: 9s; }
    @keyframes aa-screen { 0% { opacity: 0; } 3%, 23% { opacity: 1; } 26%, 100% { opacity: 0; } }
    .aa-screen h4 { margin: 0 0 12px; font-size: 14px; color: var(--aa-ink); }
    .aa-mail { border: 1px solid var(--aa-line); border-radius: 12px; padding: 12px; font-size: 12px; margin-bottom: 10px; }
    .aa-mail.aa-new { border-color: #bcd0f7; background: #f5f8ff; }
    .aa-mail b { display: block; color: var(--aa-ink); }
    .aa-mail small { color: var(--aa-muted); }
    .aa-phone-btn { display: block; text-align: center; background: var(--aa-blue); color: #fff; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 700; margin-top: 12px; }
    .aa-pulse { animation: aa-pulse 1.4s ease-in-out infinite; }
    @keyframes aa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(29,78,216,.45); } 50% { box-shadow: 0 0 0 10px rgba(29,78,216,0); } }
    .aa-mini-doc { background: #f3f6fb; border-radius: 10px; padding: 12px; }
    .aa-mini-doc .aa-line { height: 6px; margin-bottom: 7px; }
    .aa-mini-doc .aa-abox { position: static; width: 100%; margin-top: 10px; height: 40px; }
    .aa-field-mock { border: 1px solid var(--aa-line); border-radius: 8px; padding: 9px 10px; font-size: 13px; margin-bottom: 10px; color: var(--aa-ink); font-weight: 600; letter-spacing: .08em; overflow: hidden; white-space: nowrap; }
    .aa-field-mock .aa-typed { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; animation: aa-type 12s steps(14) infinite; animation-delay: 6s; width: 0; }
    @keyframes aa-type { 0% { width: 0; } 8%, 25% { width: 14ch; } 26%, 100% { width: 0; } }
    .aa-otp { display: flex; gap: 6px; margin-bottom: 10px; }
    .aa-otp i { flex: 1; min-width: 0; height: 38px; border: 1.5px solid var(--aa-line); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; color: var(--aa-ink); }
    .aa-otp i::after { content: '•'; opacity: 0; animation: aa-otpdot 12s infinite; animation-delay: inherit; }
    .aa-otp i:nth-child(1) { animation-delay: 6.9s; } .aa-otp i:nth-child(2) { animation-delay: 7.1s; } .aa-otp i:nth-child(3) { animation-delay: 7.3s; }
    .aa-otp i:nth-child(4) { animation-delay: 7.5s; } .aa-otp i:nth-child(5) { animation-delay: 7.7s; } .aa-otp i:nth-child(6) { animation-delay: 7.9s; }
    @keyframes aa-otpdot { 0% { opacity: 1; } 15% { opacity: 1; } 16%, 100% { opacity: 0; } }
    .aa-esp-note { font-size: 10.5px; color: var(--aa-muted); }
    .aa-done-circle { width: 84px; height: 84px; border-radius: 50%; background: var(--aa-green-soft); margin: 50px auto 18px; position: relative; }
    .aa-done-circle::after { content: ''; position: absolute; left: 31px; top: 18px; width: 18px; height: 36px; border: solid var(--aa-green); border-width: 0 6px 6px 0; transform: rotate(45deg); }
    .aa-signer-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
    .aa-signer-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
    .aa-signer-steps .aa-n { width: 40px; height: 40px; border-radius: 12px; background: var(--aa-gold-soft); color: #8a6417; font-weight: 800; display: flex; align-items: center; justify-content: center; }
    .aa-signer-steps p { margin: 0; color: var(--aa-muted); }
    @media (max-width: 960px) { .aa-signer-grid { grid-template-columns: 1fr; } }

    @media (prefers-reduced-motion: reduce) {
      .aadhaar-page *, .aadhaar-page *::before, .aadhaar-page *::after { animation: none !important; transition: none !important; }
      .aa-row, .aa-minibox, .aa-allpages, .aa-hero-box2, .aa-toast, .aa-st2 { opacity: 1 !important; }
      .aa-screen:nth-of-type(2) { opacity: 1 !important; }
      .aa-file, .aa-cursor, .aa-st1, .aa-env, .aa-stw, .aa-tchip.aa-wait { opacity: 0 !important; }
      .aa-tchip.aa-late, .aa-mini-otp i::after { opacity: 1 !important; }
      .aa-mini-field span { width: 14ch; }
      .aa-bar i { width: 100%; }
      .aa-check { transform: none; }
    }

/* ===== Page pieces rebuilt with the SignuluOne theme ===== */
.aa-feature-logo { background: #fff; border: 1px solid var(--aa-line); }
.aa-tag { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e8eefc; color: var(--aa-blue); }
.aa-tag-gold { background: var(--aa-gold-soft); color: #8a6417; }
.aa-req-table { margin: .5rem 0 1.25rem; font-size: .95rem; }
.aa-req-table th { width: 42%; font-weight: 700; color: var(--sg-heading); padding-left: 0; }
.aa-req-table td { color: var(--sg-muted); padding-right: 0; }
.aa-plan-for { min-height: 2.9em; margin-bottom: .75rem; }
.aa-save { display: inline-block; align-self: flex-start; background: var(--aa-green-soft); color: var(--aa-green); font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 6px; }
.aa-result-row { display: flex; justify-content: space-between; gap: 16px; padding: .55rem 0; border-bottom: 1px dashed var(--sg-border); }
.aa-result-row span:first-child { color: var(--sg-muted); }
.aa-result-row span:last-child { font-weight: 700; color: var(--sg-heading); font-variant-numeric: tabular-nums; }
.aa-result-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: .75rem; }
.aa-result-total span { font-weight: 700; }
.aa-result-total strong { font-family: var(--sg-font-heading); font-size: 2rem; color: var(--sg-accent); font-variant-numeric: tabular-nums; }
.aa-case { background: #fff; border: 1px solid var(--sg-border); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; color: var(--sg-heading); font-size: .95rem; }
@media (max-width: 575.98px) { .aa-plan-for { min-height: 0; } .aa-app { grid-template-columns: 96px 1fr; } }
/* Mockups sit on dark sections too: keep their own text colour. */
.aa-phone, .aa-demo { color: var(--aa-text); }
