/*
 * The three public listener screens: promotion entry, coupon retrieval and fan
 * club sign-up.
 *
 * One sheet for all of them. They were three copies of the same page before,
 * each pulling `application.css` (Bootstrap 3) plus a per-screen sass file plus
 * a block of station colours interpolated into a <style> tag. This replaces all
 * of it: no framework, no inline colour rules, and the only station-specific
 * values are --lst-brand / --lst-brand-ink / --lst-on-brand, set on <body>.
 *
 * Greys are the ones open_winners settled on: the mock's #8b8377/#a29a8d sat
 * between 2.6:1 and 3.7:1 against these backgrounds, under the 4.5:1 AA asks
 * for, and these screens carry form labels and hints in exactly those tones.
 */

:root {
  --lst-surface: #fff;
  --lst-surface-alt: #f7f5f2;
  --lst-field: #f2efea;
  --lst-ink: #17140f;
  --lst-ink-2: #4a443b;
  --lst-ink-3: #6b6459;
  --lst-muted: #6f6759;
  --lst-faint: #797265;
  --lst-line: rgba(0, 0, 0, 0.07);
  --lst-line-soft: rgba(0, 0, 0, 0.05);
  --lst-danger: #a3231d;
  --lst-danger-soft: rgba(163, 35, 29, 0.09);
  --lst-radius: 18px;
  --lst-radius-sm: 12px;
  --lst-shell: 720px;
}

.lst {
  /* Safety net: the view always sets these three inline, and inline wins. */
  --lst-brand: #337ab7;
  --lst-brand-ink: var(--lst-brand);
  --lst-on-brand: #fff;
  --lst-brand-soft: rgba(0, 0, 0, 0.06);
  --lst-brand-soft: color-mix(in srgb, var(--lst-brand) 10%, transparent);

  margin: 0;
  background: var(--lst-surface-alt);
  color: var(--lst-ink);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.lst *,
.lst *::before,
.lst *::after {
  box-sizing: border-box;
}

.lst img {
  max-width: 100%;
}

/* Every control is a pill on a tinted field, so the browser's default ring
   reads as an artefact. One brand-tinted halo, keyboard-only, used everywhere. */
.lst *:focus-visible {
  outline: 2px solid var(--lst-brand-ink);
  outline-offset: 2px;
}

.lst-topbar *:focus-visible {
  outline-color: var(--lst-on-brand);
}

.lst-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lst-hidden {
  display: none !important;
}

/* ── Top bar ───────────────────────────────────────────────────────────────── */

.lst-topbar {
  background-color: var(--lst-brand);
  background-image:
    radial-gradient(circle at 12% 120%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(circle at 88% -40%, rgba(255, 255, 255, 0.1), transparent 50%);
  /* Not a hardcoded white: a pale primary_color would swallow it. */
  color: var(--lst-on-brand);
}

.lst-topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

.lst-topbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  /* No plate behind it: `vertical_logo` is a full-bleed square that reads on
     its own, and a backdrop just boxes it in. `contain`, so a logo that is not
     square gets letterboxed instead of cropped. */
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
}

.lst-topbar__logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

/* `auto` and not `space-between`: a station with no vertical logo leaves these
   buttons as the bar's only child, and they still belong on the right. */
.lst-topbar__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ── Account ───────────────────────────────────────────────────────────────── */

.lst-topbar__account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.lst-topbar__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--lst-on-brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/*
 * An address can be thirty characters long and was swamping the bar. It is
 * confirmation that the right person is signed in, not something to read, so
 * it gets a ceiling and an ellipsis.
 */
.lst-topbar__who {
  max-width: 16ch;
  overflow: hidden;
  color: var(--lst-on-brand);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.9;
}

.lst-topbar__signout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--lst-on-brand);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.lst-topbar__signout:hover,
.lst-topbar__signout:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.lst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  /* A label that wraps turns a pill into a lump — "Ouvir ao vivo" was breaking
     into three lines in the top bar on a phone. */
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.lst-btn:active {
  transform: translateY(1px);
}

.lst-btn:disabled,
.lst-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

.lst-btn:not(:disabled):hover {
  filter: brightness(0.94);
}

