/* ============================================================
   EU FIZ — Faz Q Vende · mundo herdado do canal
   navy #020617 · dourado #F59E0B/#FACC15 · Montserrat + Open Sans
   ============================================================ */

:root {
  --bg: #020617;
  --bg-raise: #0A0F1E;
  --card: rgba(15, 23, 42, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #F59E0B;
  --gold-bright: #FACC15;
  --gold-deep: #D97706;
  --gold-glow: rgba(245, 158, 11, 0.22);
  --ink: #F8FAFC;
  --ink-soft: #CBD5E1;
  --ink-mute: #94A3B8;
  --ink-ghost: #8496B2;
  --error: #FCA5A5;
  --error-strong: #F87171;
  --radius-card: 24px;
  --radius-ctl: 16px;
  --font-display: "Montserrat", "Avenir Next", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* luz de estúdio fixa, sem background-attachment (quebra no iOS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 85% -10%, rgba(245, 158, 11, 0.09), transparent 60%),
    radial-gradient(90% 50% at -10% 100%, rgba(245, 158, 11, 0.05), transparent 55%);
}

::selection { background: var(--gold); color: #1A1205; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

html { scrollbar-color: rgba(245, 158, 11, 0.45) var(--bg); scrollbar-width: thin; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.35); border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.stage {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

/* ---------- marca ---------- */

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-name em { font-style: normal; color: var(--gold); }

.brand-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

/* ---------- layout ---------- */

.layout {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.6rem;
}

@media (min-width: 64rem) {
  .layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4.5rem;
    padding-top: 3.5rem;
    align-items: start;
  }
  .intro { position: sticky; top: 3rem; }
}

/* ---------- intro ---------- */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 19vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.display .dot { color: var(--gold); }

.lead-question {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  line-height: 1.3;
  color: var(--gold-bright);
  text-wrap: balance;
}

.lead {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

.lead strong { color: var(--ink); }

.steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 30rem;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-mute);
  font-size: 0.95rem;
}

.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
}

/* ---------- cartão / formulário ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 158, 11, 0.07);
  padding: 1.5rem 1.25rem 1.75rem;
  backdrop-filter: blur(8px);
}

@media (min-width: 40rem) {
  .card { padding: 2.25rem 2rem 2.5rem; }
}

.group {
  border: 0;
  margin: 2rem 0 0;
  padding: 0;
}

.group:first-child { margin-top: 0; }

.group-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.3rem;
}

.group-hint {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* pills */

.pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.pill { position: relative; display: block; }

.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 0.5rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-ctl);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.pill input:hover + span { border-color: rgba(245, 158, 11, 0.5); }

.pill input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1205;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--gold-glow);
  transform: translateY(-1px);
}

.pill input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* campos */

.field { margin-top: 0.9rem; min-width: 0; }

.field-row {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40rem) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
}

.field > label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.req { color: var(--gold-bright); font-weight: 700; }

.opt {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-ghost);
  margin-left: 0.2rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  background: rgba(2, 6, 23, 0.6);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-ctl);
  color: var(--ink);
  caret-color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

textarea { resize: vertical; min-height: 9rem; }

input::placeholder,
textarea::placeholder { color: var(--ink-ghost); opacity: 1; }

input:hover, textarea:hover { border-color: rgba(245, 158, 11, 0.4); }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error-strong);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.ta-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.3rem;
}

.counter {
  margin-top: 0.35rem;
  margin-left: auto;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-ghost);
  white-space: nowrap;
  transition: color 0.3s;
}

.counter.ok { color: var(--gold-bright); }

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--error);
}

.form-error {
  margin: 1.2rem 0 0;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius-ctl);
  background: rgba(248, 113, 113, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--error);
}

/* consentimento */

.group-consent { display: grid; gap: 0.9rem; }

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.check-box {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  margin-top: 0.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #1A1205;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.check-box svg { width: 0.95rem; height: 0.95rem; opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.25s var(--ease-out); }

.check input:checked + .check-box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.check:hover .check-box { border-color: rgba(245, 158, 11, 0.55); }

.check-text { font-size: 0.92rem; color: var(--ink-soft); }
.check-text strong { color: var(--ink); }

/* honeypot */

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

/* botão ---------- */

.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.6rem;
  padding: 1.05rem 1.5rem;
  border: 0;
  border-radius: 16px;
  background: var(--gold);
  color: #1A1205;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.3);
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.submit:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 18px 44px rgba(245, 158, 11, 0.38); }
.submit:active { transform: translateY(0); }

.submit:disabled {
  cursor: default;
  background: var(--gold-deep);
  transform: none;
  box-shadow: none;
  opacity: 0.85;
}

.submit-icon { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.spinner {
  display: none;
  width: 1.1rem; height: 1.1rem;
  border: 2.5px solid rgba(26, 18, 5, 0.3);
  border-top-color: #1A1205;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.submit.loading .submit-icon { display: none; }
.submit.loading .spinner { display: inline-block; }

.privacy {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-ghost);
}

/* ---------- sucesso ---------- */

.success { text-align: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }

.success-badge {
  width: 4.5rem; height: 4.5rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gold);
  color: #1A1205;
  display: grid;
  place-items: center;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.35);
  animation: pop 0.5s var(--ease-out) both;
}

.success-badge svg { width: 2.2rem; height: 2.2rem; }

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  outline: none;
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.success-text { margin: 0.7rem auto 0; max-width: 26rem; color: var(--ink-soft); }

.success-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.btn-ghost:hover { border-color: var(--gold); background: rgba(245, 158, 11, 0.08); }
.btn-ghost svg { width: 1rem; height: 1rem; fill: var(--gold); }

/* ---------- rodapé ---------- */

.foot {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-ghost);
}

.foot a { color: var(--ink-mute); text-decoration: none; }
.foot a:hover { color: var(--gold-bright); }

/* ---------- entrada orquestrada ---------- */

@media (prefers-reduced-motion: no-preference) {
  .intro > *, .form-col .card {
    animation: rise 0.7s var(--ease-out) both;
  }
  .display { animation-delay: 0.05s; }
  .lead-question { animation-delay: 0.14s; }
  .lead { animation-delay: 0.2s; }
  .steps { animation-delay: 0.26s; }
  .form-col .card { animation-delay: 0.32s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
