/* Shared hero-only layout for API & App article embed pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font, "Poppins", "Segoe UI", system-ui, sans-serif);
    color: var(--text, #1a2b3c);
    background: var(--bg, #ffffff);
    line-height: 1.6;
    overflow-x: hidden;
}
.article-page { min-height: 100vh; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

.hero {
    position: relative;
    background: var(--hero-bg);
    padding: 2.5rem 0 3rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay, radial-gradient(ellipse 80% 60% at 20% 100%, rgba(255,255,255,0.08) 0%, transparent 60%));
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-grad);
}
html.embed-theme-active .hero::after { display: none; }
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 80%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
}
.hero-inner > div {
    min-width: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    animation: fadeUp 0.7s ease both;
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--article-accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}
.hero h1 {
    font-size: clamp(1.65rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeUp 0.7s ease 0.1s both;
}
.hero h1 em { font-style: normal; color: var(--hero-em, var(--article-accent)); }
.hero-lead {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s ease 0.2s both;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s ease 0.3s both;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm, 10px);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--article-accent) 35%, transparent 65%);
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    animation: fadeUp 0.7s ease 0.4s both;
}
html.embed-theme-active .hero-stats { border-top-color: color-mix(in srgb, var(--article-accent) 25%, transparent 75%); }
.stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.hero-card,
.app-preview-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius, 16px);
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    animation: float 5s ease-in-out infinite, scaleIn 0.8s ease 0.5s both;
}

/* Diagonal FREE corner sticker (free API integrations) */
.app-preview-card.has-free-sticker {
    position: relative;
    overflow: hidden;
}
.api-free-sticker {
    position: absolute;
    top: 14px;
    right: -34px;
    z-index: 3;
    width: 118px;
    padding: 0.35rem 0;
    background: linear-gradient(135deg, #168323 0%, #1ea832 100%);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(22, 131, 35, 0.35);
    pointer-events: none;
    user-select: none;
}
html.in-iframe .article-page .api-free-sticker,
html.embed-theme-active .article-page .api-free-sticker {
    background: linear-gradient(135deg, #168323 0%, #1ea832 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(22, 131, 35, 0.28);
}
.hero-card-head,
.app-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-preview-head > span:only-child,
.app-preview-head > span:first-child {
    width: 100%;
}
.live-tag { color: #4ade80; display: inline-flex; align-items: center; gap: 0.35rem; }
.live-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease infinite;
}

.mini-code {
    font-family: var(--mono, Consolas, "Courier New", monospace);
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}
.mini-code .kw { color: #ff7b72; }
.mini-code .str { color: #a5d6ff; }
.mini-code .key { color: #79c0ff; }
.mini-code .cmt { color: rgba(255,255,255,0.35); }

.app-feature-list { list-style: none; }
.app-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
}
.app-feature-list li:last-child { border-bottom: none; }
.app-feature-list .fi {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-feature-list .fi svg {
    width: 14px;
    height: 14px;
    stroke: var(--embed-accent, var(--article-primary, var(--article-accent, var(--primary, #4ade80))));
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Remove bottom highlight/callout strip under points list */
.article-page .app-preview-card .app-highlight-note,
.article-page .app-preview-card .app-highlight-note-text,
.article-page .app-preview-card > .app-feature-list + div[style*="margin-top"] {
    display: none !important;
}

/* APP & API pages: full viewport, centered, no scroll */
html:has(.app-page.article-page),
html:has(.app-page.article-page) body,
html:has(.api-page.article-page),
html:has(.api-page.article-page) body,
html:has(.icici-page.article-page),
html:has(.icici-page.article-page) body {
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
}

html:has(.app-page.article-page) body,
html:has(.api-page.article-page) body,
html:has(.icici-page.article-page) body {
    background: var(--hero-bg, var(--bg, #ffffff));
}

html:has(.app-page.article-page) body form,
html:has(.api-page.article-page) body form,
html:has(.icici-page.article-page) body form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.app-page.article-page,
.api-page.article-page,
.icici-page.article-page {
    flex: 1;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--hero-bg, var(--bg, #ffffff));
}

.app-page.article-page .hero,
.api-page.article-page .hero,
.icici-page.article-page .hero {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 100%;
    height: auto;
    max-height: 100dvh;
    padding: clamp(0.5rem, 2vh, 1.25rem) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-page.article-page .hero .container,
.api-page.article-page .hero .container,
.icici-page.article-page .hero .container {
    width: 100%;
    max-width: 1080px;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-page.article-page .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas:
        "title  logo"
        "desc   logo"
        "actions logo"
        "points points";
    gap: clamp(0.25rem, 1.2vh, 0.65rem) 2rem;
    align-items: center;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.app-page.article-page .hero-stats {
    display: none;
}

.app-page.article-page .app-hero-main {
    display: contents;
}

.app-page.article-page .app-features-col {
    display: contents;
}

.app-page.article-page .hero h1 {
    grid-area: title;
    text-align: left;
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    font-weight: 800;
}

.app-page.article-page .hero-lead {
    grid-area: desc;
    text-align: left;
    margin: 0 0 0.75rem;
    max-width: 100%;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.6;
}

.app-page.article-page .hero-actions {
    grid-area: actions;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.app-page.article-page .app-preview-card {
    grid-area: points;
    width: 100%;
    max-width: 100%;
    margin: clamp(0.5rem, 1.5vh, 1rem) auto 0;
    padding: clamp(0.65rem, 1.5vh, 1rem) clamp(0.85rem, 2vw, 1.25rem);
    animation: none;
}

.app-page.article-page .app-logo-hero-wrap {
    grid-area: logo;
    justify-self: center;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 260px;
    min-height: 0;
    padding: 0.75rem 1rem;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--article-accent, #0073bc) 12%, #e8edf2 88%);
    border-radius: 14px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--article-accent, #0073bc) 10%, transparent 90%);
    animation: scaleIn 0.6s ease 0.2s both;
}

.app-page.article-page .app-logo-hero-wrap .api-logo-hero {
    display: block;
    width: auto;
    height: clamp(56px, 8vh, 88px);
    max-width: 230px;
    max-height: 88px;
    object-fit: contain;
    object-position: center;
}

.app-page.article-page .app-preview-head {
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.app-page.article-page .app-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.app-page.article-page .app-feature-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.55rem 0.5rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.app-page.article-page .app-feature-list .fi {
    width: 28px;
    height: 28px;
}

.app-page.article-page .app-feature-list .fi svg {
    width: 14px;
    height: 14px;
}

.app-page.article-page .app-feature-list li:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding-right: 0.75rem;
}

.app-page.article-page .app-feature-list li:nth-child(even) {
    padding-left: 0.75rem;
}

.app-page.article-page .app-feature-list li:nth-last-child(-n+2) {
    border-bottom: none;
}

.app-page.article-page .app-feature-list li:nth-child(n+5) {
    display: none;
}

.app-page.article-page .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.app-page.article-page .appstore-coming-badge {
    padding: 0.6rem 0.9rem;
    gap: 0.55rem;
}

.app-page.article-page .appstore-coming-text strong {
    font-size: 0.88rem;
}

.app-page.article-page .appstore-coming-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
}

@media (max-height: 760px) {
    .app-page.article-page .hero,
    .api-page.article-page .hero,
    .icici-page.article-page .hero {
        padding: clamp(0.25rem, 1vh, 0.65rem) 0;
    }

    .app-page.article-page .hero h1 {
        font-size: clamp(1.35rem, 2.8vw, 1.85rem) !important;
        margin-bottom: 0.25rem;
    }

    .api-page.article-page .hero h1,
    .icici-page.article-page .hero h1 {
        font-size: clamp(1.1rem, 2.4vw, 1.55rem);
        margin-bottom: 0.15rem;
    }

    .app-page.article-page .hero-lead {
        font-size: clamp(0.85rem, 1.5vw, 1rem) !important;
        margin-bottom: 0.45rem;
        line-height: 1.45;
    }

    .api-page.article-page .hero-lead,
    .icici-page.article-page .hero-lead {
        font-size: clamp(0.75rem, 1.3vw, 0.88rem);
        margin-bottom: 0.35rem;
        line-height: 1.4;
    }

    .app-page.article-page .hero-actions,
    .api-page.article-page .hero-actions,
    .icici-page.article-page .hero-actions {
        gap: 0.35rem;
        margin-bottom: 0;
    }

    .app-page.article-page .hero-stats,
    .api-page.article-page .hero-stats,
    .icici-page.article-page .hero-stats {
        gap: 0.35rem;
        margin-bottom: 0.35rem;
    }

    .app-page.article-page .hero-stats .stat,
    .api-page.article-page .hero-stats .stat,
    .icici-page.article-page .hero-stats .stat {
        padding: 0.35rem 0.45rem;
    }

    .app-page.article-page .hero-stats .stat strong,
    .api-page.article-page .hero-stats .stat strong,
    .icici-page.article-page .hero-stats .stat strong {
        font-size: 0.85rem;
    }

    .app-page.article-page .hero-stats .stat span,
    .api-page.article-page .hero-stats .stat span,
    .icici-page.article-page .hero-stats .stat span {
        font-size: 0.66rem;
    }

    .app-page.article-page .btn-primary {
        padding: 0.6rem 1.15rem;
        font-size: 0.85rem;
    }

    .app-page.article-page .appstore-coming-badge {
        padding: 0.45rem 0.65rem;
    }

    .app-page.article-page .app-logo-hero-wrap {
        max-width: 210px;
        padding: 0.55rem 0.7rem;
    }

    .api-page.article-page .api-logo-hero-wrap,
    .api-page.article-page .icici-logo-hero-wrap,
    .icici-page.article-page .api-logo-hero-wrap,
    .icici-page.article-page .icici-logo-hero-wrap {
        max-width: 175px;
        padding: 0.4rem 0.55rem;
    }

    .app-page.article-page .app-logo-hero-wrap .api-logo-hero {
        height: clamp(44px, 6.5vh, 72px);
        max-height: 72px;
    }

    .api-page.article-page .api-logo-hero,
    .api-page.article-page .icici-logo-hero,
    .icici-page.article-page .api-logo-hero,
    .icici-page.article-page .icici-logo-hero {
        height: clamp(36px, 5.5vh, 60px);
        max-height: 60px;
    }

    .app-page.article-page .app-preview-card {
        margin-top: 0.35rem;
        padding: 0.55rem 0.75rem;
    }

    .api-page.article-page .app-preview-card,
    .icici-page.article-page .app-preview-card {
        margin-top: 0.2rem;
        padding: 0.45rem 0.65rem;
    }

    .app-page.article-page .app-preview-head {
        margin-bottom: 0.45rem;
        padding-bottom: 0.4rem;
        font-size: 0.78rem;
    }

    .api-page.article-page .app-preview-head,
    .icici-page.article-page .app-preview-head {
        margin-bottom: 0.35rem;
        padding-bottom: 0.3rem;
        font-size: 0.68rem;
    }

    .app-page.article-page .app-feature-list li {
        padding: 0.38rem 0.45rem;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .api-page.article-page .app-feature-list li,
    .icici-page.article-page .app-feature-list li {
        padding: 0.28rem 0.35rem;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .app-page.article-page .app-feature-list .fi {
        width: 26px;
        height: 26px;
    }

    .api-page.article-page .app-feature-list .fi,
    .icici-page.article-page .app-feature-list .fi {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 991px) {
    .app-page.article-page .hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "title"
            "desc"
            "actions"
            "points";
        gap: clamp(0.3rem, 1.2vh, 0.6rem);
        max-width: min(580px, 94vw);
    }

    .app-page.article-page .hero h1 {
        text-align: center;
        font-size: clamp(1.35rem, 3vw, 1.85rem);
    }

    .app-page.article-page .hero-lead {
        text-align: center;
        font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    }

    .app-page.article-page .hero-actions,
    .app-page.article-page .hero-stats {
        justify-content: center;
    }

    .app-page.article-page .app-logo-hero-wrap {
        max-width: 220px;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 640px) {
    .app-page.article-page .hero h1 {
        font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    }

    .app-page.article-page .hero-lead {
        font-size: clamp(0.82rem, 1.4vw, 0.92rem);
    }

    .app-page.article-page .app-feature-list {
        grid-template-columns: 1fr;
    }

    .app-page.article-page .app-feature-list li {
        font-size: 0.85rem;
    }

    .app-page.article-page .app-feature-list li:nth-child(odd) {
        border-right: none;
        padding-right: 0.5rem;
    }

    .app-page.article-page .app-feature-list li:nth-child(even) {
        padding-left: 0.4rem;
    }

    .app-page.article-page .app-feature-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .app-page.article-page .app-feature-list li:last-child {
        border-bottom: none;
    }
}
.gplay-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.gplay-badge:hover { background: rgba(255,255,255,0.14); }
.gplay-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.gplay-badge-text small { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.55); }
.gplay-badge-text strong { display: block; font-size: 0.88rem; font-weight: 600; color: #fff; }

/* App Store / iPhone — coming soon badge (all app integration pages) */
@keyframes appstore-shimmer {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}
.appstore-coming-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem 0.7rem 0.85rem;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm, 10px);
    cursor: default;
    user-select: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.appstore-coming-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%);
    animation: appstore-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}
.appstore-coming-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.appstore-coming-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    fill: currentColor;
}
.appstore-coming-text {
    position: relative;
    z-index: 1;
    line-height: 1.15;
}
.appstore-coming-text small {
    display: block;
    font-size: 0.66rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
    letter-spacing: 0.02em;
}
.appstore-coming-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.appstore-coming-tag {
    position: relative;
    z-index: 1;
    margin-left: 0.1rem;
    padding: 0.22rem 0.55rem;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 100px;
    font-size: 0.64rem;
    font-weight: 700;
    color: #fcd34d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.api-logo-hero-wrap,
.icici-logo-hero-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: fadeUp 0.6s ease both;
}
.api-logo-hero,
.icici-logo-hero {
    display: block;
    width: auto;
    height: clamp(72px, 9vw, 110px);
    max-width: min(360px, 80%);
    object-fit: contain;
}

@media (max-width: 991px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }

    .app-page.article-page .hero-inner {
        max-width: 640px;
        gap: 0.5rem;
    }

    .app-page.article-page .app-features-col,
    .app-page.article-page .app-preview-card {
        max-width: 100%;
    }

    .app-page.article-page .hero h1 {
        font-size: clamp(1.45rem, 3.2vw, 2.1rem);
    }

    .app-page.article-page .hero-lead {
        font-size: clamp(0.88rem, 1.6vw, 1rem);
    }
}
@media (max-width: 767px) {
    .hero { padding: 2rem 0 2.5rem; min-height: auto; }
    .app-page.article-page .hero,
    .api-page.article-page .hero,
    .icici-page.article-page .hero {
        min-height: 100%;
        flex: 1 1 auto;
        padding: clamp(0.35rem, 1.5vh, 0.85rem) 0;
    }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .api-logo-hero,
    .icici-logo-hero { height: clamp(60px, 16vw, 86px); }
}

/* API pages: 2-row layout matching GPS reference design
   Row 1: h1 + description (left 6) | logo image (right 6)
   Row 2: centered card heading + 4 icon points in 2x2 grid */

.api-page.article-page .hero-inner,
.icici-page.article-page .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title  logo"
        "desc   logo"
        "points points";
    gap: 0.2rem 2.5rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.api-page.article-page .hero-inner > div:first-child,
.api-page.article-page .hero-inner > div:last-child,
.icici-page.article-page .hero-inner > div:first-child,
.icici-page.article-page .hero-inner > div:last-child {
    display: contents;
}

.api-page.article-page .hero h1,
.icici-page.article-page .hero h1 {
    grid-area: title;
    text-align: center;
    align-self: end;
    font-size: clamp(1.75rem, 3.8vw, 2.65rem);
    line-height: 1.12;
    margin: 0;
}

.api-page.article-page .hero-lead,
.icici-page.article-page .hero-lead {
    grid-area: desc;
    text-align: center;
    align-self: start;
    margin: 0.4rem auto 0;
    max-width: 480px;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}

.api-page.article-page .hero-stats,
.icici-page.article-page .hero-stats {
    display: none;
}

.api-page.article-page .api-logo-hero-wrap,
.api-page.article-page .icici-logo-hero-wrap,
.icici-page.article-page .api-logo-hero-wrap,
.icici-page.article-page .icici-logo-hero-wrap {
    grid-area: logo;
    justify-self: center;
    align-self: center;
    margin: 0;
}

.api-page.article-page .api-logo-hero,
.api-page.article-page .icici-logo-hero,
.icici-page.article-page .api-logo-hero,
.icici-page.article-page .icici-logo-hero {
    height: clamp(110px, 16vw, 200px);
    max-width: 300px;
}

.api-page.article-page .app-preview-card,
.icici-page.article-page .app-preview-card {
    grid-area: points;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px;
    box-shadow: none;
    padding: 1.1rem 1.4rem 1.2rem;
    width: 100%;
    max-width: 780px;
    margin: 1.5rem auto 0;
    animation: none;
    backdrop-filter: none;
}

.api-page.article-page .app-preview-head,
.icici-page.article-page .app-preview-head {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.13);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.api-page.article-page .app-feature-list,
.icici-page.article-page .app-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.api-page.article-page .app-feature-list li,
.icici-page.article-page .app-feature-list li {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.65rem;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
    padding: 0.65rem 0.5rem;
    background: transparent;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.82);
}

.api-page.article-page .app-feature-list li:nth-child(odd),
.icici-page.article-page .app-feature-list li:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.07);
    padding-right: 1.25rem;
}

.api-page.article-page .app-feature-list li:nth-child(even),
.icici-page.article-page .app-feature-list li:nth-child(even) {
    padding-left: 1.25rem;
}

.api-page.article-page .app-feature-list li:nth-last-child(-n+2),
.icici-page.article-page .app-feature-list li:nth-last-child(-n+2) {
    border-bottom: none;
}

.api-page.article-page .app-feature-list .fi,
.icici-page.article-page .app-feature-list .fi {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    margin: 0;
}

.api-page.article-page .app-feature-list .fi svg,
.icici-page.article-page .app-feature-list .fi svg {
    width: 14px;
    height: 14px;
}

.api-page.article-page .app-feature-list li:nth-child(n+5),
.icici-page.article-page .app-feature-list li:nth-child(n+5) {
    display: none;
}

@media (max-width: 991px) {
    .api-page.article-page .hero-inner,
    .icici-page.article-page .hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "title"
            "desc"
            "points";
        gap: 0.6rem;
    }

    .api-page.article-page .hero-lead,
    .icici-page.article-page .hero-lead {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .api-page.article-page .hero h1,
    .icici-page.article-page .hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .api-page.article-page .app-feature-list,
    .icici-page.article-page .app-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
