/* ── Design tokens ───────────────────────────────────────────── */
:root {
  /* Marca C2S Comunicação: navy #1c2b57, laranja #ea690d, creme #f5ecde */
  --c2s-navy:     #1c2b57;
  --c2s-orange:   #ea690d;
  --c2s-cream:    #f5ecde;

  --paper:        #f7f0e5;
  --paper-raised: #fffaf3;
  --field:        #f5ecde;
  --ink:          var(--c2s-navy);
  --ink-soft:     #4a577c;
  --ink-faint:    #616a88;
  --line:         #e2d6c2;
  --accent:       #d35a08;
  --accent-text:  #c9550a;
  --accent-deep:  #b84c08;
  --accent-tint:  #fbe2cd;
  --danger:       #c0392b;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --text-lead:  clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --text-h1:    clamp(2.2rem, 1.35rem + 3.4vw, 3.7rem);

  --space-gutter: clamp(1.25rem, 0.9rem + 1.8vw, 3rem);
  --space-block:  clamp(2.5rem, 1.6rem + 4vw, 6rem);

  --radius:       18px;
  --radius-sm:    11px;
  --duration:     220ms;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-card:
    0 1px 2px rgb(28 43 87 / 0.05),
    0 12px 28px -12px rgb(28 43 87 / 0.16),
    0 40px 70px -50px rgb(28 43 87 / 0.45);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Halo quente no canto superior direito + textura de grão */
body::before {
  content: "";
  position: fixed;
  inset: -20% -30% auto auto;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 62%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ── Layout ──────────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-gutter);
  padding-block: var(--space-block);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  align-items: center;
}

/* ── Coluna editorial ────────────────────────────────────────── */
.logo {
  display: block;
  width: clamp(118px, 10vw, 134px);
  height: auto;
  margin: 0 0 1.7rem;
}

h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 em {
  display: block;
  font-style: italic;
  color: var(--accent-text);
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 34ch;
  font-size: var(--text-lead);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
  margin: 2.75rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.marks li { display: flex; flex-direction: column; padding-block: 0.35rem; }

.marks strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.marks span {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ── Card do formulário ──────────────────────────────────────── */
.card-wrap { position: relative; }

/* camada deslocada atrás do card, dá profundidade sem sombra pesada */
.card-wrap::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  box-shadow: var(--shadow-card);
}

.card-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-sub {
  margin: 0.15rem 0 1.75rem;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.field { margin-bottom: 1.15rem; }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
}

.optional {
  margin-left: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

input[type="text"], input[type="tel"] {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem; /* 16px evita zoom automático no iOS */
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}

input::placeholder { color: var(--ink-faint); }

input:hover:not(:focus) { border-color: #cbbba0; }

input:focus-visible {
  outline: none;
  background: var(--paper-raised);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(192 57 43 / 0.14);
}

.error {
  margin: 0.4rem 0 0;
  font-size: var(--text-xs);
  color: var(--danger);
}

/* honeypot anti-spam */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta {
  position: relative;
  width: 100%;
  margin-top: 0.6rem;
  padding: 1rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 0 var(--accent-deep), 0 10px 20px -12px var(--accent-deep);
  transition:
    transform var(--duration) var(--ease),
    background-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.cta:hover { background: var(--accent-deep); transform: translateY(-2px); }
.cta:active { transform: translateY(0); box-shadow: 0 1px 0 var(--accent-deep); }

.cta:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.cta[data-loading="true"] {
  pointer-events: none;
  opacity: 0.75;
}

.cta[data-loading="true"] .wa {
  animation: pulse 900ms var(--ease) infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.45; transform: scale(0.92); }
  to   { opacity: 1;    transform: scale(1); }
}

.status {
  margin: 0.85rem 0 0;
  min-height: 1.2em;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.status[data-tone="error"] { color: var(--danger); }

.privacy {
  margin: 1.15rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

/* ── Entrada suave ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .pitch > *, .card-wrap {
    animation: rise 620ms var(--ease) backwards;
  }
  .pitch > *:nth-child(1) { animation-delay: 40ms; }
  .pitch > *:nth-child(2) { animation-delay: 90ms; }
  .pitch > *:nth-child(3) { animation-delay: 140ms; }
  .pitch > *:nth-child(4) { animation-delay: 190ms; }
  .card-wrap { animation-delay: 120ms; }

  @media (max-width: 880px) {
    .card-wrap { animation-delay: 40ms; }
    .pitch > *:nth-child(1) { animation-delay: 120ms; }
    .pitch > *:nth-child(2) { animation-delay: 160ms; }
    .pitch > *:nth-child(3) { animation-delay: 200ms; }
    .pitch > *:nth-child(4) { animation-delay: 240ms; }
  }

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

/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  body { align-items: flex-start; }

  .shell {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* No celular o formulário abre a página; o texto sustenta logo abaixo. */
  .card-wrap { order: 1; }
  .pitch { order: 2; }

  .card-wrap::after { inset: 10px -10px -10px 10px; }

  .logo { margin-bottom: 1.35rem; }

  h1 { text-wrap: pretty; }

  .marks { margin-top: 1.75rem; }
}

@media (max-width: 560px) {
  :root {
    --space-block: 2rem;
    --radius: 16px;
  }

  .shell { gap: 2.25rem; }

  /* a camada de profundidade vaza na borda em telas estreitas */
  .card-wrap::after { display: none; }

  .card { padding: 1.4rem 1.25rem 1.5rem; }

  .card-title { font-size: 1.5rem; line-height: 1.15; }
  .card-sub { margin-bottom: 1.5rem; }

  .field { margin-bottom: 1rem; }

  /* alvo de toque confortável sem esticar demais o card */
  input[type="text"], input[type="tel"] { padding: 0.9rem; }
  .cta { padding: 1.05rem 1rem; }

  .logo { width: 124px; }

  .marks {
    flex-direction: column;
    gap: 0.3rem;
  }

  .marks li {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
    padding-block: 0;
  }

  .marks strong { font-size: 1.15rem; }
  .marks span { font-size: var(--text-sm); }
}


