/* ============ FONTS ============ */
@font-face {
  font-family: 'Learning Curve';
  src: url('assets/fonts/learning_curve_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Learning Curve';
  src: url('assets/fonts/learning_curve_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Freight Text é Adobe Fonts (paga). Uso EB Garamond / Cormorant Garamond como pares
   próximos via Google Fonts. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ============ TOKENS ============ */
:root {
  /* Brand palette (extraída de VL CORES) */
  --vl-cream: #F7F2ED;
  --vl-cream-deep: #F0E7DD;
  --vl-brown-deep: #432219;
  --vl-brown: #7E4D3F;
  --vl-brown-warm: #B47D4E;
  --vl-terracotta: #B87864;
  --vl-peach: #F3A38A;
  --vl-peach-light: #F4BDAB;
  --vl-peach-pale: #F6D8CC;
  --vl-mustard: #EDAB69;
  --vl-mustard-light: #F0C395;
  --vl-sand: #F4DBC1;
  --vl-olive: #8B8F63;
  --vl-sage: #AFC588;
  --vl-sage-pale: #C7D4AA;
  --vl-sage-mist: #DFE3CB;
  --vl-blue: #99C5CB;
  --vl-blue-light: #B8D4D6;
  --vl-blue-mist: #D8E3E2;
  --vl-stone: #7C8F90;
  --vl-charcoal: #605854;

  /* WhatsApp */
  --wa-green: #25D366;
  --wa-green-deep: #128C7E;

  --shadow-sm: 0 1px 2px rgba(67, 34, 25, 0.06), 0 1px 1px rgba(67, 34, 25, 0.04);
  --shadow-md: 0 4px 12px rgba(67, 34, 25, 0.08), 0 2px 4px rgba(67, 34, 25, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(67, 34, 25, 0.18), 0 8px 16px -8px rgba(67, 34, 25, 0.10);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --serif: 'Fraunces', 'Freight Text Pro', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --script: 'Learning Curve', 'Caveat', cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--vl-brown-deep);
  background: var(--vl-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* ============ LAYOUT ============ */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; }
}

/* ============ HERO (left side) ============ */
.hero {
  position: relative;
  padding: 56px 64px 64px;
  background: var(--vl-cream-deep);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, var(--vl-peach-pale) 0%, transparent 32%),
    radial-gradient(circle at 88% 78%, var(--vl-sage-mist) 0%, transparent 38%),
    radial-gradient(circle at 70% 18%, var(--vl-mustard-light) 0%, transparent 22%);
  opacity: 0.55;
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: auto; display: block; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--vl-cream);
  color: var(--vl-brown);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(126, 77, 63, 0.15);
}
.tag-pill .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--vl-peach);
  box-shadow: 0 0 0 4px rgba(243, 163, 138, 0.25);
}

.hero-headline {
  margin-top: 64px;
  margin-bottom: 32px;
}

.eyebrow {
  font-family: var(--script);
  font-size: 38px;
  color: var(--vl-terracotta);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--vl-brown-deep);
  margin: 0 0 20px;
  text-wrap: balance;
}

.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--vl-terracotta);
}

.sub {
  font-size: 17px;
  color: var(--vl-brown);
  max-width: 460px;
  line-height: 1.55;
  margin: 0;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.benefit .ico {
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--vl-cream);
  border: 1px solid rgba(126, 77, 63, 0.12);
  color: var(--vl-terracotta);
}
.benefit:nth-child(2) .ico { color: var(--vl-mustard); }
.benefit:nth-child(3) .ico { color: var(--vl-olive); }
.benefit-text strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--vl-brown-deep);
}
.benefit-text span {
  font-size: 14px;
  color: var(--vl-brown);
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--vl-brown);
  flex-wrap: wrap;
}
.hero-foot .stack { display: flex; flex-direction: column; gap: 2px; }
.hero-foot strong { color: var(--vl-brown-deep); font-weight: 600; font-family: var(--serif); font-size: 22px; }

.divider-vert {
  width: 1px; height: 36px;
  background: rgba(126, 77, 63, 0.2);
}

/* tiny illustrative roof line at the bottom */
.rooftops {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 78px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0.85;
}

/* ============ FORM PANEL (right) ============ */
.panel {
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vl-cream);
  position: relative;
}

.card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(126, 77, 63, 0.08);
  position: relative;
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--vl-peach-pale);
  color: var(--vl-brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--vl-brown-deep);
  line-height: 1.15;
}
.card-sub {
  font-size: 14px;
  color: var(--vl-brown);
  margin: 0 0 28px;
}

.form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vl-brown);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input, .field select {
  padding: 13px 14px;
  border: 1.5px solid rgba(126, 77, 63, 0.18);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--vl-cream);
  transition: border-color 160ms, background 160ms, box-shadow 160ms;
  outline: none;
  color: var(--vl-brown-deep);
}
.field input::placeholder { color: rgba(126, 77, 63, 0.4); }
.field input:focus, .field select:focus {
  border-color: var(--vl-terracotta);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(184, 120, 100, 0.15);
}
.field.error input, .field.error select {
  border-color: #C44536;
  background: #FFF5F3;
}
.field-error {
  font-size: 12px;
  color: #C44536;
  margin-top: 2px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.row-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 460px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* Native select styling */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--vl-brown) 50%),
    linear-gradient(135deg, var(--vl-brown) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
  cursor: pointer;
}
.field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: rgba(247,242,237,0.6);
}

