/* ReetHost — Componentes */

/* =========================================================
   1. Faixa de cupom
   ========================================================= */
.rh-coupon {
  background: var(--rh-grad-brand);
  color: var(--rh-on-primary);
  font-size: var(--rh-fs-sm);
}
.rh-coupon[hidden] { display: none; }
.rh-coupon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--rh-3);
  min-height: 44px;
  padding-block: var(--rh-2);
}
.rh-coupon__text { margin: 0; }
.rh-coupon__code {
  font-family: var(--rh-font-display);
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(0, 0, 0, .25);
  padding: 2px var(--rh-2);
  border-radius: var(--rh-r-sm);
}
.rh-coupon__cta {
  color: var(--rh-on-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rh-coupon__cta:hover { color: var(--rh-on-primary); opacity: .85; }
.rh-coupon__close {
  position: absolute;
  right: var(--rh-4);
  background: none;
  border: 0;
  color: var(--rh-on-primary);
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: var(--rh-r-sm);
  cursor: pointer;
}
.rh-coupon__close:hover { background: rgba(0, 0, 0, .2); }
.rh-coupon .rh-container { position: relative; }
@media (max-width: 639px) {
  .rh-coupon__inner { padding-right: 44px; justify-content: flex-start; text-align: left; }
}

/* =========================================================
   2. Header
   ========================================================= */
.rh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 12, 46, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rh-line);
}
@media (max-width: 991px) { .rh-header { position: sticky; } }
.rh-header__inner {
  display: flex;
  align-items: center;
  gap: var(--rh-5);
  min-height: var(--rh-header-h);
}
.rh-logo { display: flex; align-items: center; gap: var(--rh-2); flex-shrink: 0; }
.rh-logo img { width: 36px; height: 36px; border-radius: var(--rh-r-sm); }
.rh-logo__word {
  font-family: var(--rh-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rh-text);
  letter-spacing: -.02em;
}

.rh-nav { margin-left: auto; }
.rh-nav__list {
  display: flex;
  align-items: center;
  gap: var(--rh-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.rh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-1);
  padding: var(--rh-2) var(--rh-3);
  min-height: 40px;
  border-radius: var(--rh-r-md);
  color: var(--rh-text-muted);
  font-size: var(--rh-fs-sm);
  font-weight: 500;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.rh-nav__link:hover { color: var(--rh-text); background: rgba(255, 255, 255, .06); }
.rh-nav__link[aria-current="page"] { color: var(--rh-text); }
.rh-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto var(--rh-3) 6px;
  height: 2px;
  background: var(--rh-primary);
  border-radius: 2px;
}
.rh-nav__item { position: relative; }
.rh-nav__caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }

.rh-nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--rh-surface-2);
  border: 1px solid var(--rh-line-strong);
  border-radius: var(--rh-r-md);
  box-shadow: var(--rh-shadow-2);
  padding: var(--rh-2);
  list-style: none;
  margin: 0;
  display: none;
}
.rh-nav__item.is-open .rh-nav__menu { display: block; }
.rh-nav__menu a {
  display: block;
  padding: var(--rh-2) var(--rh-3);
  border-radius: var(--rh-r-sm);
  color: var(--rh-text-muted);
  font-size: var(--rh-fs-sm);
}
.rh-nav__menu a:hover { background: rgba(255, 255, 255, .07); color: var(--rh-text); }

.rh-header__actions { display: flex; gap: var(--rh-2); flex-shrink: 0; }

.rh-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--rh-line-strong);
  border-radius: var(--rh-r-md);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.rh-burger span, .rh-burger span::before, .rh-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rh-text);
  border-radius: 2px;
  transition: transform var(--rh-base) var(--rh-ease), opacity var(--rh-fast);
}
.rh-burger span { position: relative; }
.rh-burger span::before, .rh-burger span::after { content: ""; position: absolute; left: 0; }
.rh-burger span::before { top: -6px; }
.rh-burger span::after { top: 6px; }
.rh-burger[aria-expanded="true"] span { background: transparent; }
.rh-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.rh-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
  .rh-burger { display: grid; }
  /* Ancorado ao header, não ao viewport: com a faixa de cupom visível
     o header não está em y=0 e um `fixed` desalinharia o drawer. */
  .rh-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--rh-header-h));
    overflow-y: auto;
    background: var(--rh-bg-900);
    border-bottom: 1px solid var(--rh-line);
    padding: var(--rh-4) var(--rh-gutter) var(--rh-6);
    margin: 0;
    display: none;
  }
  .rh-nav.is-open { display: block; }
  .rh-nav__list { flex-direction: column; align-items: stretch; gap: var(--rh-1); }
  .rh-nav__link { width: 100%; justify-content: space-between; font-size: 1rem; min-height: 48px; }
  .rh-nav__menu { position: static; display: none; box-shadow: none; background: transparent; border: 0; border-left: 2px solid var(--rh-line-strong); border-radius: 0; margin-left: var(--rh-3); }
  .rh-nav__item.is-open .rh-nav__menu { display: block; }
  .rh-header__actions { display: none; }
  .rh-nav__actions { display: flex; gap: var(--rh-2); margin-top: var(--rh-4); }
  .rh-nav__actions .rh-btn { flex: 1; }
}
@media (min-width: 992px) { .rh-nav__actions { display: none; } }

