/* ============================================
   WHEN SCRIPTURE SPEAKS — Landing Page
   deeperground.co
   ============================================ */

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

:root {
  /* Colors */
  --bg:           #f9f6f1;
  --bg-alt:       #f2ede4;
  --bg-dark:      #2c2720;
  --fg:           #2c2720;
  --fg-body:      #3a3028;
  --fg-quiet:     #8a7e72;
  --accent:       #7a4f35;
  --accent-light: #c49a78;
  --divider:      #e0d8cc;

  /* Type */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Lato', system-ui, sans-serif;

  /* Spacing */
  --section-y:    clamp(3rem, 6vw, 5rem);
  --reading-max:  640px;
  --narrow-max:   780px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

p {
  color: var(--fg-body);
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-family: var(--serif);
  font-style: italic;
}

/* --- LAYOUT HELPERS --- */
.container-reading {
  max-width: var(--reading-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--narrow-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-nav {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn-nav:hover {
  background-color: var(--accent);
  color: #fff;
}

/* --- NAV --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 1px 8px rgba(44, 39, 32, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
}

/* --- HERO --- */
.hero {
  padding: clamp(4rem, 7vw, 6rem) 1.5rem clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--divider);
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 540px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-body);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.price-note {
  font-size: 0.85rem;
  color: var(--fg-quiet);
  margin: 0;
}

.hero-cover {
  flex-shrink: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
}

/* --- 3D BOOK --- */
.book-3d {
  --thickness: 42px;
  perspective: 800px;
  width: 260px;
  margin-left: 30px;
}

.book-3d-inner {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-30deg);
  transition: transform 0.5s ease;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.book-3d:hover .book-3d-inner {
  transform: rotateY(-15deg);
}

/* Spine — left face */
.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--thickness);
  height: 100%;
  transform-origin: right center;
  transform: translateX(calc(var(--thickness) * -1)) rotateY(-90deg);
  background: linear-gradient(
    to right,
    #2e1c08 0%,
    #5c3a18 40%,
    #3e2410 100%
  );
  border-radius: 2px 0 0 2px;
}

/* Front cover image */
.book-3d-inner img {
  display: block;
  width: 100%;
  border-radius: 0 3px 3px 0;
  box-shadow: 10px 16px 40px rgba(44, 39, 32, 0.32);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Left edge depth illusion handled by .book-cover-wrap::after */

/* Wrap image in a div to allow the overlay */
.book-cover-wrap {
  position: relative;
  display: block;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
}

.book-cover-wrap img {
  display: block;
  width: 100%;
  border-radius: 0 3px 3px 0;
  box-shadow: 10px 16px 40px rgba(44, 39, 32, 0.32);
}

.book-cover-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.04) 60%,
    transparent 100%
  );
  border-radius: 1px 0 0 1px;
  pointer-events: none;
}

/* Pages — right face */
.book-pages {
  position: absolute;
  top: 1%;
  right: 0;
  width: 28px;
  height: 98%;
  transform-origin: left center;
  transform: translateX(28px) rotateY(90deg);
  background: repeating-linear-gradient(
    to right,
    #f5efe6 0px,
    #f5efe6 2px,
    #d8cfc4 2px,
    #d8cfc4 3px
  );
}

/* Drop shadow beneath the book */
.book-shadow {
  width: 240px;
  height: 24px;
  background: radial-gradient(ellipse at 50% center, rgba(44,39,32,0.25) 0%, transparent 70%);
  margin-top: 8px;
  margin-left: 15px;
}

/* --- TENSION --- */
.tension {
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem var(--section-y);
  background-color: var(--bg-alt);
}

/* --- WHAT IT DOES --- */
.what-it-does {
  padding: var(--section-y) 1.5rem;
}

/* --- INSIDE --- */
.inside {
  padding: var(--section-y) 1.5rem;
  background-color: var(--bg-alt);
}

