/* ══════════════════════════════════════════
   Eco — Site público
   Depende de tokens.css + base.css.
   ══════════════════════════════════════════ */

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(13, 15, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.01em;
}

.brand:hover { color: var(--text-bright); }

.brand img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 8px rgba(74, 124, 89, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.nav-links a {
  color: var(--text-dim);
  position: relative;
  padding-block: 0.35rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] { color: var(--text-bright); }

.nav-links a:hover::after,
.nav-links a[aria-current='page']::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── Hero ── */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 90vw);
  height: 620px;
  background: radial-gradient(ellipse at center, rgba(74, 124, 89, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.pre-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, var(--text-bright) 25%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  max-width: 34rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.hero-meta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.14);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(100%, 430px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  animation: float 7s var(--ease) infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
}

/* ── Métricas ── */
.stat-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(180deg, var(--surface-raised), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-card {
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius);
}

.stat-card + .stat-card { border-left: 1px solid var(--border); }

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent-hover);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--accent-hover);
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-hover);
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse-dot 2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(90, 147, 105, 0.45); }
  50% { opacity: 0.7; box-shadow: 0 0 0 7px rgba(90, 147, 105, 0); }
}

/* ── Cards de recursos ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--bg-2), rgba(18, 21, 16, 0.65));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  margin-bottom: 1rem;
}

.feature-card h3 { margin-bottom: 0.4rem; }

.feature-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}

.feature-card .tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hover);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
}

/* ── Split (texto + ilustração) ── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split.reverse > .split-text { order: 2; }

.split-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.split-text h2 { margin-bottom: 1rem; }

.split-text p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ── Chat showcase ── */
.chat-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 620px;
  margin-inline: auto;
}

.chat-bubble {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 88%;
}

.chat-bubble.eco { align-self: flex-start; }

.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.chat-bubble.eco .chat-avatar {
  background: var(--accent-dim);
  color: var(--text-bright);
}

.chat-bubble.user .chat-avatar {
  background: var(--bg-3);
  color: var(--text-dim);
}

.chat-body {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

.chat-bubble.eco .chat-body {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.chat-bubble.user .chat-body {
  background: var(--bg-3);
  border: 1px solid var(--border);
  text-align: right;
}

.chat-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-hover);
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.chat-bubble.user .chat-name { color: var(--text-faint); }

.showcase-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ── Test chat widget ── */
.chat-widget {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  max-width: 980px;
  margin-inline: auto;
}

.chat-widget-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.chat-widget-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-widget-messages {
  flex: 1;
  min-height: 300px;
  max-height: 360px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-welcome {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-dim);
}

.chat-welcome img { flex-shrink: 0; }

.chat-welcome span {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.55;
}

.chat-widget-msg {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  max-width: 85%;
  overflow-wrap: break-word;
  font-size: 0.85rem;
  line-height: 1.55;
}

.chat-widget-msg.msg-user {
  background: var(--bg-3);
  margin-left: auto;
  border-right: 2px solid var(--accent);
  color: var(--text-dim);
}

.chat-widget-msg.msg-eco {
  background: var(--accent-soft);
  margin-right: auto;
  border-left: 2px solid var(--accent-dim);
  color: var(--text);
}

.msg-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}

.chat-widget-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.chat-widget-form label { display: none; }

.chat-widget-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color var(--duration) var(--ease);
}

.chat-widget-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-widget-form input:disabled { opacity: 0.55; }

.chat-widget-form button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.65rem 1.15rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  white-space: nowrap;
}