/* =========================================================
   3. Hero
   ========================================================= */
.rh-hero {
  position: relative;
  background: var(--rh-grad-hero);
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 104px);
}
.rh-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(138, 0, 230, .35), transparent 70%);
  pointer-events: none;
}
.rh-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.rh-hero__copy { max-width: 620px; }
.rh-hero h1 { margin-bottom: var(--rh-4); }
.rh-hero .rh-lead { margin-bottom: var(--rh-6); color: rgba(244, 247, 255, .82); }
.rh-hero__art { justify-self: center; }
.rh-hero__art img {
  width: min(340px, 40vw);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, .45));
}

.rh-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rh-5) var(--rh-7);
  margin-top: var(--rh-7);
  padding-top: var(--rh-5);
  border-top: 1px solid var(--rh-line-strong);
  list-style: none;
  padding-left: 0;
}
.rh-metrics dt, .rh-metric__label {
  font-size: var(--rh-fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rh-text-muted);
}
.rh-metric__value {
  font-family: var(--rh-font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

@media (max-width: 991px) {
  .rh-hero__inner { grid-template-columns: 1fr; }
  .rh-hero__art { order: -1; }
  .rh-hero__art img { width: min(200px, 45vw); }
}

/* =========================================================
   4. Cabeçalho de página interna
   ========================================================= */
.rh-pagehead {
  background: var(--rh-grad-hero);
  padding-block: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rh-line);
}
.rh-pagehead h1 { margin-bottom: var(--rh-3); }
.rh-pagehead .rh-lead { max-width: 680px; margin-bottom: 0; color: rgba(244, 247, 255, .82); }

.rh-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: var(--rh-2); padding: 0; margin: 0 0 var(--rh-4); font-size: var(--rh-fs-sm); color: var(--rh-text-muted); }
.rh-breadcrumb li + li::before { content: "/"; margin-right: var(--rh-2); opacity: .5; }

/* =========================================================
   5. Layout com sidebar
   ========================================================= */
.rh-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--rh-6); align-items: start; }
/* Sem min-width:0 os filhos de grid adotam min-content e estouram o viewport. */
.rh-layout > * { min-width: 0; }
@media (max-width: 991px) { .rh-layout { grid-template-columns: 1fr; gap: var(--rh-5); } }

.rh-sidebar {
  position: sticky;
  top: calc(var(--rh-header-h) + var(--rh-4));
  background: var(--rh-surface);
  border: 1px solid var(--rh-line);
  border-radius: var(--rh-r-lg);
  padding: var(--rh-4);
}
.rh-sidebar h2 {
  font-size: var(--rh-fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rh-text-dim);
  margin-bottom: var(--rh-3);
}
.rh-sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rh-1); min-width: 0; }
.rh-sidebar a {
  display: block;
  padding: var(--rh-2) var(--rh-3);
  border-radius: var(--rh-r-sm);
  color: var(--rh-text-muted);
  font-size: var(--rh-fs-sm);
}
.rh-sidebar a:hover { background: rgba(255, 255, 255, .06); color: var(--rh-text); }
.rh-sidebar a[aria-current="page"] {
  background: rgba(16, 98, 254, .16);
  color: var(--rh-text);
  box-shadow: inset 2px 0 0 var(--rh-primary);
}

@media (max-width: 991px) {
  .rh-sidebar { position: static; padding: var(--rh-3); }
  .rh-sidebar ul {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    gap: var(--rh-2);
    scrollbar-width: thin;
    padding-bottom: var(--rh-1);
  }
  .rh-sidebar a { white-space: nowrap; border: 1px solid var(--rh-line-strong); border-radius: var(--rh-r-pill); }
  .rh-sidebar a[aria-current="page"] { box-shadow: none; border-color: var(--rh-primary); }
}

