:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-deeper: #172554;
  --primary-light: #2563eb;
  --accent: #3b82f6;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-warm: #fafaf9;
  --border: #bfdbfe;
  --border-light: #e2e8f0;
  --surface: #eff6ff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --success: #059669;
  --success-bg: #d1fae5;
  --success-border: #6ee7b7;
  --error: #dc2626;
  --error-bg: #fee2e2;
  --error-border: #fca5a5;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.btn-outline-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 16px;
  border-radius: 12px;
}

/* ==================== NAVBAR ==================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: box-shadow 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--primary);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.3px;
}

.brand-icon {
  font-size: 24px;
}

.brand strong {
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta-outline {
  border: 1.5px solid var(--border-light) !important;
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.nav-cta-outline:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

/* ==================== HERO ==================== */

.hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(155deg, var(--primary-deeper) 0%, var(--primary) 40%, var(--primary-light) 100%);
  color: #fff;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -180px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -60px;
  animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 160px;
  height: 160px;
  top: 40%;
  left: 30%;
  opacity: 0.04;
  animation: float 18s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.03); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.7;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  object-fit: cover;
  margin-right: -10px;
}

.avatar:last-child {
  margin-right: 0;
}

.hero-trust span {
  font-size: 13px;
  opacity: 0.75;
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  position: relative;
}

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  color: var(--text);
  animation: cardFloat 6s ease-in-out infinite;
}

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

.card-preview {
  bottom: -20px;
  left: -30px;
  min-width: 240px;
  animation-delay: 0s;
}

.card-valid {
  top: 20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation-delay: 3s;
}

