:root {
  --bg: #f4f8fb;
  --bg-hero: radial-gradient(140% 140% at 20% 20%, #e7f5fb 0%, #f4f8fb 45%, #f6f9fc 100%);
  --card: #ffffff;
  --card-2: #f7fbff;
  --text: #0f172a;
  --muted: #4b5563;
  --accent: #2fbf9b;
  --accent-2: #4a90e2;
  --border: #d7e2ec;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --max-w: 1100px;
  --error: #ef4444;
  --success: #10b981;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-hero);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}

/* Enhanced focus states for accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

a { color: var(--accent-2); text-decoration: none; }
main, header, footer, section { width: 100%; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }

h1,h2,h3,h4 { margin: 0 0 12px; line-height: 1.2; }
p { margin: 0 0 12px; color: var(--muted); }

.site-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.nav-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-weight: 700; color: #0f172a; letter-spacing: 0.5px;
}
.brand-name { font-weight: 700; color: var(--text); }
.brand-tag { color: #6b7280; font-size: 0.9rem; }
.main-nav { display: flex; gap: 16px; }
.main-nav a { color: var(--muted); font-weight: 600; transition: color 200ms ease; }
.main-nav a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.hero { padding: 80px 0 48px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; font-size: 0.8rem; }
.lede { font-size: 1.1rem; max-width: 720px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.meta { display: flex; gap: 10px; align-items: center; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-title { font-weight: 700; color: var(--text); margin-bottom: 10px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 12px; }
.hero-list li { padding-left: 20px; position: relative; color: var(--text); margin-bottom: 8px; }
.hero-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.card-foot { border-top: 1px solid var(--border); padding-top: 12px; color: var(--muted); }

.btn {
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease, border 120ms ease;
  cursor: pointer;
  font-size: 1rem;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #ffffff; box-shadow: var(--shadow); }
.btn.ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn.loading {
  position: relative;
  color: transparent;
}
.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  color: #ffffff;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.section-label { text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; font-size: 0.8rem; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card.muted { background: #f0f7ff; }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(47,191,155,0.12);
  color: var(--accent);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 700;
}
.note { margin-top: 14px; color: var(--muted); }

.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.bullet { list-style: none; padding: 0; margin: 12px 0; }
.bullet li { padding-left: 18px; position: relative; color: var(--text); margin-bottom: 8px; }
.bullet li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.fit { color: var(--muted); }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: all 200ms ease;
}
.faq details:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
}
.faq details[open] {
  border-color: var(--accent);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 8px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 200ms ease;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq p {
  margin: 12px 0 0;
  padding-right: 32px;
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact { padding-bottom: 90px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.lead-form {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.lead-form label {
  font-weight: 600;
  color: var(--text);
  display: block;
  position: relative;
}
.lead-form label .label-text {
  display: block;
  margin-bottom: 6px;
}
.lead-form label.required .label-text::after {
  content: " *";
  color: var(--error);
}
.lead-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
  padding: 10px 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  font-size: 1rem;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}
.lead-form input.error {
  border-color: var(--error);
}
.lead-form input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.lead-form input.success {
  border-color: var(--success);
}
.field-error {
  font-size: 0.875rem;
  color: var(--error);
  margin-top: -8px;
  display: none;
}
.field-error.visible {
  display: block;
}
.honeypot { position: absolute; left: -5000px; opacity: 0; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 4px 0; }
.form-status {
  min-height: 20px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  display: none;
}
.form-status.visible {
  display: block;
}
.form-status.error {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.form-status.success {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  text-align: left;
}

@media (max-width: 820px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .nav-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .hero { padding-top: 56px; }

  /* Mobile navigation */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  .main-nav.open {
    max-height: 300px;
    margin-top: 12px;
  }

  .main-nav a {
    padding: 8px 0;
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .step-card { grid-template-columns: 1fr; }
  .step-num { width: 28px; height: 28px; }
}