/* =========================================================
   6. Card de plano
   ========================================================= */
.rh-plans { display: grid; gap: var(--rh-5); grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.rh-plans > * { min-width: 0; }
/* Ao lado da sidebar sobra menos largura: 3 colunas dão respiro ao card. */
.rh-layout .rh-plans { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1199px) { .rh-plans, .rh-layout .rh-plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .rh-plans, .rh-layout .rh-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .rh-plans, .rh-layout .rh-plans { grid-template-columns: 1fr; } }

.rh-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rh-surface);
  border: 1px solid var(--rh-line);
  border-radius: var(--rh-r-lg);
  padding: var(--rh-5);
  transition: transform var(--rh-base) var(--rh-ease), box-shadow var(--rh-base) var(--rh-ease), border-color var(--rh-base) var(--rh-ease);
}
.rh-plan:hover { transform: translateY(-4px); box-shadow: var(--rh-shadow-glow); border-color: transparent; }

.rh-plan--featured { border-color: var(--rh-primary); background: var(--rh-surface-2); }
.rh-plan__badge {
  position: absolute;
  top: calc(-1 * var(--rh-3));
  left: var(--rh-5);
  background: var(--rh-primary);
  color: var(--rh-on-primary);
  font-size: var(--rh-fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: var(--rh-1) var(--rh-3);
  border-radius: var(--rh-r-pill);
}

.rh-plan__name { margin-bottom: var(--rh-3); }
.rh-plan__sub { font-size: var(--rh-fs-sm); color: var(--rh-text-muted); margin-bottom: var(--rh-4); }

/* Elemento-assinatura: barra de capacidade de slots */
.rh-slots { margin-bottom: var(--rh-4); }
.rh-slots__bar { display: flex; gap: 3px; }
.rh-slots__seg {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .10);
}
.rh-slots__seg.is-on { background: var(--rh-primary); }
.rh-plan--featured .rh-slots__seg.is-on { background: var(--rh-primary-300); }
.rh-slots__label {
  display: flex;
  justify-content: space-between;
  margin-top: var(--rh-2);
  font-size: var(--rh-fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rh-text-dim);
}

.rh-plan__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--rh-font-display);
  margin-bottom: var(--rh-5);
  padding-bottom: var(--rh-4);
  border-bottom: 1px solid var(--rh-line);
}
.rh-plan__currency { font-size: 1rem; font-weight: 600; color: var(--rh-text-muted); }
.rh-plan__amount { font-size: 2.25rem; font-weight: 700; line-height: 1; }
.rh-plan__cycle { font-size: var(--rh-fs-sm); color: var(--rh-text-muted); font-family: var(--rh-font-body); }

.rh-plan__features { list-style: none; margin: 0 0 var(--rh-5); padding: 0; display: grid; gap: var(--rh-2); font-size: var(--rh-fs-sm); }
.rh-plan__features li { position: relative; padding-left: 1.6em; color: var(--rh-text-muted); }
.rh-plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 6px; height: 10px;
  border-right: 2px solid var(--rh-success);
  border-bottom: 2px solid var(--rh-success);
  transform: rotate(45deg);
}
.rh-plan__features strong { color: var(--rh-text); font-weight: 600; }
.rh-plan__foot { margin-top: auto; }

/* =========================================================
   7. Grade de diferenciais
   ========================================================= */
.rh-feature {
  background: var(--rh-surface);
  border: 1px solid var(--rh-line);
  border-radius: var(--rh-r-lg);
  padding: var(--rh-5);
  transition: transform var(--rh-base) var(--rh-ease), border-color var(--rh-base) var(--rh-ease);
}
.rh-feature:hover { transform: translateY(-3px); border-color: var(--rh-line-strong); }
.rh-feature .rh-icon { margin-bottom: var(--rh-4); }
.rh-feature h3 { font-size: 1.05rem; margin-bottom: var(--rh-2); }
.rh-feature p { font-size: var(--rh-fs-sm); color: var(--rh-text-muted); margin: 0; }

/* =========================================================
   8. Painel genérico / passos / FAQ
   ========================================================= */
.rh-panel {
  background: var(--rh-surface);
  border: 1px solid var(--rh-line);
  border-radius: var(--rh-r-lg);
  padding: clamp(20px, 3vw, 32px);
}
.rh-panel--alt { background: var(--rh-surface-2); }

