/* Praxbook L0 — Pre-launch waitlist page */

:root {
  /* Calm teal + warm sand palette (Appendix E2) */
  --primary: #0F766E;
  --primary-bright: #14B8A6;
  --accent: #C2410C;
  --text: #1F2937;
  --text-muted: #4A5568;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --tint-1: #D8F1EA;
  --tint-2: #F6E9D7;
  --tint-3: #E6E4F7;
  --border: #E3DFD7;
  --success: #15803D;
  --error: #B42318;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --line-height: 1.6;
  --spacing-unit: 1rem;
}

/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--text);
  background-color: var(--bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: var(--spacing-unit);
  color: var(--text);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: var(--spacing-unit);
}

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

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

code {
  background-color: var(--surface);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9em;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Header */
.header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit) 0;
}

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

.brand-name {
  /* Single source for product name */
}

.nav-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 1.5);
  align-items: center;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Main sections */
main {
  min-height: 100vh;
}

section {
  padding: calc(var(--spacing-unit) * 4) 0;
}

/* Hero */
.hero {
  background-color: var(--tint-1);
  display: flex;
  align-items: center;
  padding: calc(var(--spacing-unit) * 6) 0;
}

.hero .container {
  text-align: center;
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-unit);
  color: var(--primary);
}

.hero-subline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: calc(var(--spacing-unit) * 2);
  line-height: 1.7;
}

.hero-footnote {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--spacing-unit);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-bright);
  color: white;
  text-decoration: none;
}

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

.btn-accent:hover {
  background-color: #A03009;
  color: white;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* How it works */
.how-it-works {
  background-color: var(--surface);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 3);
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--tint-1);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
}

.steps p {
  color: var(--text-muted);
  margin: 0;
}

/* Features */
.features {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 2);
}

.feature-list li {
  padding: var(--spacing-unit);
  background-color: var(--surface);
  border-radius: 6px;
  line-height: 1.7;
}

.feature-list strong {
  color: var(--primary);
}

/* Positioning */
.positioning {
  background-color: var(--surface);
}

.comparison-list {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 2);
}

.comparison-item {
  padding: var(--spacing-unit);
  border-left: 4px solid var(--accent);
  background-color: var(--bg);
  border-radius: 4px;
}

.comparison-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Pricing */
.pricing {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.pricing-card {
  background-color: var(--surface);
  padding: calc(var(--spacing-unit) * 3);
  border-radius: 8px;
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 2);
  border: 2px solid var(--primary);
}

.price-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.price-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--spacing-unit);
}

.price-note {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.price-after {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Patient section */
.patient-section {
  background-color: var(--surface);
  text-align: center;
}

.patient-section h3 {
  color: var(--primary);
}

.patient-section p {
  color: var(--text-muted);
  max-width: 600px;
  margin: var(--spacing-unit) auto;
}

/* Waitlist section */
.waitlist {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.waitlist h3 {
  text-align: center;
  color: var(--primary);
}

.waitlist > .container > p {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: var(--spacing-unit) auto var(--spacing-unit);
}

#brevo-form {
  max-width: 500px;
  margin: calc(var(--spacing-unit) * 2) auto 0;
  background-color: var(--surface);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.brevo-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* Footer */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: calc(var(--spacing-unit) * 2) 0;
  margin-top: calc(var(--spacing-unit) * 4);
}

.footer-content {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: var(--primary);
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-subline {
    font-size: 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: var(--spacing-unit);
  }

  .nav-links {
    gap: var(--spacing-unit);
  }

  section {
    padding: calc(var(--spacing-unit) * 3) 0;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: calc(var(--spacing-unit) * 2);
  }

  .price-highlight {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-unit: 0.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-subline {
    font-size: 0.95rem;
  }

  .hero {
    padding: calc(var(--spacing-unit) * 4) 0;
  }

  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .price-highlight {
    font-size: 1.5rem;
  }

  section {
    padding: calc(var(--spacing-unit) * 2.5) 0;
  }
}