/*
 * Same pairing as the topbar, and for the same reason: the fill is the station's
 * raw colour, but the label is --lst-on-brand, which is white for most stations
 * and a deepened tone of their own colour for the pale ones that would swallow
 * white. A hardcoded #fff here left seven stations with an unreadable button.
 */
/*
 * The winners page is read-only, so its button scale stops at the 13px utility
 * pill above. These two carry a form's main action — Participar, Resgatar — and
 * get the one size that page has no equivalent for; everything else about them
 * comes from the shared base.
 */
.lst-btn--primary,
.lst-btn--secondary {
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
}

.lst-btn--primary {
  background: var(--lst-brand);
  color: var(--lst-on-brand);
}

/*
 * A button whose label is a value rather than a phrase — "Continuar como" plus
 * whatever the cookie holds, which is a first name for some listeners and a
 * forty-character e-mail for the rest. `.lst-btn` never wraps, so without this
 * the label ran straight off the edge of the card and the address was cut in
 * half. The button gives up its width first; the label trails off with an
 * ellipsis. `min-width: 0` is what lets a flex child shrink below its content.
 */
.lst-btn--flexible {
  max-width: 100%;
}

.lst-btn__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lst-btn--secondary {
  background: var(--lst-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--lst-ink-2);
}

.lst-btn--block {
  width: 100%;
}

.lst-btn--sm {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
}

.lst-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--lst-on-brand);
  font-size: 13px;
  font-weight: 500;
}

.lst-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lst-btn--onbrand {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #fff;
  color: var(--lst-brand-ink);
  font-weight: 600;
}

.lst-btn--link {
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--lst-brand-ink);
  font-size: inherit;
  font-weight: 500;
  text-decoration: underline;
}

/* Icons never shrink, and a link carrying one has to lay out like a row. */
.lst-icon {
  flex: none;
}

.lst-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lst-brand-ink);
  font-weight: 500;
  text-decoration: none;
}

.lst-link:hover {
  text-decoration: underline;
}

/* ── Page scaffolding ──────────────────────────────────────────────────────── */

.lst-main {
  padding: 0 20px 56px;
}

.lst-shell {
  max-width: var(--lst-shell);
  margin: 0 auto;
}

.lst-shell--wide {
  max-width: 1200px;
}

.lst-kicker {
  display: block;
  color: var(--lst-brand-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lst-title {
  margin: 8px 0 0;
  /* Same ramp as the winners headline, so the two pages scale together. */
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lst-ink);
  text-wrap: balance;
}

.lst-lead {
  margin: 10px 0 0;
  color: var(--lst-ink-3);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.lst-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 0 30px;
  text-align: center;
}

.lst-hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
}

.lst-hero__logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.lst-hero--list {
  align-items: flex-start;
  text-align: left;
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--lst-line);
}

.lst-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: var(--lst-field);
  border-radius: var(--lst-radius);
}

.lst-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lst-prose {
  margin: 32px 0 0;
  color: var(--lst-ink-2);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.lst-prose p {
  margin: 0 0 1em;
}

.lst-prose :last-child {
  margin-bottom: 0;
}

.lst-deadline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--lst-surface);
  border: 1px solid var(--lst-line);
  border-radius: 14px;
  text-align: center;
}

.lst-deadline__label {
  color: var(--lst-brand-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lst-deadline__value {
  color: var(--lst-ink);
  font-size: 17px;
  font-weight: 600;
}

.lst-footnote {
  margin: 30px 0 0;
  color: var(--lst-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ── Cards (promotion and coupon grids) ────────────────────────────────────── */

/*
 * auto-fit rather than auto-fill, plus a cap on the card: a station with one
 * live promotion is the common case, and auto-fill would leave that single card
 * marooned at 240px in a 1100px shell while auto-fit alone would stretch it the
 * whole way. The cap keeps a lone card the size of one in a full row.
 */
.lst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding-top: 28px;
}

.lst-card {
  display: flex;
  flex-direction: column;
  max-width: 420px;
  overflow: hidden;
  background: var(--lst-surface);
  border: 1px solid var(--lst-line);
  border-radius: var(--lst-radius);
}

.lst-card__media {
  aspect-ratio: 16 / 9;
  background: var(--lst-field);
}

.lst-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lst-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
}

.lst-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lst-ink);
}