.rh-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--rh-5); }
.rh-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--rh-4);
  align-items: start;
}
.rh-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--rh-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rh-primary-300);
  background: rgba(16, 98, 254, .14);
  border: 1px solid rgba(16, 98, 254, .3);
  border-radius: var(--rh-r-md);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
}
.rh-step h3 { font-size: 1.05rem; margin-bottom: var(--rh-2); }
.rh-step p { color: var(--rh-text-muted); font-size: var(--rh-fs-sm); }
.rh-step figure { margin: var(--rh-4) 0 0; }
.rh-step img { border-radius: var(--rh-r-md); border: 1px solid var(--rh-line); width: 100%; }

.rh-faq { display: grid; gap: var(--rh-3); }
.rh-faq details {
  background: var(--rh-surface);
  border: 1px solid var(--rh-line);
  border-radius: var(--rh-r-md);
  padding: var(--rh-4) var(--rh-5);
}
.rh-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--rh-font-display);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--rh-4);
  align-items: center;
}
.rh-faq summary::-webkit-details-marker { display: none; }
.rh-faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--rh-primary-300);
  flex-shrink: 0;
}
.rh-faq details[open] summary::after { content: "–"; }
.rh-faq p { margin: var(--rh-3) 0 0; color: var(--rh-text-muted); font-size: var(--rh-fs-sm); }

/* Vitrine de demonstração */
.rh-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--rh-5); }
.rh-shots > * { min-width: 0; }
@media (max-width: 767px) { .rh-shots { grid-template-columns: 1fr; } }
.rh-shot { margin: 0; }
.rh-shot img {
  width: 100%;
  border-radius: var(--rh-r-md);
  border: 1px solid var(--rh-line);
  background: var(--rh-surface);
}
.rh-shot figcaption { margin-top: var(--rh-3); font-size: var(--rh-fs-sm); color: var(--rh-text-muted); }

/* Chamada final */
.rh-cta {
  background: var(--rh-grad-hero);
  border: 1px solid var(--rh-line-strong);
  border-radius: var(--rh-r-lg);
  padding: clamp(28px, 4vw, 56px);
  text-align: center;
}
.rh-cta h2 { margin-bottom: var(--rh-3); }
.rh-cta p { color: rgba(244, 247, 255, .82); max-width: 560px; margin: 0 auto var(--rh-5); }
.rh-cta .rh-btn-group { justify-content: center; }

/* =========================================================
   9. Footer
   ========================================================= */
.rh-footer {
  background: var(--rh-bg-800);
  border-top: 1px solid var(--rh-line);
  padding-block: var(--rh-8) var(--rh-5);
  margin-top: var(--rh-9);
}
.rh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--rh-6); }
@media (max-width: 767px) { .rh-footer__grid { grid-template-columns: 1fr; gap: var(--rh-5); } }
.rh-footer h2 {
  font-size: var(--rh-fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rh-text-dim);
  margin-bottom: var(--rh-3);
}
.rh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rh-2); }
.rh-footer a { color: var(--rh-text-muted); font-size: var(--rh-fs-sm); }
.rh-footer a:hover { color: var(--rh-text); }
.rh-footer__tagline { color: var(--rh-text-muted); font-size: var(--rh-fs-sm); max-width: 320px; margin-top: var(--rh-3); }
.rh-footer__bottom {
  margin-top: var(--rh-7);
  padding-top: var(--rh-4);
  border-top: 1px solid var(--rh-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--rh-3);
  font-size: var(--rh-fs-sm);
  color: var(--rh-text-dim);
}

/* =========================================================
   10. Flutuantes: WhatsApp e voltar ao topo
   ========================================================= */
.rh-fab {
  position: fixed;
  right: var(--rh-4);
  bottom: var(--rh-4);
  z-index: 90;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rh-whatsapp);
  color: var(--rh-whatsapp-ink);
  box-shadow: var(--rh-shadow-2);
  transition: transform var(--rh-base) var(--rh-ease);
}
.rh-fab:hover { transform: scale(1.06); color: var(--rh-whatsapp-ink); }
.rh-fab svg { width: 30px; height: 30px; fill: currentColor; }

.rh-top {
  position: fixed;
  right: var(--rh-4);
  bottom: calc(var(--rh-4) + 68px);
  z-index: 90;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rh-surface-2);
  border: 1px solid var(--rh-line-strong);
  color: var(--rh-text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--rh-base) var(--rh-ease), visibility var(--rh-base);
}
.rh-top.is-visible { opacity: 1; visibility: visible; }
.rh-top::before {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}
