@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&display=swap');

:root {
  --bg: #FAF6F1;
  --bg-warm: #F3ECE2;
  --fg: #2A2118;
  --fg-muted: #6B5D4F;
  --accent: #C4572A;
  --accent-light: #E8734A;
  --accent-glow: rgba(196, 87, 42, 0.12);
  --cream: #FFF8F0;
  --olive: #5B6B4A;
  --olive-light: #7A8E64;
  --terracotta: #C4572A;
  --sand: #D4C5AA;
  --charcoal: #2A2118;
  --radius: 16px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background: linear-gradient(170deg, var(--bg) 0%, var(--bg-warm) 50%, var(--cream) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 107, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  display: inline-block;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--charcoal);
  max-width: 800px;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 300;
}

/* PHILOSOPHY STRIP */
.philosophy {
  background: var(--charcoal);
  color: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
}

.philosophy-inner {
  max-width: 700px;
  margin: 0 auto;
}

.philosophy h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.philosophy p {
  font-size: 1.05rem;
  color: rgba(255, 248, 240, 0.7);
  line-height: 1.8;
  font-weight: 300;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--cream);
}

.how-it-works-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.how-it-works h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 3.5rem;
  max-width: 500px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step {
  position: relative;
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.step p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* NICHES SHOWCASE */
.niches {
  padding: 6rem 2rem;
  background: var(--bg);
}

.niches-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.niches h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.niches > .niches-inner > p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 500px;
}

.niche-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.niche-card {
  background: var(--cream);
  border: 1px solid rgba(212, 197, 170, 0.5);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.niche-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42, 33, 24, 0.06);
}

.niche-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.niche-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.niche-card p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* CLOSING */
.closing {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.closing-inner {
  max-width: 650px;
  margin: 0 auto;
}

.closing h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
}

.closing .origin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--olive);
  letter-spacing: 0.03em;
}

/* FOOTER */
footer {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-warm);
  border-top: 1px solid var(--sand);
}

footer p {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

footer .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--charcoal);
}

/* NICHE CARD LINK TREATMENT */
a.niche-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.niche-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(42, 33, 24, 0.09);
  border-color: var(--sand);
}

.niche-card-cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.01em;
}

/* ============================================================
   NICHE DETAIL PAGE
   ============================================================ */

/* NAV */
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
}

.detail-nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.detail-nav-back {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-nav-back:hover {
  color: var(--terracotta);
}

/* DETAIL HERO */
.detail-hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-warm) 60%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--niche-color, 196, 87, 42), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.detail-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.detail-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.detail-hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.detail-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.detail-hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

/* SHARED SECTION STRUCTURE */
.detail-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ABOUT */
.detail-about {
  padding: 4rem 2rem;
  background: var(--charcoal);
}

.detail-description {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--cream);
  max-width: 780px;
}

/* CONTENTS */
.detail-contents {
  padding: 5rem 2rem;
  background: var(--cream);
}

.detail-contents h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}

.contents-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contents-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid rgba(212, 197, 170, 0.5);
  border-radius: var(--radius-sm);
}

.contents-item-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--olive);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.contents-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contents-item-text strong {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 1rem;
}

.contents-item-text span {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* WHY + PRICING */
.detail-why {
  padding: 5rem 2rem;
  background: var(--bg);
}

.detail-why-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}

.detail-why h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.75rem;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.why-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-size: 0.7rem;
  top: 0.35rem;
}

/* PRICING CARD */
.pricing-card {
  background: var(--cream);
  border: 1px solid rgba(212, 197, 170, 0.6);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: sticky;
  top: 80px;
  box-shadow: 0 4px 24px rgba(42, 33, 24, 0.05);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.price-amount {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 400;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* SIGNUP FORM */
.signup-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.signup-input:focus {
  border-color: var(--terracotta);
}

.signup-input::placeholder {
  color: var(--sand);
}

.signup-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.signup-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.signup-disclaimer {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* SUCCESS STATE */
.signup-success {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: var(--olive);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.signup-success strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.signup-success p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* BACK STRIP */
.detail-back-strip {
  padding: 3rem 2rem;
  background: var(--bg-warm);
  border-top: 1px solid var(--sand);
  text-align: center;
}

.detail-back-strip p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.back-link {
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .niche-cards {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 80vh;
    padding: 3rem 1.5rem;
  }
  
  .philosophy {
    padding: 4rem 1.5rem;
  }
  
  .how-it-works,
  .niches,
  .closing {
    padding: 4rem 1.5rem;
  }

  /* Detail page mobile */
  .detail-nav {
    padding: 1rem 1.25rem;
  }

  .detail-hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .detail-about,
  .detail-contents,
  .detail-why {
    padding: 3.5rem 1.5rem;
  }

  .detail-why-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pricing-card {
    position: static;
  }
}