/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #6750A4;
  --primary-light: #E8DEF8;
  --primary-dark: #4F378B;
  --on-primary: #fff;
  --surface: #FFFBFE;
  --surface-variant: #F5F0FA;
  --on-surface: #1C1B1F;
  --on-surface-variant: #49454F;
  --outline: #79747E;
  --shadow: rgba(0, 0, 0, 0.08);
  --max-width: 1000px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Navigation === */
.nav {
  background: var(--primary);
  color: var(--on-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--on-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* === Nav Sign In Button === */
.nav-signin {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background 0.2s;
  display: inline-block;
}

.nav-signin:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  text-decoration: none !important;
}

/* === Nav Get Started Button === */
.nav-getstarted {
  background: #fff !important;
  color: var(--primary) !important;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.nav-getstarted:hover {
  background: var(--primary-light) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* === Floating Get Started FAB === */
.fab-getstarted {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(103, 80, 164, 0.35);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.fab-getstarted.visible {
  opacity: 1;
  pointer-events: auto;
}

.fab-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(103, 80, 164, 0.45);
  text-decoration: none;
  color: #fff;
}

/* === Get Started card highlight === */
.contact-card-highlight {
  border-left: 4px solid var(--primary);
}

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(103, 80, 164, 0.25);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--on-surface);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.badge:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.badge svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* === Badge Coming Soon Label === */
.badge-soon {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.7;
  display: block;
  margin-top: -2px;
}

/* === Free Pill Badge === */
.free-pill {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.tagline-sub {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* === CTA Support Link === */
.cta-support {
  margin-top: 16px !important;
  opacity: 0.85;
}

.cta-support a {
  color: #fff;
  text-decoration: underline;
}

/* === Support Card (Contact Page) === */
.support-card {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CD 100%);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 8px var(--shadow);
  text-align: center;
  margin: 32px 0;
}

.support-card h2 {
  margin-top: 0;
  color: var(--on-surface);
}

.bmc-btn {
  background: #FFDD00 !important;
  color: #000 !important;
}

/* === Section === */
.section {
  padding: 64px 20px;
}

.section-alt {
  background: var(--surface-variant);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 40px;
}

/* === Features Grid === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 4px var(--shadow);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(103, 80, 164, 0.15);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
}

/* === Phone Mockups === */
.mockups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.phone-frame {
  background: #1C1B1F;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 280px;
  margin: 0 auto;
}

.phone-screen {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  font-size: 0.75rem;
}

.phone-statusbar {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.65rem;
  display: flex;
  justify-content: space-between;
}

.phone-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

.phone-body {
  padding: 10px;
  height: 360px;
  overflow: hidden;
}

.phone-caption {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  font-size: 0.9rem;
}

/* Mock UI elements */
.mock-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.mock-card-body {
  flex: 1;
  min-width: 0;
}

.mock-card-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.mock-card-sub {
  font-size: 0.65rem;
  color: var(--on-surface-variant);
}

.mock-chip {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.6rem;
  font-weight: 600;
  margin-right: 4px;
  margin-top: 4px;
}

.mock-chip-green {
  background: #d4edda;
  color: #155724;
}

.mock-chip-amber {
  background: #fff3cd;
  color: #856404;
}

.mock-chip-red {
  background: #f8d7da;
  color: #721c24;
}

.mock-chip-blue {
  background: #d1ecf1;
  color: #0c5460;
}

.mock-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.mock-search {
  background: var(--surface-variant);
  border-radius: 20px;
  padding: 8px 14px;
  margin-bottom: 10px;
  font-size: 0.7rem;
  color: var(--outline);
}

.mock-ai-box {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.mock-ai-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.mock-ai-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--on-surface-variant);
  padding: 3px 0;
}

.mock-ai-row span:last-child {
  font-weight: 600;
  color: var(--on-surface);
}

.mock-image-placeholder {
  background: linear-gradient(135deg, #d4c5f0 0%, #b8a9d9 100%);
  border-radius: 10px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 2rem;
}

.mock-schedule-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.mock-schedule-time {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 45px;
}

.mock-schedule-info {
  flex: 1;
}

.mock-schedule-title {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--on-surface);
}

.mock-schedule-detail {
  font-size: 0.6rem;
  color: var(--on-surface-variant);
}

.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 600;
}

.mock-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.mock-status-dot.green { background: #4caf50; }
.mock-status-dot.amber { background: #ff9800; }
.mock-status-dot.blue { background: #2196f3; }

.mock-swipe-hint {
  text-align: center;
  font-size: 0.6rem;
  color: var(--outline);
  margin-top: 8px;
  font-style: italic;
}

/* === CTA === */
.cta {
  text-align: center;
  padding: 64px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.cta h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.cta p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

/* === Footer === */
.footer {
  background: var(--on-surface);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 20px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: #fff;
}

/* === Page Content (privacy, updates, contact) === */
.page-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.page-content h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-content h2 {
  color: var(--on-surface);
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.page-content p {
  margin-bottom: 12px;
  color: var(--on-surface-variant);
}

.page-content ul {
  margin-bottom: 12px;
  padding-left: 24px;
  color: var(--on-surface-variant);
}

.page-content li {
  margin-bottom: 4px;
}

.page-content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0 20px;
}

.last-updated {
  color: var(--outline);
  font-style: italic;
  margin-bottom: 24px;
}

/* === Updates Page === */
.update-entry {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px var(--shadow);
  border-left: 4px solid var(--primary);
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.update-date {
  font-size: 0.85rem;
  color: var(--outline);
}

.update-version {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.update-entry h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--on-surface);
}

.update-entry ul {
  padding-left: 20px;
}

.update-entry li {
  margin-bottom: 4px;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

/* === Contact Page === */
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 8px var(--shadow);
  text-align: center;
  margin: 32px 0;
}

.contact-card h2 {
  margin-top: 0;
  color: var(--primary);
}

.contact-email {
  font-size: 1.15rem;
  margin: 20px 0;
}

.email-template {
  background: var(--surface-variant);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  text-align: left;
  font-size: 0.9rem;
}

.email-template p {
  margin-bottom: 8px;
}

.email-template strong {
  color: var(--on-surface);
}

/* === Onboarding Form === */
.onboarding-form {
  text-align: left;
  max-width: 400px;
  margin: 20px auto 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 6px;
}

.form-group .required {
  color: #B3261E;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--on-surface);
  background: var(--surface);
  transition: border-color 0.2s;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.15);
}

.btn-full {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 20px;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4CAF50;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.form-success h3 {
  color: var(--on-surface);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--on-surface-variant);
}

.form-error {
  color: #B3261E;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
  padding: 8px;
  background: #F9DEDC;
  border-radius: 8px;
}

/* === FAQ Section === */
.faq-list {
  margin: 16px 0 32px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: 0 1px 4px var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-surface);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--surface-variant);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] > .faq-question::after {
  content: '\2212';
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.faq-answer li {
  margin-bottom: 4px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .fab-getstarted {
    bottom: 16px;
    left: 16px;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 12px;
    box-shadow: 0 4px 12px var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .mockups {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .phone-frame {
    max-width: 220px;
  }

  .cta h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 500px) {
  .mockups {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    max-width: 260px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}