.lst-card__meta {
  color: var(--lst-muted);
  font-size: 12.5px;
}

.lst-card__tag {
  display: inline-block;
  width: max-content;
  padding: 5px 11px;
  background: var(--lst-field);
  border-radius: 999px;
  color: var(--lst-ink-2);
  font-size: 12px;
  font-weight: 500;
}

.lst-card__cta {
  margin-top: auto;
}

/* ── Section headings ──────────────────────────────────────────────────────── */

.lst-section {
  margin: 32px 0 0;
}

.lst-section__title {
  margin: 0 0 12px;
  color: var(--lst-brand-ink);
  font-size: 18px;
  font-weight: 700;
}

/* ── Empty / ended states ──────────────────────────────────────────────────── */

.lst-empty {
  padding: 38px 24px;
  background: var(--lst-surface);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--lst-radius);
  text-align: center;
}

.lst-empty__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lst-ink);
}

.lst-empty__text {
  margin: 0;
  color: var(--lst-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.lst-empty .lst-btn {
  margin-top: 16px;
}

/* ── The gate: login, then the form, then success ──────────────────────────── */

.lst-gate {
  margin: 28px 0 0;
  padding: 34px 28px;
  background: var(--lst-surface);
  border: 2px solid var(--lst-brand);
  border-radius: var(--lst-radius);
  text-align: center;
}

.lst-gate__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--lst-ink);
}

.lst-gate__text {
  margin: 0 0 20px;
  color: var(--lst-ink-3);
  font-size: 14px;
  line-height: 1.5;
}

.lst-gate__alt {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--lst-faint);
}

/* Steps live inside the gate, one visible at a time. */
.lst-step {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.lst-step__bar {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}

.lst-step__tick {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.lst-step__tick--on {
  background: var(--lst-brand);
}

.lst-step__count {
  display: block;
  color: var(--lst-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lst-step__title {
  margin: 8px 0 6px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lst-ink);
}

.lst-step__text {
  margin: 0 0 18px;
  color: var(--lst-ink-3);
  font-size: 13.5px;
  line-height: 1.5;
}

.lst-step .lst-btn--block {
  margin-top: 18px;
}

.lst-step__foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--lst-faint);
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */

.lst-form-card {
  margin: 22px 0 0;
  padding: 28px;
  background: var(--lst-surface);
  border: 1px solid var(--lst-line);
  border-radius: var(--lst-radius);
}

.lst-form-card__title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: var(--lst-ink);
}

.lst-form-card__text {
  margin: 0 0 22px;
  color: var(--lst-ink-3);
  font-size: 13.5px;
}

/*
 * Twelfths, so a field can ask for the room its content needs. Every field the
 * same width meant a UF — two letters — sat in the same box as a full name, and
 * the form ran twice as long as it had to. The names come from
 * ListenerRegistrationFields; the narrow screen answers them differently, near
 * the bottom of this file.
 */
.lst-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.lst-field {
  min-width: 0;
}

.lst-field--full {
  grid-column: span 12;
}

.lst-field--half {
  grid-column: span 6;
}

.lst-field--third {
  grid-column: span 4;
}

.lst-field--tiny {
  grid-column: span 2;
}

.lst-label {
  display: block;
  margin-bottom: 6px;
  color: var(--lst-ink-2);
  font-size: 12px;
  font-weight: 600;
}

.lst-label__optional {
  color: var(--lst-faint);
  font-weight: 500;
}

.lst-input,
.lst-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--lst-field);
  border: 1px solid var(--lst-line-soft);
  border-radius: var(--lst-radius-sm);
  color: var(--lst-ink);
  font-family: inherit;
  font-size: 14px;
}

/*
 * The legacy field shape, kept for one client.
 *
 * The old promotion screen carried an inline <style> block in the head, gated
 * on `landing_page_form_only`, that made every field a pill outlined in the
 * station's colour with the label in that colour too. That flag is set by more
 * than one station today and the others' pages are built around the fields
 * above, so this follows the client instead — see ListenerUiHelper.
 *
 * Two departures from the original, both deliberate. The border and the label
 * take --lst-brand-ink rather than the raw primary_color: the legacy rule put
 * an 800-weight label straight in the station's tone, which for the pale
 * brands landed around 2:1 against the page — a heading nobody could read.
 * And the radius is a flat 999px instead of `500rem`, which is the same pill
 * without asking the browser to resolve 8000px.
 *
 * It sits *above* the state rules on purpose. `.lst--pill .lst-input` and
 * `.lst-input[aria-invalid="true"]` weigh the same, so whichever comes last
 * wins the border — and below, the pill was painting a rejected field in the
 * brand colour instead of red.
 */
