:root {
  --ink-950: #12221f;
  --ink-800: #243833;
  --ink-600: #5a6f69;
  --ink-500: #748780;
  --line: #d7e3de;
  --surface: #ffffff;
  --page: #f3f7f5;
  --brand-950: #0b2b2c;
  --brand-800: #0f3d3e;
  --brand-700: #165455;
  --brand-500: #3f9a8a;
  --brand-100: #e5f4ef;
  --brand-50: #f3faf7;
  --accent: #c9782b;
  --accent-soft: #fff4e8;
  --danger: #cf1322;
  --success: #52c41a;
  --success-strong: #389e0d;
  --alert-bg: #fffbe6;
  --alert-border: #ffe58f;
  --shadow-sm: 0 10px 28px rgba(11, 43, 44, 0.07);
  --shadow-md: 0 20px 50px rgba(11, 43, 44, 0.12);
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 0% 0%, rgba(63, 154, 138, 0.14), transparent 28rem),
    linear-gradient(180deg, #f9fcfb 0%, var(--page) 100%);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand-800);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 227, 222, 0.9);
  background: rgba(249, 252, 251, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.page,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  max-width: 90px;
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.brand-copy strong,
.brand-copy span { display: block; }

.brand-copy strong { font-size: 1rem; }
.brand-copy span { margin-top: 2px; color: var(--ink-600); font-size: 0.78rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-800);
  font-size: 0.78rem;
  font-weight: 700;
}

.page { padding: 42px 0 70px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-card,
.card,
.cta-block,
.support-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-card { padding: 34px 32px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }

.lead {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.7;
}

.status-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(160deg, var(--brand-950), var(--brand-700));
  box-shadow: var(--shadow-md);
}

.status-card p { margin: 8px 0 0; color: rgba(255,255,255,0.78); line-height: 1.55; }
.status-card .label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.meta-item {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.meta-item span,
.meta-item strong { display: block; }

.meta-item span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.meta-item strong { margin-top: 5px; font-size: 0.95rem; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.card { padding: 28px; }
.card + .card { margin-top: 18px; }

.section-title {
  margin-bottom: 8px;
}

.section-text {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.65;
}

.info-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list .k { color: var(--ink-500); font-size: 0.8rem; font-weight: 700; }
.info-list .v { color: var(--ink-800); font-weight: 650; line-height: 1.45; }

.availability {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #ecd59c;
  border-radius: 14px;
  background: var(--accent-soft);
}

.availability[hidden] { display: none !important; }

.availability h3 { color: #7a4a12; }
.availability p { margin: 8px 0 0; color: #6d4a1d; line-height: 1.55; }
.availability .pill {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #7a4a12;
  font-size: 0.82rem;
  font-weight: 800;
}

.cta-block,
.support-block {
  padding: 28px;
  margin-top: 24px;
}

.cta-block {
  background: linear-gradient(180deg, #fff, var(--brand-50));
}

.cta-block p,
.support-block p {
  margin: 10px 0 0;
  color: var(--ink-600);
  line-height: 1.65;
}

.actions { margin-top: 20px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover { transform: translateY(-1px); }
.button:disabled,
.button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--success);
  box-shadow: 0 10px 22px rgba(82, 196, 26, 0.28);
}

.button-primary:hover {
  background: var(--success-strong);
}

.button-support {
  width: 100%;
  border-radius: 14px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.button-secondary {
  color: var(--brand-800);
  background: #fff;
  border: 1px solid var(--line);
}

.text-alert {
  margin: 12px 0 0;
  color: var(--danger);
  font-weight: 800;
  line-height: 1.55;
}

.alert-box {
  margin-top: 14px;
  padding: 18px 16px;
  border: 1px solid var(--alert-border);
  border-radius: 12px;
  background: var(--alert-bg);
  text-align: center;
}

.alert-box p {
  margin: 0;
  color: var(--ink-800);
  line-height: 1.65;
}

.alert-box .text-alert {
  margin-top: 12px;
}

.alert-box strong {
  font-weight: 800;
  color: var(--ink-950);
}

.support-block .actions {
  margin-top: 18px;
}

.support-block .button-support {
  box-shadow: 0 8px 18px rgba(82, 196, 26, 0.25);
}

.inline-note {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 0.84rem;
  line-height: 1.5;
}

.inline-note.is-error { color: var(--danger); font-weight: 700; }
.inline-note.is-success { color: var(--success-strong); font-weight: 700; }

.site-footer {
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--brand-800); font-weight: 700; }

/* Painel */
.admin-page { padding-top: 34px; }

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-header {
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--brand-50), #fff);
}

.panel-header p {
  margin: 8px 0 0;
  color: var(--ink-600);
  line-height: 1.55;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 11px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--ink-600);
  font-weight: 800;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  color: var(--brand-800);
  background: var(--brand-50);
  border-color: var(--line);
}

.tab-panel { display: none; padding: 24px 26px; }
.tab-panel.active { display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full { grid-column: 1 / -1; }

label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-800);
  font-size: 0.82rem;
  font-weight: 800;
}

input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #c9d8d2;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-950);
  outline: none;
}

textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(63, 154, 138, 0.14);
}

