:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fffff2;
  color: #1f2937;
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 960px;
}

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: #fffff4;
  border: none;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card--narrow {
  width: 100%;
  max-width: 380px;
}

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

.brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brand p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 6px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn--primary {
  background: #111827;
  color: #fff;
  width: 100%;
}

.btn--accent {
  background: #111827;
  color: #fff;
}

.btn--danger {
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn--danger:hover {
  background: #fef2f2;
  opacity: 1;
}

.btn--ghost {
  background: transparent;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn--ghost:hover {
  background: #f3f4f6;
  opacity: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 28px;
}

.topbar h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #6b7280;
}

.topbar-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
}

.alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.alert--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 6px;
  font-weight: 500;
}

.field {
  margin-bottom: 18px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  color: #111827;
  font-size: 0.95rem;
  font-family: inherit;
}

textarea {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  min-height: 260px;
  resize: vertical;
  background: #f9fafb;
}

.tipo-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tipo-toggle label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  margin-bottom: 0;
}

.tipo-toggle input {
  accent-color: #111827;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  color: #374151;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-label input {
  accent-color: #111827;
  width: 16px;
  height: 16px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.hint {
  color: #9ca3af;
  font-size: 0.78rem;
  margin-top: 6px;
}

.proposta-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #6b7280;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

.link-toggle:hover {
  color: #111827;
}

.aberturas-lista {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eeeee6;
}

.aberturas-lista ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: #6b7280;
}

.aberturas-lista li {
  padding: 3px 0;
}

.aberturas-lista li + li {
  border-top: 1px dashed #eeeee6;
}

.proposta-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fffff4;
  border: none;
  border-radius: 12px;
  padding: 16px 18px;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.proposta-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.proposta-info .link {
  font-size: 0.8rem;
  color: #6b7280;
  word-break: break-all;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fffff4;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
}

.icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.icon-btn.copiado {
  color: #15803d;
  border-color: #bbf7d0;
}

.proposta-info .data {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 4px;
}

.proposta-acoes {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.link-gerado {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #4b5563;
}

.link-gerado code {
  display: block;
  margin-top: 6px;
  color: #111827;
  word-break: break-all;
}

form.inline {
  display: inline;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.proposta-embed {
  width: 100%;
  height: 100vh;
  border: none;
  display: block;
}

/* Landing page */

.landing-nav {
  border-bottom: 1px solid #eeeee6;
}

.landing-nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  flex-shrink: 0;
  display: block;
}

.landing-hero {
  padding: 72px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.landing-kicker {
  font-size: 1.3rem;
  font-weight: 600;
  color: #9ca3af;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.landing-hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.landing-hero-sub {
  font-size: 1.05rem;
  color: #4b5563;
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 460px;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-cta {
  padding: 13px 28px;
  font-size: 1rem;
}

.landing-hero-note {
  font-size: 0.85rem;
  color: #9ca3af;
}

.landing-hero-visual {
  position: relative;
  padding-bottom: 40px;
}

.landing-print {
  pointer-events: none;
  box-shadow: 0 20px 40px -12px rgba(17, 24, 39, 0.25), 0 4px 12px rgba(17, 24, 39, 0.08) !important;
}

.landing-print--1 {
  transform: rotate(-2deg);
  position: relative;
  z-index: 1;
}

.landing-print--2 {
  transform: rotate(1.5deg);
  margin-top: -18px;
  margin-left: 32px;
  max-width: 320px;
  position: relative;
  z-index: 2;
}


.landing-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
}

.landing-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.landing-section-sub {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 auto 40px;
  max-width: 480px;
}

.landing-beneficios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
}

.landing-beneficio {
  background: #fffff4;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.landing-beneficio-icone {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #111827;
  color: #fffff4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
}

.landing-beneficio h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #111827;
}

.landing-beneficio p {
  margin: 0;
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
}

.landing-email-mockup {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.landing-email-subject {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 12px;
}

.landing-email-from {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.landing-email-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  flex-shrink: 0;
}

.landing-email-from strong {
  display: block;
  font-size: 0.85rem;
  color: #111827;
}

.landing-email-from span {
  font-size: 0.75rem;
  color: #9ca3af;
}

.landing-email-body p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #374151;
}

.landing-email-link {
  color: #2563eb;
  text-decoration: underline;
  font-size: 0.85rem;
}

.landing-cta-final {
  text-align: center;
  padding: 64px 24px 80px;
}

.landing-cta-final h2 {
  font-size: 1.5rem;
  color: #111827;
  margin: 0 0 24px;
}

.landing-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.78rem;
  color: #9ca3af;
  border-top: 1px solid #eeeee6;
}

@media (max-width: 780px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
  }
  .landing-hero-visual {
    margin-top: 32px;
  }
  .landing-kicker {
    font-size: 1.05rem;
  }
  .landing-hero h1 {
    font-size: 1.9rem;
  }
  .landing-print--2 {
    margin-left: 12px;
    max-width: 280px;
  }
  .landing-beneficios {
    grid-template-columns: 1fr;
  }
}

/* Super admin */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fffff4;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stat-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}

.section-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px;
}

.table-wrap {
  background: #fffff4;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9ca3af;
  border-bottom: 1px solid #eeeee6;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
