/* ═══════════════════════════════════════
   LivingPractice Design System
   Direction B — Muted Signal
   Plus Jakarta Sans · Muted Teal/Cyan
   ═══════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  /* Brand — Direction B */
  --ink:          #141618;
  --graphite:     #2a2e32;
  --slate-blue:   #4a5560;
  --muted-teal:   #5a8a7a;
  --muted-cyan:   #6fa0b0;
  --silver:       #8a9aa0;
  --goldenrod:    #B8922F;
  --bone:         #f2f0ec;
  --bone-warm:    #e8e5e0;
  --white:        #ffffff;

  /* Semantic */
  --text:         #2a2e32;
  --text-light:   #5a6670;
  --text-muted:   #8a9aa0;
  --bg:           #f2f0ec;
  --bg-dark:      #141618;
  --bg-card:      #ffffff;
  --rule:         rgba(74, 85, 96, 0.15);
  --rule-light:   rgba(74, 85, 96, 0.08);
  --gradient:     linear-gradient(135deg, #5a8a7a 0%, #6fa0b0 100%);

  /* Typography */
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --content-width: 720px;
  --wide-width: 1080px;
  --page-padding: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ─── Base ─── */
html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--sans);
  color: var(--graphite);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
  color: var(--slate-blue);
}

strong {
  font-weight: 600;
  color: var(--graphite);
}

a {
  color: var(--muted-teal);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--muted-cyan);
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.container--wide {
  max-width: var(--wide-width);
}

/* ─── Header ─── */
.site-header {
  padding: 20px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(242, 240, 236, 0.92);
}

.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.logo-wordmark {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--graphite);
}

.logo-sub {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--muted-teal);
}

.nav-cta {
  display: inline-block;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--gradient);
  padding: 10px 22px;
  border-radius: 4px;
  transition: opacity 0.2s var(--ease);
}

.nav-cta:hover {
  opacity: 0.88;
  color: var(--white) !important;
}

/* ─── Mobile Nav ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  margin: 5px 0;
  transition: all 0.2s var(--ease);
}

/* ─── Hero ─── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-teal);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards 0.1s;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 800px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.2s;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards 0.35s;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.5s var(--ease) forwards 0.45s;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

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

.btn--primary:hover {
  opacity: 0.88;
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--slate-blue);
  border-color: var(--rule);
}

.btn--secondary:hover {
  border-color: var(--muted-teal);
  color: var(--muted-teal);
}

.btn--dark {
  background: var(--graphite);
  color: var(--bone);
  border-color: transparent;
}

.btn--dark:hover {
  background: var(--ink);
  color: var(--white);
}

/* ─── Section Patterns ─── */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--ink);
  color: var(--bone);
}

.section--dark h2,
.section--dark h3 {
  color: var(--bone);
}

.section--dark p {
  color: rgba(242, 240, 236, 0.72);
}

.section--dark .text-muted {
  color: rgba(242, 240, 236, 0.48);
}

.section--subtle {
  background: var(--white);
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-teal);
  margin-bottom: 16px;
}

.section--dark .section-label {
  color: var(--muted-cyan);
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--gradient);
  margin: 0 auto 48px;
  border-radius: 1px;
}

/* ─── Content Blocks ─── */
.content-block {
  max-width: var(--content-width);
  margin: 0 auto;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.78;
}

/* ─── Feature Grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-light);
  border-radius: 6px;
  padding: 32px 28px;
  transition: border-color 0.2s var(--ease);
}

.feature-card:hover {
  border-color: rgba(90, 138, 122, 0.3);
}

.section--dark .feature-card {
  background: var(--graphite);
  border-color: rgba(255,255,255,0.06);
}

.section--dark .feature-card:hover {
  border-color: rgba(111, 160, 176, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  stroke-width: 2;
  fill: none;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

.section--dark .feature-card p {
  color: rgba(242, 240, 236, 0.6);
}

/* ─── Two-Column Layout ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* ─── Demo Section ─── */
.demo-container {
  background: var(--graphite);
  border-radius: 8px;
  padding: 32px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.demo-placeholder {
  text-align: center;
  color: var(--silver);
  font-size: 0.9rem;
}

.demo-placeholder p {
  color: rgba(242, 240, 236, 0.5);
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--rule-light);
  border-radius: 8px;
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.2s var(--ease);
}

.pricing-card:hover {
  border-color: rgba(90, 138, 122, 0.3);
}

.pricing-card--featured {
  border-color: var(--muted-teal);
  box-shadow: 0 0 0 1px var(--muted-teal);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
}

.pricing-tier {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-teal);
  margin-bottom: 8px;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--graphite);
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--silver);
  font-weight: 400;
}

.pricing-annual {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-light);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.7;
}

.pricing-card--upcoming {
  opacity: 0.72;
}

.pricing-card--upcoming .pricing-amount {
  color: var(--silver);
}

/* ─── Waitlist Form ─── */
.waitlist-form {
  margin-top: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.section--dark .form-label {
  color: rgba(242, 240, 236, 0.7);
}

.form-input,
.form-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--muted-teal);
  box-shadow: 0 0 0 3px rgba(90, 138, 122, 0.1);
}

.section--dark .form-input,
.section--dark .form-select {
  background: var(--graphite);
  border-color: rgba(255,255,255,0.1);
  color: var(--bone);
}

.section--dark .form-input:focus,
.section--dark .form-select:focus {
  border-color: var(--muted-cyan);
  box-shadow: 0 0 0 3px rgba(111, 160, 176, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.section--dark .form-note {
  color: rgba(242, 240, 236, 0.4);
}

/* ─── Comparison Block ─── */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}

.comparison-side {
  text-align: center;
  padding: 32px;
}

.comparison-vs {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}

.comparison-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 4px;
}

.comparison-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.section--dark .comparison-price { color: var(--bone); }
.section--dark .comparison-label { color: rgba(242,240,236,0.6); }

/* ─── Testimonial / Pull Quote ─── */
.pull-quote {
  border-left: 3px solid;
  border-image: var(--gradient) 1;
  padding-left: 24px;
  margin: 40px 0;
}

.pull-quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--slate-blue);
  line-height: 1.7;
}

.section--dark .pull-quote p {
  color: rgba(242, 240, 236, 0.8);
}

/* ─── Footer ─── */
.site-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards;
}

.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.15s; }
.fade-in-3 { animation-delay: 0.25s; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col--reverse {
    direction: ltr;
  }

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

  .comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comparison-vs {
    padding: 8px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  .site-header { padding: 16px 0; }
  .logo-wordmark { font-size: 1.1rem; }

  .site-nav a:not(.nav-cta) { display: none; }

  .nav-toggle { display: block; }

  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }

  .pricing-card { padding: 28px 24px; }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
