/* ==========================================================================
   CYBERBOT — Grupo Seleto
   Mobile first. Paleta: bronze-preto + ouro. Motivo: hexágono.
   ========================================================================== */

:root {
  --bg: #13100b;
  --bg-2: #1a150d;
  --surface: #211b11;
  --line: rgba(212, 175, 95, 0.22);
  --gold: #d4af5f;
  --gold-hi: #f0d98f;
  --gold-lo: #8a6a2c;
  --text: #f2ecdd;
  --muted: #b3a88f;
  --danger: #ff9b87;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --hex-clip: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --top-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff3c4; }

h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: #1a1306; padding: 10px 14px; border-radius: 2px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  color: #1a1306; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b8903d);
  border: 0; border-radius: 2px; cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.08); color: #1a1306; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: progress; filter: none; }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }

/* Botão com pontas de hexágono. O foco usa sombra interna porque clip-path corta o outline. */
.btn--hex {
  min-height: 56px; padding-inline: 40px;
  border-radius: 0;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
}
.btn--hex:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #1a1306, inset 0 0 0 5px var(--gold-hi);
}
.btn--block { display: flex; width: 100%; }

/* ---------- Topo ---------- */
.top { position: relative; z-index: 5; height: var(--top-h); }
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(var(--top-h) * -1); padding-block: calc(var(--top-h) + 12px) 64px; isolation: isolate; }

/* Malha de hexágonos, esmaecida nas bordas */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23D4AF5F' stroke-opacity='.16'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23D4AF5F' stroke-opacity='.16'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 78% 20%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 78% 20%, #000, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -3; inset: -20% -10% auto auto; width: 70%; height: 70%;
  background: radial-gradient(closest-side, rgba(212, 175, 95, 0.12), transparent);
}

/* Velas abstratas (sem eixos, sem valores, sem tendência). Única animação da página. */
.hero__velas {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%;
  opacity: 0.2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
          mask-image: linear-gradient(to right, transparent, #000 45%);
  animation: velas-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
@keyframes velas-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero__grid { display: grid; gap: 32px; padding-top: 12px; }

.hero__copy h1 {
  font-size: clamp(2.05rem, 8.2vw, 3.6rem);
  font-weight: 700; line-height: 1.05; max-width: 19ch;
}
.lead { margin-top: 18px; font-size: 1.075rem; color: var(--muted); max-width: 52ch; }

.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ticks li::before, .hex {
  content: ""; flex: none; width: 14px; height: 16px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-lo));
  clip-path: var(--hex-clip);
}

/* ---------- Painel do formulário ---------- */
.panel {
  --c: 26px;
  padding: 1px; scroll-margin-top: 16px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-lo) 45%, rgba(212, 175, 95, 0.3));
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.panel__in {
  --c: 26px;
  background: var(--surface); padding: 26px 20px 24px;
  clip-path: polygon(0 0, calc(100% - var(--c) + 1px) 0, 100% calc(var(--c) - 1px), 100% 100%, calc(var(--c) - 1px) 100%, 0 calc(100% - var(--c) + 1px));
}
.panel h2 { font-size: 1.5rem; font-weight: 700; }
.panel__sub { margin: 6px 0 20px; color: var(--muted); font-size: 0.95rem; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 95, 0.3); border-radius: 2px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: #7d745f; }
.field input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-color: var(--gold-hi); background: rgba(255, 255, 255, 0.07); }
.field.has-error input[type="text"], .field.has-error input[type="tel"], .field.has-error input[type="email"] { border-color: var(--danger); }

.err { margin-top: 6px; font-size: 0.85rem; color: var(--danger); }
.err:empty { display: none; }

