/* ── Lodestar Design System ── */

:root {
  --navy: #1a2332;
  --navy-text: #1B3A5C;
  --warm-cream: #faf7f2;
  --gold: #c9a84c;
  --gold-dark: #B8933A;
  --gold-light: #f5eedb;
  --text-primary: #2c3440;
  --text-secondary: #5a6577;
  --text-muted: #8692a2;
  --border: #e4dfd6;
  --white: #ffffff;
  --soft-white: #F7F4F0;
  --accent-green: #3a7d5c;
}

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

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--warm-cream);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */

.site-nav {
  background: var(--navy);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav .logo:hover { text-decoration: none; opacity: 0.9; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); text-decoration: none; }

/* ── Hero ── */

.hero {
  background: var(--navy);
  padding: 4rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--warm-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero .app-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

/* ── Page Header (non-home) ── */

.page-header {
  background: var(--navy);
  padding: 3rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--warm-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header .header-badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.page-header .subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
}

/* ── Content Container ── */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── Card / Intro Block ── */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.card--gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 12px 12px 0 0;
}

.card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Callout / Promise Box ── */

.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--gold-light);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}

.callout .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin-top: 2px;
}

.callout p {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.98rem;
}

.callout-border {
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.callout-border p {
  font-size: 0.93rem;
  color: var(--text-primary);
  margin: 0;
}

/* ── Value Proposition ── */

.value-section {
  text-align: center;
  padding: 2rem 0 1rem;
}

.value-section .lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}

.value-section .sub {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Badges ── */

.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold-dark);
}

/* ── Pillars / Feature Grid ── */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.pillar h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── App Store Button ── */

.app-store-link {
  display: inline-block;
  margin: 2rem 0;
  transition: opacity 0.2s;
}

.app-store-link:hover { opacity: 0.85; text-decoration: none; }

.app-store-link img {
  height: 54px;
}

/* ── Section Headers ── */

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ── Privacy Policy Sections ── */

.toc {
  margin-bottom: 3rem;
}

.toc h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 0.4rem;
}

.toc li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  transition: color 0.2s;
}

.toc li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 22px;
}

.toc li a:hover { color: var(--navy); text-decoration: none; }

.section {
  margin-bottom: 2.5rem;
}

.section-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
}

.section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.section ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Contact Page ── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.contact-card .contact-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--gold-dark);
  font-weight: 500;
}

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.site-footer .footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.site-footer .footer-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 0.75rem;
}

.site-footer .footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-footer .footer-links a:hover { color: var(--gold); }

.site-footer .copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer .copyright a {
  color: var(--gold);
}

/* ── Responsive: Tablet ── */

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .badges { gap: 0.75rem; }
}

/* ── Responsive: Mobile ── */

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: center;
  }

  .nav-links { gap: 1.25rem; }

  .hero { padding: 3rem 1.25rem 4rem; }
  .hero .app-icon { width: 110px; height: 110px; border-radius: 22px; }
  .hero h1 { font-size: 2.2rem; }

  .page-header { padding: 2.5rem 1.25rem 3.5rem; }
  .page-header h1 { font-size: 2rem; }

  .container,
  .container-wide { padding: 1.5rem 1.25rem 3rem; }

  .card { padding: 1.5rem; }
  .callout { flex-direction: column; gap: 0.5rem; }

  .value-section .lead { font-size: 1.1rem; }

  .badges {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .section-title { font-size: 1.5rem; }

  .pillar { padding: 1.5rem 1.25rem; }
  .pillar h3 { font-size: 1.15rem; }

  .contact-card { padding: 1.5rem; }

  .site-footer { padding: 2rem 1.25rem; }
  .site-footer .footer-links { flex-wrap: wrap; gap: 1rem; }

  .app-store-link img { height: 44px; }
}
