/* ============================================================
   Landing Instituto Limite Pesquisas — Precificação
   Design system em :root + regras prefixadas por seção
   (componentes Vue globais não têm scoped style)
   ============================================================ */

:root {
  /* cores */
  --bg: #FAF6F0;
  --grad-top: #FBF8F3;
  --grad-mid: #F6F0E7;
  --grad-bottom: #F9F5EE;
  --ink: #2B2F36;
  --ink-strong: #23272E;
  --ink-72: rgba(43, 47, 54, .72);
  --ink-68: rgba(43, 47, 54, .68);
  --ink-55: rgba(43, 47, 54, .55);
  --ink-50: rgba(43, 47, 54, .50);
  --ink-45: rgba(43, 47, 54, .45);
  --ink-38: rgba(43, 47, 54, .38);
  --line: rgba(43, 47, 54, .11);
  --line-strong: rgba(43, 47, 54, .18);
  --line-soft: rgba(43, 47, 54, .14);
  --orange: #FF7A00;
  --orange-hover: #E86D00;
  --orange-active: #CF6100;
  --orange-deep: #C25F00;
  --orange-light: #FF8A00;
  --danger: #B21235;
  --surface: #FFFFFF;
  --surface-soft: #FCFAF7;
  --dark: #23272E;

  /* forma */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --pill: 100px;
  --shadow-card: 0 18px 40px -28px rgba(43, 47, 54, .28);
  --shadow-cover: 0 40px 70px -34px rgba(35, 39, 46, .6);

  /* tipografia e medidas */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--orange); }

input { font-family: inherit; }
input::placeholder { color: var(--ink-38); }

/* reserva de espaço até o app Vue montar (evita layout shift) */
#app { min-height: 100dvh; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* utilitário: rótulo acessível sem impacto visual */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-68);
}

/* ---------- animações (só transform/opacity) ---------- */
@keyframes limDrift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -26px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes limRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- página (viewport único, sem scroll externo) ---------- */
.page {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-mid) 46%, var(--grad-bottom) 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page__deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.page__deco span {
  position: absolute;
  border-radius: 50%;
  display: block;
}
.page__deco .deco--1 {
  top: -180px; right: -160px; width: 560px; height: 560px;
  border: 1px solid rgba(43, 47, 54, .07);
  animation: limDrift 18s ease-in-out infinite;
}
.page__deco .deco--2 {
  top: -90px; right: -70px; width: 380px; height: 380px;
  border: 1px solid rgba(255, 122, 0, .16);
  animation: limDrift 22s ease-in-out infinite;
}
.page__deco .deco--3 {
  top: 20px; right: 40px; width: 190px; height: 190px;
  background: rgba(255, 122, 0, .05);
  animation: limDrift 26s ease-in-out infinite;
}
.page__deco .deco--4 {
  bottom: -260px; left: -220px; width: 520px; height: 520px;
  border: 1px solid rgba(43, 47, 54, .06);
  animation: limDrift 24s ease-in-out infinite;
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
}
.site-header .logo {
  height: 28px;
  width: auto;
  display: block;
}
.site-header .tag {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-45);
  font-weight: 500;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: clamp(10px, 2vh, 28px) 20px clamp(10px, 2vh, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .6);
}
.hero .badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: block;
}
.hero .badge__text {
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-72);
}

.hero .title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.6vh, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 12px 0 0;
  color: var(--ink-strong);
  text-wrap: pretty;
}
.hero .title__mark {
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}
.hero .title__mark::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 7px;
  background: rgba(255, 122, 0, .32);
  display: block;
  z-index: 0;
}
.hero .title__mark span {
  position: relative;
  z-index: 1;
}

.hero .lead {
  font-size: clamp(13.5px, 1.9vh, 15.5px);
  line-height: 1.5;
  color: var(--ink-68);
  margin: clamp(8px, 1.4vh, 12px) 0 0;
  max-width: 520px;
  text-wrap: pretty;
}

/* ---------- formulário ---------- */
.lead-form {
  margin: clamp(12px, 2vh, 18px) 0 0;
  padding: clamp(14px, 2vh, 18px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 520px;
  box-shadow: var(--shadow-card);
}
.lead-form .form__label {
  margin: 0 0 clamp(8px, 1.4vh, 12px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.lead-form .form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px;
}
.lead-form .form__field {
  width: 100%;
  height: clamp(40px, 5.6vh, 46px);
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--ink-strong);
  background: var(--surface-soft);
  outline: none;
  transition: border-color .16s ease, background .16s ease;
}
.lead-form .form__field:hover { border-color: rgba(43, 47, 54, .28); }
.lead-form .form__field:focus {
  border-color: var(--orange);
  background: var(--surface);
}
.lead-form .form__field--wide { grid-column: 1 / -1; }
.lead-form .form__field--invalid { border-color: var(--danger); }

.lead-form .form__error {
  margin: 2px 0 0;
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--danger);
}

.lead-form .form__submit {
  grid-column: 1 / -1;
  margin-top: 4px;
  width: 100%;
  height: clamp(46px, 6.4vh, 52px);
  border: none;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--surface);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease;
}
.lead-form .form__submit:hover { background: var(--orange-hover); }
.lead-form .form__submit:active { background: var(--orange-active); }

.lead-form .form__note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-50);
}
.lead-form .form__note .nowrap { white-space: nowrap; }

.lead-form .form__fallback {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-68);
  animation: limRise .22s ease-out;
}

/* ---------- capa do material ---------- */
.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}
.cover .cover__ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(43, 47, 54, .09);
}
.cover .cover__glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 122, 0, .07);
}
.cover .cover__sheet {
  position: relative;
  height: min(100%, 520px);
  aspect-ratio: 1 / 1.414;
  max-width: 100%;
  background: var(--dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cover);
  padding: clamp(20px, 2.6vh, 36px) clamp(18px, 2.4vh, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-2.2deg);
}
.cover .cover__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cover .cover__brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: block;
}
.cover .cover__brand-name {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  font-weight: 600;
}
.cover .cover__series {
  margin: 18px 0 0;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-light);
  font-weight: 600;
}
.cover .cover__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.6vh, 29px);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--surface);
  margin: 12px 0 0;
}
.cover .cover__desc {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .55);
}
.cover .cover__rule {
  height: 1px;
  background: rgba(255, 255, 255, .16);
  margin-bottom: 16px;
}
.cover .cover__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
}
.cover .cover__bars span {
  flex: 1;
  background: rgba(255, 255, 255, .2);
  border-radius: 2px 2px 0 0;
}
.cover .cover__bars span.is-peak { background: var(--orange); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  flex: none;
  background: var(--surface);
  border-top: 1px solid rgba(43, 47, 54, .09);
}
.site-footer .footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .logo {
  height: 20px;
  width: auto;
  display: block;
}
.site-footer .footer__text {
  margin: 0;
  max-width: 760px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-55);
}

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .page { height: auto; min-height: 100dvh; }
  .hero { overflow-y: visible; padding-bottom: 32px; }
  .cover { height: auto; padding: 8px 0 4px; }
  .cover .cover__sheet { height: auto; width: min(326px, 82vw); }
  .cover .cover__ring { width: 320px; height: 320px; }
  .cover .cover__glow { width: 230px; height: 230px; }
}

@media (max-width: 480px) {
  .site-header { padding-top: 16px; }
  .site-header .tag { font-size: 10px; }
  .site-footer .footer__inner { padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .page__deco span { animation: none; }
  .lead-form .form__fallback { animation: none; }
}
