/* Raio-X de Canal — public diagnostic plate */

.raiox-main {
  --raiox-ink: var(--text-main);
  --raiox-ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5.5rem, 11vh, 7.2rem) 0 clamp(3rem, 7vw, 5rem);
}

.raiox-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
}

html.js .raiox-hero > .lp-section-label,
html.js .raiox-hero > .raiox-title,
html.js .raiox-hero > .raiox-sub,
html.js .raiox-hero > .raiox-console,
html.js .raiox-hero > .raiox-hint,
html.js .raiox-hero > .raiox-steps {
  opacity: 0;
  transform: translateY(12px);
  animation: raioxIn 0.78s var(--raiox-ease) forwards;
}
html.js .raiox-hero > .lp-section-label { animation-delay: 40ms; }
html.js .raiox-hero > .raiox-title { animation-delay: 110ms; }
html.js .raiox-hero > .raiox-sub { animation-delay: 190ms; }
html.js .raiox-hero > .raiox-console { animation-delay: 280ms; }
html.js .raiox-hero > .raiox-hint { animation-delay: 360ms; }
html.js .raiox-hero > .raiox-steps { animation-delay: 430ms; }

.raiox-title {
  font-size: clamp(2.05rem, 5.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0.7rem auto 1rem;
  text-wrap: pretty;
}

.raiox-title-lead {
  display: block;
}

.raiox-em {
  display: block;
  margin-top: 0.1em;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: color-mix(in srgb, var(--text-main) 58%, transparent);
  font-synthesis: none;
}

html.js .raiox-em {
  clip-path: inset(0 100% 0 0);
  animation: raioxWipe 0.95s var(--raiox-ease) 0.32s forwards;
}

.raiox-sub {
  max-width: 38rem;
  margin: 0 auto 1.85rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--text-main) 72%, var(--muted, #71717a));
  text-wrap: pretty;
}

.raiox-console {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.7rem;
  border-radius: 18px;
  background: var(--fc-card);
  box-shadow: 0 0 0 1px var(--fc-border);
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}

.raiox-console:focus-within {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text-main) 28%, var(--fc-border)),
    0 18px 40px -28px color-mix(in srgb, var(--text-main) 45%, transparent);
}

.raiox-crop {
  position: absolute;
  inset: 9px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top left / 12px 1.5px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top left / 1.5px 12px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top right / 12px 1.5px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top right / 1.5px 12px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom left / 12px 1.5px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom left / 1.5px 12px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom right / 12px 1.5px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom right / 1.5px 12px no-repeat;
  opacity: 0.4;
  animation: raioxCropBreath 3.6s ease-in-out 1.15s infinite;
}

.raiox-console:focus-within .raiox-crop,
.raiox-console.is-busy .raiox-crop {
  opacity: 0.62;
  animation: none;
}

.raiox-ticks {
  position: absolute;
  inset: 12px 6px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--raiox-ink) 0 1px,
      transparent 1px 5px,
      var(--raiox-ink) 5px 7px,
      transparent 7px 16px
    ) left / 5px 100% no-repeat,
    repeating-linear-gradient(
      to bottom,
      var(--raiox-ink) 0 1px,
      transparent 1px 5px,
      var(--raiox-ink) 5px 7px,
      transparent 7px 16px
    ) right / 5px 100% no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  transition: opacity 0.35s ease;
}

.raiox-console.is-busy .raiox-ticks,
.raiox-console:focus-within .raiox-ticks {
  opacity: 0.26;
}

.raiox-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  top: -18%;
  height: 42px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--text-main) 8%, transparent) 36%,
    color-mix(in srgb, var(--text-main) 22%, transparent) 50%,
    color-mix(in srgb, var(--text-main) 8%, transparent) 64%,
    transparent
  );
  opacity: 0;
  animation: raioxScan 2.5s var(--raiox-ease) 0.85s 1;
}

.raiox-console.is-busy .raiox-beam {
  animation: raioxScan 1.4s ease-in-out infinite;
}

