/* ========================================
   Joy — joy.day design system
   Shared across all pages. Customer-facing brand.
   Fonts: Archivo (Google Fonts)
   ======================================== */

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

:root {
  /* Primary palette */
  --soft-green: #a3d9a5;
  --bright-coral: #ff6b6b;
  --cream: #fff0e1;
  --white: #ffffff;
  --black: #1a1a1a;

  /* Secondary palette */
  --bright-lilac: #c9a0dc;
  --dark-greige: #736b60;
  --burnt-cream: #f4d0a8;
  --pastel-green: #e7f5e0;
  --light-gray: #f5f5f0;
  --border-soft: #eae7de;

  /* Functional */
  --text-primary: #1a1a1a;
  --text-secondary: #736b60;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== NAV ========== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav .logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-greige);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--text-primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--bright-coral);
}
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--bright-coral);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.3);
}
.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border-soft);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--text-primary);
}
.btn-hint {
  font-size: 14px;
  color: var(--dark-greige);
  margin-top: 14px;
  opacity: 0.85;
}

/* ========== SECTION SHELL ========== */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-sm { padding: 48px 24px; }
.section-lg { padding: 120px 24px; }
@media (max-width: 640px) {
  .section { padding: 56px 20px; }
  .section-lg { padding: 80px 20px; }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-size: clamp(18px, 2.2vw, 22px); }
p { color: var(--text-primary); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-greige);
  margin-bottom: 16px;
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--dark-greige);
  line-height: 1.6;
}

/* ========== HERO ========== */
.hero {
  background: var(--pastel-green);
  border-radius: 24px;
  margin: 0 24px;
  padding: 80px 32px 72px;
  text-align: center;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 230px;
  background: var(--soft-green);
  border-radius: 50%;
  opacity: 0.28;
  top: -80px;
  right: -40px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 150px;
  background: var(--cream);
  border-radius: 50%;
  opacity: 0.55;
  bottom: -40px;
  left: 40px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  margin-bottom: 22px;
}
.hero .subhead {
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--dark-greige);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .hero { margin: 0 12px; padding: 56px 22px 48px; border-radius: 18px; }
}

/* ========== TRUST ROW ========== */
.trust-row {
  text-align: center;
  padding: 56px 24px;
  max-width: 880px;
  margin: 0 auto;
}
.trust-row h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
}

/* ========== FEATURE GRID ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--pastel-green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.feature-card h4 {
  margin-bottom: 10px;
  font-size: 19px;
}
.feature-card p {
  font-size: 15px;
  color: var(--dark-greige);
  line-height: 1.55;
}

/* ========== TESTIMONIALS ========== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.testimonial {
  background: var(--cream);
  border-radius: 20px;
  padding: 32px 28px;
}
.testimonial-quote {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--dark-greige);
}
.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ========== PRICING ========== */
.pricing-block {
  background: var(--pastel-green);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.pricing-price {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
  margin: 20px 0 8px;
}
.pricing-note {
  color: var(--dark-greige);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: var(--bright-coral);
  border-radius: 24px;
  margin: 80px 24px;
  padding: 80px 32px;
  text-align: center;
  color: var(--white);
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta h2 { color: var(--white); margin-bottom: 16px; }
.final-cta p { color: var(--white); opacity: 0.92; margin-bottom: 28px; font-size: 18px; }
.final-cta .btn-primary {
  background: var(--white);
  color: var(--bright-coral);
}
.final-cta .btn-primary:hover {
  background: var(--text-primary);
  color: var(--white);
}
.final-cta .btn-hint { color: var(--white); opacity: 0.85; }

/* ========== FOOTER ========== */
.footer {
  background: var(--light-gray);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-greige);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--bright-coral); }
.footer-brand .logo { font-size: 24px; font-weight: 700; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 14px; color: var(--dark-greige); max-width: 300px; line-height: 1.55; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--dark-greige);
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.15;
}
.legal-page .legal-meta {
  color: var(--dark-greige);
  font-size: 14px;
  margin: 0 0 32px;
}
.legal-page .legal-body {
  background: var(--cream, #fff8ef);
  border: 1px solid var(--border-soft, rgba(0,0,0,0.08));
  border-radius: 16px;
  padding: clamp(20px, 4vw, 40px);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.legal-page .legal-body > :first-child { margin-top: 0; }
.legal-page .legal-body > :last-child { margin-bottom: 0; }
.legal-page h2 {
  font-size: clamp(20px, 3.5vw, 24px);
  margin: 40px 0 12px;
  line-height: 1.3;
}
.legal-page h3 {
  font-size: clamp(16px, 2.8vw, 18px);
  font-weight: 600;
  margin: 24px 0 8px;
  line-height: 1.35;
}
.legal-page p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.legal-page ul, .legal-page ol {
  margin: 12px 0 18px;
  padding-left: 20px;
}
.legal-page li {
  margin-bottom: 6px;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.legal-page a {
  color: var(--bright-coral, #ff6a55);
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legal-page .legal-footer-note {
  margin-top: 24px;
  color: var(--dark-greige);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 600px) {
  .legal-page { padding: 32px 16px 56px; }
}

/* ========== MODALITY GRID (notes-specific) ========== */
.modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.modality-card {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: 18px;
  padding: 24px 22px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.modality-card:hover {
  border-color: var(--soft-green);
  transform: translateY(-2px);
}
.modality-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.modality-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}
.modality-card p {
  font-size: 14px;
  color: var(--dark-greige);
  line-height: 1.5;
}

/* ========== FOUNDERS ========== */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.founder-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--cream);
  border-radius: 20px;
}
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--pastel-green);
  object-fit: cover;
}
.founder-card h3 { font-size: 22px; margin-bottom: 6px; }
.founder-role { font-size: 14px; color: var(--dark-greige); margin-bottom: 16px; font-weight: 500; }
.founder-bio { font-size: 15px; color: var(--text-primary); line-height: 1.55; margin-bottom: 16px; }
.founder-card a { color: var(--bright-coral); font-size: 14px; font-weight: 500; }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 28px; }
.mb-lg { margin-bottom: 48px; }
.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 24px;
}