.chat-widget-form button:hover:not(:disabled) { background: var(--accent-hover); }
.chat-widget-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-widget-footer {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.chat-remaining {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.chat-remaining.low { color: #d98282; }

.test-chat-cta {
  text-align: center;
  padding-top: 2rem;
}

.test-chat-cta p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.test-chat-cta strong { color: var(--accent-hover); }

/* ── Planos ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--bg-2), rgba(18, 21, 16, 0.65));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}

.price-card.highlight {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(74, 124, 89, 0.12), var(--bg-2) 55%);
}

.price-card.highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.price-card .plan-badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
}

.price-header { margin-bottom: 1.25rem; }

.price-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price-header h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.price-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-hover);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.price-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.15rem;
}

.price-features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.price-features li {
  position: relative;
  padding-left: 1.1rem;
}

.price-features li::before {
  content: '·';
  position: absolute;
  left: 0.15rem;
  color: var(--accent-hover);
  font-weight: 700;
}

.price-card .plan-action {
  margin-top: auto;
  padding-top: 1.25rem;
}

.plan-cta-note {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

.plan-status {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.plan-status[data-state='warn'] { color: #d8b26a; }

/* ── Checkout PIX (dialog) ── */
/* O reset global (margin: 0) anula o `margin: auto` que centraliza o dialog. */
.checkout-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  height: fit-content;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #121510;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.checkout-dialog::backdrop {
  background: rgba(5, 7, 4, 0.78);
  backdrop-filter: blur(3px);
}

.checkout-shell {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
}

.checkout-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.checkout-close:hover,
.checkout-close:focus-visible {
  color: var(--text-bright);
  border-color: var(--border-strong);
}

.checkout-step h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0.35rem 0 0.75rem;
}

.checkout-lead {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.checkout-field {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.checkout-dialog select,
.checkout-dialog input,
.checkout-code {
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.checkout-dialog select:focus-visible,
.checkout-dialog input:focus-visible,
.checkout-code:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 1px;
}

.checkout-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  resize: vertical;
  word-break: break-all;
}

.checkout-note,
.checkout-countdown {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.checkout-error {
  color: #e08b7f;
  font-size: 0.84rem;
  margin-bottom: 1rem;
}

.checkout-amount {
  font-family: var(--font-mono);
  color: var(--text-bright);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.checkout-qr {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.25rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: #fff;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.checkout-status {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.checkout-done .btn { margin-top: 0.5rem; }

@media (max-width: 480px) {
  .checkout-shell { padding: 1.75rem 1.25rem 1.25rem; }
  .checkout-qr { width: 170px; height: 170px; }
}

/* ── Passos ── */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease);
}

.step:hover { border-color: var(--border-accent); }

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.step h4 { margin-bottom: 0.2rem; }

.step p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 0.6rem;
  max-width: 760px;
}

.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] { border-color: var(--border-accent); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--accent-hover);
  font-size: 1.1rem;
  transition: transform var(--duration) var(--ease);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 64ch;
}

/* ── CTA final ── */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74, 124, 89, 0.18), transparent 65%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-band h2 { margin-bottom: 0.75rem; }

.cta-band p {
  color: var(--text-dim);
  max-width: 48ch;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
}

.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ── Status ── */
.status-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.status-grid .stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
}

.status-grid .stat-card + .stat-card { border-left: 1px solid var(--border); }

.status-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.status-note strong { color: var(--text); }

/* ── Privacidade / Termos ── */
.privacy-page { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.privacy-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.privacy-page .updated {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.privacy-page h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.privacy-page h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-page p,
.privacy-page li {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  max-width: 68ch;
}

.privacy-page ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.privacy-page li { margin-bottom: 0.4rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.site-footer a { color: var(--text-faint); }
.site-footer a:hover { color: var(--text); }

/* ── CTA flutuante (mobile) ── */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-floating);
  display: none;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: rgba(13, 15, 12, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.floating-cta .btn {
  width: 100%;
  max-width: 420px;
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  .hero-inner,
  .split,
  .chat-widget {
    grid-template-columns: 1fr;
  }

  .split.reverse > .split-text { order: 0; }

  .hero-art { order: -1; }
  .hero-art img { width: min(70%, 320px); }
  .chat-widget-illustration { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-card + .stat-card {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .chat-bubble { max-width: 96%; }
  .chat-widget-messages { min-height: 240px; max-height: 300px; }
  .site-footer-inner { flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; }
  .floating-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
  .nav-actions .btn { padding: 0.6rem 0.9rem; font-size: 0.72rem; }
}

@media (min-width: 641px) {
  .floating-cta { display: none; }
}

/* ── Área do dono (/entrar, /conta) ── */
.account-hero { padding-bottom: clamp(2rem, 5vw, 3rem); }

.auth-card {
  max-width: 540px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-login { width: 100%; }

.auth-help {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.65;
  text-align: left;
}

.auth-help code { white-space: normal; }

.notice {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: left;
}

.notice[data-kind='error'] {
  border-color: rgba(220, 90, 90, 0.4);
  background: rgba(220, 90, 90, 0.08);
  color: #f0b8b8;
}

.notice[data-kind='warning'] {
  border-color: rgba(230, 180, 80, 0.35);
  background: rgba(230, 180, 80, 0.08);
  color: #ead6a8;
}

.notice .btn { margin-top: 0.75rem; }

.plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-hover);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.55;
}

.plan-banner[hidden] { display: none; }

.plan-banner.is-warning {
  border-color: rgba(230, 180, 80, 0.35);
  border-left-color: #e6b450;
  background: rgba(230, 180, 80, 0.08);
  color: #ead6a8;
}

.plan-banner .btn { flex-shrink: 0; }

.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-page { padding-top: clamp(2rem, 5vw, 3.5rem); }

.account-loading {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  flex-shrink: 0;
}

.account-identity { flex: 1; min-width: 200px; }

.account-name { font-size: clamp(2rem, 4vw, 2.75rem); }

.account-sub { color: var(--text-dim); font-size: 0.9rem; }

.boost-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.boost-card h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }

.boost-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 60ch;
}

.boost-copy code { white-space: normal; }

.boost-days {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
}

.boost-days strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent-hover);
}

