/* ===========================
   Prelogin single-page CSS
   (Home + Mission + Pricing in one page)
   =========================== */

.ah-prelogin {
    width: min(980px, 100%);
    /* wider so blank space is minimal */
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* each section uses shared .ah-card from common.css */
.ah-section {
    position: relative;
    overflow: hidden;
}

/* Smaller title option for section headings */
.ah-title--sm {
    font-size: 28px;
}

/* CTA */
.ah-section__cta {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.ah-btn--ghost {
    color: rgba(15, 23, 42, 0.86);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(120, 160, 235, 0.34);
}

.ah-btn--ghost:hover {
    transform: translateY(-1px);
}

/* Home feature row */
.ah-featureRow {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.ah-feature {
    grid-column: span 4;
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(120, 160, 235, 0.28);
    background: rgba(47, 111, 237, 0.05);
}

.ah-feature__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: rgba(47, 111, 237, 0.95);
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(120, 160, 235, 0.30);
}

.ah-feature__title {
    font-weight: 900;
}

.ah-feature__text {
    margin-top: 4px;
    color: rgba(15, 23, 42, 0.70);
    font-size: 13px;
    line-height: 1.6;
}

/* Mission boxes */
.ah-missionGrid {
    margin-top: 18px;
}

.ah-box {
    grid-column: span 4;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(120, 160, 235, 0.28);
    background: rgba(255, 255, 255, 0.62);
}

.ah-box--wide {
    grid-column: span 12;
    background: rgba(47, 111, 237, 0.05);
}

.ah-box__h {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.ah-box__p {
    margin: 8px 0 0;
    color: rgba(15, 23, 42, 0.70);
    line-height: 1.65;
    font-size: 13px;
}

.ah-steps {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(15, 23, 42, 0.74);
    line-height: 1.8;
    font-weight: 700;
    font-size: 13px;
}

/* Pricing cards */
.ah-priceGrid {
    margin-top: 18px;
}

.ah-price {
    grid-column: span 4;
    position: relative;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(120, 160, 235, 0.28);
    background: rgba(255, 255, 255, 0.62);
    overflow: hidden;
}

.ah-price--featured {
    background: rgba(47, 111, 237, 0.06);
    border-color: rgba(47, 111, 237, 0.32);
    transform: translateY(-4px);
}

.ah-price__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(47, 111, 237, 0.95);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(120, 160, 235, 0.34);
    padding: 6px 10px;
    border-radius: 999px;
}

.ah-price__name {
    font-weight: 900;
    font-size: 16px;
}

.ah-price__amount {
    margin-top: 8px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: rgba(15, 23, 42, 0.92);
}

.ah-price__note {
    margin-top: 6px;
    color: rgba(15, 23, 42, 0.62);
    font-weight: 700;
    font-size: 12px;
}

.ah-price__list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: rgba(15, 23, 42, 0.74);
    line-height: 1.9;
    font-weight: 700;
    font-size: 13px;
}

.ah-price__cta {
    margin-top: 14px;
    width: 100%;
}

/* nice subtle glow on the first section */
.ah-home::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 20% 20%, rgba(74, 163, 255, 0.20), transparent 55%);
    opacity: 0.55;
    animation: ahCardGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ahCardGlow {
    0% {
        transform: translate3d(-10px, 10px, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -14px, 0) scale(1.05);
    }

    100% {
        transform: translate3d(-10px, 10px, 0) scale(1);
    }
}

@media (max-width: 860px) {
    .ah-feature {
        grid-column: span 12;
    }

    .ah-box {
        grid-column: span 12;
    }

    .ah-price {
        grid-column: span 12;
    }

    .ah-price--featured {
        transform: none;
    }

    .ah-title--sm {
        font-size: 24px;
    }
}

/* ===========================
   Hero brand block (logo + name + tagline + pill)
   =========================== */

.ah-heroBrand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.ah-heroBrand__logo {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 1px solid rgba(120, 160, 235, 0.32);
    background: rgba(255, 255, 255, 0.75);
    object-fit: cover;
}

.ah-heroBrand__name {
    font-weight: 1000;
    letter-spacing: 0.2px;
    font-size: 22px;
    line-height: 1.1;
}

.ah-heroBrand__tagline {
    margin-top: 3px;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.66);
    font-weight: 700;
}

.ah-heroBrand__pillRow {
    margin-top: 10px;
}

/* Bigger blue curved pill (under tagline) */
.ah-pill--big {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 18px;
    padding: 0;

    background: transparent;
    border: none;

    font-size: 38px;
    font-weight: 900;
    letter-spacing: 1px;

    color: #2f6fed;
}

