/* ==========================================================================
   Ebenezer · CSS base das páginas
   Tokens copiados do "Ebenezer Design System.dc.html" (pasta Design System Ebenezer).
   Não crie cores, fontes ou raios fora desta lista.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&family=Caveat:wght@500;600&display=swap");

:root {
  /* Pink (rosa Ebenezer) */
  --pink-50: #FFF0F7;
  --pink-100: #FFD6EA;
  --pink-200: #FFADD5;
  --pink-300: #FF7DBE;
  --pink-400: #F7479F;
  --pink-500: #EC1889; /* primary */
  --pink-600: #C80E71; /* destaque em fundo claro */
  --pink-700: #A00B5B;
  --pink-800: #780946;
  --pink-900: #4D062D;
  --pink-hover: #F23A9C;
  --pink-link: #FF5CAE;

  /* Neutros */
  --n-0: #FFFFFF;
  --n-50: #F5F5F7;
  --n-100: #D4D4DA;
  --n-200: #A6A6B0;
  --n-300: #8A8A94;
  --n-400: #6E6E78;
  --n-500: #4A4A52;
  --n-600: #33333A;
  --n-700: #26262C;
  --n-800: #1B1B1F;
  --n-900: #141417;
  --n-950: #0B0B0D;
  --app: #0F0F12;
  --line: #1F1F24;

  /* Semânticas */
  --success: #2BD47D;
  --warning: #F7B32B;
  --error: #FF5A5F;
  --info: #4C9BFF;

  /* Tipografia */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-hand: "Caveat", cursive;

  /* Espaçamento (base 4px) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  /* Raios */
  --r-tag: 4px; --r-pill: 6px; --r-btn: 8px; --r-card: 12px; --r-card-lg: 14px; --r-modal: 16px;

  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
  --focus-ring: 0 0 0 3px rgba(236, 24, 137, 0.22);
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--n-950);
  color: var(--n-50);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-link); text-decoration: none; }
a:hover { color: var(--pink-500); }
::selection { background: var(--pink-500); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--n-700); border-radius: 10px; border: 2px solid var(--n-950); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s6); }
@media (max-width: 640px) { .container { padding: 0 var(--s4); } }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.section--light { background: var(--n-50); color: var(--n-950); }
.section--light .muted { color: var(--n-500); }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* ---------- Tipografia ---------- */
h1, h2, h3, .display { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
.display { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 1.6; color: var(--n-200); max-width: 640px; }
.muted { color: var(--n-200); }
.small { font-size: 13px; line-height: 1.5; color: var(--n-400); }
.label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--n-400);
}
.mono { font-family: var(--font-mono); }
.hl { color: var(--pink-500); }                 /* uma palavra por título */
.section--light .hl { color: var(--pink-600); } /* regra do DS: fundo claro usa pink-600 */
.hand { font-family: var(--font-hand); font-weight: 600; color: var(--pink-500); font-size: 28px; line-height: 1; }

.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s10); max-width: 720px; }
.section-num { font-family: var(--font-mono); font-size: 12px; color: var(--pink-500); }

/* ---------- Marca: as três barras (▰▱▱) ---------- */
.marco { display: inline-flex; gap: 3px; align-items: center; }
.marco i { width: 18px; height: 6px; border-radius: 2px; background: var(--n-700); transform: skewX(-24deg); display: block; }
.marco i.on { background: var(--pink-500); }
.marco--lg i { width: 34px; height: 10px; }

