/* ============================================================
   RXSpot landing — estilos específicos (sobre o RXCore)
   Fase 3 da separação visual (Set 2026): identidade da marca-mãe.
   Cores e fontes só por variáveis do tema (css/theme.rxspot.css);
   cobalto só em acções e em "Spot"; cada produto com a sua cor
   dentro do seu cartão.
   ============================================================ */

/* ── Nav ── */
.rx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--rs-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rx-border);
}

.rx-nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--rx-font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--rx-text-1);
  text-decoration: none;
}
.nav-logo span { color: var(--rx-accent-text); }

.rx-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.rx-nav-links a {
  font-size: 0.875rem;
  color: var(--rx-text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.rx-nav-links a:hover { color: var(--rx-text-1); }
/* Botão de destaque do menu (vence a regra dos links acima). */
.rx-nav-links a.rx-nav-cta {
  padding: 0.4375rem 0.875rem;
  border-radius: 8px;
  background: var(--rx-accent);
  color: var(--rx-accent-contrast);
  font-weight: 700;
  transition: background 0.15s;
}
.rx-nav-links a.rx-nav-cta:hover { background: var(--rx-accent-hover); color: var(--rx-accent-contrast); }

/* ── Hero ── */
.hero {
  /* 900px de conteúdo + o padding lateral, para alinhar com .section-inner
     (que tem os 900px por dentro do padding da secção). Texto à esquerda,
     janela de exemplo à direita (empilha em ecrãs estreitos). */
  max-width: calc(900px + 3rem);
  margin: 0 auto;
  padding: 9rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}

/* ── Janela de exemplo (topo) ── */
.hero-shot {
  border: 1px solid var(--rx-border);
  border-radius: 14px;
  background: var(--rx-surface-1);
  box-shadow: var(--rs-shadow);
  overflow: hidden;
  animation: fadeUp 0.7s 0.3s ease both;
}
.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--rx-border);
  background: var(--rx-surface-2);
}
.shot-dots { display: flex; gap: 0.375rem; }
.shot-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--rx-border-strong); }
.shot-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-text-3);
}
.shot-item {
  --p: var(--rx-accent);
  padding: 1rem 1.125rem 1.125rem;
  border-left: 3px solid var(--p);
}
.shot-item + .shot-item { border-top: 1px solid var(--rx-border); }
.shot-item--imo { --p: var(--rs-imo); }
.shot-item--cr  { --p: var(--rs-cr); }
.shot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.shot-name {
  font-family: var(--rx-font-display);
  font-weight: 850;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--rx-text-1);
}
.shot-name span { color: var(--p); }
.shot-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-text-3);
}
.shot-value {
  margin-top: 0.375rem;
  font-family: var(--rx-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.shot-value small { font-size: 0.8125rem; font-weight: 600; opacity: 0.7; }
.shot-value--good { color: var(--rx-good); }
.shot-value--okay { color: var(--rx-warn); }
.shot-meta { margin-top: 0.125rem; font-size: 0.8125rem; color: var(--rx-text-3); }
.shot-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.875rem 0 0;
}
.shot-scores > div {
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--rx-border);
  border-radius: 8px;
  background: var(--rx-surface-0);
}
.shot-scores dt { font-size: 0.6875rem; color: var(--rx-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-scores dd { margin: 0.125rem 0 0; font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.shot-scores .is-good { color: var(--rx-good); }
.shot-scores .is-okay { color: var(--rx-warn); }

.hero-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rx-text-3);
  animation: fadeUp 0.6s ease both;
}

h1 {
  font-family: var(--rx-font-display);
  font-weight: 850;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--rx-text-1);
  max-width: 760px;
  margin: 0;
  text-wrap: balance;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 em { font-style: normal; color: var(--rx-accent-text); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--rx-text-2);
  max-width: 46ch;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

#hero-cta-wrap { animation: fadeUp 0.6s 0.3s ease both; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rx-accent);
  color: var(--rx-accent-contrast);
  border: none;
  border-radius: 10px;
  padding: 0.875rem 1.5rem;
  font-family: var(--rx-font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--rx-accent-hover); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 3px; }

/* ── Sections ── */
.section-inner { max-width: 900px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rx-text-3);
  margin-bottom: 0.75rem;
}
/* Número da secção ("01 · Produtos"). */
.section-num { font-variant-numeric: tabular-nums; }
.section-num::after { content: '·'; margin: 0 0.5rem; }