.field .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); line-height: 1.5; font-weight: 400; margin: 0; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none;
  display: grid; place-content: center; width: 22px; height: 22px; margin: 0;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(212, 175, 95, 0.5); border-radius: 2px;
  cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease;
}
.consent input::before {
  content: ""; width: 12px; height: 12px; background: #1a1306; transform: scale(0); transition: transform 0.12s ease;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
.consent input:checked { background: var(--gold); border-color: var(--gold); }
.consent input:checked::before { transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.field--check.has-error .consent input { border-color: var(--danger); }
.field--check { margin: 4px 0 18px; }

.status { min-height: 1.4em; margin-top: 12px; font-size: 0.9rem; color: var(--danger); text-align: center; }
.status a { color: var(--gold-hi); }
.fine { margin-top: 4px; font-size: 0.8rem; color: var(--muted); text-align: center; }

.done h2 { margin-bottom: 8px; }
.done p { margin-bottom: 20px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Seções ---------- */
.sec { padding-block: clamp(56px, 9vw, 108px); }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); font-weight: 700; line-height: 1.1; }
.sec__title { margin-bottom: 36px; }

.split { display: grid; gap: 32px; }
.split__head p { margin-top: 14px; color: var(--muted); max-width: 40ch; }

.rows { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 14px 1fr; gap: 18px; padding-block: 26px; border-top: 1px solid var(--line); }
.row .hex { margin-top: 7px; }
.row h3 { font-size: 1.2rem; font-weight: 650; }
.row p { margin-top: 6px; color: var(--muted); max-width: 48ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.steps li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps__n {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold);
}
.steps h3 { margin-top: 10px; font-size: 1.2rem; font-weight: 650; }
.steps p { margin-top: 6px; color: var(--muted); max-width: 34ch; }

.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 60ch; }

/* ---------- Para quem é / não é ---------- */
.fit { display: grid; gap: 40px; }
.fit h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.fit__list { list-style: none; margin: 18px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.fit__list li { position: relative; padding: 16px 0 16px 30px; border-top: 1px solid var(--line); }
.fit__list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 16px; clip-path: var(--hex-clip); }
.fit__list--yes li::before { background: linear-gradient(160deg, var(--gold-hi), var(--gold-lo)); }
.fit__list--no li::before { background: #5b5240; }

/* ---------- Chamada final ---------- */
.final {
  padding-block: clamp(56px, 8vw, 96px);
  background: radial-gradient(ellipse 60% 120% at 50% 100%, rgba(212, 175, 95, 0.14), transparent), var(--bg);
  border-top: 1px solid var(--line);
}
.final__in { display: grid; gap: 24px; justify-items: start; }
.final h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; }
.final__text p { margin-top: 8px; color: var(--muted); }

/* ---------- Rodapé ---------- */
.foot { padding-block: 40px 48px; border-top: 1px solid var(--line); background: #0f0c08; color: var(--muted); font-size: 0.85rem; }
.foot__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.risk { max-width: 80ch; line-height: 1.65; }
.risk strong { color: var(--text); font-weight: 600; }
.foot__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Telas maiores ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .fit { grid-template-columns: 1fr 1fr; gap: 72px; }
  .final__in { grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .final__in .btn { justify-self: end; }
}

@media (min-width: 960px) {
  .hero { padding-block: calc(var(--top-h) + 24px) 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 72px; align-items: center; padding-top: 48px; }
  .hero__velas { left: auto; right: 0; width: 62%; opacity: 0.32; }
  .panel { --c: 34px; }
  .panel__in { --c: 34px; padding: 34px 32px 30px; }
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
}

/* ---------- Botão fixo no celular ---------- */
.sticky {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(19, 16, 11, 0.98) 62%, rgba(19, 16, 11, 0));
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.2s ease, visibility 0s linear 0.2s;
}
.sticky.is-visible { transform: none; visibility: visible; transition: transform 0.2s ease; }
.sticky .btn { min-height: 52px; }
@media (max-width: 959px) { .foot { padding-bottom: 120px; } }
@media (min-width: 960px) { .sticky { display: none; } }

/* ---------- Preferências do sistema ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__velas { animation: none; }
  * { transition: none !important; }
}
