/* ==========================================================================
   RAIO-X IFOOD — Supersal
   Sistema visual: "leitura de scanner" — diagnóstico técnico, denso, escuro.
   Base: brand tokens da Supersal (./tokens.css). Este arquivo é o produto.
   ========================================================================== */

:root {
  /* Fundo forçado em preto (não segue prefers-color-scheme do sistema —
     o produto é a marca, não se adapta ao tema do usuário). */
  --rx-bg: #060606;
  --rx-bg-raised: #0d0d0e;
  --rx-surface: rgba(255, 255, 255, 0.04);
  --rx-surface-strong: rgba(255, 255, 255, 0.07);
  --rx-border: rgba(255, 255, 255, 0.12);
  --rx-border-soft: rgba(255, 255, 255, 0.07);
  --rx-white: #ffffff;
  --rx-text: rgba(255, 255, 255, 0.92);
  --rx-muted: rgba(255, 255, 255, 0.62);
  --rx-muted-2: rgba(255, 255, 255, 0.4);

  --rx-red: var(--color-accent-red, #be1131);
  --rx-red-bright: #e5254b;
  --rx-lime: var(--color-accent-lime, #a9cc27);
  --rx-lime-bright: #c3e83f;
  --rx-orange: var(--color-accent-orange, #e88d15);
  --rx-coral: var(--color-accent-coral, #cf3f17);
  --rx-ifood: #ea1d2c;

  --rx-radius: 14px;
  --rx-radius-sm: 8px;
  --rx-container: 1180px;
  --rx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

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

html {
  background: var(--rx-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--rx-bg);
  color: var(--rx-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

::selection {
  background: var(--rx-red);
  color: #fff;
}

a {
  color: var(--rx-lime);
}

.rx-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Atalho de acessibilidade */
.rx-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rx-lime);
  color: #000;
  padding: 0.6em 1em;
  z-index: 999;
  font-weight: 700;
}
.rx-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==========================================================================
   ATMOSFERA — grid técnico + glow + scanline
   ========================================================================== */

.rx-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rx-atmosphere::before {
  /* grid tipo blueprint */
  content: "";
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

.rx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
}
.rx-glow--red {
  width: 620px; height: 620px;
  top: -220px; left: -180px;
  background: var(--rx-red);
}
.rx-glow--lime {
  width: 560px; height: 560px;
  top: 260px; right: -220px;
  background: var(--rx-lime);
  opacity: 0.16;
}

/* Varredura sutil — linhas horizontais deslizando (leitura de scanner) */
.rx-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: rx-scan-drift 9s linear infinite;
  opacity: 0.6;
}

@keyframes rx-scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(120px); }
}

@media (prefers-reduced-motion: reduce) {
  .rx-scanlines { animation: none; }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.rx-container {
  max-width: var(--rx-container);
  margin-inline: auto;
  padding-inline: 1.25rem;
  position: relative;
  z-index: 1;
}

.rx-section {
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
}

.rx-section--tight {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.rx-section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.rx-hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rx-border), transparent);
  border: 0;
  margin: 0;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

.rx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rx-lime);
  margin: 0 0 0.9em;
}

.rx-kicker::before {
  content: "";
  width: 0.85em;
  height: 2px;
  background: currentColor;
  flex: none;
}

.rx-kicker--red { color: var(--rx-red-bright); }

.rx-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  color: var(--rx-white);
  margin: 0 0 0.5em;
}

.rx-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  color: var(--rx-white);
  margin: 0 0 0.5em;
}

.rx-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--rx-white);
  margin: 0 0 0.5em;
}

.rx-lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--rx-muted);
  max-width: 54ch;
}

.rx-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rx-muted);
}

.rx-em-lime { color: var(--rx-lime); }
.rx-em-red { color: var(--rx-red-bright); }

