.ringtones-page {
  padding-bottom: 120px;
}

/* FAN-580: keyboard focus must stay visible where outlines are reset */
.ringtones-page input:focus-visible, .ringtones-page select:focus-visible,
.ringtones-page textarea:focus-visible, .ringtones-page button:focus-visible,
.ringtones-page a:focus-visible, .ringtones-page [tabindex]:focus-visible {
  outline: 2px solid var(--fc-electric, #5000FF);
  outline-offset: 2px;
}

.ringtones-hero,
.ringtones-detail,
.ringtones-claim,
.ringtones-grid-section {
  margin-bottom: 28px;
}

.ringtones-hero {
  padding: 36px;
  border-radius: 10px;
  background: #000;
  color: #fff;
}

.ringtones-kicker,
.ringtones-section-head > span,
.ringtones-tune__label,
.ringtones-format-picker > span {
  margin: 0 0 8px;
  /* FAN-580: ink by default — volt is illegible on the white surfaces most
     of these eyebrows sit on. Dark/volt-safe surfaces override below. */
  color: var(--fc-black);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ringtones-hero .ringtones-kicker {
  color: var(--fc-volt);
}

.ringtones-hero h1,
.ringtones-section-head h2,
.ringtones-claim h2 {
  margin: 0 0 12px;
  font-family: var(--fc-font-display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: .96;
}

.ringtones-hero p:not(.ringtones-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  line-height: 1.55;
}

/* FAN-580: the rights guard moved out of the hero into small print under
   the tune cards — modest, not a black strip/aside. */
.ringtones-rights-note {
  margin: 14px 0 0;
  color: rgba(0, 0, 0, .5);
  font-size: 12px;
}

/* FAN-580: Step 1's and Step 2's headers must share the same left edge.
   .ringtones-grid-section has no outer padding, so .ringtones-detail must
   not have any either (its .ringtones-tune cards carry their own padding) —
   otherwise Step 2's heading sits indented against Step 1's. */
.ringtones-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ringtones-section-head h2,
.ringtones-claim h2 {
  font-size: clamp(28px, 4vw, 40px);
}

/* FAN-580: the Step 2 heading carries the contender's flag inline. */
.ringtones-detail__flag {
  width: 30px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
  font-size: 30px;
}

.ringtones-section-head > span {
  color: rgba(0, 0, 0, .5);
}

.ringtones-team-grid,
.ringtones-tunes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ringtones-team-card,
.ringtones-tune,
.ringtones-claim,
.ringtones-empty {
  border: 1px solid #e3e3df;
  border-radius: 8px;
  background: #fff;
}

.ringtones-team-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 16px;
  color: #000;
  text-decoration: none;
}

.ringtones-team-card:hover,
.ringtones-team-card.is-selected {
  border-color: #000;
  box-shadow: 4px 4px 0 var(--fc-volt);
}

.ringtones-team-flag {
  font-size: 28px;
  width: 28px;
  height: auto;
  vertical-align: middle;
}

.ringtones-team-card strong,
.ringtones-team-card small {
  display: block;
}

.ringtones-team-card small {
  margin-top: 3px;
  color: rgba(0, 0, 0, .55);
}

.ringtones-team-arrow {
  font-size: 22px;
}

.ringtones-claim,
.ringtones-empty {
  padding: 28px;
}

.ringtones-tune {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  /* FAN-580: the whole card previews on click (see ringtones.js) — the
     format-picker links and the preview button keep their own behaviour. */
  cursor: pointer;
}

.ringtones-tune.is-selected {
  border: 2px solid #000;
}

.ringtones-tune.is-previewing {
  border: 2px solid var(--fc-bubblegum);
}

.ringtones-tune__label {
  color: rgba(0, 0, 0, .48);
}

.ringtones-tune h3 {
  margin: 0 0 4px;
  font-family: var(--fc-font-display);
  font-size: 25px;
}

.ringtones-tune p:not(.ringtones-tune__label) {
  margin: 0;
  color: rgba(0, 0, 0, .6);
}

.ringtones-preview,
.ringtones-format-picker a,
.ringtones-download {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.ringtones-format-picker a,
.ringtones-download {
  background: #000;
  color: #fff;
}

.ringtones-preview {
  align-self: start;
  padding: 10px 14px;
  /* FAN-580: pink (not black) marks "preview" as non-committal, distinct
     from the black "download"/"pick a format" actions. Black ink for
     contrast — 8.16:1 on bubblegum; white ink only reaches 2.57:1. */
  background: var(--fc-bubblegum);
  color: var(--fc-black);
}

.ringtones-preview:hover {
  /* White ink on electric: 7.54:1. Black ink on electric would fail (2.79:1). */
  color: #fff;
}

.ringtones-format-picker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #ececea;
}

.ringtones-format-picker > span {
  margin: 0 auto 0 0;
  color: rgba(0, 0, 0, .45);
}

.ringtones-format-picker a {
  padding: 9px 14px;
}

.ringtones-format-picker a:hover,
.ringtones-preview:hover,
.ringtones-download:hover {
  background: var(--fc-electric);
}

.ringtones-format-picker small {
  color: rgba(255, 255, 255, .65);
}

.ringtones-claim {
  max-width: 740px;
  background: var(--fc-volt);
  border-color: #000;
}

.ringtones-claim .ringtones-kicker {
  color: rgba(0, 0, 0, .6);
}

.ringtones-claim p:not(.ringtones-kicker) {
  max-width: 58ch;
  line-height: 1.55;
}

/* FAN-589: the ready page is a numbered 1-2-3 flow — download, install,
   get more — each in its own white card so the volt section reads as
   distinct steps rather than one continuous block. */
.ringtones-steps {
  counter-reset: rt-step;
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
}

.ringtones-step {
  counter-increment: rt-step;
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 14px;
  padding: 20px 22px 22px;
}

.ringtones-claim .ringtones-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--fc-font-display);
  font-size: 22px;
  line-height: 1.15;
}

