/* Fonts loaded via <link> in HTML for faster rendering */

/* ============ ACCESSIBILITY ============ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink, #2a2a2a);
  color: var(--cream, #f5efe6);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  z-index: 100001;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus indicators for keyboard users */
*:focus-visible {
  outline: 2px solid #8B6914;
  outline-offset: 2px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #8B6914;
  outline-offset: 2px;
}

:root {
  --cream: #f5efe6;
  --cream-warm: #ebe4d8;
  --cream-dark: #e0d8ca;
  --cream-light: #faf6f0;
  --ink: #2a2a2a;
  --ink-soft: #3a3530;
  --ink-light: #584e43;
  --gold: #8B6914;
  --gold-soft: #b5a892;
  --gold-faint: #d4c9b8;
  --olive: #3c4a3e;
  --olive-dark: #2d3830;
  --olive-deep: #1e2620;
  --teal: #1a3a48;
  --teal-dark: #122830;
  --teal-deep: #0f2129;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: rgba(245,239,230,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--cream-dark);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo { width: 32px; height: 32px; opacity: 0.65; }

.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.nav-brand:hover .nav-wordmark { opacity: 1; }
.nav-brand:hover .nav-logo { opacity: 0.85; }

.nav-links { display: flex; gap: 28px; list-style: none; }

.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid var(--cream-dark);
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--gold-soft);
  transition: color 0.3s;
}

.nav-social a:hover { color: var(--ink-soft); }

.nav-social svg { width: 16px; height: 16px; }

/* ============ HERO — BOOK CENTERED ============ */
.hero {
  padding: 120px 32px 60px;
  text-align: center;
  background: var(--cream);
  position: relative;
}

.hero-headline {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.15;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 22px;
  font-style: italic;
  color: var(--ink-light);
  max-width: 520px;
  margin: 0 auto 16px;
  line-height: 1.6;
  text-wrap: balance;
}

.hero-credentials {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 auto 50px;
  max-width: 500px;
}

/* Book mockup image */
.book-display {
  width: 100%;
  max-width: 600px;
  margin: 44px auto 0;
}

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

/* ============ SUBPAGE HERO ============ */
.subpage-hero {
  padding: 120px 32px 60px;
  text-align: center;
  background: var(--cream);
  position: relative;
}

.subpage-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.3;
}

.subpage-hero p {
  font-size: 20px;
  color: var(--ink-light);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ SUBPAGE CONTENT ============ */
.subpage-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px;
  line-height: 1.8;
}

.subpage-content h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 24px;
  margin-top: 40px;
}

.subpage-content h2:first-child {
  margin-top: 0;
}

.subpage-content h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
  margin-top: 32px;
}

.subpage-content p {
  font-size: 19px;
  color: var(--ink-light);
  margin-bottom: 18px;
  line-height: 1.8;
}

.subpage-content strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.subpage-content em {
  font-style: italic;
  color: var(--ink);
}

/* ============ BACK LINK ============ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 32px;
  padding-top: 60px;
  margin: 0 auto;
  max-width: 760px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

.back-link::before {
  content: '←';
  margin-right: 4px;
}

/* ============ BOOK DESCRIPTION + CTA ============ */
.book-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px 40px;
  text-align: center;
}

.book-intro p {
  font-size: 21px;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Free chapter CTA */
.chapter-cta {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  text-align: center;
}

.chapter-cta h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.cta-note {
  font-size: 17px;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 20px;
}

.chapter-cta h3 em {
  font-style: italic;
  color: var(--gold);
}

.cta-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 6px;
  background: var(--cream-light);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.cta-form input::placeholder { color: var(--gold-soft); }
.cta-form input:focus { border-color: var(--gold); }

.cta-form button {
  padding: 14px 24px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.cta-form button:hover { background: var(--ink-soft); }

/* ============ DIVIDER ============ */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-faint);
  margin: 0 auto;
}

/* ============ ABOUT / FRODE ============ */
.about-section {
  background: var(--cream-warm);
  padding: 80px 32px;
}

