/* Draw Signature page — page-specific tweaks */

/* Decorative connector arrows around the hero product screenshot (desktop only)
   Note: always give these an explicit px width/height — an absolutely
   positioned <svg> with no intrinsic size and only `right` set (no `left`
   or `width`) gets stretched to fill the containing block instead of
   shrinking to its natural size, which blows the stroke up into a blob. */
.prod-hero-arrow--out {
    top: 30px;
    left: auto;
    right: -50px;
    width: 70px;
    height: 52px;
}

/* ==========================================================================
   Gradient icon badges — Electronic Signature uses a warm orange accent so
   it reads as the fast, casual signing method, distinct from Aadhaar's
   green/teal and DSC's navy/blue badges.
   ========================================================================== */
.dr-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nf-orange-500), #c2410c);
    box-shadow: 0 6px 16px rgba(194, 65, 12, 0.24);
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dr-icon-badge svg { display: block; color: #fff; }

.dr-icon-badge:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 26px rgba(194, 65, 12, 0.34);
}

.dr-eyebrow-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.dr-eyebrow-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--nf-orange-500);
    opacity: 0.6;
    animation: drPulseRing 2.4s ease-out infinite;
}

@keyframes drPulseRing {
    0% { transform: scale(0.75); opacity: 0.55; }
    100% { transform: scale(1.7); opacity: 0; }
}

.dr-reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dr-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   "What is an Electronic Signature?" intro + feature row
   ========================================================================== */
.dr-about {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.dr-about .nf-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.dr-about .nf-title { margin-top: 2px; }

.dr-about p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--nf-text-muted);
    margin-top: 16px;
}

.dr-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dr-feature-card {
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-md);
    padding: 26px 20px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dr-feature-card:hover {
    box-shadow: var(--nf-shadow-md);
    transform: translateY(-3px);
}

.dr-feature-card .dr-icon-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
}

.dr-feature-card .dr-icon-badge svg { width: 24px; height: 24px; }

.dr-feature-card h4 {
    font-size: 15px;
    color: var(--nf-navy-900);
    margin-bottom: 8px;
}

.dr-feature-card p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--nf-text-muted);
}

.dr-feature-card.dr-reveal:nth-child(1) { transition-delay: 0s; }
.dr-feature-card.dr-reveal:nth-child(2) { transition-delay: 0.08s; }
.dr-feature-card.dr-reveal:nth-child(3) { transition-delay: 0.16s; }
.dr-feature-card.dr-reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 991px) {
    .dr-feature-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dr-feature-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   "Sign in 6 Easy Steps" — vertical step timeline + animated Draw/Type/
   Upload signature-pad mockup
   ========================================================================== */
.dr-flow {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.dr-flow__steps .nf-eyebrow { display: inline-flex; align-items: center; gap: 8px; }

.dr-step-list {
    position: relative;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dr-step-list::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--nf-border) 0 6px, transparent 6px 12px);
}

.dr-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 14px;
    margin: 0 -14px;
    border-radius: var(--nf-radius-md);
    transition: background 0.3s ease;
}

.dr-step__icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--nf-border);
    color: var(--nf-text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.dr-step__icon svg { width: 19px; height: 19px; }

.dr-step h4 {
    font-size: 15px;
    color: var(--nf-navy-900);
    margin-bottom: 3px;
}

.dr-step p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--nf-text-muted);
}

.dr-step.is-current { background: rgba(194, 65, 12, 0.06); }

.dr-step.is-current .dr-step__icon {
    background: linear-gradient(135deg, var(--nf-orange-500), #c2410c);
    border-color: transparent;
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(194, 65, 12, 0.28);
}

/* ---- Draw / Type / Upload signature-pad visual ---- */
.dr-flow__art { display: flex; justify-content: center; }

.dr-pad-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-lg);
    box-shadow: 0 24px 60px rgba(10, 28, 56, 0.14);
    overflow: hidden;
}

.dr-pad-card__top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: var(--nf-bg-muted);
    border-bottom: 1px solid var(--nf-border);
}

