/* ============================================
   Daily Care Diary — Marketing Site Styles
   Theme: Clinical Warmth
   Primary: Teal #0d9488
   Fonts: DM Sans (body), Fraunces (display)
   ============================================ */

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --white: #ffffff;
  --primary: var(--teal-600);
  --primary-dark: var(--teal-700);
  --primary-light: var(--teal-50);
  --text-primary: var(--stone-900);
  --text-body: var(--stone-700);
  --text-muted: var(--stone-500);
  --bg-warm: var(--stone-50);
  --bg-white: var(--white);
  --divider: var(--stone-200);

  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Fraunces', serif;

  --max-width: 1120px;
  --section-padding: 96px 24px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ---- Reset & Base ---- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

/* ---- Layout ---- */

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

.section {
  padding: var(--section-padding);
}

/* ---- Header / Nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-body);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ---- Hero ---- */

.hero {
  padding: 100px 24px 112px;
  background: linear-gradient(168deg, var(--white) 0%, var(--teal-50) 50%, var(--stone-100) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 3.25rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 16px;
  background: var(--teal-100);
  color: var(--teal-800);
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Features ---- */

.features {
  background: var(--bg-white);
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.features-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

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

.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--bg-warm);
  border: 1px solid var(--stone-100);
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--teal-200);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.08);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 10px;
}

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

/* ---- CTA Banner ---- */

.cta-banner {
  background: var(--teal-900);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--teal-200);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding: 48px 24px;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--stone-200);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--stone-400);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal-200);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-800);
  font-size: 0.825rem;
  color: var(--stone-500);
}

/* ---- Legal Pages ---- */

.legal-page {
  padding: 64px 24px 96px;
  background: var(--bg-warm);
  min-height: calc(100vh - 72px - 160px);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
  border: 1px solid var(--divider);
}

.legal-content h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 20px 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--teal-200);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-decoration-color: var(--primary);
}

.sms-section {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-sm);
  padding: 28px 32px;
  margin: 28px 0;
}

.sms-section h2,
.sms-section h3 {
  margin-top: 0;
}

/* ---- 404 Page ---- */

.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(168deg, var(--white) 0%, var(--teal-50) 100%);
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--teal-200);
  margin-bottom: 8px;
  line-height: 1;
}

.page-404 h2 {
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 72px 24px 88px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 64px 20px;
  }

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

  .nav-links {
    gap: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .legal-content {
    padding: 36px 24px;
  }

  .sms-section {
    padding: 20px 24px;
  }

  .page-404 h1 {
    font-size: 4rem;
  }
}