.about-layout {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 20px;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-text p strong { color: var(--ink-soft); font-weight: 600; }

.about-text .bridge-line {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 10px;
}

.about-photo {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 30%;
  aspect-ratio: 4/5;
}

/* ============ FRAMEWORK ============ */
.framework-section {
  background: var(--cream-warm);
  padding: 80px 24px;
}

.framework-intro {
  max-width: 560px;
  margin: 0 auto 50px;
  text-align: center;
}

.framework-intro h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.framework-intro p {
  font-size: 19px;
  color: var(--ink-light);
  font-style: italic;
}

.framework-teaser {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.framework-teaser h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.framework-teaser p {
  font-size: 19px;
  color: var(--ink-light);
}

.framework-teaser p:first-of-type {
  font-style: italic;
  margin-bottom: 24px;
}

.framework-teaser p:nth-of-type(2) {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.fw-container { max-width: 560px; margin: 0 auto; }

.fw-label {
  text-align: center;
  padding: 24px 0 16px;
}

.fw-label .lt {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-light);
}

.fw-label .ls {
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-light);
  margin-top: 4px;
}

.fw-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 12px;
  text-align: center;
}

.fw-card.alt { background: rgba(250,246,240,0.7); }

.fw-card h3 { font-size: 22px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.fw-card .sub { font-size: 15px; font-style: italic; color: var(--gold); margin-bottom: 8px; }
.fw-card .desc { font-size: 16px; color: var(--ink-light); }

.fw-arrow { text-align: center; padding: 3px 0; color: var(--ink-soft); font-size: 16px; opacity: 0.35; }

.fw-bar {
  background: var(--ink-soft);
  border-radius: 10px;
  padding: 24px 20px 20px;
  text-align: center;
  margin: 12px 0;
}

.fw-bar h3 { font-size: 28px; font-weight: 700; color: var(--cream); letter-spacing: 6px; margin-bottom: 8px; }
.fw-bar .bar-div { width: 80px; height: 1px; background: var(--gold); margin: 0 auto 12px; opacity: 0.4; }

.fw-dual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.fw-dual .nm { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 400; color: var(--cream); }
.fw-dual .tp { font-size: 13px; font-style: italic; color: var(--gold); }
.fw-dual .dia { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); opacity: 0.4; }

.fw-practice {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 12px;
}

.fw-practice .lbl { font-size: 15px; font-style: italic; color: var(--gold); margin-bottom: 12px; font-weight: 500; }

.fw-pracs { display: flex; justify-content: center; gap: 20px; align-items: center; flex-wrap: wrap; }
.fw-pracs .pn { font-size: 19px; font-weight: 600; color: var(--ink-soft); }
.fw-pracs .pd { width: 1px; height: 22px; background: var(--gold-faint); }

.fw-seer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 5px;
  margin-bottom: 4px;
  text-align: left;
}

.fw-seer:nth-child(odd) { background: rgba(235,228,216,0.5); }
.fw-seer:nth-child(even) { background: rgba(229,221,208,0.3); }

.fw-seer .le { font-size: 26px; font-weight: 700; color: var(--ink-soft); min-width: 22px; }
.fw-seer .sn { font-size: 17px; font-weight: 500; color: var(--ink-light); }
.fw-seer .sd { font-size: 15px; font-style: italic; color: var(--ink-light); margin-top: 1px; }

.fw-dest {
  background: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 12px;
}

