/* =========================================================
   Address Validation product page — structure & layout
   ========================================================= */

.av-page {
    --av-ink: #1a1a1a;
    --av-muted: #5f6b7a;
    --av-border: #e8ecf1;
    --av-surface: #ffffff;
    --av-canvas: #f6f8fb;
    --av-pink: #EC2E5E;
    --av-deep: #8B1538;
    --av-radius: 18px;
    --av-shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
}

/* ----- Page jump nav ----- */
.av-subnav {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--av-border);
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
}

.av-subnav .container {
    max-width: min(1200px, 100%);
    padding: 0.65rem var(--page-gutter, clamp(16px, 3vw, 28px));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.av-subnav-label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--av-deep);
    padding-right: 0.35rem;
    border-right: 1px solid var(--av-border);
    margin-right: 0.15rem;
}

.av-subnav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.av-subnav a:hover,
.av-subnav a:focus-visible {
    background: rgba(236, 46, 94, 0.08);
    color: var(--av-pink);
}

/* ----- Stats strip ----- */
.av-stats {
    background: var(--av-canvas);
    border-bottom: 1px solid var(--av-border);
    padding: 1.35rem 0;
}

.av-stats .container {
    max-width: min(1200px, 100%);
    padding-left: var(--page-gutter, clamp(16px, 3vw, 28px));
    padding-right: var(--page-gutter, clamp(16px, 3vw, 28px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.av-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    background: #fff;
    border: 1px solid var(--av-border);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
    min-width: 0;
}

/* Icon tiles — style the wrapper, not the FA <i> itself */
.av-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%) !important;
    color: #fff !important;
    flex: 0 0 44px;
    clip-path: none !important;
    box-shadow: 0 6px 14px rgba(236, 46, 94, 0.22);
}

.av-stat-icon i,
.av-stat-icon .fas,
.av-stat-icon .fa {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-image: none !important;
    clip-path: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
}

.av-stat-icon i::before,
.av-stat-icon .fas::before,
.av-stat-icon .fa::before {
    color: #fff !important;
    opacity: 1 !important;
}

.av-stat-copy {
    min-width: 0;
}

.av-stat-copy strong,
.av-stat strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--av-ink);
    line-height: 1.2;
}

.av-stat-copy span,
.av-stat > div > span {
    display: block;
    font-size: 0.82rem;
    color: var(--av-muted);
    font-weight: 500;
}

/* Hero card icons (top right panel) */
.av-page .product-hero-card .phc-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.av-page .product-hero-card .phc-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%) !important;
    color: #fff !important;
    clip-path: none !important;
    box-shadow: 0 6px 14px rgba(236, 46, 94, 0.28);
}

.av-page .product-hero-card .phc-icon i,
.av-page .product-hero-card .phc-icon .fas {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    clip-path: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

.av-page .product-hero-card .phc-icon i::before {
    color: #fff !important;
}

/* Hero feature pills under title */
.av-page .product-hero .hero-feature-item i,
.av-page .product-hero .hero-feature-item .fas {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    clip-path: none !important;
    color: #ff8fab !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

/* ----- How it works ----- */
.av-how {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
    background: #fff;
}

.av-how .container {
    max-width: min(1200px, 100%);
    padding-left: var(--page-gutter, clamp(16px, 3vw, 28px));
    padding-right: var(--page-gutter, clamp(16px, 3vw, 28px));
}

.av-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.av-how-card {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 1.6rem 1.4rem 1.5rem;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
    height: 100%;
}

.av-how-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(145deg, var(--av-pink), var(--av-deep));
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(236, 46, 94, 0.25);
}

.av-how-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--av-ink);
}

.av-how-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--av-muted);
}

/* ----- Section surface variants ----- */
.av-page .dd-features {
    background: var(--av-canvas);
}

.av-page .dd-technical {
    background: #fff;
}

.av-page .dd-pricing {
    background: var(--av-canvas);
}

.av-page .dd-api {
    background: #fff;
}

