/* ============================================================
   Public Mobile App page (/download-app)
   Colours follow the brand colour: the page sets --ap-primary / --ap-soft / --ap-deep inline (BrandIdentity);
   the values below are only the template-pink fallbacks.
   ============================================================ */
.ap-page {
    --ap-primary: #ff67b0;
    --ap-soft: #ffeaf4;
    --ap-deep: #a8366f;
    --ap-ink: #25101b;
    --ap-muted: #6b7280;
    --ap-line: #f3d3e4;
    --ap-plum: #2a1020;
    --ap-plum-2: #16101a;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    color: var(--ap-ink);
    background: #fff;
    overflow-x: clip;
}

.ap-page *,
.ap-page *::before,
.ap-page *::after {
    box-sizing: border-box;
}

.ap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Hero ---------- */
.ap-hero {
    background: linear-gradient(180deg, var(--ap-soft) 0%, #fff 100%);
    padding: clamp(104px, 11vw, 132px) 0 clamp(48px, 6vw, 80px);
}

.ap-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.ap-breadcrumbs {
    margin-bottom: 20px;
    font-size: .85rem;
    color: var(--ap-muted);
}

.ap-breadcrumbs a {
    color: var(--ap-muted);
    text-decoration: none;
}

.ap-breadcrumbs a:hover {
    color: var(--ap-primary);
}

.ap-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    background: #fff;
    border: 1.5px solid var(--ap-line);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ap-deep);
}

.ap-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ap-primary);
    box-shadow: 0 0 0 4px rgba(255, 103, 176, .2);
}

.ap-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.03em;
    color: var(--ap-ink);
}

.ap-accent {
    color: var(--ap-primary);
}

.ap-lead {
    max-width: 540px;
    margin: 0 0 28px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ap-muted);
}

/* ---------- Store buttons ---------- */
.ap-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ap-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 168px;
    padding: 10px 20px 10px 16px;
    background: var(--ap-ink);
    border: 1.5px solid var(--ap-ink);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.ap-badge i {
    font-size: 1.6rem;
    line-height: 1;
}

.ap-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ap-badge small {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}

.ap-badge strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.ap-badge:hover {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
    color: var(--ap-ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -14px var(--ap-primary);
}

.ap-badge:focus-visible,
.ap-btn:focus-visible {
    outline: 3px solid var(--ap-primary);
    outline-offset: 3px;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 26px;
    background: var(--ap-primary);
    border-radius: 14px;
    font-weight: 800;
    color: var(--ap-ink);
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}

.ap-btn:hover {
    background: var(--ap-deep);
    color: #fff;
    transform: translateY(-1px);
}

.ap-soon {
    max-width: 480px;
    padding: 20px 22px;
    background: #fff;
    border: 1.5px dashed var(--ap-primary);
    border-radius: 18px;
}

.ap-soon-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 800;
}

.ap-soon-title i {
    color: var(--ap-primary);
}

.ap-soon p {
    margin: 0 0 14px;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--ap-muted);
}

.ap-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    font-weight: 600;
    color: #4b3a44;
}

.ap-trust i {
    margin-right: 4px;
    color: var(--ap-primary);
}

/* ---------- Phone mock-up ---------- */
.ap-phone-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ap-phone-wrap::before {
    content: "";
    position: absolute;
    inset: -40px -30px;
    background: radial-gradient(closest-side, rgba(255, 103, 176, .35), transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.ap-phone {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 570px;
    padding: 12px;
    background: var(--ap-plum-2);
    border-radius: 44px;
    box-shadow:
        30px 45px 60px -25px rgba(37, 16, 27, .55),
        0 18px 40px -8px rgba(255, 103, 176, .3),
        inset 0 0 0 2px rgba(255, 255, 255, .1);
    transform: perspective(900px) rotateY(-16deg) rotateX(4deg);
    transition: transform .5s ease;
    animation: apFloat 6s ease-in-out infinite;
}

.ap-phone:hover {
    transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
}

@keyframes apFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

.ap-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 3;
    width: 90px;
    height: 22px;
    background: var(--ap-plum-2);
    border-radius: 999px;
    transform: translateX(-50%);
}

.ap-screen {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 34px 16px 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, var(--ap-soft) 100%);
    border-radius: 34px;
    color: var(--ap-ink);
}

.ap-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, transparent 30%);
    pointer-events: none;
}

