/* ============================================================
   AIM Playr — reseller program (public pages)
   Loaded after app.css, home.css and theme.css.
   ============================================================ */

.rs-main {
  overflow: clip;
}

/* ---------- Hero ---------- */

.rs-hero {
  position: relative;
  padding: clamp(44px, 7vw, 92px) 0 0;
}

.rs-hero__aura {
  position: absolute;
  inset: -160px 0 auto;
  height: 720px;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% 18%, rgba(0, 230, 118, 0.12), transparent 68%),
    radial-gradient(560px 360px at 12% 0%, rgba(0, 230, 118, 0.06), transparent 70%);
}

html:not([data-theme="dark"]) .rs-hero__aura {
  background:
    radial-gradient(720px 420px at 78% 18%, rgba(11, 122, 67, 0.14), transparent 68%),
    radial-gradient(560px 360px at 12% 0%, rgba(11, 122, 67, 0.07), transparent 70%);
}

.rs-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.rs-hero h1 {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-wrap: balance;
}

.rs-hero h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--green);
}

.rs-hero__lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.7;
}

.rs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.rs-hero__note {
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

/* ---------- Flow ticket ---------- */

.rs-ticket {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(190, 255, 216, 0.04), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.rs-ticket::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

.rs-ticket__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 16px;
}

.rs-ticket__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.06);
  color: var(--green-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rs-ticket__badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.rs-ticket__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rs-ticket__step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 6px;
  border-top: 1px solid var(--line);
}

.rs-ticket__step > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(0, 230, 118, 0.05);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.rs-ticket__step b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.rs-ticket__step small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.rs-ticket__deal {
  position: relative;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background:
    radial-gradient(260px 130px at 100% 0%, rgba(0, 230, 118, 0.1), transparent 72%),
    rgba(0, 230, 118, 0.035);
}

.rs-ticket__deal-label {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-ticket__deal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}

.rs-ticket__deal-row b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rs-ticket__deal-row span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.rs-ticket__deal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.rs-ticket__deal-price span {
  color: var(--muted-2);
  text-decoration: line-through;
}

.rs-ticket__deal-price i {
  color: var(--muted-2);
  font-style: normal;
}

.rs-ticket__deal-price strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 500;
}

.rs-ticket__deal-price em {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---------- Stats ---------- */

.rs-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 5vw, 62px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.rs-stat {
  padding: 20px 22px;
  background: var(--bg);
}

.rs-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rs-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.rs-section {
  padding-top: clamp(56px, 8vw, 100px);
}

.rs-section--rules {
  padding-bottom: clamp(56px, 8vw, 100px);
}

.rs-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.rs-flow__card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.rs-flow__card:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}

.rs-flow__idx {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border: 1px solid var(--line-3);
  border-radius: 9px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
}

.rs-flow__card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.rs-flow__card p {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.65;
}

.rs-rule-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
}

.rs-rule {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.rs-rule__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--green);
}

.rs-rule__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rs-rule b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.rs-rule p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
}

/* ---------- CTA ---------- */

.rs-cta {
  padding: clamp(20px, 4vw, 40px) 0 clamp(56px, 8vw, 96px);
}

.rs-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(0, 230, 118, 0.13), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgba(0, 230, 118, 0.06), transparent 70%),
    var(--panel);
  overflow: hidden;
}

.rs-cta__inner h2 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.rs-cta__inner p {
  max-width: 52ch;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.65;
}

.rs-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Application page ---------- */

.rs-apply {
  padding: clamp(36px, 6vw, 72px) 0 clamp(60px, 9vw, 110px);
}

.rs-apply__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.rs-apply__back {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.rs-apply__intro h1 {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.rs-apply__intro h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.rs-apply__intro > p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.rs-apply__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.rs-apply__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.rs-apply__points li span {
  flex: 0 0 24px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.rs-apply__note {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: var(--panel);
}

.rs-apply__note b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}

.rs-apply__note p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.rs-form-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(170deg, rgba(190, 255, 216, 0.035), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.rs-form-card__head {
  margin-bottom: 22px;
}

.rs-form-card__kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rs-form-card__head h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.rs-form-card__head p {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
}

.rs-form-card .alert {
  margin-bottom: 16px;
}

.rs-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.rs-form .btn {
  margin-top: 5px;
}

.rs-form__foot {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10.5px;
  text-align: center;
}

.rs-form__foot a {
  color: var(--green);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .rs-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-ticket {
    max-width: 560px;
  }

  .rs-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-apply__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-form-card {
    max-width: 640px;
  }
}

@media (max-width: 700px) {
  .rs-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-stat {
    padding: 16px 14px;
  }

  .rs-hero__note {
    font-size: 9px;
  }

  .rs-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-cta__actions {
    width: 100%;
  }

  .rs-cta__actions .btn {
    flex: 1;
  }

  .rs-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .rs-hero__actions .btn {
    flex: 1;
  }

  .rs-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-ticket {
    padding: 16px;
  }
}