/* Responsive: keep it neat on small screens */
@media (max-width: 860px) {
    .ah-heroBrand {
        align-items: flex-start;
    }

    .ah-heroBrand__logo {
        width: 54px;
        height: 54px;
    }

    .ah-heroBrand__name {
        font-size: 20px;
    }
}

/* =========================
   HERO AREA
========================= */

.ah-hero {
    position: relative;
    min-height: 100vh;
    padding-bottom: 140px;
    /* slider ke liye space */
}

/* ===== BRAND ===== */

.ah-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.ah-brand__logoWrap {
    position: relative;
    width: 190px;
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    /* outer soft ring */
    border: 2px solid rgba(120, 160, 235, 0.35);
    background: rgba(255, 255, 255, 0.22);

    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.20),
        0 20px 60px rgba(47, 111, 237, 0.15);
}

.ah-brand__logo {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    object-fit: cover;

    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(120, 160, 235, 0.25);

    animation: ahLogoFloat 5s ease-in-out infinite;
}

/* floating motion */
@keyframes ahLogoFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* outer glow breathing */
.ah-brand__logoWrap::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 999px;

    background: radial-gradient(circle,
            rgba(74, 163, 255, 0.22),
            transparent 70%);

    animation: ahLogoGlow 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes ahLogoGlow {
    0% {
        transform: scale(.95);
        opacity: .6;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

    100% {
        transform: scale(.95);
        opacity: .6;
    }
}

.ah-brand__halo {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(74, 163, 255, 0.28), transparent 70%);
    animation: ahRingPulse 4.8s ease-in-out infinite;
}



.ah-brand__name {
    font-size: 78px;
    font-weight: 1000;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: #0f172a;
}



.ah-brand__tagline {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.62);
    letter-spacing: 0.2px;
}

.ah-brand__pillRow {
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 800;
}

/* ===== CLIENT SLIDER ===== */

.ah-clients {
    position: relative;
    left: 0;
    right: 0;
    bottom: 60px;
    /* screen bottom se little gap */
    width: 100vw;
    max-width: 100vw;

    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);

    padding: 0;
}

.ah-clients__viewport {
    overflow: hidden;
    height: 100px;
    width: 100%;
}

.ah-clients__track {
    display: flex;
    gap: 14px;
    padding: 8px 20px;
    width: max-content;
    will-change: transform;
}

/* tile */
.ah-client {
    min-width: 180px;
    height: 70px;

    border-radius: 16px;
    border: 1px solid rgba(120, 160, 235, 0.28);
    background: rgba(255, 255, 255, 0.45);

    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
}

.ah-client img {
    height: 50px;
    opacity: .90;
}

/* fade edges */
.ah-clients__fade {
    width: 40px;
}

.ah-clients__fade--left {
    left: 0;
    background: linear-gradient(90deg, #f6faff, transparent);
}

.ah-clients__fade--right {
    right: 0;
    background: linear-gradient(270deg, #f6faff, transparent);
}

/* animations */

@keyframes ahLogoFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes ahRingPulse {
    0% {
        transform: scale(.98);
        opacity: .7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(.98);
        opacity: .7;
    }
}

/* When you scroll to next sections, keep slider normal */
.ah-section:not(.ah-home) .ah-clients {
    position: relative;
    bottom: auto;
    margin: 0;
    width: 100%;
}

/* responsive */
@media(max-width:860px) {
    .ah-brand__name {
        font-size: 38px;
    }

    .ah-brand__tagline {
        font-size: 14px;
    }

    .ah-client {
        min-width: 150px;
    }
}


/* =========================
   HERO REVEAL (fade + blur)
========================= */
.ah-hero {
    position: relative;
}

/* Start hidden, reveal smoothly */
.ah-hero.is-enter .ah-brand,
.ah-hero.is-enter .ah-clients {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

.ah-brand,
.ah-clients {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 10px, 0);
    transition: opacity 700ms ease, filter 900ms ease, transform 900ms cubic-bezier(.2, .8, .2, 1);
}

/* Stagger (brand first, slider after) */
.ah-brand {
    transition-delay: 120ms;
}

.ah-clients {
    transition-delay: 260ms;
}

/* =========================
   SOFT "ALIVE" MOTION
========================= */
.ah-brand__logo {
    will-change: transform;
}

.ah-brand__halo {
    will-change: transform, opacity;
}

/* Gentle breathing on whole hero */
.ah-hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 20%, rgba(74, 163, 255, 0.16), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
    animation: ahBreath 10s ease-in-out infinite;
}

@keyframes ahBreath {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: .75;
    }

    50% {
        transform: translate3d(8px, -8px, 0) scale(1.03);
        opacity: 1;
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: .75;
    }
}

