/* Lot'N'Go landing page – colors come from :root tokens injected from campaign_data.json.
   Accessibility (IS 5568 / WCAG 2.0 AA):
   - base text 18px, nothing below 16px (1rem = 18px here, 0.889rem = 16px)
   - text contrast >= 4.5:1, UI borders >= 3:1 (verified in scripts/check_accessibility.py)
   - visible focus ring for keyboard users, skip link, underlined inline links */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font), Arial, sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--on-surface); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-weight: 700; text-decoration: underline;
}
.skip-link:focus { top: 12px; }
/* one clearly visible focus ring for every interactive element (keyboard only) */
:focus-visible {
  outline: 3px solid var(--on-surface);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #ffd60a;
  border-radius: 6px;
}
main:focus, section:focus, h2:focus { outline: none; box-shadow: none; }

/* ---------- links ---------- */
a { color: var(--primary); }
/* inline links (inside running text): always underlined */
p a, li a, .notice a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
p a:hover, li a:hover, .notice a:hover { color: var(--on-surface); text-decoration-thickness: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px; border: 0;
  font: 700 1rem/1.2 var(--font), Arial, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -6px rgba(0, 91, 192, .45); }
.btn--primary:hover { background: var(--primary-dim); }
.btn--primary:disabled { opacity: .75; cursor: progress; }
.btn--ghost { background: var(--surface-lowest); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn--ghost:hover { background: var(--primary-container); }
.btn--sm { padding: 10px 20px; font-size: .889rem; }
.btn--block { width: 100%; padding-block: 18px; font-size: 1.1rem; }
.btn--whatsapp { background: #1a7f45; color: #fff; }       /* 5.0:1 with white text */
.btn--whatsapp:hover { background: #146536; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 249, 250, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 30, 46, .08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; direction: ltr; text-align: left; }
.brand__text strong { font-size: 1.2rem; font-weight: 800; }
.brand__text small { font-size: .889rem; letter-spacing: .08em; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-top: 18px; letter-spacing: -.01em; }
.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__note { font-size: .889rem; color: var(--success); font-weight: 700; }
.hero__visual { display: flex; justify-content: center; text-align: start; }
.status-pill { font-size: .889rem; margin: 0; }

/* ---------- stats ---------- */
.stats { padding: 8px 0 48px; }
.stats__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface-lowest); border-radius: 20px; padding: 22px 18px; text-align: center;
  box-shadow: 0 12px 32px -4px rgba(43, 52, 55, .07);
  display: flex; flex-direction: column; gap: 4px;
}
.stat__value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.stat__label { font-size: .889rem; color: var(--muted); }

/* ---------- sections & cards ---------- */
.section { padding: 64px 0; }
.section--tinted { background: var(--surface-low); }
.section__title { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 36px; }
.cards { display: grid; gap: 20px; list-style: none; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface-lowest); border-radius: 24px; padding: 28px;
  box-shadow: 0 12px 32px -4px rgba(43, 52, 55, .07);
}
.card h3 { font-size: 1.2rem; font-weight: 800; }
.card p { color: var(--muted); margin: 0; }
.card__num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 14px; }
.card--highlight { box-shadow: 0 0 0 2px var(--primary), 0 16px 36px -8px rgba(0, 91, 192, .25); }
.feature-list { list-style: none; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { position: relative; padding-inline-start: 32px; font-weight: 500; }
.feature-list li::before {
  content: "✔"; position: absolute; inset-inline-start: 0; top: 3px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success-container); color: var(--success); font-size: .889rem; font-weight: 700;
}
.compare__col strong { font-weight: 800; }
.chip {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-container); color: var(--primary); font-weight: 700; font-size: .889rem;
}

/* ---------- comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { border-radius: 24px; padding: 28px; }
.compare__col h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.compare__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare__col li { padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .7); }
.compare__col--bad { background: #fdecea; color: #7a2a22; }
.compare__col--good { background: var(--surface-lowest); box-shadow: 0 0 0 2px var(--primary-container), 0 12px 32px -4px rgba(43, 52, 55, .07); }
.compare__col--good li { background: var(--surface); }

/* ---------- form ---------- */
.form-card {
  background: var(--surface-lowest); border-radius: 28px; padding: 40px;
  box-shadow: 0 24px 48px -12px rgba(43, 52, 55, .14);
}
.form-card h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; text-align: center; }
.form-card__sub { text-align: center; color: var(--muted); margin-bottom: 12px; }
.required-hint { text-align: center; font-size: .889rem; color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .889rem; }
.req { color: var(--danger); font-weight: 700; }
.field--total_apartments { grid-column: 1 / -1; }
.field input {
  font: 400 1rem var(--font), Arial, sans-serif; color: var(--on-surface);
  padding: 13px 16px; border-radius: 14px; border: 2px solid #767f93; background: #fff;   /* 3.8:1 border */
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus-visible { outline: 3px solid var(--on-surface); outline-offset: 2px; border-color: var(--primary); box-shadow: 0 0 0 6px #ffd60a; }
.field input.is-invalid { border-color: var(--danger); border-width: 3px; }
.notice { font-size: .889rem; color: var(--muted); margin: 24px 0 12px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: .889rem; font-weight: 500; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.consent input.is-invalid { outline: 3px solid var(--danger); outline-offset: 2px; }
.form-error { color: var(--danger); font-weight: 700; margin: 16px 0 0; }
#submit-btn { margin-top: 24px; }
.disclaimer {
  margin: 16px 0 0; padding: 12px 16px; border-radius: 14px;
  background: var(--success-container); color: var(--success); font-size: .889rem; font-weight: 700; text-align: center;
}

.success { text-align: center; padding: 12px 0; }
.success__icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--success);
}
.success p { color: var(--muted); max-width: 30em; margin-inline: auto; margin-bottom: 24px; }

/* ---------- footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid rgba(26, 30, 46, .08); color: var(--muted); font-size: .889rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.footer p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--on-surface); text-decoration-thickness: 2px; }
.brand--footer strong { color: var(--on-surface); direction: ltr; }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin-top: 32px; }
.legal__updated { color: var(--muted); font-size: .889rem; }
.legal ul { padding-inline-start: 24px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__ctas { justify-content: center; }
  .lead { margin-inline: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards--3, .cards--2, .compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-card { padding: 28px 18px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .phone { width: 260px; }
  .stat__value { font-size: 1.6rem; }
  .brand__text small { display: none; }
}
