/* web.petiht.com /pricing (classic theme). Builds on ayiti-landing.css tokens. Haiti palette, no purple. */

/* ---------- hero ---------- */

.ayp-hero {
    position: relative;
    overflow: hidden;
    padding: 9rem 0 4.5rem;
    color: #fff;
    background:
        radial-gradient(55% 60% at 85% 10%, rgba(61, 107, 255, 0.35), transparent 70%),
        radial-gradient(40% 50% at 5% 100%, rgba(0, 32, 159, 0.55), transparent 70%),
        linear-gradient(170deg, var(--ay-navy) 0%, var(--ay-night) 100%);
}

.ayp-hero__inner {
    position: relative;
    z-index: 1;
}

.ayp-hero__eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.ayp-hero__title {
    max-width: 16ch;
    margin: 0;
    font-family: var(--ay-display);
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    color: #fff;
}

.ayp-hero__title em {
    font-style: italic;
    color: var(--ay-gold);
}

.ayp-hero__lead {
    max-width: 40rem;
    margin: 1.4rem 0 0;
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

.ayp-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    max-width: 44rem;
    margin-top: 2.5rem;
}

.ayp-switch__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    text-decoration: none;
    transition: border-color 0.3s var(--ay-ease), background-color 0.3s var(--ay-ease), transform 0.3s var(--ay-ease);
}

.ayp-switch__item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
}

.ayp-switch__item:first-child:hover {
    border-color: var(--ay-blue-glow);
}

.ayp-switch__item:last-child:hover {
    border-color: var(--ay-red-glow);
}

.ayp-switch__item strong {
    font-family: var(--ay-tech);
    font-size: 1.08rem;
    font-weight: 600;
}

.ayp-switch__kicker {
    font-family: var(--ay-tech);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ay-gold);
}

.ayp-switch__meta {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.6);
}

.ayp-models {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.ayp-models li {
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-family: var(--ay-tech);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
}

.ayp-models li:first-child {
    border-color: rgba(245, 197, 24, 0.6);
    color: var(--ay-gold);
}

/* ---------- sections ---------- */

.ayp-section {
    padding: 6rem 0;
}

.ayp-section--web {
    background: var(--ay-cream);
}

.ayp-section--app {
    background: var(--ay-paper);
}

.ayp-section--compare {
    background: var(--ay-cream);
}

.ayp-section--faq {
    background: var(--ay-paper);
}

.ayp-head {
    max-width: 46rem;
    margin-bottom: 2.75rem;
}

.ayp-head__tag {
    display: inline-block;
    margin: 0 0 1rem;
    font-family: var(--ay-tech);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ay-muted);
}

.ayp-head__tag--blue {
    color: var(--ay-blue);
}

.ayp-head__tag--red {
    color: var(--ay-red);
}

.ayp-empty {
    color: var(--ay-muted);
}

/* ---------- plan cards ---------- */

.ayp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
    max-width: 920px;
}

.ayp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid rgba(10, 18, 48, 0.1);
    border-radius: 24px;
    background: var(--ay-paper);
    box-shadow: 0 18px 50px -32px rgba(10, 18, 48, 0.35);
}

.ayp-section--app .ayp-card {
    background: var(--ay-cream);
}

.ayp-card--top {
    border-color: transparent;
    color: #fff;
    background:
        radial-gradient(70% 50% at 100% 0%, rgba(61, 107, 255, 0.35), transparent 70%),
        linear-gradient(165deg, #0a1a5c 0%, var(--ay-navy) 100%) !important;
    box-shadow: 0 30px 70px -30px rgba(0, 32, 159, 0.6);
}

.ayp-card--app.ayp-card--top {
    background:
        radial-gradient(70% 50% at 100% 0%, rgba(255, 45, 79, 0.28), transparent 70%),
        linear-gradient(165deg, #1a0d14 0%, var(--ay-night) 100%) !important;
    box-shadow: 0 30px 70px -30px rgba(210, 16, 52, 0.5);
}

.ayp-card__badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--ay-gold);
    color: var(--ay-ink);
    font-family: var(--ay-tech);
    font-size: 0.72rem;
    font-weight: 600;
}