.fw-dest h3 { font-size: 22px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.fw-dest .tg { font-size: 17px; font-style: italic; color: var(--ink-light); }

/* ============ COMMUNITY + PHOTO ============ */
.community-section {
  background: var(--cream);
  padding: 80px 32px;
}

.community-layout {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  align-items: center;
}

.community-photo {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 25%;
}

.community-text h2 { font-size: 38px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }

.community-text p {
  font-size: 19px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ============ BETA READER ============ */
.beta-section {
  background: var(--cream);
  padding: 60px 32px;
  text-align: center;
}

.beta-card {
  max-width: 560px;
  margin: 0 auto;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 40px 36px;
  background: var(--cream-light);
}

.beta-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.beta-card h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.beta-card p {
  font-size: 18px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.btn-gold {
  display: inline-block;
  padding: 13px 30px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-gold:hover { background: var(--ink-soft); }

/* ============ MID-PAGE CTA ============ */
.mid-cta {
  max-width: 520px;
  margin: 0 auto;
  padding: 50px 32px;
  text-align: center;
  background: var(--cream);
}

.mid-cta h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* ============ DEEPLY SAFE APP ============ */
.app-section {
  background: var(--olive-deep);
  padding: 80px 32px;
  text-align: center;
}

.app-preview-layout {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.app-preview-text {
  flex: 1;
  text-align: left;
  color: var(--cream);
}

.app-preview-phone {
  flex-shrink: 0;
  width: 280px;
  height: 560px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  background: #0A0A0A;
}

.app-preview-phone iframe {
  width: 375px;
  height: 812px;
  border: none;
  transform: scale(0.6893);
  transform-origin: top left;
  pointer-events: all;
}

a.app-preview-phone {
  transition: transform 0.3s ease;
}
a.app-preview-phone:hover {
  transform: translateY(-4px);
}

.app-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.app-preview-text h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.app-tagline {
  font-size: 18px;
  font-style: italic;
  color: var(--gold-soft);
  margin-bottom: 24px;
}

.app-desc {
  font-size: 18px;
  color: rgba(245,239,230,0.8);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 480px;
}

.app-preview-text .cta-form {
  margin-top: 24px;
}

.app-preview-text .cta-form input {
  background: rgba(245,239,230,0.12);
  border-color: rgba(181,168,146,0.3);
  color: var(--cream);
}

.app-preview-text .cta-form input::placeholder {
  color: rgba(181,168,146,0.6);
}

.app-preview-text .cta-form input:focus {
  border-color: var(--gold);
}

.app-preview-text .cta-form button {
  background: var(--gold);
  color: var(--cream);
}

.app-preview-text .cta-form button:hover {
  background: #a07b1a;
}

/* ============ OFFERINGS ============ */
.offerings-section {
  background: var(--cream-warm);
  padding: 80px 32px;
}

.offerings-section h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 50px;
}

.offerings-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.offering {
  text-align: center;
  padding: 24px 20px;
  text-decoration: none;
  display: block;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

.offering:hover {
  background: rgba(245,239,230,0.6);
  transform: translateY(-2px);
}

.offering h3 {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.offering p {
  font-size: 17px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.offering-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--gold);
  transition: color 0.3s;
}

.offering:hover .offering-link { color: var(--ink-soft); }

/* Nav active state */
.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}

/* ============ WHO THIS IS FOR ============ */
.who-section {
  background: var(--cream);
  padding: 80px 32px;
}

.who-section h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 36px;
}

.who-list {
  max-width: 580px;
  margin: 0 auto;
  list-style: none;
}

.who-list li {
  font-size: 20px;
  color: var(--ink-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
  line-height: 1.55;
}

.who-list li::before { content: '...'; color: var(--gold); margin-right: 6px; font-weight: 600; }

.who-list li:last-child { font-weight: 600; color: var(--ink-soft); border-bottom: none; }

/* ============ TESTIMONIALS ============ */
.testimonials-section {
  background: var(--cream-warm);
  padding: 80px 32px;
}

.testimonials-section h2 {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial {
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  padding: 28px 24px;
  margin: 0;
  position: relative;
}

.testimonial p {
  font-size: 17px;
  color: var(--ink-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial cite {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
  color: var(--gold);
  letter-spacing: 0.3px;
}

/* ============ BETA ALT LINK ============ */
.beta-alt {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 16px;
}

.beta-alt a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s;
}

.beta-alt a:hover { color: var(--ink-soft); }

.beta-form { margin-top: 20px; }

/* ============ FINAL CTA ============ */
.final-cta {
  background: var(--cream-warm);
  padding: 60px 32px;
  text-align: center;
}

.final-cta h2 { font-size: 28px; font-weight: 500; color: var(--ink-soft); margin-bottom: 10px; }

.final-cta p {
  font-size: 18px;
  color: var(--ink-light);
  font-style: italic;
  max-width: 440px;
  margin: 0 auto 24px;
}

.final-cta .cta-form input {
  border-color: var(--gold-faint);
  background: var(--cream-light);
}

/* ============ FOOTER ============ */
footer {
  background: var(--cream);
  padding: 40px 32px 30px;
  text-align: center;
  border-top: 1px solid var(--cream-dark);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.3s;
}

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

footer p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-light);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink-light);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--ink); }

.footer-social svg { width: 24px; height: 24px; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* Fallback: if JS fails or observer doesn't fire, show everything after 3s */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left { opacity: 1; transform: none; transition: none; }
}
noscript ~ * .reveal, noscript ~ * .reveal-left { opacity: 1; transform: none; }

/* ============ HAMBURGER TOGGLE ============ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-soft);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }

  .nav-toggle { display: block; }

  .nav-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    transition: right 0.35s ease;
    z-index: 105;
  }

  .nav-right.open { right: 0; }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    border-bottom: 1px solid var(--cream-dark);
  }

  .nav-links a {
    display: block;
    font-size: 19px;
    padding: 16px 0;
    color: var(--ink-soft);
  }

  .nav-social {
    border-left: none;
    padding-left: 0;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var(--cream-dark);
    gap: 16px;
  }

  .nav-social svg { width: 20px; height: 20px; }

  /* Overlay behind menu */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    z-index: 104;
  }

  .nav-overlay.visible { display: block; }

  .hero { padding: 90px 20px 40px; }
  .hero-headline { font-size: clamp(32px, 8vw, 42px); font-weight: 600; }
  .hero-tagline { font-size: 19px; margin-bottom: 12px; }
  .hero-credentials { font-size: 11px; margin-bottom: 30px; }
  .book-display { margin-top: 28px; }

  .subpage-hero { padding: 90px 20px 40px; }

  .book-intro p { font-size: 18px; }

  .chapter-cta { padding: 30px 20px 60px; }
  .chapter-cta h3 { font-size: 21px; }
  .cta-form { flex-direction: column; }
  .cta-form input { min-width: unset; width: 100%; }
  .cta-form button { width: 100%; }

  .about-section { padding: 60px 20px; }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-photo {
    max-width: 220px;
    margin: 0 auto;
    order: -1;
  }
  .about-text h2 { font-size: 32px; font-weight: 600; }

  .framework-section { padding: 60px 20px; }
  .framework-teaser h2 { font-size: 32px; font-weight: 600; }

  .community-section { padding: 60px 20px; }
  .community-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .community-photo { max-width: 160px; margin: 0 auto; }
  .community-text h2 { font-size: 32px; font-weight: 600; }

  .who-section { padding: 60px 20px; }
  .who-section h2 { font-size: 32px; font-weight: 600; }
  .who-list li { font-size: 18px; }

  .mid-cta { padding: 40px 20px; }
  .mid-cta .cta-form { flex-direction: column; }
  .mid-cta .cta-form input { min-width: unset; width: 100%; }
  .mid-cta .cta-form button { width: 100%; }

  .app-section { padding: 50px 20px; }
  .app-preview-layout { flex-direction: column; gap: 40px; }
  .app-preview-text { text-align: center; }
  .app-preview-text h2 { font-size: 32px; font-weight: 600; }
  .app-preview-text .cta-form { flex-direction: column; }
  .app-preview-text .cta-form input { min-width: unset; width: 100%; }
  .app-preview-text .cta-form button { width: 100%; }
  .app-preview-phone { width: 240px; height: 480px; border-radius: 30px; }
  .app-preview-phone iframe { transform: scale(0.5907); }
  .app-desc { margin-left: auto; margin-right: auto; }

  .beta-section { padding: 50px 20px; }
  .beta-card { padding: 32px 24px; }

  .testimonials-section { padding: 60px 20px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }

  .offerings-section { padding: 60px 20px; }
  .offerings-section h2 { font-size: 34px; }
  .offerings-grid { grid-template-columns: 1fr; gap: 24px; }

  .final-cta { padding: 50px 20px; }
  .final-cta h2 { font-size: 30px; font-weight: 600; }
  .final-cta .cta-form { flex-direction: column; }
  .final-cta .cta-form input { min-width: unset; width: 100%; }
  .final-cta .cta-form button { width: 100%; }

  footer { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; }
  .chapter-cta h3 { font-size: 20px; }
  .app-preview-text h2 { font-size: 28px; }
  .app-tagline { font-size: 16px; }
  .app-desc { font-size: 16px; }
  .app-preview-phone { width: 220px; height: 440px; border-radius: 28px; }
  .app-preview-phone iframe { transform: scale(0.5413); }
}

/* ============ GO DEEPER: RESOURCES SECTION (Community + App side by side) ============ */
.resources-section {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.resources-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  margin-bottom: 40px;
}
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.resource-card {
  background: var(--cream-warm);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.resource-card .resource-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  margin-bottom: 20px;
}
.resource-phone-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.resource-phone {
  width: 170px;
  height: 340px;
  border-radius: 28px;
  overflow: hidden;
  background: #0A0A0A;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.resource-phone iframe {
  width: 375px;
  height: 812px;
  border: none;
  transform: scale(0.4533);
  transform-origin: top left;
  pointer-events: none;
}
.resource-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.resource-card p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
.resource-card .cta-form {
  display: flex;
  gap: 8px;
  width: 100%;
}
.resource-card .cta-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: var(--cream-light);
  min-width: 0;
}
.resource-card .cta-form button {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.resource-card .cta-form button:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .resources-section { padding: 60px 20px; }
  .resources-grid { grid-template-columns: 1fr; gap: 24px; }
  .resource-card .cta-form { flex-direction: column; }
  .resource-phone { width: 140px; height: 280px; border-radius: 24px; }
  .resource-phone iframe { transform: scale(0.3733); }
}