.rx-mono-number {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */

.rx-btn {
  --btn-bg: var(--rx-red);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
  transition: transform 0.18s var(--rx-ease), box-shadow 0.18s var(--rx-ease), background 0.18s var(--rx-ease);
  box-shadow: 0 0 0 0 rgba(190, 17, 49, 0);
  width: max-content;
  max-width: 100%;
}

.rx-btn:hover {
  transform: translateY(-2px);
  background: var(--rx-red-bright);
  box-shadow: 0 10px 30px -8px rgba(229, 37, 75, 0.55);
}

.rx-btn:active { transform: translateY(0); }

.rx-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--rx-white);
  border-color: var(--rx-border);
}
.rx-btn--ghost:hover {
  background: var(--rx-surface-strong);
  box-shadow: none;
  border-color: var(--rx-lime);
}

.rx-btn--lime {
  --btn-bg: var(--rx-lime);
  --btn-fg: #08110a;
}
.rx-btn--lime:hover {
  background: var(--rx-lime-bright);
  box-shadow: 0 10px 30px -8px rgba(169, 204, 39, 0.45);
}

.rx-btn--wa {
  --btn-bg: #1f8a3d;
  --btn-fg: #fff;
}
.rx-btn--wa:hover {
  background: #24a147;
  box-shadow: 0 10px 30px -8px rgba(31, 138, 61, 0.55);
}

.rx-btn--block { width: 100%; }
.rx-btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.rx-support-line {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--rx-muted-2);
  margin-top: 0.75em;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.rx-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rx-border-soft);
}

.rx-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.rx-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
}

.rx-brand img {
  height: 18px;
  width: auto;
  flex: none;
  /* logos oficiais Supersal já são brancos (PNG com fundo transparente) */
}

.rx-brand__product {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rx-muted-2);
  border-left: 1px solid var(--rx-border);
  padding-left: 0.6rem;
  margin-left: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rx-header .rx-btn {
  flex: none;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .rx-brand__product { display: none; }
}

/* ==========================================================================
   HERO + MOCKUP
   ========================================================================== */

.rx-hero {
  padding-block: clamp(2.6rem, 8vw, 5.5rem);
}

.rx-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .rx-hero__grid {
    grid-template-columns: 1fr;
  }
}

.rx-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rx-rise 0.7s var(--rx-ease) forwards;
}
.rx-reveal--1 { animation-delay: 0.05s; }
.rx-reveal--2 { animation-delay: 0.16s; }
.rx-reveal--3 { animation-delay: 0.27s; }
.rx-reveal--4 { animation-delay: 0.38s; }

@keyframes rx-rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rx-reveal { opacity: 1; transform: none; animation: none; }
}

.rx-hero__ctawrap { margin-top: 2rem; }

/* --- Mockup de celular (feito 100% em HTML/CSS) --- */

.rx-phone {
  position: relative;
  margin-inline: auto;
  max-width: 320px;
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(160deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.rx-phone::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.rx-phone__screen {
  position: relative;
  background: #050505;
  border-radius: 22px;
  padding: 1.6rem 1.1rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rx-phone__screen::after {
  /* varredura do "raio-x" */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(169, 204, 39, 0.07) 45%, transparent 55%);
  animation: rx-sweep-vert 4.5s var(--rx-ease) infinite;
  pointer-events: none;
}

@keyframes rx-sweep-vert {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(220%); }
}

.rx-phone__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rx-muted-2);
  text-align: center;
  margin-bottom: 0.9rem;
}

.rx-gauge-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.1rem;
}

.rx-gauge-mini__ring {
  position: relative;
  line-height: 0;
}

.rx-gauge-mini svg { display: block; }

.rx-gauge-mini__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--rx-white);
  line-height: 1;
}
.rx-gauge-mini__value small {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--rx-muted-2);
  font-weight: 500;
  margin-top: 0.2em;
}

.rx-selo {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 4px;
  border: 1px solid currentColor;
  margin-top: 0.5rem;
}
.rx-selo--critico { color: var(--rx-red-bright); }
.rx-selo--risco { color: var(--rx-orange); }
.rx-selo--bom { color: var(--rx-lime); }
.rx-selo--excelente { color: var(--rx-lime-bright); }

.rx-mini-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rx-mini-bar {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 0.5rem;
}

