/* BRTH Website — Design System */

/* === Variables === */
:root {
  --primary: #099197;        /* Green Blue — buttons, accents, CTA */
  --primary-light: #a5c8d1;  /* Light Glaucous Blue — soft backgrounds, rings */
  --primary-dark: #077479;   /* Darker green blue — hover states */
  --accent: #ebd3a2;         /* Ivory Buff — warm highlights, cards */
  --accent-light: #f5e8cc;   /* Lighter ivory — subtle backgrounds */
  --teal: #099197;           /* Alias for backward compat */
  --teal-light: #a5c8d1;
  --cream: #f7f3eb;          /* Warmer neutral from ivory family */
  --text: #2C3E50;
  --text-secondary: #5a6b7a;
  --text-light: #94a3b0;
  --white: #FFFFFF;
  --bg-light: #f9f7f3;       /* Warm off-white */
  --border: #ddd8cf;
  --shadow: rgba(9, 145, 151, 0.12);
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-sm: 8px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 80px;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Typography === */
h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-teal { color: var(--teal); }
.text-secondary { color: var(--text-secondary); }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-section) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--spacing-xxl);
}

.section-header p {
  margin-top: var(--spacing-md);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: var(--spacing-sm);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: #e8f5f5;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: #5A8688;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--spacing-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.card-icon-primary { background: rgba(9, 145, 151, 0.10); }
.card-icon-accent { background: rgba(235, 211, 162, 0.35); }
.card-icon-light { background: rgba(165, 200, 209, 0.20); }

.card h3 {
  margin-bottom: var(--spacing-sm);
}

.card p {
  font-size: 0.9375rem;
}

/* === Grid === */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f9f7f3 0%, #daeaed 40%, #f5e8cc 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.hero h1 {
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Breathing Animation */
.breathing-animation {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto var(--spacing-xxl);
}

.breath-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 8s ease-in-out infinite;
}

.breath-circle-1 {
  width: 240px;
  height: 240px;
  border: 1px solid var(--primary-light);
  animation-delay: 0s;
}

.breath-circle-2 {
  width: 180px;
  height: 180px;
  border: 1.5px solid var(--primary-light);
  animation-delay: 0.3s;
}

.breath-circle-3 {
  width: 120px;
  height: 120px;
  background: rgba(9, 145, 151, 0.06);
  animation-delay: 0.6s;
}

.breath-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 20px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 2;
}

@keyframes breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.5;
  }
  75% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
}

/* === Feature Preview Cards (homepage) === */
.feature-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}

/* === Pricing === */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xxl);
}

.pricing-toggle span {
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.pricing-toggle span.active {
  color: var(--text);
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--primary);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.toggle-switch.yearly::after {
  transform: translateX(24px);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin: var(--spacing-md) 0 var(--spacing-xs);
}

.pricing-price .currency {
  font-size: 1.25rem;
  vertical-align: super;
  font-weight: 600;
}

.pricing-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: var(--spacing-lg) 0;
}

.pricing-features li {
  padding: var(--spacing-sm) 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.pricing-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-features li.disabled::before {
  content: '—';
  color: var(--text-light);
}

/* === FAQ === */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-lg) 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Legal (Privacy, Terms) === */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--spacing-xxl));
  padding-bottom: var(--spacing-section);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.legal-content .legal-date {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xxl);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-md);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-content ul {
  padding-left: var(--spacing-lg);
  margin: var(--spacing-md) 0;
}

.legal-content li {
  margin-bottom: var(--spacing-sm);
}

/* === Footer === */
.footer {
  background: var(--text);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* === Page Header (for inner pages) === */
.page-header {
  padding-top: calc(var(--nav-height) + var(--spacing-xxl));
  padding-bottom: var(--spacing-xxl);
  text-align: center;
  background: linear-gradient(135deg, #f9f7f3 0%, #daeaed 50%, #f5e8cc 100%);
}

.page-header h1 {
  margin-bottom: var(--spacing-md);
}

.page-header p {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

/* === Responsive === */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); }
}

@media (max-width: 768px) {
  :root {
    --spacing-section: 56px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .feature-preview {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Hero */
  .hero-content {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .breathing-animation {
    width: 180px;
    height: 180px;
  }

  .breath-circle-1 { width: 180px; height: 180px; }
  .breath-circle-2 { width: 135px; height: 135px; }
  .breath-circle-3 { width: 90px; height: 90px; }
  .breath-center { width: 60px; height: 60px; font-size: 1.5rem; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    max-width: 300px;
  }
}
