/* ==========================================================================
   Entry price, inside the CTA card
   ==========================================================================
   This began as its own full-width band under the hero, which put two
   stacked panels on the page making the same pitch — the card below it
   already had a headline and a button. So the price moved inside that card
   instead of competing with it: one panel, one action, the number leading.

   Lemon green against the card's blue is the only colour on the section that
   is not white, which is the point — the eye lands on the figure first.

   The figure itself is written by js/adprice.js from the header's country
   selector; everything here is presentation.
   ========================================================================== */

.adprice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    max-width: 460px;
    margin: 0 auto 26px;
    padding: 18px 26px 20px;
    border-radius: 20px;
    background: rgba(0, 8, 40, 0.34);
    border: 1px solid rgba(204, 255, 51, 0.32);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Only the home page's strip is a link — there the card's own button goes to
   signage signup, so the price carries the advertiser route. */
a.adprice:hover,
a.adprice:focus-visible {
    border-color: rgba(204, 255, 51, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.adprice__kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
}

.adprice__amountline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.adprice__amount {
    font-size: clamp(2.6rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #ccff33;
    text-shadow: 0 0 28px rgba(204, 255, 51, 0.38);
    font-variant-numeric: tabular-nums;
}

.adprice__unit {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

/* The code is never dropped: an unpriced market falls back to the Canadian
   figure, and a bare "$3" reads as USD to an American visitor. It sits on the
   kicker rather than the amount line — "$9.99 / month CAD" is too long for a
   two-up column, and the badge wrapped on the signage strip alone, so the two
   panels stopped matching each other. */
.adprice__currency {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.78);
    vertical-align: 1px;
}

.adprice__tail {
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
}

.adprice__note {
    max-width: 440px;
    margin: 20px auto 0;
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.adprice__note strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* .cta-card p sets 1.1rem and a 28px bottom margin for the card's own copy;
   the note is neither, so it opts out. */
.cta-card .adprice__note {
    font-size: 0.76rem;
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .adprice {
        padding: 16px 18px 18px;
    }

    .adprice__tail {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adprice {
        transition: none;
    }

    a.adprice:hover {
        transform: none;
    }
}

/* Two products, side by side on the home page: a signage subscription and an
   advertising day rate. They sit in one row because they are alternatives —
   run your own screens, or buy space on other people's — and stacking them
   would read as one offer with a footnote. The advertise page shows only the
   ad rate, so its grid holds a single, centred strip. */
.adprice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 26px;
}

.adprice-grid--single {
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
}

/* The strip no longer centres itself; the grid places it. */
.adprice-grid .adprice {
    max-width: none;
    margin: 0;
    height: 100%;
    justify-content: center;
}

/* A two-up column is half the width the single strip had, and "$9.99 / month
   CAD" is a good deal longer than "$3 / day CAD" — at the full size the
   currency badge wrapped to its own line on the signage strip only, so the
   two panels stopped matching. Smaller here keeps both on one line. */
.adprice-grid .adprice__amount {
    font-size: clamp(2rem, 4.2vw, 2.7rem);
}

.adprice-grid .adprice__unit {
    font-size: 0.92rem;
}

/* Signage is the card's own action — the button below it goes to signage
   signup — so the advertising strip is the one that carries a link and gets
   the accent. Two identically lit panels would compete. */
.adprice--signage {
    border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 620px) {
    .adprice-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