.lst--pill .lst-input,
.lst--pill .lst-select {
  border-color: var(--lst-brand);
  border-radius: 999px;
}

.lst--pill .lst-label {
  color: var(--lst-brand-ink);
  font-weight: 700;
}

/* The old screen sized every control the same: 46px, pill, brand outline. The
   buttons already round the same way, so only the height differs. */
.lst--pill .lst-btn--primary,
.lst--pill .lst-btn--secondary {
  height: 46px;
  padding: 0 28px;
}

/*
 * And the gate speaks the same language as the fields it is sitting on. The
 * legacy `#login-modal` was a white box outlined in the station's colour with
 * its title in that colour too — the same treatment the fields and their labels
 * get above, which is what makes the panel read as one thing rather than a
 * stock dialog dropped on top of a branded form.
 */
.lst--pill.lst--panel .lst-gate > div {
  border: 1px solid var(--lst-brand);
}

.lst--pill .lst-gate__title,
.lst--pill .lst-step__title {
  color: var(--lst-brand-ink);
}

.lst--pill .lst-step__count {
  color: var(--lst-brand-ink);
}

/*
 * The panel: the form on the page, the gate laid over it.
 *
 * The retired screen drew the whole registration form and covered it with
 * `.login-overlay` — absolute, the full size of the form, rgba(245,245,245,.85)
 * — so the listener saw the fields they were about to fill in with the button
 * floating in the middle of them. The rebuilt screen hid the form until the
 * gate cleared, which left an embed that reads as broken: a button under a
 * heading, and nothing else on the page.
 *
 * Every station that shows nothing but the form gets this back, because for
 * them the shell *is* the form — there is no hero above it to say what the
 * page is. The gate keeps its 2px brand border, which draws the outline around
 * the whole block the way the legacy inline style did.
 *
 * `.lst-hidden` stays `display: none !important`, so the gate still takes
 * itself off once the listener is through and the form underneath goes live.
 */
/*
 * The panel scrolls itself.
 *
 * These pages live in an iframe on someone else's site, sized by them and often
 * carrying `scrolling="no"` — which switches off scrolling for the *document*.
 * The form is taller than the frame they allocated, so the bottom of it, the
 * smart-form question and the submit button included, was simply unreachable:
 * no wheel, no bar, nothing. Measured in a frame of 600px against 948px of
 * content.
 *
 * An overflow container inside the document is not covered by that switch, so
 * the wheel works again. `dvh` rather than `vh` because on mobile Safari the
 * two differ by the address bar, and `vh` would hide the last field behind it.
 */
.lst--panel .lst-main {
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
}

.lst--panel .lst-shell {
  position: relative;
}

.lst--panel .lst-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  background: rgba(245, 245, 245, 0.85);
  border-radius: 0;
}

/*
 * The gate's own content needs a floor to stand on: over a form, plain text on
 * a 15%-transparent veil collides with the labels underneath and neither reads.
 * The legacy screen had the same problem and answered it with `#login-modal`, a
 * white box centred on the overlay — this is that box. Only one child of the
 * gate is ever visible at a time (the intro, or the step in play), so styling
 * the children gives one card, not five.
 */
