/* Calma Indica — tokens e estilos base. Ajuste as cores/fontes da marca aqui. */
:root {
  --paper: #f3f0e9;
  --paper-2: #e9e4d8;
  --ink: #171614;
  --ink-soft: #57524a;
  --line: #cfc8b8;
  --accent: #34402a;
  --accent-ink: #f3f0e9;
  --focus: #1f5fbf;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1040px;
  --section: clamp(72px, 12vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

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

/* Header */
.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.brand { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--ink-soft); font-style: italic; }

/* Type */
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 20px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(52px, 11vw, 120px); line-height: 0.95; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(36px, 6vw, 60px); line-height: 1.02; margin-bottom: 24px; }
h3 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; margin-bottom: 8px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 34em; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* Buttons & links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 17px/1 var(--font-text); text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn[aria-disabled="true"] .arrow { display: none; }
.link {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; padding: 12px 0; display: inline-block;
}
.link:hover { text-decoration-thickness: 2px; color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { border-radius: 999px; }
.cta-note { width: 100%; margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }

/* Sections */
section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; padding-top: clamp(48px, 10vw, 112px); }
.hero h1 { margin-bottom: 32px; }

.split { display: grid; gap: 32px; }
@media (min-width: 820px) { .split { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; } }

.big-number {
  font-family: var(--font-display); font-size: clamp(96px, 22vw, 200px);
  line-height: 0.85; letter-spacing: -0.04em; margin: 0 0 12px;
}
.big-number small { font-size: 0.32em; letter-spacing: -0.01em; display: block; margin-top: 12px; color: var(--ink-soft); }

/* Example rows (projeto → você) */
.rows { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.rows .label { color: var(--ink-soft); font-size: 15px; }
.rows .value { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); white-space: nowrap; }

/* Cloud */
.cloud { background: var(--paper-2); }
.note {
  margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--accent);
  background: var(--paper); font-size: 15px;
}

/* Services list */
.services { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; } }
.services li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.services strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.services span { color: var(--ink-soft); font-size: 15px; }

/* Steps */
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 40px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-size: 13px; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 20px;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Full example */
.receipt { max-width: 560px; }
.receipt dl { margin: 0; }
.receipt .group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.receipt dt { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.receipt dd { margin: 0; }
.receipt .line { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.receipt .line > span:first-child { flex: 1; min-width: 0; font-size: 15px; }
.receipt .amt { font-family: var(--font-display); font-size: 30px; white-space: nowrap; }
.receipt .total { border-top: 1px solid var(--ink); border-bottom: 0; padding-top: 20px; }
.receipt .total .amt { font-size: clamp(48px, 9vw, 72px); color: var(--accent); line-height: 1; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 16px 0 24px; }
.checks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* Final CTA */
.final { background: var(--ink); color: var(--paper); border-top: 0; }
.final .lead { color: #c9c3b6; }
.final .btn { background: var(--paper); color: var(--ink); }
.final .btn:hover { background: #ffffff; }
.final .btn[aria-disabled="true"] { background: #3a3833; color: #a39d90; }
.final .link { color: var(--paper); }
.final .link:hover { color: #ffffff; }
.final .cta-note { color: #a39d90; }
.final a:focus-visible { outline-color: #8fb6ff; }

.site-footer { padding: 32px 0 48px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: inherit; }

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

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botões como <button> */
button.btn { border: 0; cursor: pointer; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; }

/* Modal de indicação */
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: clamp(28px, 6vw, 44px); border: 0; border-radius: 20px;
  background: var(--paper); color: var(--ink); overflow-y: auto;
}
.modal::backdrop { background: rgba(23, 22, 20, 0.55); }
.modal h2 { font-size: clamp(30px, 6vw, 40px); margin-bottom: 12px; }
.modal .eyebrow { margin-bottom: 12px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--paper-2); color: var(--ink); }
.modal-step[hidden] { display: none; }
.modal [tabindex="-1"]:focus { outline: none; }

.field { display: block; margin-top: 20px; }
.field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .copy-row input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: 400 17px var(--font-text); color: var(--ink);
}
.field input:focus, .copy-row input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field-error { color: #9b2c1f; font-size: 14px; margin: 12px 0 0; }
.btn-block { width: 100%; margin-top: 24px; }
.btn-small { min-height: 52px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); margin-top: 12px; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.preview {
  margin: 16px 0 20px; padding: 16px 18px; border-left: 3px solid var(--accent);
  background: var(--paper-2); font-size: 15px; line-height: 1.5;
}
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-soft); }
.copy-status { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--accent); }
#back { margin-top: 8px; }
.fine-print { margin: 16px 0 0; }
