/* ══════════════════════════════════════════════════════════════
   SEPTEMBER 2026 SPECIAL — 50% off the Launch tier only

   Self-contained on purpose: to retire the promo, delete the two
   <link>/<script> tags for promo.css / promo.js and the .promo markup
   on / and /pricing/. promo.js also switches everything back to the
   regular price at midnight Central on Oct 1, so nothing stale shows
   if that cleanup is late.

   The card is a dark "ticket" on both the dark home page and the light
   /pricing/ page, so it re-declares the text tokens locally.
   ══════════════════════════════════════════════════════════════ */

@property --promo-ang {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* ── THE CARD ── */
.price-card.promo {
    --text: #f0f0ed;
    --text-muted: rgba(240, 240, 237, 0.74);
    --text-subtle: rgba(240, 240, 237, 0.55);
    --accent-dim: rgba(16, 201, 138, 0.14);
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(16, 201, 138, 0.20), transparent 60%),
        #0b120e !important;
    isolation: isolate;
    z-index: 1;
    overflow: visible;
}
/* Rotating emerald edge. The global reduced-motion rule freezes it at a
   still-good angle, so the static card keeps a lit top-left corner. */
.price-card.promo::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    padding: 1px;
    background: conic-gradient(from var(--promo-ang) at 50% 50%,
        rgba(16, 201, 138, 0.0) 0deg, #10c98a 60deg, #b6ffe0 90deg,
        #10c98a 120deg, rgba(16, 201, 138, 0.0) 200deg, rgba(16, 201, 138, 0.0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: promoSpin 4.5s linear infinite;
    pointer-events: none;
}
.price-card.promo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    box-shadow: 0 0 0 1px rgba(16, 201, 138, 0.25), 0 18px 60px -12px rgba(16, 201, 138, 0.35);
    pointer-events: none;
}
@keyframes promoSpin { to { --promo-ang: 360deg; } }

.promo-ribbon {
    position: absolute;
    top: -14px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    background: #10c98a;
    color: #04130c;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px -4px rgba(16, 201, 138, 0.6);
    overflow: hidden;
}
.promo-ribbon b {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}
/* light sweep across the ribbon */
.promo-ribbon::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-20deg);
    animation: promoSweep 3.2s ease-in-out infinite;
}
@keyframes promoSweep { 0%, 55% { left: -40%; } 100% { left: 130%; } }

.price-card.promo .price-tier { color: #10c98a; }
.price-card.promo .price-note a { color: #10c98a; }
.price-card.promo .price-amount { flex-wrap: wrap; row-gap: 2px; }
.promo-was {
    position: relative;
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: rgba(240, 240, 237, 0.42);
    margin-right: 4px;
}
.promo-was s { text-decoration: none; }
/* hand-drawn feeling strike, drawn in once when the card reveals */
.promo-was::after {
    content: '';
    position: absolute;
    left: -3px; right: -3px;
    top: 52%;
    height: 2px;
    background: #10c98a;
    transform: rotate(-10deg) scaleX(var(--strike, 1));
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1) 0.35s;
}
html.js .price-card.promo.reveal:not(.visible) .promo-was::after { --strike: 0; }
.price-card.promo .price-num {
    font-size: 54px;
    color: #10c98a;
    text-shadow: 0 0 28px rgba(16, 201, 138, 0.35);
}
.price-card.promo .price-num small {
    font-size: 0.42em;
    letter-spacing: 0;
    vertical-align: 0.95em;
    margin-left: 1px;
}

.promo-timer {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(240, 240, 237, 0.7);
    margin: 6px 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.promo-timer::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10c98a;
    box-shadow: 0 0 0 0 rgba(16, 201, 138, 0.7);
    animation: promoPulse 1.8s ease-out infinite;
    flex: none;
}
@keyframes promoPulse { to { box-shadow: 0 0 0 9px rgba(16, 201, 138, 0); } }
.promo-timer [data-promo-left] { color: #f0f0ed; font-weight: 700; }

.price-card.promo .price-cta.promo-cta {
    background: #10c98a;
    border-color: #10c98a;
    color: #04130c;
}
.price-card.promo .price-cta.promo-cta:hover { background: #3ee0a8; border-color: #3ee0a8; }
.promo-fine {
    margin-top: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.6px;
    line-height: 1.6;
    color: rgba(240, 240, 237, 0.5);
}

/* ── FLOATING PILL — every page, until dismissed or the card is on screen ── */
.promo-pill {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 95;
    transform: translate3d(-50%, 0, 0);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 8px 8px 8px 16px;
    background: rgba(8, 14, 11, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 201, 138, 0.45);
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px -8px rgba(16, 201, 138, 0.45);
    color: #f0f0ed;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.3s;
}
.promo-pill[data-state="hidden"] {
    transform: translate3d(-50%, 160%, 0);
    opacity: 0;
    pointer-events: none;
}
.promo-pill .pp-off {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #10c98a;
    text-transform: none;
    line-height: 1;
}
.promo-pill .pp-copy { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.promo-pill .pp-copy span:last-child { color: rgba(240, 240, 237, 0.6); font-size: 9px; }
.promo-pill .pp-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #10c98a;
    color: #04130c;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.promo-pill .pp-go:hover { background: #3ee0a8; }
.promo-pill .pp-x {
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: rgba(240, 240, 237, 0.55);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.promo-pill .pp-x:hover { color: #f0f0ed; }
@media (max-width: 640px) {
    .promo-pill { left: 16px; right: 16px; transform: none; bottom: 12px; gap: 10px; }
    .promo-pill[data-state="hidden"] { transform: translate3d(0, 160%, 0); }
    .promo-pill .pp-copy span:last-child { display: none; }
    .promo-pill .pp-copy { flex: 1; min-width: 0; }
}

/* ── CONTACT FORM NOTE when arriving from a promo link ── */
.promo-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: rgba(16, 201, 138, 0.10);
    border: 1px solid rgba(16, 201, 138, 0.45);
    font-size: 14px;
    color: var(--text);
}
.promo-applied b { color: #0d9e6e; font-family: 'Syne', sans-serif; }
body.explode .promo-applied b { color: #10c98a; }

/* ── AFTER THE PROMO ENDS ── */
.promo-regular { display: none; }
html.promo-over .promo-regular { display: revert; }
html.promo-over .promo-only,
html.promo-over .promo-pill { display: none !important; }
/* promo.js also drops the .promo class from the card, which un-darkens it */