.lst--panel .lst-gate > div {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 30px 26px;
  background: var(--lst-surface);
  border-radius: var(--lst-radius);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* The form underneath is not reachable until the veil lifts. */
.lst--panel .lst-gate:not(.lst-hidden) ~ .lst-form-card {
  pointer-events: none;
}

.lst-input::placeholder {
  color: var(--lst-faint);
}

.lst-input:focus,
.lst-select:focus {
  background: var(--lst-surface);
  border-color: var(--lst-brand);
  box-shadow: 0 0 0 3px var(--lst-brand-soft);
  outline: none;
}

/*
 * Read-only fields hold real values the lookup filled in, not hints. At the
 * muted grey they read as placeholders — the listener sees "Americana" and
 * thinks the field is still empty. Same ink as any other value; the flat
 * background is what says "you don't type here".
 */
.lst-input[readonly] {
  color: var(--lst-ink);
  cursor: default;
}

.lst-input[readonly]:focus {
  border-color: var(--lst-line-soft);
  box-shadow: none;
}

.lst-input[aria-invalid="true"] {
  border-color: var(--lst-danger);
  background: var(--lst-danger-soft);
}

.lst-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236f6759' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/*
 * A control that lives inside its field — the postal code retry. The lookup is
 * automatic on blur, so this is a fallback and must not read as a second call
 * to action next to the form's real button.
 */
.lst-input-wrap {
  position: relative;
}

.lst-input-wrap .lst-input {
  padding-right: 42px;
}

.lst-input-action {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--lst-ink-3);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.lst-input-action:hover,
.lst-input-action:focus-visible {
  opacity: 1;
  background: var(--lst-brand-soft);
  color: var(--lst-brand-ink);
}

.lst-input-action[aria-busy="true"] {
  opacity: 1;
  color: var(--lst-brand-ink);
  cursor: default;
}

.lst-input-action[aria-busy="true"] svg {
  animation: lst-spin 0.7s linear infinite;
}

@keyframes lst-spin {
  to {
    transform: rotate(360deg);
  }
}

.lst-error {
  display: block;
  margin-top: 6px;
  color: var(--lst-danger);
  font-size: 12px;
  font-weight: 500;
}

/* Code entry: six boxes, one input. The boxes are decoration over a single
   field so paste, autofill and the numeric keypad all keep working. */
.lst-code {
  position: relative;
}

.lst-code__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  letter-spacing: 0;
}

.lst-code__input:focus {
  outline: none;
}

.lst-code__boxes {
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.lst-code__box {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 54px;
  background: var(--lst-surface);
  border: 1px solid var(--lst-line-soft);
  border-radius: var(--lst-radius-sm);
  font: 600 22px/1 ui-monospace, Menlo, monospace;
  color: var(--lst-ink);
}

/* The whole row lifts on focus, so clicking anywhere in it reads as "you are
   typing here" even before the first digit. */
.lst-code:focus-within .lst-code__box {
  border-color: rgba(0, 0, 0, 0.16);
}

.lst-code:focus-within .lst-code__box--active,
.lst-code__box--active {
  border-color: var(--lst-brand);
  box-shadow: 0 0 0 3px var(--lst-brand-soft);
}

/* ── Smart forms and promotion questions ───────────────────────────────────── */

.lst-question {
  margin: 20px 0 0;
  padding: 18px;
  background: var(--lst-surface-alt);
  border-radius: 14px;
}

.lst-question__hint {
  display: block;
  margin-bottom: 8px;
  color: var(--lst-muted);
  font-size: 12px;
}

.lst-question__label {
  margin: 0 0 12px;
  color: var(--lst-ink);
  font-size: 14.5px;
  font-weight: 500;
}

.lst-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lst-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--lst-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  color: var(--lst-ink-2);
  font-size: 13.5px;
  cursor: pointer;
}

.lst-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lst-choice__dot {
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: var(--lst-surface);
}

.lst-choice:has(input:checked) {
  border-color: var(--lst-brand);
  color: var(--lst-ink);
}

.lst-choice:has(input:checked) .lst-choice__dot {
  border: 4px solid var(--lst-brand);
}

.lst-choice:has(input:focus-visible) {
  outline: 2px solid var(--lst-brand-ink);
  outline-offset: 2px;
}

.lst-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 0;
  color: var(--lst-ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.lst-consent input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--lst-brand);
}

.lst-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 0;
}

/* ── Success panels ────────────────────────────────────────────────────────── */

.lst-success {
  margin: 22px 0 0;
  padding: 30px 24px;
  background: var(--lst-surface);
  border: 1px solid var(--lst-line);
  border-radius: var(--lst-radius);
  text-align: center;
}

.lst-success__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--lst-brand-soft);
  border-radius: 18px;
  color: var(--lst-brand-ink);
}

