/* ads on the public site — standard sizes, scaled down on small screens */
.spot-zone { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.spot-zone--top { padding: 1.25rem 1.25rem 0; position: relative; z-index: 2; }
.spot-zone--section { padding: 1.75rem 1.25rem; }
.spot-zone--foot { padding: 2.5rem 1.25rem 1.5rem; }
.spot-zone--inline { margin: 2rem 0; }
.spot-zone--side { margin-top: 1rem; }
.spot-zone--side .spot { max-width: min(var(--ad-w), 100%); }

.spot { position: relative; width: 100%; max-width: var(--ad-w); }
.spot-label {
  display: flex; align-items: center; gap: .375rem; margin: 0 .125rem .375rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: hsl(var(--muted-foreground) / .85);
}
.spot-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, hsl(var(--border)), transparent); order: 1; }
[dir="rtl"] .spot-label { letter-spacing: 0; }
[dir="rtl"] .spot-label::after { background: linear-gradient(270deg, hsl(var(--border)), transparent); }
/* "Advertisement · [logo] Brand" over a picture ad */
.spot-by { display: inline-flex; align-items: center; gap: .3125rem; text-transform: none; letter-spacing: 0; color: hsl(var(--foreground) / .8); font-weight: 550; }
.spot-by::before { content: "·"; margin-inline-end: .125rem; color: hsl(var(--muted-foreground)); }
.spot-by img { width: 1rem; height: 1rem; object-fit: contain; border-radius: .25rem; background: #fff; }

.spot-link {
  position: relative; display: block; line-height: 0; overflow: hidden; border-radius: .75rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--muted));
  box-shadow: 0 14px 34px -24px hsl(0 0% 0% / .7);
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.spot-link:hover { border-color: hsl(var(--primary) / .5); box-shadow: 0 18px 40px -22px hsl(var(--primary) / .45); }
.spot-link:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; }
.spot-link img { display: block; width: 100%; height: auto; }

/* frames for picture ads */
.spot-frame--clean .spot-link { border-color: transparent; box-shadow: none; background: transparent; }
.spot-frame--clean .spot-link:hover { border-color: transparent; box-shadow: none; opacity: .94; }
.spot-frame--glow .spot-link { border-color: var(--a1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a1) 35%, transparent), 0 14px 40px -16px var(--a1); }
.spot-frame--glow .spot-link:hover { border-color: var(--a2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a2) 45%, transparent), 0 18px 48px -14px var(--a2); }
.spot-frame--lift .spot-link { border-color: transparent; border-radius: 1rem; box-shadow: 0 30px 60px -30px hsl(0 0% 0% / .8), 0 10px 24px -16px hsl(0 0% 0% / .5); }
.spot-frame--lift .spot-link:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px hsl(0 0% 0% / .85), 0 14px 30px -16px hsl(0 0% 0% / .55); }

/* phones see the phone picture (or the computer one, scaled to fit) */
@media (max-width: 640px) {
  .spot { max-width: min(var(--ad-mw), 100%); }
  .spot--desktop { display: none; }
  .spot-zone--section { padding: 1.25rem 1rem; }
}
@media (min-width: 641px) {
  .spot--mobile { display: none; }
}

/* between the release notes */
.timeline-spot { list-style: none; margin: 0 0 2.5rem; }
.timeline-spot .spot-zone { margin: 0; }

/* ================================================================ designed ads */
.spot--design { container-type: inline-size; width: var(--ad-w); max-width: 100%; }
@media (max-width: 640px) { .spot--design { max-width: min(var(--ad-w), 100%); } }