/* Smooth hover polish for cards */
.ah-client {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ah-client:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(22, 60, 120, 0.12);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ah-hero::before {
        animation: none !important;
    }

    .ah-brand,
    .ah-clients {
        transition: none !important;
        opacity: 1;
        filter: none;
        transform: none;
    }
}

.ah-hero.is-enter .ah-brand,
.ah-hero.is-enter .ah-clients {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

.ah-brand,
.ah-clients {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 10px, 0);
    transition: opacity 700ms ease, filter 900ms ease, transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.ah-brand {
    transition-delay: 120ms;
}

.ah-clients {
    transition-delay: 260ms;
}

/* =========================
   FULLSCREEN HERO (same classes)
========================= */

.ah-home {
    min-height: 100vh;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* use existing hero class */
.ah-hero {
    min-height: 100vh;
    width: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    /* ← vertical center */
    align-items: center;
    /* ← horizontal center */

    text-align: center;
    gap: 26px;

    padding: 40px 20px;
    position: relative;
}

/* push slider to bottom */
.ah-clients {
    margin-top: 350px;
}

/* =========================
   Down Sections (Why + Testimonials + CTA)
   Matches existing theme/classes
========================= */

.ah-whyGrid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ah-whyItem {
    padding: 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(120, 160, 235, 0.28);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 28px rgba(22, 60, 120, 0.08);
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.ah-whyItem:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(22, 60, 120, 0.12);
}

.ah-whyIcon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin: 2px auto 12px;
    display: grid;
    place-items: center;

    color: rgba(47, 111, 237, 0.95);
    background: rgba(47, 111, 237, 0.06);
    border: 1px solid rgba(120, 160, 235, 0.30);
}

.ah-whyIcon svg {
    width: 32px;
    height: 32px;
}

.ah-whyTitle {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 1000;
}

.ah-whyText {
    margin: 0;
    color: rgba(15, 23, 42, 0.70);
    font-size: 13px;
    line-height: 1.6;
}

/* Testimonials */
.ah-tWrap {
    margin-top: 18px;
    position: relative;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(120, 160, 235, 0.28);
    background: rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.ah-tQuote {
    position: absolute;
    top: 14px;
    left: 18px;
    font-size: 58px;
    font-weight: 1000;
    color: rgba(47, 111, 237, 0.20);
    line-height: 1;
    pointer-events: none;
}

.ah-tQuote--r {
    left: auto;
    right: 18px;
    top: auto;
    bottom: 18px;
}

.ah-tSlider {
    overflow: hidden;
}

.ah-tTrack {
    display: flex;
    width: 100%;
    transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

.ah-tItem {
    flex: 0 0 100%;
    padding: 18px 18px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(120, 160, 235, 0.26);
    box-shadow: 0 16px 50px rgba(22, 60, 120, 0.10);
    text-align: center;
}

.ah-tText {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(15, 23, 42, 0.84);
    font-weight: 700;
}

.ah-tName {
    margin-top: 12px;
    font-weight: 1000;
    color: rgba(15, 23, 42, 0.82);
}

.ah-tDots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.ah-tDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(120, 160, 235, 0.45);
    background: rgba(47, 111, 237, 0.12);
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease;
}

.ah-tDot:hover {
    transform: scale(1.15);
}

.ah-tDot.is-active {
    background: rgba(47, 111, 237, 0.55);
    border-color: rgba(47, 111, 237, 0.45);
}

/* Final CTA */
.ah-finalCta {
    text-align: center;
}

.ah-finalCta__buttons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 860px) {
    .ah-whyGrid {
        grid-template-columns: 1fr;
    }

    .ah-tQuote {
        display: none;
    }
}

/* ===== Testimonials premium subtle additions ===== */

.ah-tItem {
    text-align: left;
    /* makes it more premium than center */
}

.ah-tHead {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ah-tAvatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 1000;
    letter-spacing: .5px;

    color: rgba(47, 111, 237, 0.92);
    background: rgba(47, 111, 237, 0.08);
    border: 1px solid rgba(120, 160, 235, 0.34);
    box-shadow: 0 10px 22px rgba(22, 60, 120, 0.06);
}

.ah-tMeta {
    min-width: 0;
}

.ah-tNameRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ah-tName {
    margin: 0;
    font-weight: 1000;
    color: rgba(15, 23, 42, 0.86);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ah-tRole {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.58);
}

.ah-tStars {
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(47, 111, 237, 0.65);
    /* subtle, not yellow */
    user-select: none;
}

/* Keep text elegant */
.ah-tText {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.78);
}

