:root {
  --ink: #172033;
  --muted: #627086;
  --line: #dbe3ec;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --admin-bg: #eef3f8;
  --blue: #2563eb;
  --green: #0f9f6e;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--blue);
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button-light {
  color: var(--blue);
  background: #fff;
}

.button-danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero {
  padding: 72px 0 44px;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.dashboard-preview {
  padding: 18px;
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  background: #bdc7d4;
  border-radius: 50%;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-metrics article,
.feature-card,
.admin-card,
.admin-panel,
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-metrics article {
  padding: 18px;
}

.preview-metrics strong {
  display: block;
  font-size: 24px;
}

.preview-metrics span,
.preview-table b,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.preview-table {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.preview-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section {
  padding: 64px 0;
}

.admin-main > .section {
  padding: 0;
}

.section-soft {
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.feature-card p,
.timeline p,
.contact-grid p {
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 16px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: var(--soft);
  border-radius: 8px;
}

.timeline strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.timeline p {
  margin: 5px 0 0;
}

.contact-band {
  color: #fff;
  background: var(--ink);
}

.contact-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-grid .eyebrow,
.contact-grid p {
  color: #b7f5df;
}

.footer {
  padding: 26px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.admin-body {
  background: var(--admin-bg);
}

.admin-layout {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--admin-bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 24px 18px;
  color: #fff;
  background: var(--ink);
}

.admin-sidebar .brand {
  margin-bottom: 30px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #dce6f2;
  border-radius: var(--radius);
}

.admin-menu a:hover,
.admin-menu .active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
}

.admin-topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.admin-topbar h1 {
  max-width: none;
  font-size: 38px;
  line-height: 1.08;
}

.admin-topbar .muted {
  margin: 8px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 0;
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 26px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-panel,
.admin-card {
  width: 100%;
  padding: 20px;
}

.narrow-card {
  max-width: none;
}

.admin-panel h2,
.admin-card h2 {
  font-size: 26px;
  line-height: 1.15;
}

.admin-panel > h2,
.admin-card > h2 {
  margin-bottom: 12px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}

.module-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.module-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.module-card strong {
  font-size: 20px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.check-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-row input {
  width: auto;
  min-height: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.settings-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-list span {
  color: var(--muted);
}

.table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  margin-bottom: 14px;
}

.table-title h2 {
  margin-bottom: 4px;
}

.table-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  min-height: 190px;
  resize: vertical;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.textarea-large {
  min-height: 300px;
}

.notice {
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.notice-success {
  color: #065f46;
  background: #d1fae5;
}

.notice-error {
  color: #991b1b;
  background: #fee2e2;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  padding: 11px 12px;
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-ativa,
.status-ativo,
.status-pago,
.status-aprovado {
  color: #065f46;
  background: #d1fae5;
}

.status-pendente {
  color: #92400e;
  background: #fef3c7;
}

.status-pausada {
  color: #1f4b99;
  background: #dbeafe;
}

.status-cancelada,
.status-inativo,
.status-vencido,
.status-falhou {
  color: #991b1b;
  background: #fee2e2;
}

.code-sample {
  overflow: auto;
  padding: 14px;
  color: #dbeafe;
  background: #111827;
  border-radius: 8px;
  font-size: 12px;
}

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-shell {
  width: min(100% - 32px, 460px);
}

.login-card {
  display: grid;
  gap: 22px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: 34px;
}

@media (max-width: 900px) {
  .hero-grid,
  .process-grid,
  .admin-grid,
  .admin-layout,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .feature-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1200px);
  }

  .hero {
    padding-top: 46px;
  }

  .preview-metrics,
  .feature-grid,
  .stats-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .admin-topbar,
  .table-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-main {
    padding: 18px 12px;
  }

  .admin-layout {
    width: 100%;
  }

  .admin-topbar {
    min-height: auto;
  }

  .admin-topbar h1 {
    font-size: 32px;
  }
}
