:root {
  /* Paleta pastel calma e tranquilizante */
  --primary: #9ad5ca;       /* verde-água suave */
  --primary-700: #83c9bf;   /* tom um pouco mais escuro para hover */
  --bg: #f9fbfc;            /* fundo muito claro */
  --surface: #ffffff;       /* superfícies */
  --text: #1f2a44;          /* texto levemente azulado para conforto visual */
  --muted: #6c7f96;         /* texto secundário suave */
  --border: #e6eef5;        /* bordas discretas */
  --shadow: 0 6px 20px rgba(31, 42, 68, 0.06);
  --cta-start: #bdf7d3;
  --cta-end: #6fdc9b;
  --cta-border: #5ccf8d;
  --cta-shadow-strong: 0 10px 30px rgba(111, 220, 155, 0.28);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)), url('emagrepen-bg.jpg');
  background-size: auto, cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.5;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo span {
  color: var(--primary);
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 70ch;
}

.actions {
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.btn-cta {
  font-weight: 700;
  padding: 1rem 1.4rem;
  box-shadow: 0 8px 28px rgba(31, 42, 68, 0.12);
  animation: ctaPulse 1.8s ease-in-out infinite;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #111;
  border-color: var(--cta-border);
  box-shadow: var(--cta-shadow-strong);
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #c9fadf, #79e1a7);
  color: #111;
  box-shadow: 0 12px 36px rgba(111, 220, 155, 0.34);
}

.btn-cta:focus-visible {
  outline: 3px solid rgba(255, 179, 0, 0.35);
  outline-offset: 3px;
}

.btn-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.6), transparent 60%);
  transform: skewX(-20deg);
  opacity: 0.0;
  animation: ctaShine 2.8s ease-in-out infinite;
}

@keyframes ctaShine {
  0% { left: -40%; opacity: 0; }
  40% { opacity: 0.6; }
  100% { left: 120%; opacity: 0; }
}

@keyframes ctaPulse {
  0%, 100% { transform: translateY(-1px) scale(1); }
  50% { transform: translateY(-2px) scale(1.02); }
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-arrow:hover {
  background: var(--primary-700);
}

.testimonials {
  padding: 2rem 0 3rem;
}

.testimonials h2,
.contact h2 {
  margin: 0 0 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card__meta {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  padding: 2rem 0 3rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.contact__item { margin-bottom: 0.5rem; }

.contact__cta { text-align: right; }

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  color: var(--muted);
}

.form-section { padding: 2.5rem 0 3rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
}

.form-grid label.full { grid-column: 1 / -1; }

.form-grid input,
.form-grid textarea,
.form-grid select {
  appearance: none;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: 2px solid rgba(14, 165, 165, 0.2);
  border-color: var(--primary);
}

/* Realce de campos inválidos apenas após tentativa de avançar */
.form-grid .is-invalid {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
  background: #fff6f6;
}

.grid-3 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lgpd {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.imc {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.imc__value { font-size: 1.05rem; }

.recommendation {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.recommendation h3 { margin-top: 0; }

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.option-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}

.option-item strong { color: var(--primary-700); }

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.alert {
  margin-top: 1rem;
  background: #fff6f6;
  border: 1px solid #f8d7da;
  color: #7a2e2e;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.alert[hidden] { display: none; }

.alert-warning { /* reservado para variações futuras */ }

/* Modal de aviso */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 68, 0.30);
  z-index: 1000;
}

.modal[aria-hidden="false"] { display: flex; }

.modal__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(520px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

/* Imagem do produto */
.product__image {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 0 1rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.product__title {
  margin: 0 0 0.75rem;
}

.product-top__right .card { margin-top: 0.25rem; }

@media (max-width: 960px) {
  .product-top { grid-template-columns: 1fr; }
  .product__image { max-width: 100%; }
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.btn[aria-disabled="true"] {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.8;
}

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__cta { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .options { grid-template-columns: 1fr; }
}