.account-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.account-section-head h2 { margin-bottom: 0; }
.account-section-head .section-desc { font-size: 0.85rem; }

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.guild-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.guild-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.guild-card.is-muted { opacity: 0.72; }

.guild-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.guild-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.guild-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-4);
  border: 1px solid var(--border);
  color: var(--accent-hover);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.guild-titles h3 { margin: 0; font-size: 1.05rem; }
.guild-members { color: var(--text-faint); font-size: 0.78rem; }

.guild-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.chip-active {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.chip-trial {
  border-color: rgba(230, 180, 80, 0.35);
  color: #e0c07a;
}

.chip-muted { color: var(--text-faint); }

.guild-note {
  margin-top: auto;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.guild-card .btn {
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem;
}

.empty-state {
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state h3 { margin-bottom: 0.5rem; }

.empty-state p {
  margin: 0 auto 1.25rem;
  max-width: 50ch;
  color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .account-profile { align-items: flex-start; }
  .account-profile .btn { margin-left: auto; }
  .guilds-grid { grid-template-columns: 1fr; }
  .boost-days { text-align: left; }
}

/* ── Painel do servidor (/conta/servidores/:id) ── */

.server-page { padding-top: clamp(2rem, 5vw, 3.5rem); }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.back-link:hover { color: var(--text-bright); }

.server-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.server-icon {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.server-head-copy h1 {
  margin: 0.15rem 0 0.3rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 0.5rem;
}

.tab-btn {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-bright); }

.tab-btn[aria-selected="true"] {
  color: var(--text-bright);
  border-bottom-color: var(--accent-hover);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.tab-panel { padding-top: 1.75rem; }

.owner-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.owner-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-bright);
}

.owner-form { max-width: 760px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.form-field textarea { resize: vertical; min-height: 2.75rem; }

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 1px;
}

.form-hint {
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-field.is-locked label { opacity: 0.6; }

.form-field.is-locked input:disabled,
.form-field.is-locked select:disabled,
.form-field.is-locked textarea:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-lock {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #d8b46a;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-status { font-size: 0.82rem; color: var(--text-dim); }
.form-status.is-ok { color: #7fbf8f; }
.form-status.is-error { color: #e08a8a; }

.btn-sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
}

.reward-fieldset {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.reward-fieldset legend {
  padding: 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.level-rewards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.level-reward {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.level-reward input,
.level-reward select {
  padding: 0.5rem 0.6rem;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.rr-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.rr-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.rr-emoji {
  width: 1.6rem;
  text-align: center;
  font-size: 1.15rem;
}

.rr-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.rr-copy strong { font-size: 0.88rem; }
.rr-label { color: var(--text-faint); font-size: 0.75rem; }

.rr-add { margin-top: 0.5rem; }

.news-list {
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.news-date {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.preview-reply {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .server-head { align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .tab-btn { padding: 0.6rem 0.65rem; font-size: 0.78rem; }
  .level-reward { grid-template-columns: 76px 1fr; }
  .level-reward .btn { grid-column: 1 / -1; justify-self: start; }
}