.lst-success__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--lst-ink);
}

.lst-success__text {
  margin: 0;
  color: var(--lst-ink-3);
  font-size: 13.5px;
  line-height: 1.5;
}

.lst-figure {
  margin: 22px 0;
  padding: 20px 16px;
  background: var(--lst-surface-alt);
  border: 1px solid var(--lst-line);
  border-radius: var(--lst-radius);
}

.lst-figure__value {
  display: block;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--lst-ink);
  font-variant-numeric: tabular-nums;
}

.lst-figure__label {
  display: block;
  margin-top: 4px;
  color: var(--lst-muted);
  font-size: 13px;
}

.lst-figure__note {
  margin: 14px 0 0;
  color: var(--lst-ink-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.lst-code-out {
  font: 700 40px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 0.12em;
  color: var(--lst-ink);
}

.lst-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--lst-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.lst-countdown__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lst-brand);
}

/*
 * Side by side at their own width. Stacked, these stretched to the full 720px
 * of the panel — the mock drew them in a 390px phone card, where filling the
 * width was right and here it is not.
 */
.lst-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lst-back {
  margin: 18px 0 0;
  font-size: 12.5px;
}

/* ── Fan card ──────────────────────────────────────────────────────────────── */

/* Credit-card proportions, capped so it stays a card on a desktop shell rather
   than growing into a banner. */
.lst-fancard {
  position: relative;
  aspect-ratio: 1.586;
  max-width: 420px;
  margin: 16px auto 20px;
  overflow: hidden;
  background: var(--lst-field);
  border: 1px solid var(--lst-line);
  border-radius: 16px;
}

.lst-fancard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lst-fancard__body {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.lst-fancard__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--lst-ink);
}

.lst-fancard__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.lst-fancard__number {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--lst-brand-ink);
}

.lst-fancard__cpf {
  color: var(--lst-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/*
 * The membership benefits.
 *
 * One quiet band between hairlines rather than three stacked cards: cards gave
 * these the same visual weight as the sign-up panel they are meant to lead
 * into, and three of them pushed the button off a phone screen.
 */
.lst-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 26px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--lst-line);
  border-bottom: 1px solid var(--lst-line);
  list-style: none;
}

.lst-perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.lst-perk__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--lst-brand-soft);
  border-radius: 50%;
  color: var(--lst-brand-ink);
}

.lst-perk__text {
  max-width: 20ch;
  color: var(--lst-ink-2);
  font-size: 13.5px;
  line-height: 1.4;
  text-wrap: balance;
}

/* ── Toasts ────────────────────────────────────────────────────────────────── */

.lst-toasts {
  position: fixed;
  inset: auto 0 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}

.lst-toast {
  max-width: 420px;
  padding: 12px 18px;
  background: var(--lst-ink);
  border-radius: 12px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.lst-toast--error {
  background: var(--lst-danger);
}

/* ── Contest entry (audio, photo, video) ───────────────────────────────────── */

/*
 * Three states, one visible at a time: pick, recording, ready. The block used
 * to lean on leftover Bootstrap-era class names (.form-group, .help-block,
 * .record-btn) from when the legacy jQuery uploader still drove it; that script
 * is gone, so these are its own.
 */
.lst-contest {
  margin: 20px 0 0;
  padding: 18px;
  background: var(--lst-surface-alt);
  border-radius: 14px;
}

.lst-textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.lst-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lst-pick__or {
  color: var(--lst-faint);
  font-size: 12.5px;
}

/* ── Recording ─────────────────────────────────────────────────────────────── */

.lst-rec {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--lst-surface);
  border: 1px solid var(--lst-line);
  border-radius: 14px;
}

.lst-rec__dot {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--lst-danger);
  border-radius: 50%;
  animation: lst-pulse 1.4s ease-in-out infinite;
}

@keyframes lst-pulse {
  50% {
    opacity: 0.25;
  }
}

