:root {
  --brand: #004aad;
  --brand-dark: #002f73;
  --text: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 74, 173, 0.1);
  --danger: #ef4444;
  --success: #16a34a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* A11Y */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform .2s ease;
  z-index: 2000;
}
.skip-link:focus { transform: translateY(0); }

/* Typography helpers */
.h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin: 0 0 20px; }
.h2 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin: 0 0 18px; }
.lead { font-size: 1.25rem; color: var(--muted); margin: 0 0 30px; }
.small { font-size: .9rem; color: var(--muted); margin: 0; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid #eee;
}
.header-grid { display: flex; justify-content: space-between; align-items: center; height: 80px; gap: 20px; }
.primary-nav ul { display: flex; list-style: none; gap: 20px; padding: 0; margin: 0; }
.primary-nav a { text-decoration: none; color: var(--text); font-weight: 600; }
.primary-nav a:hover { color: var(--brand); }

/* HERO */
.hero { position: relative; padding: 80px 0; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.badge {
  display: inline-flex;
  background: #eef2ff;
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.video-frame {
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 8px solid #111;
  box-shadow: var(--shadow);
  background: #0b1220;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Lite YouTube */
.yt-lite {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.yt-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
.yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.yt-play::before {
  content: "";
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.yt-play::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 18px solid #111;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: translateX(3px);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0.06;
  z-index: 1;
  filter: grayscale(1);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary-white { background: var(--white); color: var(--brand); }
.btn-outline { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { transform: translateY(-1px); }

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* TRUST / KPIS */
.trust { padding: 40px 0; background: var(--bg-light); }
.trust-grid {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item strong { font-size: 2.5rem; color: var(--brand); display: block; }

/* Sections */
.section-padding { padding: 80px 0; }
.text-center { text-align: center; margin-bottom: 40px; }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: left;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card i {
  font-size: 2.5rem;
  color: var(--brand);
  display: block;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.35rem; margin: 0 0 10px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }

.step-pill{
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 14px;
}

/* FAQ */
.faq { background: var(--bg-light); }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}
.faq summary { font-weight: 800; list-style: none; position: relative; padding-right: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 15px 0 0; color: var(--muted); line-height: 1.6; }

/* FORM WRAP */
.form-wrap { background: var(--brand); color: var(--white); padding: 80px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.livia-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--white);
  margin-bottom: 20px;
  object-fit: cover;
}

form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  color: var(--text);
  display: grid;
  gap: 14px;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
}

input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-top: 6px;
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus {
  border-color: rgba(0, 74, 173, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.15);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  user-select: none;
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; }
.checkbox span { color: #0f172a; font-weight: 600; }

.form-feedback {
  display: block;
  min-height: 20px;
  font-weight: 700;
  margin-top: 4px;
}
.form-feedback.is-success { color: var(--success); }
.form-feedback.is-error { color: var(--danger); }

form.was-validated input:invalid { border-color: var(--danger); }
form.was-validated input:valid { border-color: var(--success); }
form.was-validated input:invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* FOOTER */
.site-footer { padding: 30px 0; border-top: 1px solid #eee; }
.footer-grid { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* WhatsApp floating button */
.wa-floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border: none;
}
.wa-tooltip {
  position: absolute;
  right: 75px;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-weight: 700;
}
.wa-floating-button:hover .wa-tooltip { opacity: 1; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 18px;
}
.modal-overlay.active { display: grid; }
.modal-content {
  background: #fff;
  padding: 28px;
  border-radius: 20px;
  width: min(420px, 100%);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #0f172a;
}

@media (max-width: 768px) {
  .hero { padding: 54px 0; }
  .hero-grid, .form-grid { grid-template-columns: 1fr; text-align: center; }
  .primary-nav { display: none; }
  .h1 { font-size: 2.4rem; }
  .h2 { font-size: 1.8rem; }
  .hero-actions { justify-content: center; }
  .card { text-align: left; }
}
