*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── DESIGN TOKENS (Figma: Cadu Brand Colors) ─── */
:root {
  --blue-900: #003b6a;
  --blue-800: #0e4d84;
  --blue-700: #27609d;
  --blue-600: #3f74b4;
  --blue-500: #5688cb;
  --blue-400: #6f9de0;
  --blue-300: #88b2f5;
  --blue-200: #a1c8ff;
  --blue-100: #bbdeff;
  --blue-50:  #d6f5ff;
  --blue-src: #306bac;

  --orange-600: #c5492d;
  --orange-500: #de5e3f;
  --orange-300: #ff8b69;
  --orange-100: #ffbd9b;
  --orange-50:  #ffd7b7;

  --text-primary:   #060c14;
  --text-secondary: #1e2c3d;
  --text-muted:     #4a5568;

  --bg:         #ffffff;
  --bg-section: #f4f8ff;
  --border:     #e2e8f0;
  --border-strong: #cbd5e1;

  --font: 'Inter', sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── HEADER ─── */
header {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* ─── HERO ─── */
.hero {
  min-height: calc(100vh - 63px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 55%);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* ─── LEFT: COPY ─── */

.urgency-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff4f1;
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 10px;
  margin-top: 28px;
}

.urgency-pill .pill-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.urgency-pill .pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.urgency-pill .pill-text span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.urgency-pill strong {
  font-size: 18px;
  font-weight: 900;
  color: #FF7755;
  letter-spacing: -0.4px;
}


.hero-copy h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--blue-src);
}

.hero-copy h1 em.highlight {
  color: #FF7755;
}

.hero-copy p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
}

/* ─── RIGHT: FORM ─── */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
}

.form-card h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.form-card .form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 14px; position: relative; }

.field-error {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #d93025;
  margin-top: 6px;
}

.form-group.has-error input {
  border-color: #d93025;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.form-group.has-error .field-error { display: block; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-group input {
  width: 100%;
  padding: 13px 15px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder { color: #9aa5b4; }

.form-group input:focus {
  border-color: var(--blue-src);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(48, 107, 172, 0.12);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--blue-src);
  color: #ffffff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  letter-spacing: -0.1px;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(48, 107, 172, 0.35);
}

.btn-submit:active { transform: translateY(0); }

.privacy-note {
  font-size: 12px;
  color: #9aa5b4;
  text-align: center;
  margin-top: 14px;
}

/* ─── LOADING OVERLAY ─── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-overlay.visible {
  display: flex;
}

.loading-overlay.fade-in {
  opacity: 1;
}

.loading-logo {
  width: 72px;
  animation: logoSquareBounce 1.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  transform-origin: center center;
}

@keyframes logoSquareBounce {
  0%   { transform: rotate(0deg)   scale(1); }
  25%  { transform: rotate(90deg)  scale(0.9); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-300);
  animation: dot 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* ─── SUCCESS PAGE ─── */
.success-page {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 101;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.success-page.visible  { display: flex; flex-direction: column; }
.success-page.fade-in  { opacity: 1; }

.success-page header {
  flex-shrink: 0;
}

.success-page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.success-check {
  width: 64px;
  height: 64px;
  background: #edfff5;
  border: 2px solid #5ecb8a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #27a05e;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.success-page-body h2 {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.success-page-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.success-page-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.sp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.sp-link--instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
}

.sp-link--site {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-src);
}

/* ─── SUCCESS (card — mantido mas não usado no novo fluxo) ─── */
.success-message {
  display: none;
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: #edfff5;
  border: 2px solid #5ecb8a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: #27a05e;
}

.success-message h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.success-message .success-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.success-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.success-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.success-link--instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
}

.success-link--site {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-src);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  header { padding: 18px 24px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px 56px;
  }

  .hero-copy h1 { font-size: 34px; }
  .hero-copy p  { max-width: 100%; }
}

@media (max-width: 420px) {
  .form-card { padding: 28px 20px; }
}