.ringtones-step__title::before {
  content: counter(rt-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000;
  color: var(--fc-volt);
  font-size: 16px;
}

.ringtones-step .ringtones-download {
  margin-top: 0;
}

.ringtones-step .ringtones-instructions {
  margin-top: 0;
}

/* FAN-596: breathing room between steps (founder: "spacing squished"). */
.ringtones-instructions li {
  margin-bottom: 10px;
}

.ringtones-instructions li:last-child {
  margin-bottom: 0;
}

.ringtones-step .ringtones-desktop-email {
  margin-top: 0;
  margin-bottom: 18px;
}

.ringtones-step .ringtones-share {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ringtones-step .referral-progress {
  margin-top: 16px;
}

.ringtones-step__lead {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, .7);
}

/* FAN-595: "how to get more" explainer on the all-caught-up funnel state. */
.ringtones-getmore {
  margin-top: 24px;
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 14px;
  padding: 20px 22px 22px;
}

.ringtones-claim .ringtones-getmore__title {
  margin: 0 0 10px;
  font-family: var(--fc-font-display);
  font-size: 22px;
}

.ringtones-getmore__rules {
  margin: 0 0 6px;
  padding-left: 22px;
  line-height: 1.6;
}

.ringtones-getmore__rules li {
  margin-bottom: 4px;
}

.ringtones-getmore .referral-progress {
  margin-top: 16px;
}

.ringtones-download {
  display: inline-flex;
  margin-top: 8px;
  padding: 13px 18px;
}

.ringtones-instructions {
  margin: 22px 0 0;
  padding-left: 22px;
  line-height: 1.6;
}

.ringtones-empty {
  color: rgba(0, 0, 0, .65);
}

.ringtones-join {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  max-width: 420px;
}

.ringtones-join__team-note {
  margin: 2px 0 4px;
  font-size: 13px;
  color: rgba(0, 0, 0, .6);
}

.ringtones-join__change {
  border: 0;
  background: none;
  padding: 0;
  color: #000;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.ringtones-join__team-field[hidden] {
  display: none;
}

.ringtones-join .ringtones-download {
  align-self: flex-start;
  margin-top: 10px;
  border: 0;
}

.ringtones-share {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, .18);
}