/* Features: equal-height list alignment */
.av-page .feature-card {
    display: flex;
    flex-direction: column;
}

.av-page .feature-list {
    margin-top: auto;
    padding-top: 0.35rem;
}

/* Feature / capability icons — never inherit hexagon clip-path on FA glyphs */
.av-page .feature-card-icon,
.av-page .technical-icon,
.av-page .av-how-num,
.av-page .av-credit-card-icon,
.av-page .av-guarantee-card-icon {
    clip-path: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
}

.av-page .feature-card-icon i,
.av-page .feature-card-icon .fas,
.av-page .technical-icon i,
.av-page .technical-icon .fas,
.av-page .av-credit-card-icon i,
.av-page .av-guarantee-card-icon i {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-image: none !important;
    clip-path: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    line-height: 1 !important;
    font-style: normal !important;
}

.av-page .feature-card-icon i { font-size: 1.25rem !important; }
.av-page .technical-icon i { font-size: 1.2rem !important; }

/* ----- Capabilities as compact rows ----- */
.av-capabilities .technical-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem !important;
}

.av-capabilities .technical-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem 1rem;
    align-items: start;
    padding: 1.25rem 1.2rem !important;
}

.av-capabilities .technical-icon {
    margin-bottom: 0 !important;
}

.av-capabilities .technical-card h3 {
    margin: 0 0 0.35rem !important;
}

.av-capabilities .technical-card p {
    margin: 0 !important;
}

/* ----- Pricing extras ----- */
.av-enterprise-note {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 46, 94, 0.06), rgba(236, 46, 94, 0.02));
    border: 1px solid rgba(236, 46, 94, 0.18);
    font-size: 0.92rem;
    line-height: 1.55;
    color: #333;
}

.av-enterprise-note a {
    color: var(--av-pink);
    font-weight: 700;
    text-decoration: none;
}

.av-enterprise-note a:hover {
    text-decoration: underline;
}

.av-page .epc-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.av-page .pricing-features,
.av-page .credit-expiry-notice {
    background: #fff;
    border: 1px solid var(--av-border);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
    height: 100%;
}

.av-page .pricing-features h4 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.av-page .pricing-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.av-page .pricing-features li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #374151;
}

.av-page .pricing-features li i {
    color: var(--av-pink);
    margin-top: 0.2rem;
}

/* ----- Intelligent credits ----- */
.av-credits {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #fff;
}

.av-credits .container {
    max-width: min(1200px, 100%);
    padding-left: var(--page-gutter, clamp(16px, 3vw, 28px));
    padding-right: var(--page-gutter, clamp(16px, 3vw, 28px));
}

.av-credits-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem 1.5rem;
    align-items: start;
    background: linear-gradient(125deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--av-radius);
    box-shadow: 0 14px 34px rgba(236, 46, 94, 0.28);
    margin-bottom: 1.5rem;
}

.av-credits-banner-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.av-credits-banner h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: #fff;
}

.av-credits-banner p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
}

.av-credits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.av-credit-card {
    background: #fff;
    border: 1px solid var(--av-border);
    border-radius: 14px;
    padding: 1.25rem 1.3rem;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
    border-left: 4px solid var(--av-pink);
}

.av-credit-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.av-credit-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--av-pink), var(--av-deep));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}

.av-credit-card h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--av-ink);
}

.av-credit-card p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--av-muted);
}

.av-credits-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem 1rem;
    padding: 1.2rem 1.3rem;
    border-radius: 14px;
    background: rgba(236, 46, 94, 0.06);
    border: 1px solid rgba(236, 46, 94, 0.14);
}

.av-credits-note i {
    color: var(--av-pink);
    font-size: 1.35rem;
    margin-top: 0.15rem;
}

.av-credits-note h4 {
    margin: 0 0 0.35rem;
    color: var(--av-deep);
    font-size: 1.05rem;
}

.av-credits-note p {
    margin: 0;
    color: #333;
    font-size: 0.94rem;
    line-height: 1.6;
}

