:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --ink: #0F172A;
  --ink-soft: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: #CBD5E1; background: var(--bg-soft); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1120px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #60A5FA);
  position: relative; flex-shrink: 0;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 7px;
  border: 2px solid #fff; border-radius: 3px;
}
.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.nav-links a {
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.12s ease, background 0.12s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a:last-child { color: var(--primary); }
.nav-links a:last-child:hover { background: #EFF6FF; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-menu-btn { display: none; }

/* Hero */
.hero { padding: 88px 0 72px; background: radial-gradient(ellipse 80% 60% at 50% -10%, #EFF6FF 0%, #fff 60%); }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 52px; line-height: 1.08; }
.hero .accent { color: var(--primary); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 22px auto 0; max-width: 600px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Mock calendar illustration */
.mock { max-width: 760px; margin: 56px auto 0; }
.mock-card {
  border: 1px solid var(--border); border-radius: 16px; background: #fff;
  box-shadow: 0 20px 50px -20px rgba(15,23,42,0.18);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #F8FAFC; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.mock-body { padding: 24px 28px 28px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-title { font-weight: 700; font-size: 15px; }
.mock-sub { font-size: 12.5px; color: var(--muted); }
.mock-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mock-cell { aspect-ratio: 1; border-radius: 6px; background: #F1F5F9; }
.mock-cell.busy { background: #FEE2E2; }
.mock-cell.open { background: #DBEAFE; }
.mock-cell.today { background: var(--primary); }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; color: var(--ink-soft); margin-top: 14px; }

/* Problem / solution */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.compare-card { border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.compare-card.bad { background: #FEF2F2; border-color: #FECACA; }
.compare-card.good { background: #EFF6FF; border-color: #BFDBFE; }
.compare-card h3 { font-size: 17px; margin-bottom: 14px; }
.compare-card.bad h3 { color: #991B1B; }
.compare-card.good h3 { color: #1D4ED8; }
.compare-card ul { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft); }
.compare-card li { margin-bottom: 8px; }

/* Features grid */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: #EFF6FF;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--primary); font-size: 19px;
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 980px; margin: 0 auto; }
.step { text-align: center; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  margin: 0 auto 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  max-width: 920px; margin: 0 auto; align-items: start;
}
.pricing-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 40px 36px; text-align: center;
  box-shadow: 0 24px 60px -30px rgba(15,23,42,0.2);
}
.pricing-card-featured { border: 2px solid var(--primary); }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.pricing-card h3 { font-size: 21px; margin-bottom: 8px; }
.pricing-card .price-note { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 30px; text-align: left; }
.pricing-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 13px; }
.pricing-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.pricing-foot { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* FAQ */
.faq { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item summary { font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 0.15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* Final CTA */
.cta-band {
  background: linear-gradient(135deg, var(--primary), #1E40AF);
  border-radius: 24px; padding: 64px 40px; text-align: center; color: #fff;
  max-width: 1040px; margin: 0 auto;
}
.cta-band h2 { font-size: 32px; color: #fff; }
.cta-band p { font-size: 16.5px; color: #DBEAFE; margin: 14px 0 30px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: #F1F5F9; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.footer-links button.footer-link-btn {
  background: none; border: none; padding: 0; font: inherit; font-size: inherit; color: inherit; cursor: pointer;
}
.footer-links button.footer-link-btn:hover { color: var(--ink); }
.footer-copy { font-size: 13.5px; color: var(--muted); }

/* Contact modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 100; animation: modalFadeIn 150ms ease;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 16px; width: 100%; max-width: 480px;
  padding: 32px; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.35);
  position: relative; animation: modalPopIn 180ms cubic-bezier(.34,1.56,.64,1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 999px;
  background: var(--bg-soft); border: none; color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s ease, color 0.12s ease;
}
.modal-close:hover { background: #E2E8F0; color: var(--ink); }
.modal-card h3 { font-size: 22px; margin: 0 0 6px; }
.modal-card p.modal-lead { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 22px; }
.modal-field { display: block; margin-bottom: 14px; }
.modal-field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.modal-field input, .modal-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
  transition: border-color 0.12s ease;
}
.modal-field input:focus, .modal-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.modal-field textarea { resize: vertical; min-height: 90px; }
.modal-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-status { font-size: 13.5px; font-weight: 600; margin: 0 0 14px; }
.modal-status.error { color: #B91C1C; }
.modal-status.success { color: #047857; }
.modal-card .btn { width: 100%; justify-content: center; }
.modal-card .btn:disabled { opacity: 0.6; cursor: default; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPopIn { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 17px; }
  .compare { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { padding: 48px 24px; border-radius: 16px; }
  .cta-band h2 { font-size: 26px; }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .mock-grid { grid-template-columns: repeat(7, 1fr); }
}