.lst-rec__label {
  color: var(--lst-ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.lst-rec__time {
  color: var(--lst-ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lst-rec__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* ── Ready ─────────────────────────────────────────────────────────────────── */

.lst-contest__preview {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 12px;
  border-radius: var(--lst-radius-sm);
}

audio.lst-contest__preview {
  max-width: 100%;
}

.lst-contest__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--lst-ink-2);
  font-size: 13.5px;
}

.lst-contest__status .lst-icon {
  color: var(--lst-brand-ink);
}

.lst-hint,
.lst-contest__hint {
  display: block;
  margin-top: 10px;
  color: var(--lst-muted);
  font-size: 12px;
  text-align: center;
}

.lst-contest__progress {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--lst-field);
  border-radius: 999px;
}

.lst-contest__bar {
  width: 0;
  height: 100%;
  background: var(--lst-brand);
  transition: width 0.2s ease;
}

/* ── Autocomplete (city / neighbourhood) ───────────────────────────────────── */

.lst-autocomplete {
  position: relative;
}

.lst-autocomplete__results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 220px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--lst-surface);
  border: 1px solid var(--lst-line);
  border-radius: var(--lst-radius-sm);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.lst-autocomplete__results:empty {
  display: none;
}

.lst-autocomplete__results li {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--lst-ink-2);
  font-size: 13.5px;
  cursor: pointer;
}

.lst-autocomplete__results li:hover,
.lst-autocomplete__results li[aria-selected="true"] {
  background: var(--lst-field);
  color: var(--lst-ink);
}

/* ── Embedded variant ──────────────────────────────────────────────────────── */

/*
 * Stations embed the form in an iframe on their own site (`?embed=true`, the
 * fan club's embedded route, and `landing_page_form_only?`). No topbar, no hero,
 * no page chrome — the host page already provides all of it.
 */
.lst--bare {
  background: transparent;
}

.lst--bare .lst-main {
  padding: 0;
}

.lst--bare .lst-gate,
.lst--bare .lst-form-card,
.lst--bare .lst-success {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

/* Same breakpoint the winners page uses, so the two never disagree. */
@media (max-width: 860px) {
  .lst-topbar__inner {
    padding: 12px 16px;
  }

  .lst-topbar__logo {
    width: 46px;
    height: 46px;
    border-radius: 7px;
  }

  /* Four items do not fit across a phone. The name drops out — the initial
     still says who is signed in — and the divider goes with it. */
  .lst-topbar__inner {
    gap: 10px;
  }

  .lst-topbar__actions {
    gap: 8px;
  }

  .lst-topbar__account {
    margin-left: 8px;
    padding-left: 8px;
  }

  .lst-topbar__who {
    display: none;
  }

  /* Share becomes icon-only so "Ouvir ao vivo" — the one a listener actually
     came for — keeps its words. */
  /* Clipped rather than display:none, so the label still reaches a screen
     reader — the same trick the winners bar uses. */
  .lst-topbar .lst-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lst-topbar .lst-btn--ghost {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .lst-main {
    padding: 0 16px 40px;
  }

  .lst-hero {
    padding: 26px 0 22px;
  }

  .lst-lead {
    font-size: 13.5px;
  }

  .lst-prose {
    margin-top: 18px;
    font-size: 14.5px;
  }

  .lst-cover {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .lst-gate,
  .lst-form-card,
  .lst-success {
    padding: 22px 16px;
  }

  /*
   * Halves. Sixths of a phone screen would be unreadable, so the twelve tracks
   * become six and everything short shares a row two by two — which is what the
   * retired form did at this width, and what the stations that frame it inside
   * their own page are sized for. Only the full-width fields keep the row.
   */
  .lst-fields {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lst-field--full {
    grid-column: span 6;
  }

  .lst-field--half,
  .lst-field--third,
  .lst-field--tiny {
    grid-column: span 3;
  }

  .lst-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .lst-actions .lst-btn {
    width: 100%;
  }

  /* On a phone the panel is narrow enough that stacking full-width is the
     right call again. */
  .lst-share {
    flex-direction: column;
  }

  .lst-share .lst-btn {
    width: 100%;
  }

  /* Three across is unreadable at this width. One per row, icon beside the
     label rather than above it, which keeps the band short. */
  .lst-perks {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .lst-perk {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .lst-perk__icon {
    width: 32px;
    height: 32px;
  }

  .lst-perk__text {
    max-width: none;
  }

  .lst-figure__value {
    font-size: 44px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .lst * {
    transition: none !important;
    animation: none !important;
  }
}
