/* ============================================
   My Clarity Kits — Shared Styles
   Brand: Sage #B2C9AD, Cream #FAF7F2, Navy #3D4F5F
   Font: Inter (Google Fonts)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage: #B2C9AD;
  --sage-dark: #96b090;
  --sage-light: #d4e4d0;
  --cream: #FAF7F2;
  --cream-dark: #f0ebe3;
  --navy: #3D4F5F;
  --navy-light: #5a7080;
  --navy-dark: #2c3a47;
  --white: #ffffff;
  --text: #3D4F5F;
  --text-light: #6b7d8a;
  --border: #e0dbd4;
  --shadow: rgba(61, 79, 95, 0.08);
  --shadow-md: rgba(61, 79, 95, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 4vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text);
}

.text-center { text-align: center; }
.text-light { color: var(--text-light); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--shadow-md);
}

.btn-secondary {
  background-color: var(--sage);
  color: var(--navy);
  border-color: var(--sage);
}

.btn-secondary:hover {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Navigation --- */
.nav {
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(250, 247, 242, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--sage);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.nav-mobile {
  display: none;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* --- Category Cards --- */
.categories {
  padding: 4rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: var(--sage);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.category-icon.health {
  background-color: var(--sage-light);
}

.category-icon.finance {
  background-color: #dce5f0;
}

.category-card h3 {
  margin-bottom: 0.75rem;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Product Grid --- */
.products-section {
  background-color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow);
  border-color: var(--sage);
}

.product-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  text-align: center;
  padding: 1.25rem;
  line-height: 1.4;
}

.product-thumb.health-1 { background: linear-gradient(135deg, #d4e4d0, #b2c9ad); }
.product-thumb.health-2 { background: linear-gradient(135deg, #c8ddd4, #a3c4b4); }
.product-thumb.health-3 { background: linear-gradient(135deg, #d8e6d2, #b9d1ae); }
.product-thumb.health-4 { background: linear-gradient(135deg, #cde0d6, #a8c9b2); }
.product-thumb.health-5 { background: linear-gradient(135deg, #b2c9ad, #8fae88); }
.product-thumb.finance-1 { background: linear-gradient(135deg, #dce5f0, #b8c8da); }
.product-thumb.finance-2 { background: linear-gradient(135deg, #d4dfe8, #adc0d4); }
.product-thumb.finance-3 { background: linear-gradient(135deg, #e0e8f0, #c2d0e0); }
.product-thumb.finance-4 { background: linear-gradient(135deg, #d8e2ec, #b4c6d8); }
.product-thumb.finance-5 { background: linear-gradient(135deg, #c0d0e0, #96afc6); }

.product-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h4 {
  margin-bottom: 0.375rem;
  font-size: 1rem;
}

.product-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
}

.product-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background-color: var(--sage-light);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.product-badge.bundle {
  background-color: #f0d68c;
  color: var(--navy-dark);
}

/* --- How It Works --- */
.how-it-works {
  background-color: var(--cream);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--sage);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h4 {
  margin-bottom: 0.625rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonials {
  background-color: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}

.testimonial-stars {
  color: #e8b84b;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial p {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}

.testimonial-detail {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* --- Email CTA --- */
.email-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}

.email-cta h2 {
  color: var(--white);
}

.email-cta p {
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .email-form {
    flex-direction: row;
  }
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.email-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.email-form input[type="email"]:focus {
  border-color: var(--sage);
}

.email-form button {
  white-space: nowrap;
}

/* --- Footer --- */
.footer {
  background-color: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* --- Collection Page --- */
.page-header {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.0625rem;
}

.collection-products {
  background-color: var(--white);
}

.why-section {
  background-color: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  text-align: center;
  padding: 1.5rem;
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.why-item h4 {
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Product Detail Page --- */
.product-detail {
  padding: 4rem 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.product-mockup {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  text-align: center;
  padding: 2rem;
  line-height: 1.5;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-info .product-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-detail-info h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.product-detail-info .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.product-description {
  margin-bottom: 2rem;
}

.product-description p {
  font-size: 1rem;
  line-height: 1.8;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.product-features ul {
  list-style: none;
}

.product-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text);
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 700;
}

.buy-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.buy-box .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.buy-box .btn {
  width: 100%;
}

.buy-box p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Related Products */
.related-products {
  background-color: var(--cream);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Checkout / Thank You --- */
.simple-page {
  padding: 5rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.simple-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
}

.simple-card .icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.simple-card h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.simple-card p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.simple-card .highlight {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.simple-card .highlight h4 {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.simple-card .highlight ol {
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.simple-card .highlight li {
  margin-bottom: 0.375rem;
}

.support-link {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.support-link a {
  color: var(--sage-dark);
  font-weight: 600;
}

/* --- Section Headings --- */
.section-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 560px;
  margin: 0.75rem auto 0;
  color: var(--text-light);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--sage);
  border-radius: 3px;
  margin: 1.25rem auto 0;
}

/* --- Utilities --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Responsive fine-tuning --- */
@media (max-width: 479px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
}