/* ----- Low price guarantee ----- */
.av-guarantee {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background:
        radial-gradient(ellipse 80% 80% at 15% 20%, rgba(236, 46, 94, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 70% at 90% 80%, rgba(139, 21, 56, 0.45), transparent 55%),
        linear-gradient(135deg, #1a1014 0%, #2a1520 50%, #3a1630 100%);
    color: #fff;
}

.av-guarantee .container {
    max-width: min(1100px, 100%);
    padding-left: var(--page-gutter, clamp(16px, 3vw, 28px));
    padding-right: var(--page-gutter, clamp(16px, 3vw, 28px));
}

.av-guarantee .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.av-guarantee .guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.av-guarantee h2 {
    color: #fff !important;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
    margin: 0 auto 0.85rem !important;
    max-width: 18ch;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.av-guarantee .section-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 42rem;
    margin: 0 auto;
}

.av-guarantee-panel {
    background: #fff;
    color: #333;
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.av-guarantee-panel p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
}

.av-guarantee-panel p:last-child {
    margin-bottom: 0;
}

.av-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.av-guarantee-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem 1.2rem;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    border-top: 4px solid var(--av-pink);
}

.av-guarantee-card:nth-child(2) { border-top-color: #28a745; }
.av-guarantee-card:nth-child(3) { border-top-color: #007bff; }
.av-guarantee-card:nth-child(4) { border-top-color: #ffc107; }
.av-guarantee-card:nth-child(5) { border-top-color: #6f42c1; }
.av-guarantee-card:nth-child(6) { border-top-color: #17a2b8; }

.av-guarantee-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    background: linear-gradient(145deg, var(--av-pink), #ff4576);
}

.av-guarantee-card:nth-child(2) .av-guarantee-card-icon { background: linear-gradient(145deg, #28a745, #20c997); }
.av-guarantee-card:nth-child(3) .av-guarantee-card-icon { background: linear-gradient(145deg, #007bff, #0056b3); }
.av-guarantee-card:nth-child(4) .av-guarantee-card-icon { background: linear-gradient(145deg, #ffc107, #ff9800); }
.av-guarantee-card:nth-child(5) .av-guarantee-card-icon { background: linear-gradient(145deg, #6f42c1, #9b59b6); }
.av-guarantee-card:nth-child(6) .av-guarantee-card-icon { background: linear-gradient(145deg, #17a2b8, #138496); }

.av-guarantee-card h4 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: #222;
}

.av-guarantee-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #666;
}

/* ----- API layout polish ----- */
.av-page .api-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: start;
}

.av-page .api-features-list {
    background: var(--av-canvas);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 1.5rem;
}

.av-page .api-features-list h3 {
    margin: 0 0 1rem;
}

.av-page .api-features-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.av-page .api-features-list li {
    display: flex;
    gap: 0.55rem;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    color: #374151;
}

.av-page .api-features-list li i {
    color: var(--av-pink);
    margin-top: 0.2rem;
}

.av-api-base {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--av-border);
    border-radius: 12px;
}

.av-api-base p {
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
}

.av-api-base code {
    display: block;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: var(--av-pink);
    font-weight: 650;
    font-size: 0.88rem;
    word-break: break-all;
}

.av-page .code-window {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--av-shadow);
    border: 1px solid #1f2937;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .av-stats .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .av-how-grid,
    .av-capabilities .technical-grid,
    .av-guarantee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .av-page .api-content,
    .av-page .epc-info-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .av-subnav {
        top: 64px;
    }

    .av-subnav-label {
        display: none;
    }

    .av-stats .container,
    .av-how-grid,
    .av-credits-grid,
    .av-capabilities .technical-grid,
    .av-guarantee-grid {
        grid-template-columns: 1fr;
    }

    .av-credits-banner {
        grid-template-columns: 1fr;
    }

    .av-capabilities .technical-card {
        grid-template-columns: 1fr;
    }
}