.raiox-well {
  position: relative;
  z-index: 2;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text-main) 3.5%, var(--fc-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-main) 6%, var(--fc-border));
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.raiox-console:focus-within .raiox-well {
  background: color-mix(in srgb, var(--text-main) 5%, var(--fc-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-main) 14%, var(--fc-border));
}

.raiox-form {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
  min-height: 3.35rem;
  padding: 0.12rem 0.2rem;
}

.raiox-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 1.15rem;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.raiox-input::placeholder {
  color: var(--muted, #71717a);
}

.raiox-submit {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
  min-width: 9.5rem;
}

.raiox-submit-busy,
.raiox-form.is-busy .raiox-submit-label {
  display: none;
}

.raiox-form.is-busy .raiox-submit-busy {
  display: inline;
}

.raiox-submit:disabled {
  opacity: 0.72;
  cursor: progress;
}

.raiox-hint,
.raiox-error {
  margin: 0.95rem auto 0;
  font-size: 0.85rem;
  min-height: 1.3em;
  color: var(--muted, #71717a);
}

.raiox-error {
  color: #ef4444;
}

.raiox-steps {
  counter-reset: rx;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  list-style: none;
  position: relative;
  max-width: 640px;
  margin: 1.45rem auto 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--muted, #71717a);
}

.raiox-steps::before,
.raiox-steps::after {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: 16%;
  height: 1px;
  pointer-events: none;
}

.raiox-steps::before {
  right: 16%;
  background: var(--fc-border);
}

.raiox-steps::after {
  width: 0;
  max-width: 68%;
  background: var(--text-main);
  transition: width 0.55s var(--raiox-ease);
}

.raiox-steps[data-progress="1"]::after { width: 22.6%; }
.raiox-steps[data-progress="2"]::after { width: 45.3%; }
.raiox-steps[data-progress="3"]::after { width: 68%; }

.raiox-steps li {
  counter-increment: rx;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.raiox-steps li::before {
  content: counter(rx, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted, #71717a);
  background: var(--fc-card);
  box-shadow: 0 0 0 1px var(--fc-border);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.raiox-steps li.is-active {
  color: var(--text-main);
}

.raiox-steps li.is-active::before {
  color: var(--bg-0);
  background: var(--text-main);
  box-shadow: none;
  transform: scale(1.08);
  animation: raioxPulse 1.1s ease-in-out infinite;
}

.raiox-steps li.is-done {
  color: var(--text-main);
}

.raiox-steps li.is-done::before {
  color: var(--bg-0);
  background: var(--fc-green);
  box-shadow: none;
}

.raiox-steps[hidden],
.raiox-hint[hidden],
.raiox-error[hidden] {
  display: none;
}

.raiox-main.is-scanning .raiox-console {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text-main) 22%, var(--fc-border));
}

.raiox-main.is-scanning .raiox-em {
  color: var(--text-main);
}

/* ── Report ── */
.raiox-report {
  display: grid;
  gap: 1rem;
}

.raiox-card {
  background: var(--fc-card);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--fc-border);
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
}

.raiox-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.raiox-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--fc-border);
}

.raiox-channel-name {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  letter-spacing: -0.02em;
}

.raiox-channel-name a {
  color: inherit;
  text-decoration: none;
}

.raiox-channel-name a:hover {
  text-decoration: underline;
}

.raiox-channel-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--muted, #71717a);
}

.raiox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
}

.raiox-tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--text-main) 6%, transparent);
  color: var(--text-main);
}

.raiox-tag--ok {
  background: var(--fc-green-soft);
  color: var(--fc-green);
}

.raiox-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.raiox-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.raiox-metric--money {
  grid-column: 1 / -1;
}

.raiox-metric-label {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted, #71717a);
}

.raiox-metric-value {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.raiox-metric--money .raiox-metric-value {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(2rem, 5.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.raiox-metric-note,
.raiox-muted {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted, #71717a);
}

.raiox-disclaimer {
  margin: -0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted, #71717a);
}

.raiox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.raiox-block h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.raiox-block h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #71717a);
}

.raiox-block p {
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.raiox-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.raiox-list li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.5;
}

.raiox-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--text-main);
}