.ringtones-share__whatsapp,
.ringtones-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.ringtones-share__whatsapp {
  padding: 13px 20px;
  border: 0;
  background: #000;
  color: #fff;
}

.ringtones-share__whatsapp:hover {
  background: var(--fc-electric);
}

.ringtones-share__whatsapp svg {
  width: 18px;
  height: 18px;
}

/* FAN-580: WhatsApp is primary and full-width; X/Copy/Email form an even,
   equal-width secondary row so no button reads as more important than
   another. */
.ringtones-share__secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ringtones-share__button {
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 13px;
  text-align: center;
}

.ringtones-share__button:hover {
  background: #000;
  color: #fff;
}

.ringtones-share__button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.ringtones-share__status {
  min-height: 1em;
  font-size: 12px;
  font-weight: 700;
}

.ringtones-share__status:empty {
  display: none;
}

@media (max-width: 420px) {
  .ringtones-share__secondary {
    grid-template-columns: 1fr;
  }
}

.ringtones-rewards {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, .18);
}

.ringtones-rewards__title {
  margin: 0 0 6px;
  font-family: var(--fc-font-display);
  font-size: 20px;
}

.ringtones-rewards__rules {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, .7);
}

.ringtones-howto {
  margin-top: 20px;
}

.ringtones-howto summary {
  cursor: pointer;
  font-weight: 700;
  color: rgba(0, 0, 0, .75);
}

.ringtones-howto .ringtones-instructions {
  margin-top: 12px;
}

/* FAN-582: the "check your inbox" interstitial reuses the howto steps as a
   non-interactive preview — same look as the summary, but a plain label
   since there's nothing to expand/collapse yet. */
.ringtones-howto__label {
  margin: 0;
  font-weight: 700;
  color: rgba(0, 0, 0, .75);
}

/* FAN-582: ready page auto-download zone — the button doubles as its own
   fallback trigger; the status line carries a short cosmetic fill so the
   automatic download reads as "in progress", not just inert text. */
.ringtones-autodownload {
  margin-top: 8px;
}

.ringtones-autodownload__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: rgba(0, 0, 0, .65);
  font-size: 13px;
}

.ringtones-autodownload__track {
  display: inline-block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .12);
  overflow: hidden;
}

.ringtones-autodownload__bar {
  display: block;
  width: 0;
  height: 100%;
  background: #000;
  transition: width 2s ease;
}

.ringtones-autodownload__bar.is-filling {
  width: 100%;
}

.ringtones-autodownload__fallback {
  display: inline-block;
  margin-top: 6px;
  color: rgba(0, 0, 0, .6);
  font-size: 13px;
  text-decoration: underline;
}

/* FAN-582: desktop visitors can't run the phone "how to" steps, so they get
   a route to their phone instead — reuses .ringtones-share__button. */
.ringtones-desktop-email {
  margin-top: 20px;
}

.ringtones-desktop-email__label {
  margin: 0 0 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, .75);
}

.ringtones-desktop-email__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 720px) {
  .ringtones-team-grid,
  .ringtones-tunes {
    grid-template-columns: 1fr;
  }

  .ringtones-hero,
  .ringtones-claim,
  .ringtones-empty {
    padding: 22px;
  }

  .ringtones-tune {
    grid-template-columns: 1fr;
  }

  .ringtones-preview {
    justify-self: start;
  }

  .ringtones-format-picker {
    flex-wrap: wrap;
  }

  .ringtones-format-picker > span {
    flex-basis: 100%;
  }
}