.ayp-card__name {
    margin: 0;
    padding-right: 6.5rem;
    font-family: var(--ay-tech);
    font-size: 1.15rem;
    font-weight: 600;
    color: inherit;
}

.ayp-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 1.1rem 0 0;
}

.ayp-card__amount {
    font-family: var(--ay-display);
    font-size: 3.4rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ayp-card__per {
    font-size: 0.95rem;
    opacity: 0.65;
}

.ayp-card__credits {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.1rem 0 0;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(0, 32, 159, 0.07);
    font-size: 0.92rem;
}

.ayp-card__credits strong {
    font-family: var(--ay-tech);
    font-size: 1.35rem;
    color: var(--ay-blue);
}

.ayp-card--app .ayp-card__credits {
    background: rgba(210, 16, 52, 0.07);
}

.ayp-card--app .ayp-card__credits strong {
    color: var(--ay-red);
}

.ayp-card--top .ayp-card__credits {
    background: rgba(255, 255, 255, 0.08);
}

.ayp-card--top .ayp-card__credits strong {
    color: var(--ay-gold);
}

.ayp-card__desc {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    opacity: 0.75;
}

.ayp-card__list {
    display: grid;
    gap: 0.6rem;
    margin: 1.4rem 0 1.75rem;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.ayp-card__list li {
    position: relative;
    padding-left: 1.7rem;
    line-height: 1.45;
}

.ayp-card__list li::before {
    content: '';
    position: absolute;
    top: 0.2rem;
    left: 0;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat,
        var(--ay-blue);
}

.ayp-card--app .ayp-card__list li::before {
    background-color: var(--ay-red);
}

.ayp-card--top .ayp-card__list li::before {
    background-color: var(--ay-gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1230' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.ayp-card__cta {
    justify-content: center;
    margin-top: auto;
}

.ayp-btn--outline {
    border-color: var(--ay-blue);
    color: var(--ay-blue) !important;
    background: transparent;
}

.ayp-btn--outline:hover {
    background: rgba(0, 32, 159, 0.06);
}

.ayp-card__fine {
    margin: 0.9rem 0 0;
    font-size: 0.82rem;
    text-align: center;
    opacity: 0.6;
}

.ayp-card--app .ayp-card__fine {
    margin-top: auto;
    padding-top: 0.25rem;
}

/* ---------- app stores ---------- */

.ayp-stores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 920px;
    margin-top: 1.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    background: var(--ay-cream);
}

.ayp-stores p {
    margin: 0;
    font-weight: 500;
}

.ayp-stores__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ayp-store {
    display: inline-flex;
    flex-direction: column;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    background: var(--ay-night);
    color: #fff !important;
    text-decoration: none;
    line-height: 1.15;
    transition: transform 0.3s var(--ay-ease);
}

.ayp-store:hover {
    transform: translateY(-2px);
}

.ayp-store span {
    font-size: 0.68rem;
    opacity: 0.7;
}

.ayp-store strong {
    font-family: var(--ay-tech);
    font-size: 1rem;
}

/* ---------- comparison ---------- */

.ayp-compare {
    max-width: 920px;
    border: 1px solid rgba(10, 18, 48, 0.1);
    border-radius: 24px;
    background: var(--ay-paper);
    overflow: hidden;
}

.ayp-compare__row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-top: 1px solid rgba(10, 18, 48, 0.08);
}

.ayp-compare__row:first-child {
    border-top: 0;
}

.ayp-compare__row--head {
    background: var(--ay-ink);
    color: #fff;
    font-family: var(--ay-tech);
}

.ayp-compare__row--head strong:nth-child(2) {
    color: #8fb0ff;
}

.ayp-compare__row--head strong:nth-child(3) {
    color: #ff8a9c;
}

.ayp-compare__row > span {
    font-family: var(--ay-tech);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ay-muted);
}

.ayp-compare__row p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- FAQ ---------- */

.ayp-faq__list {
    display: grid;
    gap: 0.75rem;
    max-width: 920px;
}

.ayp-faq__list details {
    border: 1px solid rgba(10, 18, 48, 0.1);
    border-radius: 18px;
    background: var(--ay-cream);
}

