/* ==========================================================================
   Public site: header, pricing cards and footer.
   Hand-written; loaded by base.html on every public page.
   Colours and proportions follow cryptohopper.com's pricing page.
   ========================================================================== */

:root {
    --site-teal: #00b2c8;
    --site-teal-hover: #009fb3;
    --site-teal-soft: #d9f4f8;
    --site-teal-wash: #e4fafc;
    --site-navy: #0d0c43;
    --site-text: #474b63;
    --site-muted: #7a7998;
    --site-pill: #f4f6fb;
    --site-line: rgba(13, 12, 67, 0.08);
    --site-shadow:
        0 10px 32px rgba(5, 85, 95, 0.06),
        0 8px 24px rgba(5, 85, 95, 0.04);
    --site-gutter: 24px;
}

/* The JPM stylesheets give h2, a and p their own fonts and colours; inside
   our components everything takes the component's font instead. */
.site-header *,
.pricing *,
.site-footer * {
    font-family: inherit;
}

/* Header
   Logo left, links centred, account actions right. Below 1240px the
   links fold into a <details> menu (no JavaScript needed).
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    clear: both;
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 32px rgba(5, 85, 95, 0.06),
        0 1px 0 rgba(5, 85, 95, 0.04);
    backdrop-filter: blur(12px);
    font-family: Amplitude, Arial, sans-serif;
}

.site-header__skip {
    position: absolute;
    left: var(--site-gutter);
    top: -100px;
    padding: 8px 16px;
    background: var(--site-navy);
    color: #fff;
}

.site-header__skip:focus {
    top: 8px;
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 83px;
    padding: 0 var(--site-gutter);
    box-sizing: border-box;
}

/* Logo and actions share the leftover space equally, which keeps the
   links in the middle of the page whatever their widths. */
.site-header__logo {
    display: flex;
    flex: 1 1 0;
}

.site-header__logo img {
    width: auto;
    height: 28px;
}

.site-header__nav {
    display: flex;
    gap: 32px;
}

.site-header__actions {
    display: flex;
    flex: 1 1 0;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.site-header__form {
    margin: 0;
}

.site-header__link {
    padding: 0;
    border: none;
    background: none;
    color: var(--site-navy);
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.site-header__link:hover,
.site-header__link[aria-current="page"] {
    color: var(--site-teal);
}

.site-header__cta {
    padding: 12px 24px;
    border-radius: 18px;
    background: var(--site-teal);
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__cta:hover {
    background: var(--site-teal-hover);
}

/* Menu button and drop-down, used below 1240px. */
.site-menu {
    display: none;
}

.site-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dfe1ec;
    border-radius: 12px;
    list-style: none;
    cursor: pointer;
}

.site-menu__toggle::-webkit-details-marker {
    display: none;
}

.site-menu__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.site-menu__bars span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: var(--site-navy);
}

.site-menu__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 8px var(--site-gutter) 24px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(5, 85, 95, 0.08);
}

.site-menu__links {
    display: grid;
}

.site-menu__links .site-header__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--site-line);
}

.site-menu__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
}

@media (max-width: 1239px) {
    .site-header__nav,
    .site-header__actions {
        display: none;
    }

    .site-menu {
        display: block;
    }
}

/* Pricing cards
   ========================================================================== */

.pricing {
    padding: 80px var(--site-gutter);
    background: #fff;
    font-family: Amplitude, Arial, sans-serif;
    color: var(--site-navy);
    scroll-margin-top: 83px;
}

.pricing__title {
    margin: 0 0 48px;
    color: var(--site-navy);
    font-size: 48px;
    font-weight: 300;
    line-height: 1.15;
    text-align: center;
}

.pricing__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 100%;
    padding: 32px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--site-shadow);
}

/* The ribbon sits on the card's top edge, so the featured card starts
   higher by the ribbon's height and the card bodies still line up. */
.pricing-card--featured {
    margin-top: -36px;
    padding-top: 0;
}

.pricing-card__ribbon {
    margin: 0 -32px 32px;
    padding: 8px 16px;
    border-radius: 24px 24px 0 0;
    background: var(--site-teal);
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    text-align: center;
}

.pricing-card__name {
    margin: 0;
    color: var(--site-navy);
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
    text-align: center;
}

.pricing-card__price {
    margin: 16px 0 24px;
    padding: 16px 24px;
    border-radius: 9999px;
    background: var(--site-pill);
    text-align: center;
}

.pricing-card__amount {
    margin: 0;
    color: var(--site-navy);
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
}

.pricing-card__amount strong {
    font-size: 40px;
    font-weight: 300;
    line-height: 48px;
}

.pricing-card__term {
    margin: 4px 0 0;
    color: var(--site-teal);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
    color: var(--site-text);
    font-size: 14px;
    line-height: 22px;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pricing-card__features li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--site-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2300b2c8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.pricing-card__button {
    display: block;
    align-self: center;
    width: 100%;
    max-width: 240px;
    padding: 19px 24px;
    box-sizing: border-box;
    border-radius: 31px;
    background: var(--site-teal);
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
}

.pricing-card__button:hover {
    background: var(--site-teal-hover);
}

.pricing-card__note {
    margin: 12px 0 0;
    color: var(--site-teal);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    text-align: center;
}

.pricing__footnote {
    max-width: 720px;
    margin: 32px auto 0;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .pricing {
        padding-block: 56px;
    }

    .pricing__title {
        margin-bottom: 32px;
        font-size: 36px;
    }

    .pricing__grid {
        gap: 24px;
    }

    /* Stacked cards: no need to line up, so the ribbon card sits flush. */
    .pricing-card--featured {
        margin-top: 0;
    }
}

/* Footer
   ========================================================================== */

/* The page body is an AEM grid of floated columns; clear them so the
   footer starts below the content instead of behind it. */
.site-footer {
    clear: both;
    padding: 96px var(--site-gutter) 0;
    background: var(--site-teal-wash);
    color: var(--site-muted);
    font-family: Amplitude, Arial, sans-serif;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    max-width: 1474px;
    margin: 0 auto;
}

.site-footer__logo {
    display: inline-flex;
}

.site-footer__logo img {
    width: auto;
    height: 28px;
}

.site-footer__tagline {
    margin: 24px 0 0;
    color: var(--site-navy);
    font-size: 21px;
    font-weight: 300;
    line-height: 1.15;
}

.site-footer__cta {
    display: inline-block;
    margin-top: 32px;
    padding: 12px 24px;
    border-radius: 18px;
    background: var(--site-teal);
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-decoration: none;
}

.site-footer__cta:hover {
    background: var(--site-teal-hover);
}

.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.site-footer__heading {
    margin: 0 0 24px;
    color: var(--site-navy);
    font-size: 21px;
    font-weight: 300;
    line-height: 1.15;
}

.site-footer__links {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links a {
    color: var(--site-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 19px;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--site-teal);
}

.site-footer__disclaimer {
    max-width: 880px;
    color: var(--site-muted);
    margin: 72px auto 0;
    font-size: 12px;
    font-weight: 300;
    line-height: 19px;
    text-align: center;
}

.site-footer__copyright {
    max-width: 1474px;
    margin: 48px auto 0;
    padding: 32px 0;
    border-top: 1px solid var(--site-line);
    color: var(--site-muted);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 56px;
    }

    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .site-footer__disclaimer {
        margin-top: 48px;
    }
}

@media (max-width: 479px) {
    .site-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }
}
