:root {
  --et-bg: #fafaf7;
  --et-bg-soft: #f3f1ea;
  --et-border: #e8e6df;
  --et-ink: #1a1a1a;
  --et-ink-soft: #4a4a44;
  --et-mute: #6b6b66;
  --et-teal: #2A7F7F;
  --et-teal-dark: #1F6363;
  --et-teal-soft: #E8F2F2;
}
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--et-ink);
  background: var(--et-bg);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.6rem; line-height: 1.15; }
@media (min-width: 768px) { h1 { font-size: 3.5rem; } }
h2 { font-size: 2rem; line-height: 1.25; }
h3 { font-size: 1.4rem; line-height: 1.3; }
.ui-text { font-family: 'Inter', sans-serif; }

.et-navbar {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--et-border);
  padding: 0.85rem 0;
}
.et-navbar .navbar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600; font-size: 1.15rem;
  color: var(--et-ink); text-decoration: none;
}
.et-navbar .navbar-brand:hover { color: var(--et-teal-dark); }
.et-navbar .logo-slot {
  height: 60px;
  display: flex; align-items: center; justify-content: center;
}
.et-navbar .logo-slot img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.et-navbar .nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 0.95rem;
  color: var(--et-ink-soft) !important;
  padding: 0.5rem 1rem !important;
}
.et-navbar .nav-link:hover { color: var(--et-teal-dark) !important; }
.et-navbar .btn-join {
  background: var(--et-teal); color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: none; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  margin-left: 0.5rem;
}
.et-navbar .btn-join:hover {
  background: var(--et-teal-dark); color: white;
  transform: translateY(-1px);
}
.navbar-toggler { border: none; padding: 0.25rem 0.5rem; }
.navbar-toggler:focus { box-shadow: none; }

.label-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--et-teal);
}
.lead-text { font-size: 1.3rem; line-height: 1.55; color: var(--et-ink-soft); }
.small-text { font-size: 1rem; color: var(--et-ink-soft); }
.et-divider { border-top: 1px solid var(--et-border); }

/* Motto section photo */
.motto-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.motto-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}
@media (max-width: 991.98px) {
  .motto-photo { max-width: 320px; }
}

/* Motto section video (replaces photo) */
.motto-video-wrap {
  max-width: 460px;
  margin: 0 auto;
}

.btn-et {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem; font-weight: 500;
  background: var(--et-teal); color: white;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: none; text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(42, 127, 127, 0.2);
}
.btn-et:hover {
  background: var(--et-teal-dark); color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 127, 127, 0.25);
}

.video-card {
  background: #1a1a1a;
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.video-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a3838 0%, #2A7F7F 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; padding: 1rem;
}
.play-button {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  transition: background 0.2s;
}
.video-card:hover .play-button { background: rgba(255,255,255,0.32); }
.play-button svg { width: 34px; height: 34px; fill: white; }
.video-caption {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; text-align: center;
  opacity: 0.95; font-weight: 500;
}

.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--et-teal-soft);
  color: var(--et-teal-dark);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem; font-weight: 600;
}
.step-text {
  text-wrap: balance;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .step-text { max-width: 100%; }
}

.final-cta-section { background: var(--et-teal-soft); }

footer a {
  color: var(--et-ink);
  text-decoration: underline; text-underline-offset: 3px;
}
footer a:hover { color: var(--et-teal-dark); }
footer { color: var(--et-mute); }

/* "self-spreading" must never wrap, on any screen */
.nowrap-pair { white-space: nowrap; }

/* On mobile only, force each phrase to stay together. On desktop, let them flow naturally. */
@media (max-width: 767.98px) {
  .hero-headline .phrase { white-space: nowrap; display: inline-block; }
}

.social-icon {
  color: var(--et-mute);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 60px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s, transform 0.1s;
}
.social-icon:hover {
  color: var(--et-teal-dark);
  background: var(--et-teal-soft);
  transform: translateY(-1px);
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem 0 0;
}
@media (min-width: 600px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }
}
@media (min-width: 900px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.book-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.book-card.linkable:hover {
  transform: translateY(-4px);
}
.book-card.linkable:hover .book-cover-mini,
.book-card.linkable:hover .book-cover-img-mini {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    -2px 0 0 rgba(0,0,0,0.15),
    0 14px 28px rgba(0,0,0,0.18),
    0 4px 8px rgba(0,0,0,0.1);
}
.legal-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--et-mute);
  border-bottom: 1px solid var(--et-border);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}