.dr-pad-dot { width: 9px; height: 9px; border-radius: 50%; }
.dr-pad-dot--1 { background: #f87171; }
.dr-pad-dot--2 { background: #fbbf24; }
.dr-pad-dot--3 { background: #4ade80; }

.dr-pad-card__title {
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--nf-text-soft);
}

.dr-pad-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    margin: 16px 18px 0;
    padding: 4px;
    background: var(--nf-bg-muted);
    border-radius: var(--nf-radius-pill);
}

.dr-pad-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: var(--nf-radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--nf-text-muted);
    transition: color 0.3s ease;
}

.dr-pad-tab svg { width: 14px; height: 14px; }
.dr-pad-tab.is-active { color: #fff; }

.dr-pad-tabs__indicator {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    border-radius: var(--nf-radius-pill);
    background: linear-gradient(135deg, var(--nf-orange-500), #c2410c);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}

.dr-pad-panel {
    display: none;
    padding: 20px 18px 22px;
    text-align: center;
}

.dr-pad-panel.is-active { display: block; }

.dr-pad-caption {
    margin-top: 6px;
    font-size: 12px;
    color: var(--nf-text-soft);
}

.dr-pad-canvas { width: 100%; height: 100px; overflow: visible; }
.dr-pad-baseline { fill: none; stroke: var(--nf-border); stroke-width: 2; stroke-dasharray: 3 5; }

.dr-pad-sig {
    fill: none;
    stroke: var(--nf-navy-900);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
}

.dr-pad-panel.is-active .dr-pad-sig {
    animation: drDrawSig 3.2s ease-in-out infinite;
}

@keyframes drDrawSig {
    0% { stroke-dashoffset: 480; }
    45% { stroke-dashoffset: 0; }
    88% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 480; }
}

.dr-pad-type {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: 'Brush Script MT', cursive;
    font-size: 34px;
    color: var(--nf-navy-900);
}

.dr-pad-caret {
    width: 2px;
    height: 30px;
    background: var(--nf-orange-500);
    animation: drCaretBlink 0.9s step-end infinite;
}

@keyframes drCaretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.dr-pad-upload {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--nf-text-soft);
}

.dr-pad-upload > svg { width: 30px; height: 30px; }

.dr-pad-upload__file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--nf-green-50);
    border: 1px solid var(--nf-green-100);
    border-radius: var(--nf-radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--nf-green-700);
    opacity: 0;
    transform: translateY(10px);
}

.dr-pad-upload__file svg { width: 14px; height: 14px; flex-shrink: 0; }

.dr-pad-panel.is-active .dr-pad-upload__file {
    animation: drUploadIn 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes drUploadIn {
    0% { opacity: 0; transform: translateY(10px); }
    25% { opacity: 1; transform: translateY(0); }
    88% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 991px) {
    .dr-flow { grid-template-columns: 1fr; gap: 40px; }
    .dr-flow__art { order: -1; }
}

/* ==========================================================================
   "Built for Everyday Paperwork" use-case grid
   ========================================================================== */
.dr-usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dr-usecase-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-md);
    padding: 18px 20px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dr-usecase-card:hover {
    box-shadow: var(--nf-shadow-md);
    transform: translateY(-3px);
}

.dr-usecase-card .dr-icon-badge { width: 42px; height: 42px; }
.dr-usecase-card .dr-icon-badge svg { width: 19px; height: 19px; }

.dr-usecase-card h4 {
    font-size: 13.5px;
    color: var(--nf-navy-900);
    line-height: 1.35;
}

.dr-usecase-card.dr-reveal:nth-child(1) { transition-delay: 0s; }
.dr-usecase-card.dr-reveal:nth-child(2) { transition-delay: 0.06s; }
.dr-usecase-card.dr-reveal:nth-child(3) { transition-delay: 0.12s; }
.dr-usecase-card.dr-reveal:nth-child(4) { transition-delay: 0.18s; }
.dr-usecase-card.dr-reveal:nth-child(5) { transition-delay: 0.24s; }
.dr-usecase-card.dr-reveal:nth-child(6) { transition-delay: 0.3s; }

@media (max-width: 767px) {
    .dr-usecase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dr-usecase-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .dr-eyebrow-icon::after,
    .dr-pad-sig,
    .dr-pad-caret,
    .dr-pad-upload__file {
        animation: none;
    }
    .dr-pad-panel.is-active .dr-pad-sig { stroke-dashoffset: 0; }
    .dr-pad-panel.is-active .dr-pad-upload__file { opacity: 1; transform: translateY(0); }
}