.card-valid span {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.preview-dot.green {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.preview-info {
  margin: 8px 0 10px;
}

.preview-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.preview-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-med {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
  margin-bottom: 8px;
}

.preview-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* ==================== METRICS ==================== */

.metrics {
  padding: 48px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.metrics-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.metric strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.metric span {
  font-size: 13px;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 44px;
  background: var(--border-light);
}

/* ==================== RECURSOS ==================== */

.recursos {
  padding: 100px 0;
  background: var(--bg-white);
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.section-label.light {
  color: rgba(255,255,255,0.7);
}

.recurso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 100px;
}

.recurso-row:last-child {
  margin-bottom: 0;
}

.recurso-row.reverse {
  direction: rtl;
}

.recurso-row.reverse > * {
  direction: ltr;
}

.recurso-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.recurso-img-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recurso-text-col h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.recurso-text-col p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.check-list svg {
  flex-shrink: 0;
}

/* ==================== COMO FUNCIONA ==================== */

.flow {
  padding: 100px 0;
  background: var(--bg);
}

.flow-header {
  margin-bottom: 56px;
  max-width: 460px;
}

.flow-header h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--text);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.flow-step-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.flow-step-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.step-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.flow-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.flow-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== PREVIEW RECEITA ==================== */

.preview-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.preview-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}

.preview-text-col h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.preview-text-col p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.browser-frame {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}

.browser-bar {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-dots span:first-child { background: #f87171; }
.browser-dots span:nth-child(2) { background: #fbbf24; }
.browser-dots span:last-child { background: #4ade80; }

.browser-url {
  flex: 1;
  background: #e2e8f0;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.browser-body {
  padding: 0;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
}

.mock-brand {
  font-size: 16px;
  color: var(--primary);
}

.mock-brand strong {
  font-weight: 800;
}

.mock-valid {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.mock-card {
  padding: 20px;
}

.mock-badge {
  background: var(--success-bg);
  color: var(--success);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-block;
}

.mock-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0;
}

.mock-title {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 2px;
}

.mock-data {
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 13px;
}

.mock-data p {
  margin: 2px 0;
}

.mock-code {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.mock-med {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 13px;
}

.mock-med span {
  font-size: 20px;
  flex-shrink: 0;
}

.mock-med p {
  margin: 1px 0;
}

/* ==================== SEGURANÇA ==================== */

.seguranca {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--primary-deeper) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
}

.seguranca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.seguranca-main h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.seguranca-main p {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.8;
}

.seguranca-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seg-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}

.seg-item:hover {
  background: rgba(255,255,255,0.12);
}

.seg-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seg-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.seg-item span {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

/* ==================== CTA BLOCK ==================== */

.cta-block {
  padding: 80px 0;
  background: var(--bg);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.cta-content h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 420px;
  line-height: 1.7;
}

.cta-img img {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* ==================== FOOTER ==================== */

.footer {
  padding: 56px 0 0;
  background: var(--text);
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-link {
  margin-bottom: 12px;
}

.footer-brand-link,
.footer-brand-link .brand-icon {
  color: #fff;
}

.footer-brand-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 260px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  padding: 3px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ===================== MOBILE NAV OPEN ===================== */

.nav-links.open {
  display: flex;
}

/* ==================== APP PAGES (login, painel, receita) ==================== */

body:not(.landing) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

body:has(header):not(.landing) {
  display: block;
}

header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
}

header .logo strong {
  font-weight: 800;
}

header .info {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.validade {
  font-size: 14px;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.titulo {
  font-weight: 700;
  font-size: 20px;
  margin: 4px 0;
}

.sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.dados {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
}

.dados p {
  margin: 3px 0;
  font-size: 15px;
}

.codigo {
  background: var(--primary);
  color: white;
  padding: 13px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  margin-top: 12px;
  transition: background 0.15s;
  user-select: none;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.codigo:hover {
  background: var(--primary-dark);
}

.medicamento {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
}

.medicamento p {
  margin: 3px 0;
  font-size: 15px;
}

.rodape {
  text-align: center;
  margin-top: 28px;
  font-size: 18px;
  color: var(--primary);
}

.rodape strong {
  font-weight: 800;
}

/* ===== PAINEL & LOGIN ===== */

.painel {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px;
  margin: 20px;
  border: 1px solid var(--border-light);
}

.painel h1 {
  text-align: center;
  color: var(--text);
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.painel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-logo {
  text-align: center;
  margin-bottom: 6px;
  color: var(--primary);
}

.login-logo .brand-icon {
  font-size: 26px;
}

.login-logo .brand-text {
  font-size: 22px;
}

.btn-logout {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all 0.15s;
  font-weight: 500;
}

.btn-logout:hover {
  color: var(--error);
  border-color: var(--error-border);
}

.painel label {
  display: block;
  font-weight: 600;
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
}

.painel input,
.painel textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-top: 5px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.15s;
  color: var(--text);
}

.painel input:focus,
.painel textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.painel input::placeholder,
.painel textarea::placeholder {
  color: var(--text-muted);
}

.painel button {
  margin-top: 20px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
}

.painel button:hover {
  background: var(--primary-dark);
}

.painel select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-top: 5px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.15s;
  color: var(--text);
  background: var(--bg-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.painel select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 22px;
  margin-bottom: -4px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.form-section-title:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* ===== ALERTS ===== */

.alerta {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.alerta.sucesso {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid var(--success-border);
}

.alerta.erro {
  background: var(--error-bg);
  color: #991b1b;
  border: 1px solid var(--error-border);
}

/* ===== TOAST ===== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== VERIFICAR PAGE ===== */

.verificar-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg);
  padding: 20px;
}

.verificar-container {
  width: 100%;
  max-width: 520px;
}

.verificar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
}

.verificar-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 22px;
}

.verificar-brand .brand-icon {
  display: flex;
  align-items: center;
}

.verificar-header {
  text-align: center;
  margin-bottom: 28px;
}

.verificar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--surface);
  border-radius: 50%;
  margin-bottom: 16px;
}

.verificar-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.verificar-header p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.verificar-form {
  margin-bottom: 24px;
}

.verificar-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.verificar-input-row {
  display: flex;
  gap: 10px;
}

.verificar-input-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  transition: border-color 0.15s;
}

.verificar-input-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.verificar-input-row button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.verificar-input-row button:hover {
  background: var(--primary-dark);
}

.verificar-resultado {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.verificar-resultado.sucesso {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.verificar-resultado.erro {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.verificar-resultado-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.verificar-resultado strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.verificar-resultado.sucesso strong {
  color: #065f46;
}

.verificar-resultado.erro strong {
  color: #991b1b;
}

.verificar-resultado p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.verificar-resultado code {
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.verificar-btn-ver {
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}

.verificar-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.verificar-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.verificar-footer a:hover {
  color: var(--primary);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .recurso-row,
  .recurso-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .seguranca-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    text-align: center;
  }

  .cta-content p {
    max-width: none;
  }

  .cta-img {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .metrics-grid {
    flex-direction: column;
    gap: 20px;
  }

  .metric-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 28px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-cta,
  .nav-cta-outline {
    text-align: center;
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .verificar-card {
    padding: 28px 20px;
  }

  .verificar-input-row {
    flex-direction: column;
  }

  .verificar-input-row button {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 110px 0 64px;
  }

  .hero-text h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-img {
    height: 280px;
  }

  .card-preview {
    left: -10px;
    bottom: -10px;
    min-width: 200px;
  }

  .card-valid {
    right: -10px;
    top: 10px;
  }

  .recurso-img-wrapper img {
    height: 260px;
  }

  .recurso-text-col h2,
  .flow-header h2,
  .preview-text-col h2,
  .seguranca-main h2,
  .cta-content h2 {
    font-size: 26px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .painel {
    margin: 12px;
    padding: 24px;
  }

  main {
    padding: 16px 12px;
  }

  header {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