/* Real book cover image (when src is provided) */
.book-cover-img-mini {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px 12px 12px 6px;
  box-shadow:
    -2px 0 0 rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.1);
  transform: rotate(-1.5deg);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  margin: 0 auto 1.25rem;
  background: var(--et-bg-soft);
}
.book-cover-mini {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1a3838 0%, #2A7F7F 100%);
  border-radius: 6px 12px 12px 6px;
  box-shadow:
    -2px 0 0 rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.1);
  transform: rotate(-1.5deg);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0.9rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto 1.25rem;
}
.book-cover-mini.coming-soon {
  background: linear-gradient(135deg, #3a3a44 0%, #5a5a66 100%);
  opacity: 0.88;
}
.book-cover-mini.mini-med {
  background: linear-gradient(135deg, #2c1f3d 0%, #5d4980 100%);
  opacity: 0.88;
}
.book-cover-mini.casinos {
  background: linear-gradient(135deg, #5a3818 0%, #b8862f 100%);
  opacity: 0.92;
}
.book-cover-mini.medical-prob {
  background: linear-gradient(135deg, #1c2840 0%, #3a4f7a 100%);
  opacity: 0.92;
}
.book-cover-mini.neural {
  background: linear-gradient(135deg, #1a1838 0%, #4a3878 100%);
  opacity: 0.92;
}
.book-cover-spine-mini {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: rgba(0,0,0,0.18);
}
.bc-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 500;
}
.bc-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 0.4rem;
}
.bc-subtitle {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.2rem;
}
.bc-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
}

/* Card text below cover */
.book-card-info {
  text-align: center;
  padding: 0 0.5rem;
}
.book-card-info .status-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.status-tag.available {
  background: var(--et-teal-soft);
  color: var(--et-teal-dark);
}
.status-tag.coming {
  background: #f0eee5;
  color: var(--et-mute);
}
.book-card-info h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.book-card-info .byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--et-mute);
  font-style: italic;
}