/* Mobile tweaks */
@media (max-width: 520px) {
    .ah-tNameRow {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============================================================
   PREVIEW SECTION — .ah-card.ah-section.ah-preview.ah-reveal
   and all child elements
   ============================================================ */

/* ── Section wrapper ── */
.ah-preview {
    padding: 36px 28px 32px;
    overflow: hidden;
}

/* ── Header block ── */
.ah-preview__head {
    text-align: center;
    margin-bottom: 28px;
}

.ah-preview__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 40px;
    background: rgba(47, 111, 237, .07);
    border: 1px solid rgba(47, 111, 237, .2);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--ah-primary);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ah-preview__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, .6);
    animation: previewPulse 2s ease-in-out infinite;
}

@keyframes previewPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.ah-preview__sub {
    font-size: 15px;
    color: var(--ah-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 10px auto 0;
}

/* ── Tab switcher ── */
.ah-preview__tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(47, 111, 237, .06);
    border: 1px solid rgba(120, 160, 235, .22);
    margin: 0 auto 26px;
}

.ah-preview__tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--ah-muted);
    cursor: pointer;
    transition: all .2s ease;
}

.ah-preview__tab:hover {
    background: rgba(255, 255, 255, .7);
    color: var(--ah-primary);
}

.ah-preview__tab.is-active {
    background: #fff;
    border-color: rgba(120, 160, 235, .3);
    color: var(--ah-primary);
    box-shadow: 0 8px 24px rgba(22, 60, 120, .1);
}

/* ── Panels ── */
.ah-preview__panel {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.ah-preview__panel.is-active {
    display: flex;
    animation: panelIn .38s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── CTA row ── */
.ah-preview__cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ── Marquee rows ── */
.ah-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    padding: 6px 0;
    cursor: default;
}

.ah-marquee:hover .ah-marquee__track {
    animation-play-state: paused;
}

.ah-marquee__track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marqueeLeft 38s linear infinite;
}

.ah-marquee[data-dir="right"] .ah-marquee__track {
    animation-name: marqueeRight;
    animation-duration: 44s;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ah-marquee__track {
        animation: none !important;
    }
}

/* ── Preview cards (.ah-pcard) ── */
.ah-pcard {
    width: 220px;
    flex-shrink: 0;
    background: var(--ah-card);
    border: 1px solid var(--ah-stroke);
    border-radius: 18px;
    padding: 18px 16px 16px;
    box-shadow: 0 12px 36px rgba(22, 60, 120, .08);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.ah-pcard:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 52px rgba(22, 60, 120, .16);
}

/* Top colour stripe */
.ah-pcard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 18px 18px 0 0;
}

.ah-pcard--itr::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.ah-pcard--gst::before {
    background: linear-gradient(90deg, #2f6fed, #4aa3ff);
}

.ah-pcard--tds::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.ah-pcard--compliance::before {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.ah-pcard--recon::before {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.ah-pcard--tmpl-gst::before {
    background: linear-gradient(90deg, #2f6fed, #4aa3ff);
}

.ah-pcard--tmpl-itr::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.ah-pcard--tmpl-recon::before {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.ah-pcard--tmpl-tds::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

.ah-pcard--tmpl-payroll::before {
    background: linear-gradient(90deg, #2563eb, #93c5fd);
}

.ah-pcard--tmpl-accounts::before {
    background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.ah-pcard--tmpl-invoice::before {
    background: linear-gradient(90deg, #dc2626, #fca5a5);
}

/* Corner badge triangle */
.ah-pcard--paid::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 28px 28px 0;
    border-color: transparent rgba(234, 179, 8, .18) transparent transparent;
}

.ah-pcard--free::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 28px 28px 0;
    border-color: transparent rgba(34, 197, 94, .2) transparent transparent;
}

/* Card internals */
.ah-pcard__fmt {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--ah-muted);
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(120, 160, 235, .2);
    padding: 2px 6px;
    border-radius: 5px;
}

.ah-pcard__ico {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 3px 8px rgba(22, 60, 120, .12));
}

.ah-pcard__cat {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ah-primary);
    opacity: .7;
}

.ah-pcard__title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ah-text);
    line-height: 1.3;
    letter-spacing: -.01em;
}

.ah-pcard__desc {
    font-size: 12px;
    color: var(--ah-muted);
    line-height: 1.55;
    flex: 1;
}

.ah-pcard__tag {
    display: inline-flex;
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 30px;
    margin-top: 6px;
    letter-spacing: .04em;
}

.ah-pcard__tag--blue {
    background: rgba(47, 111, 237, .1);
    color: var(--ah-primary);
    border: 1px solid rgba(47, 111, 237, .2);
}

.ah-pcard__tag--green {
    background: rgba(34, 197, 94, .1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, .25);
}

.ah-pcard__tag--amber {
    background: rgba(234, 179, 8, .1);
    color: #b45309;
    border: 1px solid rgba(234, 179, 8, .25);
}

.ah-pcard__tag--purple {
    background: rgba(124, 58, 237, .1);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, .2);
}