.rx-mini-bar__label {
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  color: var(--rx-muted-2);
  text-transform: uppercase;
  font-weight: 600;
}

.rx-mini-bar__track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rx-mini-bar__fill {
  height: 100%;
  border-radius: 3px;
}

.rx-mini-gaps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rx-mini-gap {
  font-size: 0.68rem;
  color: var(--rx-text);
  background: rgba(190, 17, 49, 0.12);
  border-left: 2px solid var(--rx-red);
  padding: 0.4em 0.6em;
  border-radius: 3px;
}

.rx-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.62rem;
}

.rx-mini-table th {
  font-weight: 600;
  color: var(--rx-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rx-mini-table td {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--rx-muted);
}

.rx-mini-table tr.is-you td {
  color: var(--rx-lime);
  font-weight: 600;
}

.rx-mini-blurname {
  filter: blur(3.5px);
  user-select: none;
  color: var(--rx-muted-2);
}

.rx-mini-locked {
  position: relative;
  margin-top: 0.9rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  background: var(--rx-surface);
  border: 1px dashed var(--rx-border);
  font-size: 0.65rem;
  color: var(--rx-muted);
  text-align: center;
}

/* Badge flutuante "ao vivo" no mockup */
.rx-phone__badge {
  position: absolute;
  top: -14px;
  right: 6px;
  background: var(--rx-red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.7em;
  border-radius: 4px;
  box-shadow: 0 8px 20px -6px rgba(190, 17, 49, 0.7);
  z-index: 3;
}

/* ==========================================================================
   BULLETS — "O QUE VOCÊ RECEBE"
   ========================================================================== */

.rx-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .rx-bullets { grid-template-columns: 1fr; }
}

.rx-bullet {
  position: relative;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-soft);
  border-radius: var(--rx-radius);
  padding: 1.8rem 1.5rem;
}

.rx-bullet__index {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
  margin-bottom: 0.6rem;
  display: block;
}

.rx-bullet__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rx-white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.rx-bullet__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--rx-muted);
}

.rx-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--rx-lime);
  opacity: 0.7;
}
.rx-corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.rx-corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ==========================================================================
   COMO FUNCIONA — PASSOS
   ========================================================================== */

.rx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

@media (max-width: 860px) {
  .rx-steps { grid-template-columns: 1fr; gap: 2rem; }
}

.rx-step {
  position: relative;
}

.rx-step__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #08110a;
  background: var(--rx-lime);
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.rx-steps .rx-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: calc(100% - 0.6rem);
  width: calc(1.5rem + 1.2rem);
  border-top: 1px dashed var(--rx-border);
}

@media (max-width: 860px) {
  .rx-steps .rx-step::after { display: none; }
}

.rx-step__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rx-white);
  margin-bottom: 0.4rem;
}

.rx-step__text {
  font-size: 0.92rem;
  color: var(--rx-muted);
  line-height: 1.6;
}

/* ==========================================================================
   AUTORIDADE
   ========================================================================== */

.rx-authority {
  background: var(--rx-bg-raised);
  border-top: 1px solid var(--rx-border-soft);
  border-bottom: 1px solid var(--rx-border-soft);
}

.rx-authority__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 760px) {
  .rx-authority__grid { grid-template-columns: 1fr; }
}

.rx-authority__mark img {
  height: 34px;
  width: auto;
  opacity: 0.95;
}

.rx-authority__quote {
  border-left: 3px solid var(--rx-red);
  padding-left: 1.2rem;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1.02rem;
  color: var(--rx-text);
}

/* ==========================================================================
   FAQ / ACCORDION
   ========================================================================== */

.rx-faq {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rx-faq-item {
  border: 1px solid var(--rx-border-soft);
  border-radius: var(--rx-radius-sm);
  background: var(--rx-surface);
  overflow: hidden;
}

.rx-faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  color: var(--rx-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  padding: 1.05rem 1.2rem;
}

.rx-faq-item__icon {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}
.rx-faq-item__icon::before,
.rx-faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--rx-lime);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.rx-faq-item__icon::before { width: 12px; height: 2px; }
.rx-faq-item__icon::after { width: 2px; height: 12px; transition: transform 0.25s var(--rx-ease); }
.rx-faq-item[data-open="true"] .rx-faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }

.rx-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--rx-ease);
}

.rx-faq-item__a-inner {
  padding: 0 1.2rem 1.1rem;
  font-size: 0.92rem;
  color: var(--rx-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CTA FINAL / FOOTER
   ========================================================================== */

.rx-cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(190, 17, 49, 0.16), transparent 70%),
    var(--rx-bg-raised);
  border-top: 1px solid var(--rx-border-soft);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.rx-cta-band .rx-h2 { max-width: 24ch; margin-inline: auto; }
.rx-cta-band__ctawrap { display: flex; justify-content: center; margin-top: 1.6rem; }

.rx-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--rx-border-soft);
}

.rx-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.rx-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.rx-footer__brand img {
  height: 18px;
  opacity: 0.85;
}

.rx-disclaimer {
  font-size: 0.78rem;
  color: var(--rx-muted-2);
  max-width: 60ch;
  line-height: 1.6;
}

/* ==========================================================================
   FLUXO (busca > escolha > qualificação > processamento)
   ========================================================================== */

.rx-flow-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.rx-flow-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem) 1.25rem 3rem;
}

.rx-flow-card {
  width: 100%;
  max-width: 560px;
  background: var(--rx-bg-raised);
  border: 1px solid var(--rx-border-soft);
  border-radius: var(--rx-radius);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  position: relative;
  margin-top: clamp(1rem, 4vw, 2rem);
}

.rx-progress-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.rx-progress-dots span {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--rx-border);
  transition: background 0.25s var(--rx-ease);
}
.rx-progress-dots span.is-active { background: var(--rx-lime); }
.rx-progress-dots span.is-done { background: var(--rx-red); }

.rx-flow-step {
  display: none;
}
.rx-flow-step.is-active {
  display: block;
  animation: rx-rise 0.45s var(--rx-ease) forwards;
}

.rx-flow-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  text-transform: uppercase;
  color: var(--rx-white);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.rx-flow-step__subtitle {
  font-size: 0.92rem;
  color: var(--rx-muted);
  margin-bottom: 1.6rem;
  line-height: 1.55;
}

.rx-field {
  margin-bottom: 1.15rem;
  position: relative;
}

.rx-field__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rx-muted);
  margin-bottom: 0.45rem;
}

.rx-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rx-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--rx-white);
  transition: border-color 0.2s, background 0.2s;
}
.rx-input::placeholder { color: var(--rx-muted-2); }
.rx-input:focus {
  outline: none;
  border-color: var(--rx-lime);
  background: rgba(169, 204, 39, 0.05);
}
.rx-input.is-invalid { border-color: var(--rx-red-bright); }

.rx-field__error {
  display: none;
  font-size: 0.76rem;
  color: var(--rx-red-bright);
  margin-top: 0.4rem;
}
.rx-field.is-invalid .rx-field__error { display: block; }

.rx-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0c0c0d;
  border: 1px solid var(--rx-border);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  display: none;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.7);
}
.rx-autocomplete.is-open { display: block; }
.rx-autocomplete__item {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--rx-text);
  cursor: pointer;
}
.rx-autocomplete__item:hover,
.rx-autocomplete__item.is-highlighted {
  background: rgba(169, 204, 39, 0.12);
  color: var(--rx-lime);
}

.rx-link-alt {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--rx-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
}
.rx-link-alt:hover { color: var(--rx-lime); }

.rx-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rx-radio-pill {
  position: relative;
}
.rx-radio-pill input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  margin: 0;
}
.rx-radio-pill label {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border);
  font-size: 0.85rem;
  color: var(--rx-muted);
  transition: all 0.18s var(--rx-ease);
  white-space: nowrap;
}
.rx-radio-pill input:checked + label {
  border-color: var(--rx-lime);
  color: var(--rx-lime);
  background: rgba(169, 204, 39, 0.1);
}
.rx-radio-pill input:focus-visible + label {
  outline: 2px solid var(--rx-lime);
  outline-offset: 2px;
}

