/* =====================================================
   WAYFINDER — style.css
   Aesthetic: editorial warmth meets structured clarity
   Palette: warm cream, rich charcoal, golden yellow, soft coral
   Fonts: Playfair Display (headings) + DM Sans (body)
   ===================================================== */

/* ---- CSS VARIABLES ---- */
:root {
  --cream:       #FAF6F0;
  --cream-mid:   #F2EBE0;
  --gold:        #F5C842;
  --gold-dark:   #D4A81C;
  --coral:       #F2A69A;
  --coral-light: #FDE8E5;
  --charcoal:    #1A1A1A;
  --ink:         #2D2D2D;
  --muted:       #7A7060;
  --border:      #E5DDD0;
  --white:       #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;

  --shadow-sm:  0 2px 8px rgba(26,26,26,0.06);
  --shadow-md:  0 8px 32px rgba(26,26,26,0.10);
  --shadow-lg:  0 20px 60px rgba(26,26,26,0.14);

  --max-w:      1180px;
  --section-v:  100px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

/* ---- UTILITIES ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,200,66,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--cream-mid);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn-dark:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }
.btn-large { padding: 18px 40px; font-size: 18px; }

.section { padding: var(--section-v) 0; position: relative; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--gold-dark);
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 56px;
}


/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--charcoal);
}
.logo-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links .btn { margin-left: 8px; }


/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -200px; right: -150px;
  opacity: 0.15;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--coral);
  bottom: -100px; left: -100px;
  opacity: 0.12;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-light);
  color: #b04030;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-dark);
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-micro {
  font-size: 13px;
  color: var(--muted);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.book-mockup {
  position: relative;
}
.hero-img {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}
.hero-img:hover { transform: scale(1.02) rotate(-0.5deg); }


/* =====================================================
   TRUST BAR
   ===================================================== */
.trust-bar {
  background: var(--charcoal);
  padding: 16px 0;
}
.trust-inner {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.trust-inner span {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
}


/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-it-works { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s;
}
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-card:nth-child(2) { transition-delay: 0.1s; }
.step-card:nth-child(3) { transition-delay: 0.2s; }

.step-card:hover { box-shadow: var(--shadow-md); }

.step-back  { border-top: 4px solid var(--coral); }
.step-vision{ border-top: 4px solid var(--gold); }
.step-ahead { border-top: 4px solid #7EC8A4; }

.step-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  position: absolute;
  top: 24px; right: 28px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.step-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}
.step-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}


/* =====================================================
   GUIDE SECTION
   ===================================================== */
.guide-section { background: var(--cream); }
.guide-bg-blob {
  position: absolute;
  width: 500px; height: 500px;
  background: var(--gold);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  top: -50px; right: -100px;
  pointer-events: none;
}

.guide-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 72px;
}

.guide-pages { position: relative; }
.guide-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.guide-contents h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.guide-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.guide-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.guide-item.visible { opacity: 1; transform: translateX(0); }
.guide-item:nth-child(2) { transition-delay: 0.08s; }
.guide-item:nth-child(3) { transition-delay: 0.16s; }
.guide-item:nth-child(4) { transition-delay: 0.24s; }
.guide-item:nth-child(5) { transition-delay: 0.32s; }
.guide-item:nth-child(6) { transition-delay: 0.40s; }

.guide-item-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.guide-item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.guide-item-text strong {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 15px;
}
.guide-item-text span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Page previews */
.preview-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 28px;
  text-align: center;
}
.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.page-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s;
}
.page-card.visible { opacity: 1; transform: translateY(0); }
.page-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.page-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.page-card span {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* =====================================================
   DOWNLOAD / FORM
   ===================================================== */
.download-section {
  background: var(--cream-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.download-text .section-title { margin-bottom: 16px; }
.download-text p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.download-promise {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-promise span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-top {
  margin-bottom: 28px;
}
.form-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.2);
}
.form-group input::placeholder { color: #bbb; }

.btn-full { margin-top: 8px; font-size: 17px; padding: 16px; }
.form-fine {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.success-message {
  text-align: center;
  padding: 20px 0;
}
.success-icon { font-size: 48px; margin-bottom: 12px; }
.success-message h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.success-message p { color: var(--muted); font-size: 15px; }

.error-message {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fde8e5;
  border: 1px solid #f2a69a;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #8b2a20;
}
.error-message a { color: #8b2a20; font-weight: 600; }


/* =====================================================
   BOOK SECTION
   ===================================================== */
.book-section { background: var(--white); }
.book-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.book-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.book-text .section-title { margin-bottom: 16px; }
.book-text > p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
}
.book-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.book-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.book-feature.visible { opacity: 1; transform: translateY(0); }
.bf-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.book-feature strong {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.book-feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.book-waitlist form {
  display: flex;
  gap: 10px;
}
.book-waitlist input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.book-waitlist input:focus { border-color: var(--charcoal); }
.waitlist-success {
  font-size: 15px;
  font-weight: 600;
  color: #2d6a4f;
  padding: 10px 0;
}


/* =====================================================
   FAQ
   ===================================================== */
.faq-section { background: var(--cream); }
.faq-inner { max-width: 760px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.faq-item.visible { opacity: 1; }
.faq-item summary {
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  padding-bottom: 20px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}


/* =====================================================
   FINAL CTA
   ===================================================== */
.final-cta {
  background: var(--charcoal);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.final-blob {
  position: absolute;
  width: 700px; height: 700px;
  background: var(--gold);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.final-inner { position: relative; z-index: 1; }
.final-tag {
  font-size: 28px;
  margin-bottom: 16px;
}
.final-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.final-cta > .container > p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.final-fine {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}


/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand .logo-text { color: var(--white); font-size: 20px; }
.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  margin-top: 8px;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  :root { --section-v: 72px; }

  .hero-inner,
  .guide-showcase,
  .download-inner,
  .book-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { order: -1; }
  .book-visual { order: -1; }

  .steps-grid { grid-template-columns: 1fr; }

  .nav-links a:not(.btn) { display: none; }

  .pages-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 600px) {
  :root { --section-v: 56px; }

  .hero-headline { font-size: 2.4rem; }
  .section-title  { font-size: 1.8rem; }

  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .form-card { padding: 28px 20px; }

  .trust-inner { gap: 12px; flex-direction: column; }

  .book-waitlist form { flex-direction: column; }
  .book-waitlist input { width: 100%; }
  .book-waitlist .btn { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .pages-grid { grid-template-columns: repeat(3, 1fr); }
}
