/* ─────────────────────────────────────────────────────────────────────────
 * TrueHealthAge.com — marketing site styles
 *
 * Color system pulled from the app + logo:
 *   Teal       #0D9488     primary brand
 *   Green      #10B981     secondary
 *   Blue       #2563EB     logo accent
 *   Dark text  #0F172A
 *   Body text  #334155
 *   Muted      #64748B
 *   Bg tint    #F0FDFA
 * ───────────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #334155;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0D9488;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #0F766E;
}

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

/* ── Layout ─────────────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }
}

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

.site-header {
  background: white;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

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

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

.site-nav a {
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #0D9488;
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, #0D9488 0%, #10B981 100%);
  color: white;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  color: white;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

@media (max-width: 640px) {
  .site-nav {
    gap: 14px;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .site-logo img {
    height: 38px;
  }
}

/* ── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  color: #0F172A;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.6em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-top: 1.4em;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.2em;
}

h4 {
  font-size: 1.05rem;
  margin-top: 1em;
}

p {
  margin-bottom: 1em;
  font-size: 1.02rem;
}

p.lead {
  font-size: 1.18rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.6em;
}

ul, ol {
  margin: 0 0 1.2em 1.4em;
}

li {
  margin-bottom: 0.5em;
}

blockquote {
  border-left: 4px solid #0D9488;
  padding: 6px 18px;
  margin: 1.4em 0;
  color: #475569;
  font-style: italic;
}

code {
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.9em;
}

strong {
  color: #0F172A;
}

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

.hero {
  background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 100%);
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  margin: 0 auto 24px;
}

.hero-logo img {
  height: 130px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(13, 148, 136, 0.12));
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0D9488 0%, #10B981 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.38);
}

.btn-secondary {
  background: white;
  color: #0F766E;
  border: 1px solid #99F6E4;
}

.btn-secondary:hover {
  background: #F0FDFA;
  color: #0F766E;
}

.btn-store {
  background: #0F172A;
  color: white;
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn-store:hover {
  background: #1E293B;
  color: white;
}

/* ── Section: How it works ──────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.step {
  text-align: left;
  padding: 24px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0D9488 0%, #10B981 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step p {
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
}

/* ── Section: Categories ────────────────────────────────────────────────── */

.categories {
  background: #F8FAFC;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-weight: 500;
  color: #0F172A;
}

.category-icon {
  font-size: 1.7rem;
  line-height: 1;
}

/* ── Section: Newsletter signup ─────────────────────────────────────────── */

.newsletter-section {
  background: linear-gradient(135deg, #0D9488 0%, #10B981 100%);
  color: white;
  text-align: center;
}

.newsletter-section h2 {
  color: white;
}

.newsletter-section .lead {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.newsletter-form button {
  padding: 13px 24px;
  background: #0F172A;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter-form button:hover {
  background: #1E293B;
}

.newsletter-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Articles ───────────────────────────────────────────────────────────── */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.article-card {
  display: block;
  padding: 22px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  border-color: #99F6E4;
  color: inherit;
}

.article-card .article-category {
  display: inline-block;
  padding: 3px 10px;
  background: #F0FDFA;
  color: #0F766E;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.article-card .article-hook {
  font-size: 0.92rem;
  color: #475569;
  margin: 0;
}

.article-card .article-meta {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-top: 14px;
}

/* Single article page */

.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-page .article-category {
  display: inline-block;
  padding: 4px 12px;
  background: #F0FDFA;
  color: #0F766E;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.article-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.article-page .article-subtitle {
  font-size: 1.18rem;
  color: #64748B;
  font-style: italic;
  margin-bottom: 12px;
}

.article-page .article-meta-row {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  color: #94A3B8;
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid #E2E8F0;
}

.article-page p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-page h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  margin-bottom: 0.4em;
}

.article-page hr {
  border: 0;
  border-top: 1px solid #E2E8F0;
  margin: 2.5em 0;
}

.article-cta-block {
  background: #F0FDFA;
  border-left: 4px solid #0D9488;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
}

.article-cta-block p {
  margin: 0 0 12px;
}

.article-cta-block p:last-child {
  margin-bottom: 0;
}

.coach-paragraph-slot {
  background: #FFFBEB;
  border: 1px dashed #FBBF24;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.5em 0;
  color: #92400E;
  font-style: italic;
  font-size: 0.95rem;
}

.coach-paragraph-slot strong {
  color: #78350F;
  font-style: normal;
}

.disclaimer {
  font-size: 0.85rem;
  color: #94A3B8;
  font-style: italic;
  text-align: center;
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid #E2E8F0;
}

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

.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 56px 24px 28px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

@media (max-width: 720px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.site-footer h4 {
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.site-footer a {
  color: #CBD5E1;
}

.site-footer a:hover {
  color: white;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 14px;
  color: #94A3B8;
}

.site-footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page .legal-meta {
  font-size: 0.92rem;
  color: #64748B;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #E2E8F0;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 1.4em;
}

.legal-page table {
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.92rem;
  width: 100%;
}

.legal-page th, .legal-page td {
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: #F8FAFC;
  font-weight: 600;
}

.draft-callout {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 1em 0 2em;
  font-size: 0.92rem;
  color: #78350F;
}