.raiox-list--ok li::before { background: var(--fc-green); }
.raiox-list--gap li::before { background: #f59e0b; }

.raiox-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.raiox-video {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
}

.raiox-video img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: var(--fc-border);
  transition: transform 0.45s var(--raiox-ease);
}

.raiox-video:hover img {
  transform: scale(1.03);
}

.raiox-video-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.raiox-video-views {
  font-size: 0.8rem;
  color: var(--muted, #71717a);
}

.raiox-idea-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.raiox-idea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--fc-border);
  transition: box-shadow 0.25s ease;
}

.raiox-idea:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-main) 22%, var(--fc-border));
}

.raiox-idea-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.raiox-idea-copy strong {
  line-height: 1.35;
}

.raiox-idea-format {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #71717a);
}

.raiox-idea-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.raiox-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.raiox-share h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.raiox-share .raiox-muted {
  margin: 0;
}

.raiox-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.raiox-share-btn {
  min-width: 6.5rem;
  justify-content: center;
}

.raiox-final {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  text-align: center;
  padding: clamp(1.6rem, 4vw, 2.4rem) 1.25rem;
}

.raiox-final::before {
  content: '';
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top left / 10px 1px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top left / 1px 10px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top right / 10px 1px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) top right / 1px 10px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom left / 10px 1px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom left / 1px 10px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom right / 10px 1px no-repeat,
    linear-gradient(var(--raiox-ink), var(--raiox-ink)) bottom right / 1px 10px no-repeat;
  opacity: 0.22;
}

.raiox-final h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.raiox-final p {
  margin: 0 auto 1.15rem;
  max-width: 34rem;
}

html.js [data-raiox-reveal] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--raiox-ease),
    transform 0.7s var(--raiox-ease),
    filter 0.7s var(--raiox-ease);
}

html.js [data-raiox-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes raioxIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes raioxScan {
  0% { top: -18%; opacity: 0; }
  14% { opacity: 1; }
  100% { top: 78%; opacity: 0; }
}

@keyframes raioxWipe {
  to { clip-path: inset(0 -0.25em 0 0); }
}

@keyframes raioxCropBreath {
  0%, 100% { opacity: 0.34; }
  50% { opacity: 0.56; }
}

@keyframes raioxPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

@media (max-width: 767px) {
  .raiox-title {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .raiox-em {
    font-size: clamp(1.32rem, 6.4vw, 1.7rem);
    letter-spacing: 0;
    line-height: 1.2;
  }

  .raiox-input {
    font-size: 0.92rem;
  }

  .raiox-final h2 {
    font-size: clamp(1.22rem, 6vw, 1.5rem);
  }

  .raiox-form {
    flex-direction: column;
    min-height: 0;
  }

  .raiox-input {
    min-height: 3rem;
  }

  .raiox-submit {
    width: 100%;
    justify-content: center;
    min-height: 2.9rem;
  }

  .raiox-steps {
    gap: 0.75rem 0.4rem;
    font-size: 0.74rem;
  }

  .raiox-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raiox-grid,
  .raiox-top {
    grid-template-columns: 1fr;
  }

  .raiox-idea,
  .raiox-share {
    flex-direction: column;
    align-items: stretch;
  }

  .raiox-idea-cta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .raiox-hero > .lp-section-label,
  html.js .raiox-hero > .raiox-title,
  html.js .raiox-hero > .raiox-sub,
  html.js .raiox-hero > .raiox-console,
  html.js .raiox-hero > .raiox-hint,
  html.js .raiox-hero > .raiox-steps,
  html.js [data-raiox-reveal],
  html.js .raiox-em,
  .raiox-beam,
  .raiox-crop,
  .raiox-steps li.is-active::before,
  .raiox-video img {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  .raiox-crop {
    opacity: 0.4;
  }

  .raiox-beam {
    opacity: 0;
  }
}
