@font-face { font-family: "Fractul"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/fractul-400.woff2") format("woff2"); }
@font-face { font-family: "Fractul"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/fractul-500.woff2") format("woff2"); }
@font-face { font-family: "Fractul"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/fractul-700.woff2") format("woff2"); }
@font-face { font-family: "Fractul"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/fractul-800.woff2") format("woff2"); }

:root {
  --bg: #f4f4fa;
  --surface: #fbfbfe;
  --ink: #1b1a36;
  --ink-soft: #565672;
  --line: #dfdff0;
  --brand: #342bb8;
  --brand-deep: #2d27ae;
  --brand-bright: #5c56ff;
  --brand-tint: #ecebff;
  --ok: #1d7a55;
  --ok-tint: #e5f5ee;
  --font: "Fractul", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Padrao de fitas da marca, so no canto e bem suave */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }
.bg::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(92vw, 1100px);
  aspect-ratio: 16 / 9;
  background: url("/img/pattern-suave.webp") right bottom / contain no-repeat;
  opacity: 0.55;
}
@media (min-width: 900px) {
  .bg::before { width: min(64vw, 1100px); opacity: 0.9; }
  .bg::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: min(34vw, 560px);
    aspect-ratio: 16 / 9;
    background: url("/img/pattern-suave.webp") left top / contain no-repeat;
    transform: scaleX(-1);
    opacity: 0.6;
  }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 4px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.logo { display: block; height: 30px; width: auto; }
.tag {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stage { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 12px 20px 40px; }
.card { width: 100%; max-width: 880px; animation: enter 280ms var(--ease-out) both; }
@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
}

.title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.title em { font-style: normal; color: var(--brand-bright); }
.lede { margin: 0; max-width: 44ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); color: var(--ink-soft); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-weight: 600; font-size: 14px; }
.input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 16px;
  transition: border-color 140ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: #8a8aa6; }
.input:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; border-color: var(--brand); }

.preview {
  margin: 0 0 24px;
  padding: 16px 18px 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 6px 16px 16px 6px;
  background: var(--brand-tint);
}
.preview-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.preview p { margin: 0; font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  padding: 0 24px;
  border-radius: 18px;
  background: var(--brand);
  color: #fbfbff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background-color 140ms var(--ease-out), transform 120ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--brand-deep); } }
.foot { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }

@media (min-width: 900px) {
  .top { padding: 28px 40px 4px; }
  .logo { height: 34px; }
  .stage { align-items: center; padding: 20px 40px 56px; }
  .card {
    padding: 44px 56px 40px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 30px 80px -40px rgba(45, 39, 174, 0.35), 0 2px 6px rgba(45, 39, 174, 0.04);
  }
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
  .body { padding-top: 6px; }
  .btn { height: 64px; }
}

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