/* Cidadão de Quinta (cidadaodequinta.com.br) — Design System Editorial
   Diretriz estrita GEMINI.md: ZERO text-shadow, drop-shadow ou blur em tipografia. */

:root {
  --bg-page: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-subtle: #efede6;
  --bg-ink: #111614;
  --bg-brand: #0c5c41;
  --bg-brand-hover: #094732;
  --bg-brand-tint: #e6f3ee;
  --bg-amber-tint: #fef6e4;

  --text-main: #111614;
  --text-secondary: #434d48;
  --text-muted: #68736d;
  --text-on-dark: #f7f6f2;
  --text-on-dark-muted: #b7c2bc;
  --text-brand: #0c5c41;
  --text-amber: #8a5300;
  --text-danger: #a61b1b;

  --border-subtle: #dedbd2;
  --border-strong: #c2beb2;
  --border-brand: #0c5c41;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 1120px;
}

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

html, body {
  overflow-x: clip;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--border-brand);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-lockup {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background-color: var(--bg-brand);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background-color: var(--bg-brand-hover);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn-full {
  width: 100%;
}

/* Hero Stage */
.hero-section {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}

.hero-head {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-main);
  overflow-wrap: break-word;
  min-width: 0;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: 28px;
}

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

/* Live Audit & Stock Panel */
.audit-panel {
  background-color: var(--bg-ink);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.audit-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--text-secondary);
  margin-bottom: 18px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.pill-brand {
  background-color: var(--bg-brand-tint);
  color: var(--text-brand);
}

.pill-amber {
  background-color: var(--bg-amber-tint);
  color: var(--text-amber);
}

.drawn-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
}

.num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border-radius: 4px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.num-chip-brand {
  background-color: var(--bg-brand);
  color: var(--text-on-dark);
}

.audit-score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.audit-score-cell {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.audit-score-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
}

.audit-score-lbl {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Sections */
.section-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 32px;
}

/* Pricing Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-box-featured {
  border: 2px solid var(--border-brand);
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 10px 0 6px;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin: 12px 0 4px;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}

.plan-features li {
  padding: 7px 0;
  border-top: 1px solid var(--bg-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Method 3-column */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-brand);
  margin-bottom: 8px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

/* Forms & Checkout Card */
.form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 560px;
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-secondary);
}

.mono {
  font-family: var(--font-mono);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 900px) {
  .hero-grid,
  .plans-grid,
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .audit-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