.inside h2 {
  text-align: center;
  max-width: var(--reading-max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.inside-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--narrow-max);
  margin: 0 auto;
}

.inside-item {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--divider);
}

.inside-item:nth-child(even) {
  padding-left: 2rem;
  padding-right: 0;
  border-left: 1px solid var(--divider);
}

.inside-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.inside-item h3 {
  font-size: 1.05rem;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.inside-item p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- OUTCOMES --- */
.outcomes {
  padding: var(--section-y) 1.5rem;
}

.outcomes h2 {
  text-align: center;
}

.outcomes-list {
  list-style: none;
  margin-top: 2.5rem;
}

.outcomes-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 1.05rem;
  color: var(--fg-body);
  line-height: 1.6;
}

.outcomes-list li:first-child {
  border-top: 1px solid var(--divider);
}

.outcome-marker {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-light);
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* --- AUDIENCE --- */
.audience {
  padding: var(--section-y) 1.5rem;
  background-color: var(--bg-alt);
}

.audience h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.audience-col h3 {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--fg-quiet);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.audience-col ul {
  list-style: none;
}

.audience-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--divider);
  color: var(--fg-body);
  font-size: 0.975rem;
  line-height: 1.55;
}

.audience-col ul li:first-child {
  border-top: 1px solid var(--divider);
}

.audience-col ul li:last-child {
  border-bottom: none;
}

.audience-col ul li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-light);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* --- UNLEARN --- */
.unlearn {
  padding: var(--section-y) 1.5rem;
}

.unlearn h2 {
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--fg-quiet);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.section-note {
  text-align: center;
  color: var(--fg-quiet);
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

.unlearn-list {
  list-style: none;
  margin-top: 0.5rem;
}

.unlearn-list li {
  padding: 1.1rem 0 1.1rem 1.75rem;
  border-bottom: 1px solid var(--divider);
  color: var(--fg-body);
  font-size: 1.025rem;
  line-height: 1.6;
  position: relative;
}

.unlearn-list li:first-child {
  border-top: 1px solid var(--divider);
}

.unlearn-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-light);
  position: absolute;
  left: 0;
  top: 1.55rem;
}

/* --- AUTHOR --- */
.author {
  padding: var(--section-y) 1.5rem;
  background-color: var(--bg-alt);
}

.author h2 {
  margin-bottom: 0.5rem;
}

.author-byline {
  font-size: 0.8rem;
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2rem;
}

.author-inner {
  border-left: 2px solid var(--accent-light);
  padding-left: 1.75rem;
}

.author-inner p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.author-inner p:last-child {
  margin-bottom: 0;
}

/* --- EMAIL CAPTURE --- */
.email-capture {
  padding: var(--section-y) 1.5rem;
  background-color: var(--bg-dark);
}

.email-capture h2 {
  color: #f2ede4;
  margin-bottom: 1rem;
}

.email-capture p {
  color: #b8aca0;
  margin-bottom: 2rem;
}

.email-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  color: #f2ede4;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]::placeholder {
  color: #8a7e72;
}

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

.form-note {
  font-size: 0.85rem;
  color: #6a5e54;
  margin: 0;
}

/* --- FINAL CTA --- */
.final-cta {
  padding: var(--section-y) 1.5rem;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1.25rem;
}

.final-cta p {
  margin-bottom: 0.75rem;
}

.final-cta p:last-of-type {
  margin-bottom: 2.5rem;
}

/* --- FOOTER --- */
footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--divider);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.footer-links {
  font-size: 0.8rem;
  color: var(--fg-quiet);
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.75;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-quiet);
  margin: 0;
}

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
}

.stagger-1 { animation-delay: 0.15s; }
.stagger-2 { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-cover {
    margin: 0 auto;
  }

  .book-3d {
    width: 180px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

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

  .inside-item {
    padding: 1.75rem 0;
    border-left: none !important;
  }

  .inside-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--divider);
  }

  .inside-item:last-child {
    border-bottom: none;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form input[type="email"],
  .email-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}