.ap-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
}

.ap-app-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 12px;
}

.ap-app-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    object-fit: cover;
}

.ap-app-name {
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-screen-title {
    margin: 0 0 2px;
    font-size: 1.15rem;
    font-weight: 800;
}

.ap-screen-sub {
    margin: 0 0 14px;
    font-size: 11px;
    color: var(--ap-muted);
}

.ap-card {
    margin-bottom: 10px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 14px;
    box-shadow: 0 6px 16px -12px rgba(37, 16, 27, .4);
}

.ap-card-label {
    margin-bottom: 2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ap-deep);
}

.ap-card-title {
    font-size: 13px;
    font-weight: 800;
}

.ap-card-title i {
    margin-right: 4px;
    color: var(--ap-primary);
}

.ap-card-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--ap-muted);
}

.ap-bar {
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    background: var(--ap-soft);
    border-radius: 999px;
}

.ap-bar span {
    display: block;
    width: 70%;
    height: 100%;
    background: var(--ap-primary);
    border-radius: inherit;
}

.ap-phone-cta {
    margin-top: 14px;
    padding: 12px;
    background: var(--ap-primary);
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--ap-ink);
}

.ap-caption {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ap-muted);
}

/* ---------- Sections ---------- */
.ap-section {
    padding: clamp(44px, 6vw, 80px) 0;
}

.ap-head {
    margin-bottom: 36px;
    text-align: center;
}

.ap-chip {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: var(--ap-soft);
    border: 1.5px solid var(--ap-line);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ap-deep);
}

.ap-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

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

.ap-feat {
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 20px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.ap-feat:hover {
    border-color: var(--ap-primary);
    box-shadow: 0 20px 40px -24px rgba(37, 16, 27, .35);
    transform: translateY(-3px);
}

.ap-feat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--ap-soft);
    border-radius: 14px;
    color: var(--ap-primary);
    font-size: 1.3rem;
}

.ap-feat h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
}

.ap-feat p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ap-muted);
}

/* ---------- How it works ---------- */
.ap-how {
    background: var(--ap-soft);
    border-top: 1px solid var(--ap-line);
    border-bottom: 1px solid var(--ap-line);
}

.ap-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-steps li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ap-line);
    border-radius: 20px;
}

.ap-step-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-primary);
    border-radius: 50%;
    font-weight: 800;
    color: var(--ap-ink);
}

.ap-steps h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.ap-steps p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ap-muted);
}

/* ---------- Download banner ---------- */
.ap-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(28px, 5vw, 56px);
    background: linear-gradient(135deg, var(--ap-plum) 0%, var(--ap-plum-2) 100%);
    border-radius: 28px;
    color: #fff;
}

.ap-banner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    height: 180%;
    background: radial-gradient(closest-side, rgba(255, 103, 176, .28), transparent 70%);
    pointer-events: none;
}

.ap-banner-copy {
    position: relative;
    max-width: 560px;
}

.ap-banner-eyebrow {
    margin-bottom: 10px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ap-primary);
}

.ap-banner h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.ap-banner p {
    margin: 0 0 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.ap-banner .ap-badge {
    background: #fff;
    border-color: #fff;
    color: var(--ap-ink);
}

.ap-banner .ap-badge:hover {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
}

.ap-qr {
    position: relative;
    flex-shrink: 0;
    text-align: center;
}

.ap-qr-tile {
    width: 188px;
    height: 188px;
    padding: 12px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
}

.ap-qr-tile svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ap-qr p {
    margin: 12px 0 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
}

@media (prefers-reduced-motion: reduce) {
    .ap-phone {
        animation: none;
    }

    .ap-feat,
    .ap-badge,
    .ap-btn {
        transition: none;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .ap-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ap-phone {
        transform: none;
    }

    .ap-feats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-steps {
        grid-template-columns: 1fr;
    }

    .ap-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 575.98px) {
    .ap-container {
        padding: 0 16px;
    }

    .ap-feats {
        grid-template-columns: 1fr;
    }

    .ap-badges {
        flex-direction: column;
    }

    .ap-badge {
        width: 100%;
    }

    .ap-phone {
        width: 260px;
        height: 540px;
    }

    .ap-qr {
        align-self: center;
    }

    .ap-feat,
    .ap-steps li {
        padding: 20px 18px;
    }
}