/* ── Card entry animation ── */
.ah-pcard--enter {
    animation: cardEnter .45s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ah-preview {
        padding: 24px 16px 24px;
    }

    .ah-pcard {
        width: 185px;
        padding: 14px 12px 12px;
    }

    .ah-pcard__ico {
        font-size: 22px;
    }

    .ah-pcard__title {
        font-size: 12.5px;
    }

    .ah-marquee__track {
        gap: 10px;
    }

    .ah-preview__cta {
        flex-direction: column;
        align-items: center;
    }

    .ah-preview__cta .ah-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ah-pcard {
        width: 165px;
    }

    .ah-preview__tabs {
        flex-wrap: wrap;
        border-radius: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING NOTIFICATION WIDGET
   Bottom-left corner · slides up on load · dismissable
═══════════════════════════════════════════════════════════ */

.ah-floatnotif {
    /* Position — bottom-left, clear of scrollbar */
    position: fixed;
    bottom: 28px;
    left: 24px;
    z-index: 8500;

    /* Size & shape */
    width: 320px;
    border-radius: 20px;

    /* Glass card — matches site theme exactly */
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(120, 160, 235, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 4px 8px rgba(22, 60, 120, 0.06),
        0 16px 48px rgba(22, 60, 120, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 1);

    /* Layout */
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 14px 16px 16px;
    overflow: hidden;

    /* Start hidden below screen */
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    pointer-events: none;
    transition:
        opacity .42s cubic-bezier(.16, 1, .3, 1),
        transform .42s cubic-bezier(.16, 1, .3, 1);
}

/* Blue top accent stripe */
.ah-floatnotif::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ah-primary), var(--ah-primary-2));
    border-radius: 20px 20px 0 0;
}

/* Visible state — triggered by JS adding .is-visible */
.ah-floatnotif.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Leaving state — JS adds this when user closes */
.ah-floatnotif.is-leaving {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
}

/* ── Icon badge ── */
.ah-floatnotif__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(47, 111, 237, 0.08);
    border: 1px solid rgba(47, 111, 237, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ah-primary);
    margin-top: 1px;
}

/* ── Text body ── */
.ah-floatnotif__body {
    flex: 1;
    min-width: 0;
}

.ah-floatnotif__title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ah-text);
    letter-spacing: -.02em;
    line-height: 1.3;
    margin-bottom: 4px;
}

.ah-floatnotif__text {
    font-size: 12px;
    font-weight: 500;
    color: var(--ah-muted);
    line-height: 1.55;
    margin-bottom: 10px;
}

.ah-floatnotif__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ah-primary);
    text-decoration: none;
    letter-spacing: -.01em;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(47, 111, 237, 0.08);
    border: 1px solid rgba(47, 111, 237, 0.2);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.ah-floatnotif__cta:hover {
    background: rgba(47, 111, 237, 0.14);
    border-color: rgba(47, 111, 237, 0.35);
    transform: translateX(2px);
}

/* ── Close button ── */
.ah-floatnotif__close {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(120, 160, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--ah-muted);
    padding: 0;
    margin-top: 0;
    transition: background .14s ease, color .14s ease;
}

.ah-floatnotif__close:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* ── Pulse dot (shows notification is "live") ── */
.ah-floatnotif__pulse {
    position: absolute;
    top: 14px;
    right: 44px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: fnPulse 2.4s ease-in-out infinite;
}

@keyframes fnPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(.8);
    }
}

/* ── Safe area on iOS ── */
@supports (bottom: env(safe-area-inset-bottom)) {
    .ah-floatnotif {
        bottom: calc(28px + env(safe-area-inset-bottom));
    }
}

/* ── Mobile: full-width at bottom ── */
@media (max-width: 480px) {
    .ah-floatnotif {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 16px;
        border-radius: 18px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

    .ah-floatnotif,
    .ah-floatnotif.is-visible,
    .ah-floatnotif.is-leaving {
        transition: opacity .2s ease !important;
        transform: none !important;
    }

    .ah-floatnotif__pulse {
        animation: none !important;
    }
}