/* ============================================================
   Timed promotion. Everything here only applies once promo.js has
   set html.has-promo, so outside the dates this file does nothing.
   ============================================================ */

/* The strip. Near black, because it is Black Friday and because it is the
   one surface on the page meant to be loud. Lime appears only as the thin
   frame and faint tint around the discount: lime is never type itself. */
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #15161C;
    color: #ECEFF4;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}
.promo-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.promo-pct {
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: #ECEFF4;
    font-weight: 600;
    letter-spacing: 0;
}
.promo-price s { opacity: 0.55; margin-right: 2px; }
.promo-price strong { font-weight: 700; font-size: 1.05em; }
.promo-left { opacity: 0.65; font-size: 0.82rem; }
.promo-cta {
    padding: 6px 16px;
    border-radius: 100px;
    background: #ECEFF4;
    color: #15161C;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform var(--dur), background var(--dur);
}
.promo-bar:hover .promo-cta { background: #FFFFFF; transform: translateX(2px); }

/* The nav floats at the top on every page; it steps down under the strip. */
html.has-promo .nav { top: 48px; }

/* Struck price inside the hero button, dimmed so the new price leads. */
.promo-was {
    color: var(--text-dim);
    font-weight: 400;
    margin: 0 7px 0 6px;
    text-decoration-thickness: 1.5px;
}

/* Closing card: the struck 89 beside the 49, on the baseline the row
   already sets. Smaller and dimmed so the 49 stays the number the eye
   lands on, in the display face like its neighbour so the pair reads
   as one price. */
.v-price-was {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
.promo-note {
    margin-top: 12px;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text-dim);
}

/* Download page, under the version chip. */
.promo-dl {
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
}
.promo-dl s { color: var(--text-dim); }
.promo-dl strong { font-weight: 600; color: var(--text); }
.promo-dl a {
    color: var(--accent-mid);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Phones: the name and the price carry it; the countdown goes first. */
@media (max-width: 760px) {
    .promo-left { display: none; }
}
@media (max-width: 480px) {
    .promo-bar { gap: 10px; font-size: 0.82rem; padding: 0 10px; }
    .promo-name { font-size: 0.78rem; letter-spacing: 0.02em; }
    .promo-pct { padding: 2px 6px; }
    .promo-price s, .promo-prod { display: none; }
    .promo-cta { padding: 5px 12px; }
}