.rx-candidates {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.rx-candidate {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rx-border-soft);
  border-radius: 10px;
  text-align: left;
  width: 100%;
  color: inherit;
  transition: border-color 0.18s, background 0.18s;
}
.rx-candidate:hover,
.rx-candidate:focus-visible {
  border-color: var(--rx-lime);
  background: rgba(169, 204, 39, 0.06);
}

.rx-candidate__logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--rx-bg-raised);
  border: 1px solid var(--rx-border-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--rx-muted-2);
}
.rx-candidate__logo img { width: 100%; height: 100%; object-fit: cover; }

.rx-candidate__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rx-candidate__name {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--rx-white);
  line-height: 1.25;
}
.rx-candidate__meta {
  display: block;
  font-size: 0.78rem;
  color: var(--rx-muted-2);
  margin-top: 0.2rem;
  line-height: 1.3;
}
.rx-candidate__rating {
  display: block;
  font-size: 0.8rem;
  color: var(--rx-orange);
  margin-top: 0.3rem;
  font-weight: 600;
}

@media (max-width: 400px) {
  .rx-candidate__cta { display: none; }
}

.rx-candidate__cta {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rx-lime);
  border: 1px solid var(--rx-lime);
  border-radius: 999px;
  padding: 0.4em 0.8em;
}

/* Processamento */

.rx-processing {
  text-align: center;
  padding-block: 1rem;
}

.rx-processing__ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.rx-processing__ring svg { animation: rx-spin 1.6s linear infinite; }
@keyframes rx-spin { to { transform: rotate(360deg); } }

/* Barra de porcentagem (curva ease-out, ~120s) — indicador principal de
   progresso, ver docs/mudancas-v2.md item 4. Não mostra número (nem tempo,
   nem %); só o preenchimento visual. */
.rx-processing__pct-track {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 1.6rem 0 0.6rem;
}
.rx-processing__pct-fill {
  height: 100%;
  width: 0%;
  background: var(--rx-lime);
  border-radius: 5px;
  transition: width 0.3s linear;
}

/* Barra indeterminada (enche e volta, acompanha a linha narrativa da etapa). */
.rx-processing__bar-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 0 0 1rem;
}
.rx-processing__bar-fill {
  height: 100%;
  width: 4%;
  background: linear-gradient(90deg, var(--rx-red), var(--rx-lime));
  border-radius: 2px;
  transition: width 0.5s var(--rx-ease);
}

.rx-processing__lines {
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rx-processing__line {
  font-size: 0.92rem;
  color: var(--rx-text);
  animation: rx-rise 0.4s var(--rx-ease);
}

.rx-processing__foot {
  font-size: 0.78rem;
  color: var(--rx-muted-2);
  margin-top: 1rem;
}

.rx-processing__error {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--rx-red);
  border-radius: 8px;
  background: rgba(190,17,49,0.08);
  font-size: 0.88rem;
  color: var(--rx-text);
}
.rx-processing__error.is-visible { display: block; }

.rx-back-btn {
  background: none;
  border: 0;
  color: var(--rx-muted);
  font-size: 0.85rem;
  padding: 0;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.rx-back-btn:hover { color: var(--rx-lime); }

/* Overlay de processamento da busca (etapa 1) — cobre o card inteiro
   enquanto a chamada POST /buscar está em andamento. */
.rx-busca-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 1.5rem;
  background: rgba(6, 6, 6, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--rx-radius);
  text-align: center;
}
.rx-busca-overlay.is-visible { display: flex; }

.rx-hourglass {
  width: 60px;
  height: 60px;
  animation: rx-hourglass-flip 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes rx-hourglass-flip {
  0%, 32% { transform: rotate(0deg); }
  50%, 82% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rx-hourglass { animation: none; }
}

.rx-busca-overlay__text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--rx-white);
  max-width: 26ch;
  line-height: 1.5;
}

/* ==========================================================================
   RESULTADO
   ========================================================================== */

.rx-result-shell { padding-bottom: 4rem; }