/* Ghost cards (placeholders for "more coming") */
.book-card.ghost .book-cover-mini {
  background: transparent;
  border: 2px dashed var(--et-border);
  box-shadow: none;
  transform: rotate(0deg);
  color: var(--et-mute);
  align-items: center;
  justify-content: center;
}
.book-card.ghost .ghost-content {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--et-mute);
  opacity: 0.6;
  line-height: 1.5;
}
.book-card.ghost .ghost-content .ghost-dots {
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}


  .book-title { font-style: italic; font-weight: 500; }

  .form-block { margin: 1.75rem 0 1rem; }
  .email-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .email-form input[type="email"] {
    flex: 1; min-width: 200px;
    padding: 0.875rem 1.125rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 1px solid #d8d5cb;
    border-radius: 999px;
    background: white; color: var(--et-ink);
    transition: border-color 0.15s;
  }
  .email-form input[type="email"]:focus {
    outline: none; border-color: var(--et-teal);
  }
  .email-form button {
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 500;
    background: var(--et-teal); color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(42, 127, 127, 0.2);
  }
  .email-form button:hover {
    background: var(--et-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(42, 127, 127, 0.25);
  }
  .privacy-line {
    font-style: italic; font-size: 0.875rem;
    color: var(--et-mute); margin-top: 0.75rem; margin-bottom: 0;
  }
  .amazon-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem; color: var(--et-mute);
    margin-top: 0.75rem;
  }
  .amazon-line a {
    color: var(--et-teal-dark);
    text-decoration: underline; text-underline-offset: 3px;
    font-weight: 500;
  }
  .signoff {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic; font-size: 1.125rem;
    color: var(--et-ink); margin-top: 2rem; margin-bottom: 0.5rem;
  }
  .contact-line {
    font-family: 'Inter', sans-serif;
    font-style: italic; font-size: 0.875rem;
    color: var(--et-mute);
  }
  .contact-line a {
    color: var(--et-teal-dark);
    text-decoration: underline; text-underline-offset: 2px;
    font-weight: 500;
  }

  /* Breadcrumb (plain text on light) */
  .breadcrumb-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--et-mute);
    padding: 1.25rem 0 0.5rem;
  }
  .breadcrumb-text a {
    color: var(--et-mute);
    text-decoration: none;
    transition: color 0.15s;
  }
  .breadcrumb-text a:hover { color: var(--et-teal-dark); }
  .breadcrumb-text .crumb-current { color: var(--et-ink); font-weight: 500; }
  .breadcrumb-text .crumb-sep { margin: 0 0.4rem; opacity: 0.5; }

  /* Book snapshot card (dark, contained) */
  .book-snapshot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    background: var(--et-ink);
    border: 1px solid var(--et-ink);
    border-radius: 12px;
    margin: 0.5rem 0 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
  .book-snapshot-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--et-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }
  .book-snapshot-icon svg {
    width: 22px;
    height: 22px;
  }
  .book-snapshot-text {
    line-height: 1.4;
    min-width: 0;
  }
  .book-snapshot-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: white;
    display: block;
  }
  .book-snapshot-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    display: block;
    margin-top: 0.15rem;
  }
  .book-snapshot-meta .meta-author { color: rgba(255,255,255,0.78); font-style: italic; }
  .book-snapshot-meta .meta-sep { margin: 0 0.4rem; opacity: 0.45; }
  .free-badge {
    display: inline-block;
    background: var(--et-teal);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: 2px;
  }

  /* Hero with book cover */
  .download-hero {
    background: linear-gradient(180deg, var(--et-teal-soft) 0%, var(--et-bg) 100%);
    padding: 3rem 0 4rem;
  }
  .hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--et-teal);
    margin-bottom: 1rem;
  }
  .hero-h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 500; line-height: 1.1;
    letter-spacing: -0.015em;
    font-size: 2.4rem;
    margin-bottom: 1.25rem;
  }
  @media (min-width: 768px) { .hero-h1 { font-size: 3rem; } }

  /* Phrases that should never break across lines, on any screen */
  .nowrap-pair { white-space: nowrap; }

  /* On mobile only, force each phrase chunk to stay together. On desktop, let them flow. */
  @media (max-width: 767.98px) {
    .hero-headline .phrase { white-space: nowrap; display: inline-block; }
  }

  .hero-sub {
    font-size: 1.2rem; line-height: 1.55;
    color: var(--et-ink-soft);
    margin-bottom: 1.75rem;
  }

  /* Book cover */
  .book-cover-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
  }
  .book-cover {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #1a3838 0%, #2A7F7F 100%);
    border-radius: 6px 12px 12px 6px;
    box-shadow:
      -2px 0 0 rgba(0,0,0,0.15),
      0 12px 32px rgba(0,0,0,0.18),
      0 4px 12px rgba(0,0,0,0.12);
    transform: rotate(-2deg);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    padding: 1.75rem 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .book-cover:hover { transform: rotate(0deg) translateY(-4px); }
  .book-cover-spine {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 8px;
    background: rgba(0,0,0,0.18);
  }
  .book-cover-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem; letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
    font-weight: 500;
  }
  .book-cover-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-top: 0.5rem;
  }
  .book-cover-subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 0.25rem;
  }
  .book-cover-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 500;
  }
  /* Replace placeholder with image when ready: drop in <img class="book-cover-img" src="cover.jpg"> */
  .book-cover-img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px 12px 12px 6px;
    box-shadow:
      -2px 0 0 rgba(0,0,0,0.15),
      0 12px 32px rgba(0,0,0,0.18),
      0 4px 12px rgba(0,0,0,0.12);
    transform: rotate(-2deg);
    transition: transform 0.3s;
    display: block;
    margin: 0 auto;
  }
  @media (min-width: 992px) {
    .book-cover-img { max-width: 320px; }
  }
  .book-cover-img:hover { transform: rotate(0deg) translateY(-4px); }

  /* Personal note demarcation: subtle teal left bar to signal "Sal speaking personally" */
  .personal-note {
    border-left: 3px solid var(--et-teal);
    padding-left: 1.75rem;
  }
  @media (max-width: 575.98px) {
    .personal-note { padding-left: 1.25rem; }
  }
  .personal-note .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .personal-note .hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--et-teal);
  }

  /* Sal photo for "I know what I'm doing" section */
  .sal-photo-wrap {
    display: flex;
    justify-content: center;
  }
  .sal-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .sal-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.16), 0 4px 8px rgba(0,0,0,0.1);
  }