.ayp-faq__list summary {
    position: relative;
    padding: 1.15rem 3.25rem 1.15rem 1.4rem;
    font-family: var(--ay-tech);
    font-size: 1.02rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.ayp-faq__list summary::-webkit-details-marker {
    display: none;
}

.ayp-faq__list summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 1.4rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ay-red);
    transform: translateY(-50%);
    transition: transform 0.3s var(--ay-ease);
}

.ayp-faq__list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.ayp-faq__list details p {
    margin: 0;
    padding: 0 1.4rem 1.25rem;
    line-height: 1.6;
    color: var(--ay-muted);
}

/* ---------- hero diagram: one model, two experiences ---------- */

.ayp-hero__art {
    display: none;
}

.ayp-art__device,
.ayp-art__core {
    position: absolute;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.ayp-art__device {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.ayp-art__device--web {
    top: 30%;
    left: 26%;
    width: 46%;
    border-radius: 14px;
    border-top: 2px solid var(--ay-blue-glow);
}

.ayp-art__device--app {
    top: 68%;
    left: 80%;
    width: 25%;
    aspect-ratio: 9 / 17;
    border-radius: 22px;
    border-top: 2px solid var(--ay-red-glow);
}

.ayp-art__dots {
    display: flex;
    gap: 0.3rem;
}

.ayp-art__dots i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.ayp-art__notch {
    align-self: center;
    width: 34%;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.ayp-art__label {
    font-family: var(--ay-tech);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.ayp-art__line {
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.ayp-art__line--short {
    width: 60%;
}

.ayp-art__tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.ayp-art__tiles i {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(61, 107, 255, 0.55), rgba(0, 32, 159, 0.35));
}

.ayp-art__tiles i:nth-child(2) {
    background: linear-gradient(150deg, rgba(245, 197, 24, 0.55), rgba(245, 197, 24, 0.15));
}

.ayp-art__post {
    flex: 1;
    min-height: 3rem;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 45, 79, 0.55), rgba(210, 16, 52, 0.2));
}

.ayp-art__core {
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 8.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    text-align: center;
    background: radial-gradient(circle at 35% 30%, #6f93ff 0%, #1d4ff0 40%, var(--ay-blue) 75%, #001055 100%);
    box-shadow:
        0 0 0 10px rgba(245, 197, 24, 0.08),
        0 0 0 1px rgba(245, 197, 24, 0.6),
        0 0 80px rgba(61, 107, 255, 0.5);
    align-content: center;
    gap: 0.15rem;
}

.ayp-art__core span {
    font-family: var(--ay-display);
    font-size: 1.35rem;
    color: #fff;
}

.ayp-art__core small {
    font-family: var(--ay-tech);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ay-gold);
}

.ayp-art__links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ayp-art__links path {
    fill: none;
    stroke: rgba(245, 197, 24, 0.55);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
    vector-effect: non-scaling-stroke;
    animation: ayp-flow 1.6s linear infinite;
}

@keyframes ayp-flow {
    to {
        stroke-dashoffset: -20;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ayp-art__links path {
        animation: none;
    }
}

@media (min-width: 1080px) {
    .ayp-hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 3rem;
        align-items: center;
    }

    .ayp-hero__art {
        position: relative;
        display: block;
        aspect-ratio: 4 / 3;
    }

    /* heading left (sticky), content right */
    .ayp-split {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
        gap: 4rem;
        align-items: start;
    }

    .ayp-split > .ayp-head {
        position: sticky;
        top: 110px;
        margin-bottom: 0;
    }

    .ayp-split .ay-h2 {
        font-size: clamp(2.1rem, 3.2vw, 3rem);
    }
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
    .ayp-hero {
        padding: 7.5rem 0 3.5rem;
    }

    .ayp-switch {
        grid-template-columns: minmax(0, 1fr);
    }

    .ayp-section {
        padding: 4.5rem 0;
    }

    .ayp-card {
        padding: 1.75rem 1.35rem 1.5rem;
    }

    .ayp-compare__row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 1rem 1.1rem;
    }

    .ayp-compare__row > span {
        grid-column: 1 / -1;
    }

    .ayp-compare__row--head > span {
        display: none;
    }
}