.section-title {
  font-family: var(--rx-font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--rx-text-1);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-body {
  font-size: 1rem;
  color: var(--rx-text-2);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Produtos ── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.product-card {
  --p: var(--rx-accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-radius: 14px;
  padding: 1.625rem 1.5rem 1.5rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--rs-shadow);
  transition: border-color 0.2s, transform 0.2s;
}
/* Faixa no topo com a cor do produto. */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--p);
}
.product-card--imo { --p: var(--rs-imo); }
.product-card--cr  { --p: var(--rs-cr); }
.product-card:hover { border-color: var(--rx-border-strong); transform: translateY(-2px); }
.product-card:focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 3px; }

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-name {
  font-family: var(--rx-font-display);
  font-weight: 850;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
  color: var(--rx-text-1);
}
.product-name span { color: var(--p); }

.product-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--rx-border-strong);
  color: var(--rx-text-2);
}

.product-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rx-text-2);
}

.product-body {
  font-size: 0.9375rem;
  color: var(--rx-text-3);
  line-height: 1.55;
  flex: 1;
}

/* Factos de cada produto em caixas (valor em cima, explicação por baixo). */
.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.25rem 0 0;
}
.product-facts > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--rx-border);
  border-radius: 10px;
  background: var(--rx-surface-0);
}
.product-facts dd {
  order: -1;
  margin: 0;
  font-family: var(--rx-font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--rx-text-1);
}
.product-facts dt { margin-top: 0.125rem; font-size: 0.75rem; line-height: 1.35; color: var(--rx-text-3); }

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rx-text-1);
}
.product-cta i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p);
}

/* ── Filosofia — princípios separados por fios (não são uma sequência,
   por isso sem numeração) ── */
.how {
  border-top: 1px solid var(--rx-border);
  border-bottom: 1px solid var(--rx-border);
  padding: 5rem 1.5rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
  border-top: 1px solid var(--rx-border);
}

.how-step { padding: 1.5rem 1.5rem 0 0; }
.how-step + .how-step { padding-left: 1.5rem; border-left: 1px solid var(--rx-border); }

.how-step-title {
  font-family: var(--rx-font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--rx-text-1);
  margin-bottom: 0.5rem;
}

.how-step-body { font-size: 0.9375rem; color: var(--rx-text-3); line-height: 1.6; }

/* ── Rodapé: estrutura .site-footer no components.css (rx-core), cores
   --rx-footer-* no tema. O rodapé deste site tem 900px de largura, como
   as secções. ── */
.site-footer-inner { max-width: 900px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-badge, h1, .hero-sub, #hero-cta-wrap, .hero-shot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-step, .how-step + .how-step { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--rx-border); }
  .rx-nav-links { gap: 1.25rem; }
  .hero { padding-top: 7.5rem; padding-bottom: 3.5rem; grid-template-columns: minmax(0, 1fr); }
}
/* Em ecrãs estreitos o botão do menu não cabe ao lado dos 3 links — o
   topo da página tem o mesmo botão logo à vista. */
@media (max-width: 600px) {
  .rx-nav-links a.rx-nav-cta { display: none; }
  .product-facts { grid-template-columns: 1fr 1fr; }
}

/* Entrada falhada a meio (Out 2026) — faixa logo abaixo do menu fixo, com a
   largura do conteúdo. Erro = --rx-bad; cada botão com o "RX" na cor do
   seu produto (a mesma regra dos cartões). */
.auth-error {
  max-width: calc(900px + 3rem);
  margin: calc(60px + 1.25rem) auto 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-left: 4px solid var(--rx-bad);
  border-radius: 12px;
  box-shadow: var(--rs-shadow);
}
.auth-error[hidden] { display: none; }
.auth-error-text { flex: 1 1 22rem; font-size: 0.9375rem; line-height: 1.55; color: var(--rx-text-2); }
.auth-error-text strong { color: var(--rx-text-1); }
.auth-error-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.auth-error-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5625rem 0.875rem;
  border-radius: 10px;
  border: 1px solid var(--rx-border-strong);
  background: var(--rx-surface-0);
  color: var(--rx-text-1);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.auth-error-btn span { color: var(--p); }
.auth-error-btn--imo { --p: var(--rs-imo); }
.auth-error-btn--cr  { --p: var(--rs-cr); }
.auth-error-btn:hover { border-color: var(--p); }
.auth-error-btn:focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 2px; }
/* Com a faixa visível, o topo da secção inicial encolhe (o espaço do menu
   fixo já é dado pela faixa). */
.has-auth-error .hero { padding-top: 2.5rem; }
@media (max-width: 600px) {
  .auth-error { margin-left: 1rem; margin-right: 1rem; }
  .auth-error-actions { width: 100%; }
  .auth-error-btn { flex: 1 1 auto; justify-content: center; }
}
