:root {
  --primary: #005f99;
  --secondary: #1982c4;
  --dark: #333;
  --light: #f7f9fc;
  --gray: #666;
  --max-width: 1100px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  font-weight: 500;
  color: var(--gray);
}

.nav-links li a:hover {
  color: var(--primary);
}

.toggle,
.hamburger { display: none; }

@media (max-width: 700px) {
  .hamburger {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 200px;
    transform: translateX(100%);
    transition: transform .3s;
    border-left: 1px solid #e5e5e5;
    padding: 1rem;
  }
  .nav-links li { margin: .5rem 0; }
  .toggle:checked + .hamburger + .nav-links {
    transform: translateX(0);
  }
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero .accent { color: var(--primary); }

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
}

.cta-btn.secondary {
  background: var(--secondary);
}

.cta-btn:hover { opacity: .9; }

.features {
  padding: 2rem 0;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.features article {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chatbot-highlight,
.waitlist {
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 6px;
  margin-top: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.waitlist-form {
  display: grid;
  gap: 1rem;
  max-width: 400px;
}

.waitlist-form input,
.waitlist-form textarea,
.waitlist-form button {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

.waitlist-form button {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  border: none;
}

.waitlist-form button:hover { opacity: .9; }

.waitlist-form span { color: var(--secondary); margin-left: 4px; }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.9rem;
}

/* Make the two checkbox groups appear in one row */
.waitlist-form .checkbox-group:first-of-type,
.waitlist-form .checkbox-group:last-of-type {
  display: inline-flex;
  width: 48%;
}

.waitlist-form .checkbox-group:first-of-type {
  margin-right: 2%;
}

/* SMS Disclaimer Styling */
.sms-disclaimer {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.sms-disclaimer p {
  margin: 0;
  color: #495057;
}

.sms-disclaimer strong {
  color: var(--primary);
}

.sms-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
}

.sms-disclaimer a:hover {
  color: var(--secondary);
}


footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--gray);
}


.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease-in-out;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background-color: #10b981;
}

.notification.error {
  background-color: #ef4444;
}

.notification.info {
  background-color: #3b82f6;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading .cta-btn {
  position: relative;
}

.loading .cta-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}