.spx {
  --r: .875rem; --pad: 1.25rem; --logo: 4rem; --gap: 1rem;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; min-height: var(--adx-h, 120px);
  border-radius: var(--r); line-height: 1.4; text-align: start;
  color: var(--ink, #fff);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.spx .spx-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; display: none; }
.spx-bg:not([src]) { display: none !important; }
.spx-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spx-deco i { position: absolute; display: block; }
.spx-in {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--gap);
  padding: var(--pad);
}
.spx-logo {
  position: relative; flex: none; display: grid; place-items: center; width: var(--logo); height: var(--logo);
  border-radius: calc(var(--logo) * .24); overflow: hidden;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.spx-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.spx-logo img:not([src]) { display: none; }
.spx-logo b { font-size: calc(var(--logo) * .44); font-weight: 700; line-height: 1; }
.spx.has-logo .spx-logo b { display: none; }
.spx-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.spx-brand { font-size: .6875rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
[dir="rtl"] .spx-brand { letter-spacing: 0; }
.spx-brand:empty { display: none; }
.spx-title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere;
             display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
[dir="rtl"] .spx-title { letter-spacing: 0; line-height: 1.45; }
.spx-text { font-size: .875rem; opacity: .8; overflow-wrap: anywhere;
            display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.spx-text:empty { display: none; }
.spx-side { flex: none; display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; justify-content: flex-end; }
.spx-cta {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .6875rem 1.125rem; border-radius: 999px; font-size: .875rem; font-weight: 650; line-height: 1;
  background: var(--ink); color: var(--a1);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.spx-cta svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
[dir="rtl"] .spx-cta svg { transform: scaleX(-1); }
.spx:hover .spx-cta svg { transform: translateX(3px); }
[dir="rtl"] .spx:hover .spx-cta svg { transform: scaleX(-1) translateX(3px); }
.spx-hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.spx-hit:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 2px; }
.spx:hover { transform: translateY(-2px); }

.spx-code {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: .4375rem; cursor: copy;
  padding: .4375rem .6875rem; border-radius: .5rem; border: 1.5px dashed currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font: inherit; font-size: .75rem;
  transition: background-color .2s, transform .15s;
}
.spx-code:hover { background: color-mix(in srgb, currentColor 16%, transparent); }
.spx-code:active { transform: scale(.97); }
.spx-code[hidden] { display: none; }
.spx-code-k { opacity: .75; }
.spx-code b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .875rem; letter-spacing: .06em; }
.spx-code svg { width: .9375rem; height: .9375rem; fill: none; stroke: currentColor; stroke-width: 2; }
.spx-code.is-done { border-style: solid; }
.spx-clock {
  display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .625rem; border-radius: 999px;
  font-size: .75rem; background: color-mix(in srgb, currentColor 12%, transparent);
}
.spx-clock[hidden] { display: none; }
.spx-clock svg { width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.spx-clock b { font-variant-numeric: tabular-nums; font-weight: 650; }
.spx-clock-k { opacity: .75; }

/* ---- shapes: a strip (728×90), a wide band (970×250), a card (300×250), a tall one (300×600) */
.spx--strip { --pad: .75rem 1rem; --logo: 3.25rem; --gap: .875rem; }
.spx--strip .spx-title { font-size: 1.0625rem; -webkit-line-clamp: 1; }
.spx--strip .spx-text { font-size: .8125rem; -webkit-line-clamp: 1; }
.spx--strip .spx-brand { font-size: .625rem; }
.spx--strip .spx-side { flex-wrap: nowrap; }
.spx--strip .spx-copy { min-width: min(13rem, 38%); }
.spx--strip .spx-code-k, .spx--strip .spx-clock-k { display: none; }
.spx--strip .spx-clock { display: none; }
@container (min-width: 900px) { .spx--strip .spx-clock:not([hidden]) { display: inline-flex; } }
.spx--wide { --pad: 1.5rem 1.75rem; --logo: 5rem; --gap: 1.375rem; }
.spx--wide .spx-title { font-size: 1.625rem; }
.spx--wide .spx-text { font-size: .9375rem; }
.spx--card .spx-in, .spx--tall .spx-in { flex-direction: column; align-items: flex-start; }
.spx--card { --pad: 1.25rem; --logo: 3.5rem; --gap: .75rem; }
.spx--card .spx-text { -webkit-line-clamp: 3; }
.spx--card .spx-side, .spx--tall .spx-side { margin-top: auto; width: 100%; justify-content: space-between; }
.spx--card .spx-copy, .spx--tall .spx-copy { flex: none; }
.spx--tall { --pad: 1.75rem 1.5rem; --logo: 5rem; --gap: 1rem; }
.spx--tall .spx-title { font-size: 1.75rem; -webkit-line-clamp: 4; }
.spx--tall .spx-text { font-size: .9375rem; -webkit-line-clamp: 6; }
.spx--tall .spx-side { flex-direction: column; align-items: stretch; }
.spx--tall .spx-cta { justify-content: center; padding: .875rem 1.25rem; }
/* a tall ad without a picture panel: everything in the middle */
.spx--tall:not(.spx--split):not(.spx--coupon):not(.spx--photo) .spx-in { justify-content: center; }
.spx--tall:not(.spx--split):not(.spx--coupon):not(.spx--photo) .spx-side { margin-top: 1.75rem; }
.spx--tall:not(.spx--split):not(.spx--coupon) { --logo: 6rem; }
.spx--tall .spx-title { font-size: 2rem; }
/* over a photo the words sit low, where it is darkest */
.spx--photo.spx--card .spx-in, .spx--photo.spx--tall .spx-in { justify-content: flex-end; }
.spx--photo.spx--card .spx-side, .spx--photo.spx--tall .spx-side { margin-top: 1rem; }
.spx--photo.spx--card .spx-logo, .spx--photo.spx--tall .spx-logo { margin-bottom: auto; }
.spx--card .spx-cta { margin-inline-start: auto; }

/* the 160 wide skyscraper */
@container (max-width: 200px) {
  .spx--tall { --pad: 1.25rem .875rem; --logo: 3.5rem; }
  .spx--tall .spx-title { font-size: 1.25rem; }
  .spx--tall .spx-cta { font-size: .8125rem; padding: .75rem .75rem; }
}
/* a strip or band on a narrow screen: logo, headline, button */
@container (max-width: 560px) {
  .spx--strip, .spx--wide { --pad: .75rem .875rem; --logo: 3rem; --gap: .75rem; min-height: 0; }
  .spx--strip .spx-text, .spx--wide .spx-text { display: none; }
  .spx--strip .spx-title, .spx--wide .spx-title { font-size: 1rem; -webkit-line-clamp: 2; }
  .spx--strip .spx-cta, .spx--wide .spx-cta { padding: .625rem .875rem; font-size: .8125rem; }
  .spx--strip .spx-clock, .spx--wide .spx-clock, .spx--strip .spx-code-k, .spx--wide .spx-code-k { display: none; }
}
@container (max-width: 380px) {
  .spx--strip .spx-cta svg, .spx--wide .spx-cta svg { display: none; }
  .spx--strip .spx-code, .spx--wide .spx-code { display: none; }
  .spx--strip .spx-brand, .spx--wide .spx-brand { display: none; }
}

/* ---- the eight looks */

/* minimal: follows the site's light or dark theme */
.spx--minimal { background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border));
                box-shadow: 0 14px 34px -26px hsl(0 0% 0% / .6); }
.spx--minimal::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: linear-gradient(180deg, var(--a1), var(--a2)); }
.spx--minimal .spx-logo { background: color-mix(in srgb, var(--a1) 13%, transparent); color: var(--a1); }
.spx--minimal .spx-brand { color: var(--a1); opacity: 1; }
.spx--minimal .spx-text { color: hsl(var(--muted-foreground)); opacity: 1; }
.spx--minimal .spx-cta { background: var(--a1); color: var(--ink); }
.spx--minimal:hover { border-color: color-mix(in srgb, var(--a1) 55%, transparent); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--a1) 60%, transparent); }

