/* =====================================================
   VARS
   ===================================================== */
:root {
  --red:        #C94A3D;
  --red-dark:   #a83a2e;
  --blue-light: #A8DCE8;
  --green-edu:  #A5C96A;
  --orange:     #F2A23A;
  --surface:    #EDEEE8;
  --ink:        #1a1a1a;
  --ink-mid:    #3a3a3a;
  --ink-light:  #666;
  --white:      #fff;

  --font-title: 'Manrope', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-badge: 'Amatic SC', cursive;

  --radius:     12px;
  --radius-sm:  8px;
}

/* =====================================================
   RESET / BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink-mid);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  padding: 48px 0 64px;
  background-color: #dfe0d8;
  background-image:
    radial-gradient(ellipse at 75% 5%,  rgba(168,220,232,.72) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 95%, rgba(201,74,61,.28)   0%, transparent 48%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(44,44,44,.22) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* =====================================================
   HERO — BADGE
   ===================================================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(26,106,122,.14);
  border: 1.5px solid rgba(26,106,122,.45);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 22px;
}

.badge-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #124f5c;
}

/* =====================================================
   HERO — TÍTULO
   ===================================================== */
.hero-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.705rem; /* 1.55 * 1.1 */
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-title-mid {
  font-size: 1.876rem; /* 1.705 * 1.1 */
  font-weight: 600;
}

.hero-title-num {
  font-family: var(--font-badge);
  font-weight: 700;
  font-size: 2.64rem; /* 2.4rem * 1.1 */
  line-height: 1;
  color: var(--red);
  letter-spacing: .01em;
  vertical-align: baseline;
  -webkit-text-stroke: .6px var(--red);
}

.hero-title-destaque {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.222rem; /* 2.02 * 1.1 */
  line-height: 1.15;
  color: var(--red);
  letter-spacing: -.01em;
}

/* =====================================================
   HERO — SUBTÍTULO / CORPO
   ===================================================== */
.hero-sub {
  font-size: 1.247rem; /* 1.188 * 1.05 */
  font-weight: 400;
  color: var(--ink-mid);
  margin-top: 24px;
  margin-bottom: 24px;
  line-height: 1.55;
}

.hero-sub strong { font-weight: 700; color: var(--ink); }

.hero-body {
  font-size: .93rem;
  color: #3a3a3a;
  line-height: 1.55;
  margin-bottom: 20px;
}

.hero-body + .features-section { margin-top: 20px; }



/* =====================================================
   FEATURES SECTION (abaixo do form)
   ===================================================== */
.features-section {
  margin-top: 28px;
}

.features-title {
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #3a3a3a;
  margin-bottom: 14px;
  line-height: 1.55;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  border-radius: 12px;
  padding: 18px 14px 16px;
  font-size: .82rem;
  font-weight: 400;
  color: #3a3a3a;
  line-height: 1.4;
  transition: transform .18s, box-shadow .18s;
  cursor: default;
  width: auto;
}

.feature-card:nth-child(1) { background: rgba(168,220,232,.22); }
.feature-card:nth-child(2) { background: rgba(165,201,106,.2);  }
.feature-card:nth-child(3) { background: rgba(201,74,61,.1);    }
.feature-card:nth-child(4) { background: rgba(242,162,58,.15);  }

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .18s;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(168,220,232,.5); color: #1a6a7a; }
.feature-card:nth-child(2) .feature-icon { background: rgba(165,201,106,.45); color: #3a6010; }
.feature-card:nth-child(3) .feature-icon { background: rgba(201,74,61,.22);   color: #a83a2e; }
.feature-card:nth-child(4) .feature-icon { background: rgba(242,162,58,.35);  color: #8a5a10; }

.feature-label {
  font-size: .88rem;
  line-height: 1.45;
  color: #3a3a3a;
}

/* =====================================================
   FORM CARD
   ===================================================== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 26px 20px;
  box-shadow: 0 8px 36px rgba(201,74,61,.12), 0 1px 4px rgba(0,0,0,.05);
  border: 1.5px solid rgba(201,74,61,.25);
}

.form-card-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.field-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.field-wrap input {
  font-family: var(--font-body);
  font-size: .92rem;
  padding: 11px 14px;
  border: 1.5px solid #C8C8C0;
  border-radius: var(--radius-sm);
  background: #fafaf8;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.field-wrap input::placeholder { color: #B4B4AC; }

.field-wrap input:focus {
  border-color: var(--blue-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168,220,232,.22);
}

.field-wrap input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201,74,61,.1);
}

.field-error {
  font-size: .75rem;
  color: var(--red);
  margin-top: 3px;
  display: none;
}

.field-error.show { display: block; }

/* OPTIN */
.optin-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 14px;
  margin-top: 2px;
}

.optin-label input[type="checkbox"] { display: none; }

.optin-box {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border: 1.5px solid #C4C4BC;
  border-radius: 4px;
  background: #fafaf8;
  margin-top: 2px;
  position: relative;
  transition: border-color .15s, background .15s;
}

.optin-label input:checked + .optin-box {
  background: #5c8f27;
  border-color: #A5C96A;
}

.optin-label input:checked + .optin-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.5px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.optin-text {
  font-size: .738rem;
  color: var(--ink-mid);
  line-height: 1.45;
}

/* BOTÃO CTA */
.btn-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  cursor: pointer;
  letter-spacing: .01em;
  box-shadow: 0 4px 18px rgba(201,74,61,.32);
  transition: background .18s, box-shadow .18s, transform .1s;
}

.btn-download:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 22px rgba(201,74,61,.42);
  transform: translateY(-1px);
}