/* Autocomplete city */
.autocomplete {
  position: relative;
}
.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 36px -12px rgba(67, 34, 25, 0.22), 0 6px 12px -6px rgba(67, 34, 25, 0.10);
  border: 1px solid rgba(126, 77, 63, 0.14);
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}
/* allow dropdown to overflow card */
.card { overflow: visible; }
.autocomplete-item {
  padding: 9px 12px;
  font-size: 14px;
  color: var(--vl-brown-deep);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.autocomplete-item:hover, .autocomplete-item.active {
  background: var(--vl-peach-pale);
  color: var(--vl-brown-deep);
}
.autocomplete-item .uf-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vl-brown);
  opacity: 0.6;
}
.autocomplete-item mark {
  background: transparent;
  color: var(--vl-terracotta);
  font-weight: 600;
}
.autocomplete-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--vl-brown);
  opacity: 0.6;
  font-style: italic;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-pill {
  padding: 12px 12px;
  border: 1.5px solid rgba(126, 77, 63, 0.18);
  border-radius: var(--radius-md);
  background: var(--vl-cream);
  font-size: 13px;
  font-weight: 600;
  color: var(--vl-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 140ms;
  text-align: left;
}
.profile-pill .pp-emoji {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--vl-terracotta);
  font-size: 14px;
  flex: 0 0 auto;
}
.profile-pill:hover { border-color: var(--vl-terracotta); }
.profile-pill.active {
  background: var(--vl-peach-pale);
  border-color: var(--vl-terracotta);
  color: var(--vl-brown-deep);
}
.profile-pill.active .pp-emoji { background: var(--vl-terracotta); color: #fff; }

.school-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms ease, opacity 200ms ease, margin 200ms ease;
}
.school-field.open {
  max-height: 110px;
  opacity: 1;
}

.btn-primary {
  margin-top: 8px;
  padding: 16px 22px;
  background: var(--vl-brown-deep);
  color: var(--vl-cream);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 120ms, background 160ms, box-shadow 160ms;
  box-shadow: 0 8px 20px -8px rgba(67, 34, 25, 0.45);
  letter-spacing: 0.01em;
}
.btn-primary:hover:not(:disabled) {
  background: #5b3024;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(67, 34, 25, 0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.fineprint {
  font-size: 11px;
  color: var(--vl-brown);
  opacity: 0.7;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}
.fineprint a { color: var(--vl-terracotta); text-decoration: underline; }

/* ============ SUCCESS STATE ============ */
.success-card {
  text-align: center;
  padding: 48px 40px 40px;
}

.confetti-burst {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--vl-peach) 0%, var(--vl-mustard) 100%);
  color: #fff;
  position: relative;
  animation: pop 540ms cubic-bezier(.2, 1.5, .5, 1) both;
}
.confetti-burst::before, .confetti-burst::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: var(--vl-sage);
}
.confetti-burst::before {
  width: 10px; height: 10px;
  top: -4px; left: 8px;
  background: var(--vl-peach);
  animation: float 1.6s ease-in-out infinite;
}
.confetti-burst::after {
  width: 8px; height: 8px;
  bottom: -2px; right: 0;
  background: var(--vl-mustard);
  animation: float 1.8s ease-in-out infinite reverse;
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.success-script {
  font-family: var(--script);
  font-size: 56px;
  color: var(--vl-terracotta);
  line-height: 1;
  margin: 0 0 8px;
}
.success-h {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--vl-brown-deep);
}
.success-p {
  font-size: 15px;
  color: var(--vl-brown);
  margin: 0 0 28px;
  line-height: 1.5;
}

.coupon {
  position: relative;
  background: var(--vl-cream);
  border: 2px dashed var(--vl-terracotta);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.coupon::before, .coupon::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 999px;
  top: 50%; transform: translateY(-50%);
  border: 2px dashed var(--vl-terracotta);
}
.coupon::before { left: -12px; clip-path: inset(0 0 0 50%); }
.coupon::after  { right: -12px; clip-path: inset(0 50% 0 0); }
.coupon-info { text-align: left; }
.coupon-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vl-brown);
  margin-bottom: 4px;
}
.coupon-code {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--vl-brown-deep);
  letter-spacing: 0.02em;
}
.coupon-discount {
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  font-weight: 600;
  color: var(--vl-terracotta);
  line-height: 1;
}

.copy-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--vl-cream);
  color: var(--vl-brown-deep);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid rgba(126, 77, 63, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 160ms;
  margin-bottom: 20px;
}
.copy-btn:hover { background: var(--vl-peach-pale); border-color: var(--vl-terracotta); }
.copy-btn.copied { background: var(--vl-sage-mist); border-color: var(--vl-olive); color: var(--vl-brown-deep); }

.divider-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--vl-brown);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.divider-line::before, .divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(126, 77, 63, 0.18);
}

/* WhatsApp invite */
.wa-card {
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #fff;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.wa-card::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -90px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.wa-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wa-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
}
.wa-card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
.wa-card-sub {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}
.wa-card-desc {
  font-size: 14px;
  opacity: 0.95;
  margin: 0 0 16px;
  line-height: 1.5;
  position: relative; z-index: 1;
}
.wa-btn {
  width: 100%;
  padding: 13px 18px;
  background: #fff;
  color: var(--wa-green-deep);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 120ms, box-shadow 160ms;
  position: relative; z-index: 1;
}
.wa-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(0,0,0,0.2); }

.wa-perks {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.9;
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.wa-perk {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============ TRANSITIONS ============ */
.fade-enter {
  animation: fadeUp 480ms cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero { padding: 36px 28px 60px; min-height: auto; }
  .panel { padding: 28px 20px 56px; }
  .card { padding: 28px 22px; border-radius: 22px; }
  .hero-headline { margin-top: 32px; margin-bottom: 24px; }
  .headline { font-size: 36px; }
  .benefits { margin-top: 24px; }
}