/* ---------- Header / footer ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 13, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s4); }
.topbar .logo img { height: 18px; width: auto; }
.footer { border-top: 1px solid var(--line); padding: var(--s12) 0; background: var(--app); }
.footer .container { display: flex; flex-wrap: wrap; gap: var(--s6); justify-content: space-between; align-items: center; }
.footer .logo img { height: 16px; width: auto; }
.footer nav { display: flex; gap: var(--s5); flex-wrap: wrap; font-size: 14px; }
.footer nav a { color: var(--n-200); }
.footer nav a:hover { color: var(--n-50); }
.footer .verse { font-family: var(--font-mono); font-size: 12px; color: var(--n-400); }

/* ---------- Botões (DS: 36px base, raio 8) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 36px; padding: 0 16px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; white-space: nowrap; text-decoration: none;
}
.btn--primary { background: var(--pink-500); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--pink-hover); color: #fff; }
.btn--secondary { background: var(--n-800); border-color: var(--n-600); color: var(--n-50); }
.btn--secondary:hover { background: #222227; color: var(--n-50); }
.btn--ghost { background: transparent; color: var(--n-200); }
.btn--ghost:hover { background: var(--n-800); color: var(--n-50); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Superfícies ---------- */
.card {
  background: var(--n-900); border: 1px solid var(--n-700);
  border-radius: var(--r-card-lg); padding: var(--s6);
}
.card--pop { background: var(--n-800); border-color: var(--n-600); box-shadow: var(--shadow-pop); }
.card--accent { border-color: var(--pink-500); }
.section--light .card { background: var(--n-0); border-color: var(--n-100); }

/* ---------- Tags (fundo 14% da cor, texto na cor cheia) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 600;
  background: rgba(236, 24, 137, 0.14); color: var(--pink-link);
}
.stack > .tag, .card > .tag { align-self: flex-start; }
.tag--success { background: rgba(43, 212, 125, 0.14); color: var(--success); }
.tag--warning { background: rgba(247, 179, 43, 0.14); color: var(--warning); }
.tag--error { background: rgba(255, 90, 95, 0.14); color: var(--error); }
.tag--info { background: rgba(76, 155, 255, 0.14); color: var(--info); }
.tag--neutral { background: var(--n-800); color: var(--n-200); }

/* ---------- Formulário ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 500; color: var(--n-200); }
.input, .select, .textarea {
  width: 100%; height: 44px; border-radius: var(--r-btn); border: 1px solid var(--n-600);
  background: var(--app); color: var(--n-50); padding: 0 12px;
  font-family: var(--font-body); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--n-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pink-500); box-shadow: var(--focus-ring); }
.field.is-error .input, .field.is-error .select { border-color: var(--error); }
.field .error-msg { display: none; font-size: 12px; color: var(--error); }
.field.is-error .error-msg { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--n-200); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1px solid var(--n-500); background: var(--app); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--pink-500); border-color: var(--pink-500); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible { box-shadow: var(--focus-ring); outline: none; }

/* ---------- Progresso ---------- */
.progress { height: 6px; border-radius: 6px; background: var(--n-700); overflow: hidden; }
.progress > div { height: 100%; border-radius: 6px; background: var(--pink-500); transition: width .3s ease; }

/* ---------- Lista numerada (Geist Mono, 2 dígitos) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s4); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s3); align-items: baseline; }
.steps li::before { content: counter(step, decimal-leading-zero); counter-increment: step; font-family: var(--font-mono); font-size: 14px; color: var(--pink-500); }
.steps { counter-reset: step; }

.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); }
.bullets li::before { content: ""; width: 12px; height: 4px; margin-top: 11px; border-radius: 2px; background: var(--pink-500); transform: skewX(-24deg); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--pink-500); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: var(--s3); color: var(--n-200); max-width: 720px; }

/* ---------- Placeholder de foto real ---------- */
.photo-slot {
  border: 1px dashed var(--n-600); border-radius: var(--r-card-lg); background: var(--app);
  display: grid; place-items: center; text-align: center; padding: var(--s6);
  color: var(--n-400); font-size: 13px; min-height: 280px; overflow: hidden; position: relative;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .hand { font-size: 24px; display: block; margin-bottom: var(--s2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--n-800); border: 1px solid var(--n-600); box-shadow: var(--shadow-pop); font-size: 13px; z-index: 50; }
.toast .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--success); display: grid; place-items: center; color: var(--n-950); font-weight: 700; font-size: 12px; }

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