/* ─────────────────────────────────────────────────────
   Lyra Pulse — landing styles
   ───────────────────────────────────────────────────── */

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

:root {
  --accent:       #0369a1;
  --accent-dark:  #075985;
  --bg:           #f9fafb;
  --text:         #374151;
  --border:       #e5e7eb;
  --text-light:   #9ca3af;
  --white:        #ffffff;
  --ink:          #111827;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --max-w: 1120px;
}

body {
  font-family: "Geist", "Geist Sans", Inter, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ── Container ──────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

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

.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.025em;
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  padding: 48px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.13;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-trust {
  font-size: 14px;
  color: var(--text-light);
}

/* Preview card */

.hero-preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.preview-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(3, 105, 161, .10),
    0 2px 8px rgba(0, 0, 0, .04);
}

.preview-topbar {
  background: var(--accent);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.preview-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.preview-today {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}

.preview-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-appt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid transparent;
}

.preview-appt.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.preview-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  width: 38px;
  flex-shrink: 0;
}

.preview-appt-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.preview-appt-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-appt-svc {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: #22c55e; }
.dot-blue  { background: var(--accent); }
.dot-amber { background: #f59e0b; }

.preview-summary {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  padding: 14px 20px;
}

.preview-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-stat + .preview-stat {
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-left: 16px;
}

.stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-light);
}

/* ── Features ───────────────────────────────────────── */

.features {
  padding: 0 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: #eff6ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  display: block;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-light);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  transition: color .15s;
}

.footer-nav a:hover {
  color: var(--text);
}

/* ── Legal pages ────────────────────────────────────── */

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-wrap h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-light);
  display: block;
  margin-bottom: 40px;
}

.legal-wrap h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 8px;
}

.legal-wrap h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 6px;
}

.legal-wrap p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
}

.legal-wrap p + p {
  margin-top: 12px;
}

.legal-wrap ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-wrap li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
}

.legal-wrap li + li {
  margin-top: 4px;
}

.legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-headline {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .features {
    padding: 0 0 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }

  .legal-wrap {
    padding: 40px 16px 60px;
  }

  .legal-wrap h1 {
    font-size: 26px;
  }
}