.btn-download:active { transform: translateY(0); }
.btn-download:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* SUCCESS */
.success-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2d7a4f;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  margin-top: 12px;
}

.success-msg svg { stroke: #fff; }

/* PRIVACY */
.privacy-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--ink-light);
  margin-top: 10px;
  justify-content: center;
}

/* =====================================================
   HERO — DIREITA / CAPA
   ===================================================== */
.hero-right {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cover-frame {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(135deg, #A8DCE8 0%, #C94A3D 50%, #1a6a7a 100%);
  box-shadow:
    0 2px 4px rgba(0,0,0,.08),
    0 8px 20px rgba(0,0,0,.14),
    0 24px 52px rgba(0,0,0,.16);
}

.cover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: none;
  border: none;
}

.cover-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(.97);
}

/* Fade bottom — indica prévia visualmente */
.cover-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(to bottom, transparent 0%, rgba(30,32,36,.55) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Watermark diagonal discreta */
.cover-wrap::after {
  content: 'PRÉVIA';
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255,255,255,.1);
  letter-spacing: .3em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 2;
}

/* Pedestal abaixo da capa */
.cover-pedestal {
  background: #1a1d24;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-pedestal-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: .73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8a8f9a;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #1a1d24;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-name-block {
  display: flex;
  flex-direction: column;
}

.f-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: #f0f0ec;
}

.f-role {
  font-size: .75rem;
  color: #8a8f9a;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-buttons {
  display: flex;
  align-items: center;
}

.footer-cta-text {
  font-size: .8rem;
  color: #9a9fa8;
  font-family: var(--font-body);
  line-height: 1.4;
  white-space: nowrap;
}

.footer-btns-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
  letter-spacing: .01em;
  border: 1px solid #2a2e38;
  background: #22262f;
  color: #c0c0bc;
  white-space: nowrap;
}

.footer-btn:hover {
  background: #2a2e38;
  transform: translateY(-1px);
}

.footer-legal {
  width: 100%;
  font-size: .72rem;
  color: #7a7f8a;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #22262f;
  margin-top: 4px;
}

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: transform .18s, box-shadow .18s;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

.wa-tip {
  position: absolute;
  right: 62px;
  white-space: nowrap;
  background: #1a1d24;
  color: #e8e8e4;
  font-size: .73rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.wa-float:hover .wa-tip { opacity: 1; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  /* Ordem no mobile: badge > título > form > subtítulo > corpo > features */
  .hero-badge        { order: 1; }
  .hero-title        { order: 2; }
  .hero-right        { order: 3; }
  .hero-sub          { order: 4; }
  .hero-body         { order: 5; }
  .features-section  { order: 6; }

  /* hero-left vira flex também */
  .hero-left {
    display: contents;
  }

  .hero-right {
    position: static;
    width: 100%;
    max-width: 480px;
    margin: 16px 0 0;
  }

  /* Esconde a capa no tablet/mobile — form é o foco */
  .cover-frame { display: none; }

  .hero-title-destaque { font-size: 2.2rem; }
}

@media (max-width: 600px) {
  .hero { padding: 28px 0 44px; }

  .hero-title { font-size: 1.2rem; }
  .hero-title-mid { font-size: 1.35rem; }
  .hero-title-destaque { font-size: 1.75rem; }
  .hero-title-num { font-size: 2.2rem; }

  .hero-sub { font-size: .93rem; }
  .hero-body { font-size: .88rem; }

  /* Features: 1 coluna no mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: row;
    text-align: left;
    padding: 14px 16px;
    gap: 14px;
    align-items: center;
  }

  .feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
  }

  .form-card { padding: 20px 18px 18px; }

  /* Footer simplificado */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-cta-text { white-space: normal; }

  .footer-btns-row { flex-wrap: wrap; }

  .footer-legal { text-align: left; }

  /* WhatsApp float — maior área de toque */
  .wa-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}
