/* WazLine — light SaaS demo vibe, WhatsApp-green accent. */
:root {
  --primary: #25D366;          /* WhatsApp green */
  --primary-hover: #1EBE5A;
  --primary-ink: #052E16;      /* text on green (white on #25D366 fails WCAG contrast) */
  --primary-deep: #128C7E;
  --ink: #111B21;
  --ink-muted: #54656F;
  --surface: #FFFFFF;
  --canvas: #F7FBF8;
  --border: #E2E8E4;
  --error: #C0262D;
  --error-bg: #FFF1F1;
  --focus: rgba(37, 211, 102, 0.35);
  --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(37, 211, 102, 0.18), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(18, 140, 126, 0.10), transparent 60%),
    var(--canvas);
}

.shell { max-width: 680px; margin: 0 auto; padding: 32px 16px 48px; }

.hero { text-align: center; padding: 8px 4px 28px; }
.logo { display: block; height: 40px; width: auto; margin: 0 auto 24px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-deep);
  background: rgba(37, 211, 102, 0.14);
  border-radius: 999px;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.lede { margin: 0 auto; color: var(--ink-muted); max-width: 46ch; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 27, 33, 0.04), 0 16px 40px rgba(17, 27, 33, 0.06);
  padding: 28px;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 14px; }
}

.field { display: flex; flex-direction: column; }
label { font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--primary-deep); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FBFDFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
textarea { resize: vertical; min-height: 104px; }
input:hover, select:hover, textarea:hover { border-color: #C9D3CD; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus); }

.check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary-deep); flex: none; }
.check label { flex: 1; font-weight: 400; color: var(--ink-muted); margin: 0; }
.check .field-error { flex-basis: 100%; }

.field-error { min-height: 1.25rem; margin: 4px 0 8px; font-size: 0.8rem; color: var(--error); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }

/* Honeypot: off-screen rather than display:none so naive bots still fill it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 8px 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  font: inherit; font-weight: 700;
  color: var(--primary-ink);
  background: var(--primary);
  border: 0; border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-secondary { width: auto; box-shadow: none; color: var(--primary-deep); background: rgba(37, 211, 102, 0.12); }
.btn-secondary:hover { background: rgba(37, 211, 102, 0.2); }

.status { margin: 12px 0 0; font-size: 0.9rem; min-height: 1.35rem; text-align: center; }
.status[data-kind="error"] { color: var(--error); background: var(--error-bg); padding: 10px 12px; border-radius: 12px; }

.success { text-align: center; padding: 40px 28px; outline: none; }
.success h2 { margin: 0 0 8px; font-size: 1.5rem; }
.success h2::before { content: "\2713"; display: block; width: 52px; height: 52px; margin: 0 auto 16px; line-height: 52px; font-size: 1.5rem; color: var(--primary-ink); background: var(--primary); border-radius: 50%; }
.success p { margin: 0 0 24px; color: var(--ink-muted); }

.foot { margin-top: 24px; font-size: 0.8rem; color: var(--ink-muted); text-align: center; }
[hidden] { display: none !important; }