/* gradient: bold colour */
.spx--gradient { background: linear-gradient(120deg, var(--a1), var(--a2)); box-shadow: 0 18px 40px -24px var(--a2); }
.spx--gradient .spx-deco i:nth-child(1) { width: 18rem; height: 18rem; border-radius: 50%; inset-inline-end: -5rem; top: -9rem; background: color-mix(in srgb, #fff 16%, transparent); }
.spx--gradient .spx-deco i:nth-child(2) { width: 10rem; height: 10rem; border-radius: 50%; inset-inline-end: 8rem; bottom: -6rem; background: color-mix(in srgb, #fff 10%, transparent); }
.spx--gradient .spx-deco i:nth-child(3) { inset: 0; background: radial-gradient(color-mix(in srgb, #fff 18%, transparent) 1px, transparent 1.5px) 0 0 / 14px 14px;
                                          mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
[dir="rtl"] .spx--gradient .spx-deco i:nth-child(3) { mask-image: linear-gradient(270deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(270deg, transparent 40%, #000); }
.spx--gradient .spx-logo { background: color-mix(in srgb, #fff 92%, transparent); color: var(--a1); box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.spx--gradient[data-ink="light"] .spx-cta { color: color-mix(in srgb, var(--a1) 78%, #000); }
.spx--gradient[data-ink="dark"] .spx-cta { color: #fff; }
.spx--gradient:hover { box-shadow: 0 22px 48px -22px var(--a2); }

/* aurora: deep night with soft light */
.spx--aurora { background: #07070d; color: #fff; border: 1px solid rgba(255,255,255,.08); }
.spx--aurora .spx-deco i { border-radius: 50%; filter: blur(42px); opacity: .85; }
.spx--aurora .spx-deco i:nth-child(1) { width: 60%; height: 160%; top: -70%; inset-inline-start: -10%; background: var(--a1); }
.spx--aurora .spx-deco i:nth-child(2) { width: 55%; height: 150%; bottom: -80%; inset-inline-end: -5%; background: var(--a2); }
.spx--aurora .spx-deco i:nth-child(3) { inset: 0; border-radius: 0; filter: none; opacity: 1;
  background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.spx--aurora .spx-logo { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); color: #fff; }
.spx--aurora .spx-text { opacity: .74; }
.spx--aurora .spx-cta { background: linear-gradient(120deg, var(--a1), var(--a2)); color: #fff; box-shadow: 0 8px 24px -8px var(--a1), inset 0 1px 0 rgba(255,255,255,.25); }
.spx--aurora:hover { box-shadow: 0 20px 50px -24px var(--a1); }

/* glass: frosted panel over colour */
.spx--glass {
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--a1), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, var(--a2), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--a1) 55%, #000), color-mix(in srgb, var(--a2) 55%, #000));
}
.spx--glass .spx-deco i { border-radius: 50%; filter: blur(2px); }
.spx--glass .spx-deco i:nth-child(1) { width: 9rem; height: 9rem; top: -3rem; inset-inline-start: 18%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--a1) 55%, #fff), var(--a1) 70%); }
.spx--glass .spx-deco i:nth-child(2) { width: 7rem; height: 7rem; bottom: -2.5rem; inset-inline-end: 22%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--a2) 55%, #fff), var(--a2) 70%); }
.spx--glass .spx-deco i:nth-child(3) { width: 4rem; height: 4rem; top: 30%; inset-inline-end: 6%; background: radial-gradient(circle at 30% 30%, #fff, color-mix(in srgb, var(--a1) 50%, var(--a2)) 70%); opacity: .9; }
.spx--glass .spx-in {
  margin: .625rem; border-radius: calc(var(--r) - .25rem);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px -12px rgba(0,0,0,.5);
}
.spx--glass.spx--strip .spx-in { margin: .4375rem; padding: .5rem .75rem; }
.spx--glass .spx-logo { background: rgba(255,255,255,.9); color: #111; }
.spx--glass .spx-cta { background: #fff; color: #111; }

/* split: a colour panel with the logo, the words beside it */
.spx--split { background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); --panel: clamp(5.5rem, 26%, 14rem); }
.spx--split::before { content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-start: 0; width: var(--panel); background: linear-gradient(135deg, var(--a1), var(--a2)); }
.spx--split .spx-bg { display: block; inset-inline-end: auto; width: var(--panel); z-index: -1; }
[dir="rtl"] .spx--split .spx-bg { inset-inline-start: auto; inset-inline-end: 0; }
.spx--split .spx-in { padding-inline-start: 0; }
.spx--split .spx-logo { width: var(--panel); height: auto; align-self: stretch; border-radius: 0; background: transparent; color: var(--ink); }
.spx--split .spx-logo img { width: auto; height: auto; max-width: 70%; max-height: min(70%, calc(var(--adx-h) - 1.5rem)); padding: .5rem; border-radius: .75rem; background: rgba(255,255,255,.94); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.spx--split.has-bg .spx-logo img { max-width: 52%; max-height: 52%; }
.spx--split .spx-brand { color: var(--a1); opacity: 1; }
.spx--split .spx-text { color: hsl(var(--muted-foreground)); opacity: 1; }
.spx--split .spx-cta { background: var(--a1); color: var(--ink); }
.spx--split.spx--card { --ph: 6.5rem; } .spx--split.spx--tall { --ph: 15rem; }
.spx--split.spx--card::before, .spx--split.spx--tall::before { inset-inline: 0; inset-block-end: auto; width: auto; height: var(--ph); }
.spx--split.spx--card .spx-bg, .spx--split.spx--tall .spx-bg { inset-inline: 0; width: 100%; height: var(--ph); inset-block-end: auto; }
.spx--split.spx--card .spx-in, .spx--split.spx--tall .spx-in { padding: 0 0 var(--pad); }
.spx--split.spx--card .spx-logo, .spx--split.spx--tall .spx-logo { width: 100%; height: var(--ph); flex: none; }
.spx--split.spx--card .spx-logo img, .spx--split.spx--tall .spx-logo img { max-height: calc(var(--ph) - 2rem); max-width: 60%; }
.spx--split.spx--card .spx-copy, .spx--split.spx--card .spx-side,
.spx--split.spx--tall .spx-copy, .spx--split.spx--tall .spx-side { padding-inline: 1.25rem; }
@container (max-width: 560px) { .spx--split { --panel: 4.5rem; } }

/* neon: lines of light on black */
.spx--neon { background: #05050a; color: #fff; border: 1px solid var(--a1);
             box-shadow: 0 0 0 1px color-mix(in srgb, var(--a1) 30%, transparent), 0 0 26px -6px var(--a1), inset 0 0 30px -16px var(--a1); }
.spx--neon .spx-deco i:nth-child(1) { inset: 0;
  background: linear-gradient(color-mix(in srgb, var(--a1) 14%, transparent) 1px, transparent 1px) 0 0 / 26px 26px,
              linear-gradient(90deg, color-mix(in srgb, var(--a1) 14%, transparent) 1px, transparent 1px) 0 0 / 26px 26px;
  mask-image: linear-gradient(0deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(0deg, #000, transparent 80%); }
.spx--neon .spx-deco i:nth-child(2) { width: 40%; height: 2px; top: 0; inset-inline-start: 10%; background: linear-gradient(90deg, transparent, var(--a2), transparent); box-shadow: 0 0 12px var(--a2); }
.spx--neon .spx-title { text-shadow: 0 0 14px color-mix(in srgb, var(--a1) 75%, transparent); }
.spx--neon .spx-brand { color: var(--a2); opacity: 1; text-shadow: 0 0 10px color-mix(in srgb, var(--a2) 60%, transparent); }
.spx--neon .spx-logo { background: #000; border: 1px solid color-mix(in srgb, var(--a1) 70%, transparent); box-shadow: 0 0 16px -4px var(--a1); color: var(--a1); }
.spx--neon .spx-cta { background: color-mix(in srgb, var(--a1) 16%, transparent); color: #fff; border: 1.5px solid var(--a1); box-shadow: 0 0 18px -4px var(--a1), inset 0 0 12px -6px var(--a1); }
.spx--neon .spx-code, .spx--neon .spx-clock { color: var(--a2); }

/* photo: your picture behind the words */
.spx--photo { background: linear-gradient(120deg, var(--a1), var(--a2)); color: #fff; }
.spx--photo .spx-bg { display: block; }
.spx--photo .spx-deco i:nth-child(1) { inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.5) 55%, rgba(0,0,0,.08)); }
[dir="rtl"] .spx--photo .spx-deco i:nth-child(1) { background: linear-gradient(270deg, rgba(0,0,0,.82), rgba(0,0,0,.5) 55%, rgba(0,0,0,.08)); }
.spx--photo:not(.has-bg) .spx-deco i:nth-child(1) { background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px); }
.spx--photo.spx--card .spx-deco i:nth-child(1), .spx--photo.spx--tall .spx-deco i:nth-child(1) { background: linear-gradient(0deg, rgba(0,0,0,.86), rgba(0,0,0,.35) 60%, rgba(0,0,0,.1)); }
.spx--photo .spx-in { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.spx--photo .spx-logo { background: rgba(255,255,255,.94); color: #111; text-shadow: none; }
.spx--photo .spx-cta { background: #fff; color: #111; text-shadow: none; }
.spx--photo.has-bg:hover .spx-bg { transform: scale(1.04); }
.spx--photo .spx-bg { transition: transform .8s cubic-bezier(.2,.8,.2,1); }

/* coupon: a ticket with a code to copy */
.spx--coupon { --notch: .875rem; background: hsl(var(--card)); color: hsl(var(--foreground));
               border: 1.5px dashed color-mix(in srgb, var(--a1) 60%, transparent); --panel: clamp(5.5rem, 22%, 11rem); }
.spx--coupon::before, .spx--coupon::after {
  content: ""; position: absolute; z-index: 3; inset-inline-start: calc(var(--panel) - var(--notch));
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%;
  background: hsl(var(--background)); border: 1.5px dashed color-mix(in srgb, var(--a1) 60%, transparent);
}
.spx--coupon::before { top: calc(var(--notch) * -1 - 1.5px); }
.spx--coupon::after { bottom: calc(var(--notch) * -1 - 1.5px); }
.spx--coupon .spx-deco i:nth-child(1) { inset-block: 0; inset-inline-start: 0; width: var(--panel); background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 20%, transparent), color-mix(in srgb, var(--a2) 12%, transparent)); }
.spx--coupon .spx-deco i:nth-child(2) { inset-block: .75rem; inset-inline-start: var(--panel); border-inline-start: 2px dashed color-mix(in srgb, var(--a1) 45%, transparent); }
.spx--coupon .spx-in { padding-inline-start: 0; }
.spx--coupon .spx-logo { width: var(--panel); height: auto; align-self: stretch; border-radius: 0; background: transparent; color: var(--a1); }
.spx--coupon .spx-logo img { max-width: 64%; max-height: 64%; width: auto; height: auto; padding: .375rem; border-radius: .625rem; background: #fff; }
.spx--coupon .spx-brand { color: var(--a1); opacity: 1; }
.spx--coupon .spx-text { color: hsl(var(--muted-foreground)); opacity: 1; }
.spx--coupon .spx-code { color: var(--a1); border-color: var(--a1); background: color-mix(in srgb, var(--a1) 9%, transparent); }
.spx--coupon .spx-cta { background: var(--a1); color: var(--ink); }
.spx--coupon.spx--card { --ph: 6rem; } .spx--coupon.spx--tall { --ph: 12rem; }
.spx--coupon.spx--card::before, .spx--coupon.spx--tall::before { top: calc(var(--ph) - var(--notch)); inset-inline-start: calc(var(--notch) * -1 - 1.5px); }
.spx--coupon.spx--card::after, .spx--coupon.spx--tall::after { top: calc(var(--ph) - var(--notch)); bottom: auto; inset-inline-start: auto; inset-inline-end: calc(var(--notch) * -1 - 1.5px); }
.spx--coupon.spx--card .spx-deco i:nth-child(1), .spx--coupon.spx--tall .spx-deco i:nth-child(1) { inset-inline: 0; inset-block-end: auto; width: auto; height: var(--ph); }
.spx--coupon.spx--card .spx-deco i:nth-child(2), .spx--coupon.spx--tall .spx-deco i:nth-child(2) { inset-inline: .875rem; inset-block: var(--ph) auto; border-inline-start: 0; border-top: 2px dashed color-mix(in srgb, var(--a1) 45%, transparent); }
.spx--coupon.spx--card .spx-in, .spx--coupon.spx--tall .spx-in { padding: 0 0 var(--pad); }
.spx--coupon.spx--card .spx-logo, .spx--coupon.spx--tall .spx-logo { width: 100%; height: var(--ph); flex: none; }
.spx--coupon.spx--card .spx-logo img, .spx--coupon.spx--tall .spx-logo img { max-height: calc(var(--ph) - 2rem); max-width: 60%; }
.spx--coupon.spx--card .spx-copy, .spx--coupon.spx--card .spx-side,
.spx--coupon.spx--tall .spx-copy, .spx--coupon.spx--tall .spx-side { padding-inline: 1.25rem; }
.spx--coupon.spx--strip { --panel: clamp(4.5rem, 14%, 7.5rem); --notch: .625rem; }
@container (max-width: 560px) { .spx--coupon { --panel: 4.5rem; --notch: .625rem; } }

/* light on dark text where the colours ask for it */
.spx[data-ink="dark"].spx--gradient .spx-logo { box-shadow: none; }

/* ================================================================ effects */
@property --ad-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* shine: a sweep of light now and then */
.spx-shine { display: none; }
.fx-shine .spx-shine { display: block; }
.fx-shine .spx-shine, .fx-shine .spot-link::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 48%, rgba(255,255,255,.08) 54%, transparent 70%);
  transform: translateX(-130%); animation: ad-shine 5s cubic-bezier(.4,0,.2,1) 1.2s infinite;
}
.fx-shine .spx--minimal .spx-shine, .fx-shine .spx--split .spx-shine, .fx-shine .spx--coupon .spx-shine { background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--a1) 22%, transparent) 50%, transparent 70%); }
@keyframes ad-shine { 0% { transform: translateX(-130%); } 38%, 100% { transform: translateX(130%); } }

/* glow: a soft light around it that shifts between the two colours */
.fx-glow .spx, .fx-glow .spot-link { animation: ad-glow 3.2s ease-in-out infinite alternate; }
@keyframes ad-glow {
  from { box-shadow: 0 0 0 1.5px var(--a1), 0 0 28px -6px var(--a1); }
  to   { box-shadow: 0 0 0 1.5px var(--a2), 0 0 36px -4px var(--a2); }
}

/* float: the logo (or the picture) drifts gently */
.fx-float .spx-logo { animation: ad-bob 3.6s ease-in-out infinite; }
.fx-float.spot--image .spot-link { animation: ad-bob-soft 5s ease-in-out infinite; }
@keyframes ad-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes ad-bob-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.spx--split .spx-logo, .spx--coupon .spx-logo { animation: none !important; }
.fx-float .spx--split .spx-logo img, .fx-float .spx--coupon .spx-logo img { animation: ad-bob 3.6s ease-in-out infinite; }

/* pulse: the button (or the picture) calls gently */
.fx-pulse .spx-cta { animation: ad-ring 2.4s ease-out infinite; }
.fx-pulse.spot--image .spot-link { animation: ad-ring 2.6s ease-out infinite; }
@keyframes ad-ring {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 60%, transparent); }
  70%  { box-shadow: 0 0 0 14px color-mix(in srgb, var(--a1) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* flow: the colours move */
.fx-flow .spx--gradient { background: linear-gradient(120deg, var(--a1), var(--a2), var(--a1), var(--a2)) 0 0 / 300% 100%; animation: ad-flow 9s linear infinite; }
.fx-flow .spx--photo:not(.has-bg) { background: linear-gradient(120deg, var(--a1), var(--a2), var(--a1), var(--a2)) 0 0 / 300% 100%; animation: ad-flow 9s linear infinite; }
.fx-flow .spx--aurora .spx-deco i:nth-child(1), .fx-flow .spx--glass .spx-deco i:nth-child(1) { animation: ad-drift-a 11s ease-in-out infinite alternate; }
.fx-flow .spx--aurora .spx-deco i:nth-child(2), .fx-flow .spx--glass .spx-deco i:nth-child(2) { animation: ad-drift-b 13s ease-in-out infinite alternate; }
.fx-flow .spx--glass .spx-deco i:nth-child(3) { animation: ad-drift-a 9s ease-in-out infinite alternate-reverse; }
.fx-flow .spx--minimal::before, .fx-flow .spx--split::before { background: linear-gradient(180deg, var(--a1), var(--a2), var(--a1)) 0 0 / 100% 300%; animation: ad-flow-y 6s linear infinite; }
.fx-flow .spx--neon { animation: ad-glow 3s ease-in-out infinite alternate; border-color: transparent; }
.fx-flow .spx--neon .spx-deco i:nth-child(2) { animation: ad-scan 4s ease-in-out infinite alternate; }
.fx-flow .spx--coupon .spx-deco i:nth-child(1) { background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a2) 18%, transparent), color-mix(in srgb, var(--a1) 22%, transparent)) 0 0 / 100% 300%; animation: ad-flow-y 7s linear infinite; }
.fx-flow.spot--image .spot-link {
  border: 2px solid transparent;
  background: linear-gradient(hsl(var(--muted)), hsl(var(--muted))) padding-box,
              linear-gradient(90deg, var(--a1), var(--a2), var(--a1), var(--a2)) 0 0 / 300% 100% border-box;
  animation: ad-flow 6s linear infinite;
}
@keyframes ad-flow { to { background-position: 100% 0; } }
@keyframes ad-flow-y { to { background-position: 0 100%; } }
@keyframes ad-drift-a { to { transform: translate(18%, 22%) scale(1.15); } }
@keyframes ad-drift-b { to { transform: translate(-22%, -18%) scale(.9); } }
@keyframes ad-scan { to { inset-inline-start: 50%; } }

/* ================================================================ coming in */
.spot.spot-will { opacity: 0; transition: opacity .7s ease, transform .85s cubic-bezier(.2,.8,.2,1), filter .85s ease; }
.spot.spot-will[data-enter="rise"] { transform: translateY(28px); }
.spot.spot-will[data-enter="zoom"] { transform: scale(.9); }
.spot.spot-will[data-enter="blur"] { filter: blur(14px); transform: scale(1.04); }
.spot.spot-will[data-enter="slide"] { transform: translateX(-48px); }
[dir="rtl"] .spot.spot-will[data-enter="slide"] { transform: translateX(48px); }
.spot.spot-will.spot-in { opacity: 1; transform: none; filter: none; }

/* ================================================================ the bar fixed to the bottom of the screen */
.spot-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; justify-content: center;
  padding: .75rem 3.25rem calc(.75rem + env(safe-area-inset-bottom));
  background: hsl(var(--background) / .9); border-top: 1px solid hsl(var(--border));
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 -16px 40px -24px hsl(0 0% 0% / .7);
  transform: translateY(110%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.spot-bar.is-in { transform: none; }
.spot-bar[hidden] { display: none; }
.spot-bar .spot-zone { width: 100%; }
.spot-bar .spot { max-width: min(var(--ad-w), 100%); }
.spot-bar .spot-label {
  position: absolute; top: .375rem; left: .375rem; z-index: 4; margin: 0; padding: .0625rem .375rem;
  border-radius: .3125rem; background: hsl(0 0% 0% / .55); color: #fff; font-size: .5625rem; backdrop-filter: blur(4px);
}
.spot-bar .spot--design .spot-label { left: auto; right: auto; inset-inline-end: .5rem; }
.spot-bar .spot-by { color: #fff; }
.spot-bar .spot-label::after { display: none; }
.spot-bar .spot-link { border-radius: .5rem; box-shadow: none; }
.spot-bar .spx { min-height: 0; }
.spot-bar .spx:hover { transform: none; }
.spot-bar-close {
  position: absolute; top: 50%; inset-inline-end: .875rem; transform: translateY(-50%);
  width: 2rem; height: 2rem; display: grid; place-items: center; cursor: pointer;
  border: 1px solid hsl(var(--border)); border-radius: 999px;
  background: hsl(var(--card)); color: hsl(var(--muted-foreground));
  transition: color .2s, border-color .2s;
}
.spot-bar-close:hover { color: hsl(var(--foreground)); border-color: hsl(var(--primary) / .5); }
.spot-bar-close:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.spot-bar-close svg { width: 1rem; height: 1rem; }
@media (max-width: 640px) {
  .spot-bar { padding: .5rem 2.75rem calc(.5rem + env(safe-area-inset-bottom)) .5rem; }
  [dir="rtl"] .spot-bar { padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)) 2.75rem; }
  .spot-bar-close { inset-inline-end: .375rem; width: 1.75rem; height: 1.75rem; }
}

/* keep the footer, the back-to-top button and toasts clear of the bar */
body.has-spot-bar { padding-bottom: var(--ad-bar-h, 7rem); }
body.has-spot-bar .to-top { bottom: calc(var(--ad-bar-h, 7rem) + .75rem); }
body.has-spot-bar .ptoast-zone--bottom-left,
body.has-spot-bar .ptoast-zone--bottom-center,
body.has-spot-bar .ptoast-zone--bottom-right { bottom: var(--ad-bar-h, 7rem); }

@media (prefers-reduced-motion: reduce) {
  .spot-bar { transition: none; }
  .spot, .spot *, .spot *::before, .spot *::after { animation: none !important; transition: none !important; }
  .spot.spot-will { opacity: 1; transform: none; filter: none; }
}
