:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --ink: #1c2230;
  --ink-dim: #6b7280;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-tint: #eff4ff;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-glow { display: none; }

.site-header {
  padding: 28px clamp(20px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(20px, 6vw, 56px) 64px;
}

.hero {
  max-width: 600px;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.subhead {
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 36px;
  max-width: 460px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--surface); border-color: #d1d5db; }

.btn-accent {
  background: var(--ink);
  color: #ffffff;
}
.btn-accent:hover { background: #000000; }

.btn-block { width: 100%; }

.phone-note {
  margin: 30px 0 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.phone-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--ink-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.16s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.modal-sub {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 0 0 24px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--line); color: var(--ink); }

.field { margin-bottom: 16px; }

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.req { color: var(--accent); }
.optional { color: var(--ink-dim); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.field input::placeholder,
.field textarea::placeholder { color: #9ca3af; }

.form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

#submitBtn { margin-top: 4px; }
#submitBtn[disabled] { opacity: 0.6; cursor: not-allowed; }

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg { width: 26px; height: 26px; }

#successView { text-align: center; }
#successView .modal-sub { margin-bottom: 24px; }

@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { padding: 14px 20px; }
}