.hint {
  margin: 7px 0 0;
  color: var(--ink-500);
  font-size: 0.74rem;
  line-height: 1.45;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.switch-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 26px 26px;
}

.preview {
  position: sticky;
  top: 102px;
  padding: 22px;
}

.preview-card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-950), var(--brand-700));
}

.preview-card h3 { margin: 10px 0 6px; font-size: 1.3rem; }
.preview-card p { margin: 0; color: rgba(255,255,255,0.78); line-height: 1.5; }

.preview-meta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.preview-meta div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.preview-meta span,
.preview-meta strong { display: block; }

.preview-meta span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.preview-meta strong { margin-top: 4px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(380px, calc(100% - 40px));
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-950);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.local-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #ecd59c;
  border-radius: 14px;
  background: #fff9e8;
  color: #6f4d0c;
  font-size: 0.86rem;
  line-height: 1.55;
}

.hero-open { margin-bottom: 20px; }
.lead-soft { margin-top: 12px; }
.lead-emphasis {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: #7a4a12;
  font-weight: 750;
  line-height: 1.6;
}

.mobile-approval {
  display: none;
  margin: 12px 0 0;
  color: #d8f3e8;
  font-weight: 800;
}

.status-panel { margin-bottom: 18px; padding: 24px 26px; }
.status-rows { display: grid; gap: 12px; margin-top: 16px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
}
.status-label {
  display: block;
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-value { display: block; margin-top: 4px; font-size: 0.98rem; }
.status-value.ok { color: var(--success); }
.status-value.warn { color: #b26a14; }
.status-value.soft { color: var(--ink-600); }
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.status-dot.ok { background: #22a06b; box-shadow: 0 0 0 5px rgba(34, 160, 107, 0.14); }
.status-dot.warn { background: #d98930; box-shadow: 0 0 0 5px rgba(217, 137, 48, 0.16); }

.process-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.82rem;
  font-weight: 750;
}
.process-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f5f8f7;
  font-size: 0.8rem;
  font-weight: 900;
}
.process-step.done { color: var(--success); }
.process-step.done .process-mark {
  color: #fff;
  border-color: #1f8f62;
  background: #1f8f62;
}
.process-step.current { color: #b26a14; }
.process-step.current .process-mark {
  color: #fff;
  border-color: #d98930;
  background: #d98930;
}

.pending-flow { display: grid; gap: 18px; }
.notice-amber,
.notice-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.notice-amber {
  border: 1px solid #edd7a5;
  background: #fff8eb;
}
.notice-amber h2,
.notice-confirm h2 { margin: 0 0 8px; font-size: 1.2rem; }
.notice-amber p,
.notice-confirm p { margin: 0 0 10px; color: #6d5530; line-height: 1.65; }
.notice-amber p:last-child,
.notice-confirm p:last-child { margin-bottom: 0; }
.notice-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8a5a12;
  background: #ffe7bf;
  font-size: 0.85rem;
  font-weight: 900;
}
.notice-confirm {
  grid-template-columns: 1fr;
  border: 1px solid #bfe3d4;
  background: linear-gradient(180deg, #f3fbf7, #e8f6f0);
}
.notice-confirm p { color: #29584a; }
.confirm-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(255,255,255,0.75);
  font-size: 0.84rem;
  font-weight: 800;
}

.subsection-title {
  margin: 24px 0 12px;
  font-size: 1.05rem;
}
.skills-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.skills-grid li {
  display: flex;
  align-items: center;
  min-height: 56px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--ink-800);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.hint-note {
  margin: 14px 0 0;
  color: var(--ink-500);
  font-size: 0.8rem;
  line-height: 1.5;
}
.info-list.compact { margin-top: 14px; }
.availability-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill.soft {
  background: #fff;
  color: #7a4a12;
  border: 1px solid #ecd59c;
}
.cta-persuasive {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(63, 154, 138, 0.25);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
}
.cta-persuasive h3 { margin: 0 0 10px; font-size: 1.05rem; }
.cta-persuasive p { margin: 0 0 8px; color: var(--ink-600); line-height: 1.6; }
.cta-persuasive p:last-child { margin-bottom: 0; }

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

  .preview { position: static; }
  .meta-grid { grid-template-columns: 1fr; }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .process-step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 4px 0;
  }
  .skills-grid { grid-template-columns: 1fr; }
  .mobile-approval { display: block; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 68px; }
  .hero-card, .card, .cta-block, .support-block, .tab-panel, .admin-actions, .panel-header,
  .status-panel, .notice-amber, .notice-confirm, .availability {
    padding-left: 20px;
    padding-right: 20px;
  }
  .grid, .info-list li { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .site-footer { flex-direction: column; }
  .notice-amber { grid-template-columns: 1fr; }
}
