/* Starlink Brasil - Interface intuitiva e profissional */
:root {
  --bg-dark: #050508;
  --bg-card: #0c0c10;
  --bg-elevated: #12121a;
  --bg-input: #16161d;
  --border: #2a2a35;
  --border-subtle: #1c1c24;
  --text: #f4f4f6;
  --text-muted: #9898a6;
  --accent: #ffffff;
  --accent-dim: #e8e8ec;
  --accent-glow: rgba(255, 255, 255, 0.06);
  --success: #22c55e;
  --error: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --space: 1.5rem;
  --space-lg: 2.5rem;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, .logo {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-primary {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--text-muted);
}

/* Layout */
.container {
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space);
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space);
  position: relative;
  z-index: 1;
}
.index-main {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

/* Header - navegação no topo */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--text); text-decoration: none; }
.logo span { color: var(--text-muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.nav .text-muted {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: var(--space);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:focus-within {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.card h1 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card .subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}
.card-form .form-group:first-of-type {
  margin-top: 0;
}

/* Form */
.form-group {
  margin-bottom: 1.125rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--text-muted);
  box-shadow: 0 0 0 1px var(--text-muted);
}
.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.375rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  width: 100%;
  background: var(--text);
  color: var(--bg-dark);
  margin-top: 0.25rem;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-dim);
  color: var(--bg-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

/* Alerts */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.125rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
}
.alert-error {
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.35);
  color: #ff8a80;
}
.alert-success {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.35);
  color: #69f0ae;
}

/* Plan selection */
.generate-row {
  margin-top: 1rem;
}
.generate-row .btn { width: 100%; }

/* PIX section - após gerar, esconde planos */
.pix-section {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pix-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.pix-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.pix-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 0;
}
.pix-box .pix-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.pix-waiting {
  text-align: center;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}
.pix-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: pix-spin 0.8s linear infinite;
}
@keyframes pix-spin {
  to { transform: rotate(360deg); }
}
.pix-waiting-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.pix-waiting-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.pix-extra-link {
  margin-bottom: 1rem;
}
.pix-extra-link .btn { margin-top: 0; }
.pix-copy-wrap {
  margin-top: 0.5rem;
}
.pix-box .pix-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
}
.pix-box input.pix-code {
  width: 100%;
  font-size: 0.8125rem;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-family: monospace;
}
.pix-box .btn-copy {
  width: 100%;
  margin-top: 0.75rem;
  white-space: nowrap;
}
.pix-expires {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.pix-paid-msg {
  margin-top: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius);
}
.pix-paid-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 0.35rem;
}
.pix-paid-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}
.pix-box .expires {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Botão Entrar no header (index) */
.btn-header-entrar {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--text);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}
.btn-header-entrar:hover {
  background: var(--accent-dim);
  color: var(--bg-dark);
  text-decoration: none;
  opacity: 0.95;
}

/* ========== INDEX LANDING ========== */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 540px;
  margin: 0 auto;
  animation: heroEnter 0.6s ease;
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-trust span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--success);
}
.hero-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-steps .step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.hero-steps .step-num {
  font-weight: 700;
  color: var(--text);
  font-size: 0.75rem;
}
.hero-steps .arrow {
  color: var(--border);
  font-size: 0.75rem;
}
.btn-primeiro-acesso {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--bg-dark);
  background: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.btn-primeiro-acesso:hover {
  background: var(--accent-dim);
  color: var(--bg-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.hero-cta-wrap {
  margin-bottom: 0.25rem;
}
.hero-cta-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}
.hero .btn-informacoes {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.hero .btn-informacoes:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
}

/* Seção Como funciona - cards */
.como-funciona-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.como-funciona-wrap h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-align: center;
}
.como-funciona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .como-funciona-grid { grid-template-columns: 1fr; }
}
.como-funciona-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), background var(--transition);
  animation: cardEnter 0.5s ease backwards;
}
.como-funciona-card:nth-child(1) { animation-delay: 0.1s; }
.como-funciona-card:nth-child(2) { animation-delay: 0.2s; }
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.como-funciona-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-elevated);
}
.como-funciona-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.como-funciona-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.como-funciona-card .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
}

/* ========== PÁGINA INFORMAÇÕES ========== */
.info-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}
.info-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.info-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.info-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.info-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}
.info-nav a {
  display: inline-block;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.info-nav a:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-card);
  text-decoration: none;
}
.info-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.5rem;
  box-shadow: var(--shadow-card);
}
.info-section {
  margin-bottom: 2.25rem;
  scroll-margin-top: 1.5rem;
}
.info-section:last-child {
  margin-bottom: 0;
}
.info-section h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.info-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.info-section p:last-child {
  margin-bottom: 0;
}
.info-section strong {
  color: var(--text);
  font-weight: 600;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.info-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 700;
}
.info-list--numbered {
  counter-reset: info-num;
}
.info-list--numbered li {
  padding-left: 2rem;
}
.info-list--numbered li::before {
  content: counter(info-num);
  counter-increment: info-num;
  font-weight: 700;
  color: var(--text);
  left: 0;
}
.info-faq {
  margin: 0;
}
.info-faq dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}
.info-faq dt:first-child {
  margin-top: 0;
}
.info-faq dd {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-left: 0;
  margin-bottom: 0.5rem;
  padding-left: 0;
}
.info-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.info-cta p {
  margin-bottom: 1rem;
}
.info-cta .btn {
  min-width: 180px;
}

@media (max-width: 560px) {
  .info-page { padding: 1.5rem 1.25rem 3rem; }
  .info-content { padding: 1.5rem 1.25rem; }
  .info-nav { gap: 0.4rem; }
  .info-nav a { font-size: 0.75rem; padding: 0.35rem 0.65rem; }
}

/* Plans */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plan-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.plan-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.12);
}
.plan-card.selected {
  border-color: var(--text);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--text);
}
.plan-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--text);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}
.plan-card.selected .plan-card-badge {
  opacity: 1;
}
.plan-card-name {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.plan-card-desc {
  font-size: 0.9rem;
  line-height: 1.45;
}
.plan-card .price {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}
.plan-hint {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* PIX box - ajuste visual */
.pix-box canvas {
  border-radius: var(--radius-sm);
}

/* Utils */
.text-center { text-align: center; }
.mt-1 { margin-top: 1.25rem; }
.mb-0 { margin-bottom: 0; }

/* Utils - text */
.text-muted { color: var(--text-muted); }

/* Responsive */
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .header { padding: 1rem 1.25rem; }
  .nav { gap: 1rem; font-size: 0.8125rem; }
  .container, .container-wide { padding: 1.5rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-steps .arrow { display: none; }
  .hero-trust { gap: 0.5rem; }
}