.rx-result-head {
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.rx-result-head__eyebrow {
  font-size: 0.78rem;
  color: var(--rx-muted);
  margin-bottom: 0.6rem;
}

.rx-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-soft);
  border-radius: var(--rx-radius);
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.rx-gauge-wrap__label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-muted);
  margin-bottom: 1rem;
}

.rx-gauge-big { position: relative; }
.rx-gauge-big__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rx-gauge-big__number {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--rx-white);
}
.rx-gauge-big__of100 {
  font-size: 0.85rem;
  color: var(--rx-muted-2);
  margin-top: 0.2rem;
}

.rx-gauge-wrap__selotext {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--rx-muted);
  max-width: 34ch;
  line-height: 1.5;
}

.rx-dims {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.rx-dim {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rx-dim__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.rx-dim__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rx-text);
}

.rx-dim__desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--rx-muted-2);
  max-width: 52ch;
}

.rx-dim__track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.rx-dim__fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 1s var(--rx-ease);
}

.rx-dim__score {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--rx-white);
}

.rx-gaps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rx-gap {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: rgba(190, 17, 49, 0.08);
  border-left: 3px solid var(--rx-red);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--rx-text);
  line-height: 1.5;
}

.rx-gap__tag {
  flex: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rx-red-bright);
  border: 1px solid var(--rx-red-bright);
  border-radius: 4px;
  padding: 0.15em 0.5em;
  margin-top: 0.1em;
}

.rx-locked-section {
  position: relative;
}

.rx-locked-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rx-locked-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: var(--rx-surface);
  border: 1px solid var(--rx-border-soft);
  border-radius: 8px;
}

.rx-locked-item__icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rx-muted-2);
  font-size: 0.85rem;
}

.rx-locked-item__body { flex: 1; min-width: 0; }

.rx-locked-item__title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--rx-white);
  margin-bottom: 0.3rem;
}

.rx-locked-item__fake {
  filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
  color: var(--rx-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  pointer-events: none;
}

.rx-locked-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--rx-lime);
  border-radius: 8px;
  background: rgba(169, 204, 39, 0.06);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--rx-lime);
  text-align: center;
}

.rx-locked-banner__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rx-locked-banner__link:hover { color: var(--rx-lime-bright); }

.rx-lock-icon {
  width: 16px; height: 16px;
  flex: none;
}

.rx-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rx-border-soft);
  border-radius: var(--rx-radius);
  background: var(--rx-surface);
}

.rx-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.rx-table th {
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rx-muted);
  border-bottom: 1px solid var(--rx-border);
  white-space: nowrap;
}

.rx-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rx-border-soft);
  color: var(--rx-text);
  white-space: nowrap;
}

.rx-table tr:last-child td { border-bottom: 0; }

.rx-table tr.is-you {
  background: rgba(169, 204, 39, 0.09);
}
.rx-table tr.is-you td:first-child {
  color: var(--rx-lime);
  font-weight: 700;
  position: relative;
}

.rx-table__blurname {
  filter: blur(4.5px);
  user-select: none;
  -webkit-user-select: none;
  display: inline-block;
}

.rx-table__legend {
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: var(--rx-muted-2);
}

.rx-result-cta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(31, 138, 61, 0.14), transparent 70%),
    var(--rx-bg-raised);
  border: 1px solid var(--rx-border-soft);
  border-radius: var(--rx-radius);
  padding: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
}

.rx-result-cta__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--rx-white);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.rx-result-cta__text {
  font-size: 0.96rem;
  color: var(--rx-muted);
  max-width: 56ch;
  margin: 0 auto 0.9rem;
  line-height: 1.6;
}

.rx-result-cta__ctawrap {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

.rx-loading-state, .rx-error-state {
  text-align: center;
  padding: 5rem 1.5rem;
}
.rx-error-state { display: none; }

/* ==========================================================================
   UTILIDADES DE GRID DE SEÇÃO
   ========================================================================== */

.rx-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.rx-mt-lg { margin-top: clamp(2rem, 5vw, 3rem); }

/* noindex badge (dev-only visual cue removida em produção) */
