/* Rein Bots page — mobile-first redesign */

body.rein-bots-page main > section {
  background-color: transparent;
}

body.rein-bots-page main > section.rb-hero {
  padding: 0;
}

body.rein-bots-page main > section.rb-pricing {
  padding: 2rem 0 2.5rem;
}

body.rein-bots-page main > section.rb-features {
  padding: 2rem 0 2.5rem;
  background: var(--color-bg-muted);
  border-block: 1px solid var(--color-border);
}

body.rein-bots-page main > section.rb-guide {
  padding: 2.5rem 0 3.5rem;
}

.rb-page {
  background: var(--color-bg);
}

/* —— Hero —— */
.rb-hero {
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(155deg, #eff6ff 0%, #fff7ed 35%, #ffffff 65%, #fef2f2 100%);
}

.rb-hero__inner {
  padding: 2.25rem 0 2.5rem;
}

.rb-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem clamp(0.75rem, 3vw, 2rem);
  margin-bottom: 1.35rem;
}

.rb-hero__header {
  flex: 1 1 100%;
  order: 1;
  text-align: center;
  max-width: 26rem;
  margin-inline: auto;
}

.rb-hero__figure {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.rb-hero__figure img {
  display: block;
  width: clamp(4.5rem, 22vw, 6.5rem);
  height: auto;
  max-height: 6.5rem;
  object-fit: contain;
}

.rb-hero__figure--left {
  order: 2;
}

.rb-hero__figure--right {
  order: 3;
}

.rb-hero__figure--right img {
  width: clamp(4.25rem, 20vw, 6rem);
  max-height: 6rem;
}

.rb-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c2410c;
}

.rb-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 6vw, 2.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.rb-hero__sub {
  margin: 0 auto;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.rb-hero__actions {
  text-align: center;
}

.rb-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.rb-hero__badges li {
  margin: 0;
  padding: 0;
}

.rb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(194, 65, 12, 0.2);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.rb-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  max-width: 20rem;
  margin-inline: auto;
}

.rb-hero__cta .btn {
  width: 100%;
  margin: 0;
}

/* —— Section headers —— */
.rb-section-head {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  text-align: center;
}

.rb-section-head__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.rb-section-head__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rb-section-head__sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* —— Pricing —— */
.rb-plans {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.rb-plans > li {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.rb-plans > li > .rb-plan {
  flex: 1;
  width: 100%;
}

.rb-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.rb-plan--featured {
  border-color: rgba(194, 65, 12, 0.4);
  box-shadow: 0 14px 36px rgba(194, 65, 12, 0.14);
}

.rb-plan__ribbon {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #c2410c 0%, #ea580c 100%);
}

.rb-plan__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.35rem 1.15rem 1rem;
}

.rb-plan--featured .rb-plan__body {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 72%);
}

.rb-plan__accounts {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

.rb-plan__price {
  margin: 0;
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #9a3412;
}

.rb-plan__period {
  margin-left: 0.08em;
  font-size: 0.5em;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.rb-plan__action {
  width: 100%;
  padding: 0 1.15rem 1.15rem;
  margin-top: auto;
}

.rb-plan__action .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
}

/* —— Features (grouped lists) —— */
.rb-features-grid {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.rb-feature-group {
  padding: 1.15rem 1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.rb-feature-group__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
  border-bottom: 1px solid var(--color-border);
}

.rb-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.rb-feature-list li::before {
  flex-shrink: 0;
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-radius: var(--radius-full);
}

/* —— Guide —— */
.rb-guide-wrap {
  max-width: 40rem;
  margin: 0 auto;
}

.rb-guide-wrap .rb-section-head {
  margin-bottom: 1.25rem;
}

.rb-guide__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.rb-guide__lead strong {
  color: var(--color-text);
  font-weight: 700;
}

.rb-callouts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.rb-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.rb-callout__emoji {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.rb-callout__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.rb-callout strong {
  font-weight: 700;
  color: var(--color-text);
}

.rb-cta-band {
  padding: 1.35rem 1.15rem;
  text-align: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #c2410c 50%, #ea580c 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: 0 14px 36px rgba(194, 65, 12, 0.22);
}

.rb-cta-band p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.95;
}

.rb-cta-band .btn {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

.rb-cta-band .btn-primary {
  background: #fff;
  color: #9a3412;
  border: none;
}

.rb-cta-band .btn-primary:hover {
  background: #fff7ed;
  color: #c2410c;
}

/* —— Responsive —— */
@media (max-width: 639px) {
  .rb-plans > li:nth-child(2) {
    order: -1;
  }
}

@media (min-width: 640px) {
  .rb-hero__inner {
    padding: 2.75rem 0 3rem;
  }

  .rb-hero__head {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .rb-hero__header {
    flex: 1 1 auto;
    order: 2;
    max-width: 30rem;
  }

  .rb-hero__figure--left {
    order: 1;
  }

  .rb-hero__figure--right {
    order: 3;
  }

  .rb-hero__figure img {
    width: clamp(5.5rem, 11vw, 7.5rem);
    max-height: 7.5rem;
  }

  .rb-hero__figure--right img {
    width: clamp(5rem, 10vw, 7rem);
    max-height: 7rem;
  }

  .rb-hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: none;
  }

  .rb-hero__cta .btn {
    width: auto;
    min-width: 10.5rem;
  }

  .rb-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
  }

  .rb-plan--featured {
    transform: translateY(-0.35rem);
  }
}

@media (min-width: 768px) {
  body.rein-bots-page main > section.rb-pricing,
  body.rein-bots-page main > section.rb-features {
    padding: 2.75rem 0 3rem;
  }

  .rb-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 1.15rem;
  }

  .rb-feature-group {
    height: 100%;
    padding: 1.25rem 1.1rem 1.3rem;
  }
}

@media (min-width: 900px) {
  .rb-hero__inner {
    padding: 3rem 0 3.25rem;
  }

  .rb-hero__figure img {
    width: clamp(6.5rem, 9vw, 8.5rem);
    max-height: 8.5rem;
  }

  .rb-hero__figure--right img {
    width: clamp(6rem, 8vw, 8rem);
    max-height: 8rem;
  }

  .rb-section-head {
    margin-bottom: 2rem;
  }

  .rb-guide-wrap {
    max-width: 48rem;
  }
}

@media (min-width: 1024px) {
  .rb-plan__body {
    padding: 1.5rem 1.15rem 1rem;
  }
}
