/* =========================================================
   BEYOND THE WAITING ROOM — Stylesheet
   Editorial / Book-launch aesthetic
   ========================================================= */

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --col-dark:    #2F4156;
  --col-teal:    #2FAF9A;
  --col-teal-dk: #229e8b;
  --col-bg:      #F6F7F8;
  --col-divider: #E4E7EA;
  --col-text:    #3d5060;
  --col-light:   #ffffff;
  --col-muted:   #7a93a4;

  --ff-serif: 'Palatino Linotype', 'Palatino', 'Book Antiqua', Georgia, serif;
  --ff-sans:  'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1100px;
  --max-w-narrow: 760px;

  --section-gap: 140px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--ff-sans);
  color: var(--col-text);
  background: var(--col-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--ff-sans); cursor: pointer; border: none; background: none; }

/* ─── Utility ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.container-narrow {
  max-width: var(--max-w-narrow);
}
.centered { text-align: center; }
.centered-block { display: flex; flex-direction: column; align-items: center; }

/* ─── Typography ────────────────────────────────────────── */
.section-label {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--col-teal);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--col-dark);
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}
.body-text p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--col-text);
  margin-bottom: 20px;
}
.body-text p:last-child { margin-bottom: 0; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 14px 34px;
  cursor: pointer;
  transition: background 0.28s var(--ease-out),
              color 0.28s var(--ease-out),
              border-color 0.28s var(--ease-out),
              transform 0.22s var(--ease-out),
              box-shadow 0.28s var(--ease-out);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--col-teal);
  color: #fff;
  border: 2px solid var(--col-teal);
}
.btn-primary:hover {
  background: var(--col-teal-dk);
  border-color: var(--col-teal-dk);
  box-shadow: 0 8px 28px rgba(47,175,154,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--col-light);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.85);
}
/* Dark context outline button */
.store-section .btn-outline,
.contact-section .btn-outline {
  color: var(--col-dark);
  border-color: var(--col-divider);
}
.store-section .btn-outline:hover,
.contact-section .btn-outline:hover {
  border-color: var(--col-dark);
  background: transparent;
}
button[disabled],
button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Nav ───────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav-header.scrolled {
  background: rgba(246,247,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--col-divider);
}
.nav-header.scrolled .nav-links a {
  color: var(--col-dark);
}
.nav-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { flex-shrink: 0; line-height: 0; position: relative; display: inline-flex; }
.nav-logo img { height: 38px; width: auto; display: block; }

/* White version: shown over dark hero (filter to white), fades out on scroll */
.logo-white {
  filter: brightness(0) invert(1);
  position: absolute;
  top: 0; left: 0;
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
/* Color version: invisible over dark hero, crossfades in on scroll */
.logo-color {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav-header.scrolled .logo-white { opacity: 0; }
.nav-header.scrolled .logo-color { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--col-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--col-teal); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-header.scrolled .nav-toggle span { background: var(--col-dark); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  background: #1c3040;
}
.hero-photo-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20,36,50,0.55) 0%,
    rgba(15,28,40,0.72) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--col-teal);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(44px, 6.5vw, 68px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 44px;
  letter-spacing: 0.2px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.38);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollCuePulse 2.4s ease-in-out infinite;
}
@keyframes scrollCuePulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(6px); }
}
.break-desktop { display: inline; }

/* ─── Sections (shared) ─────────────────────────────────── */
.section {
  padding: var(--section-gap) 0;
}

/* ─── Two-col layout ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.book-layout { gap: 80px; align-items: start; }

/* ─── About ─────────────────────────────────────────────── */
.about-section { background: #fff; }
.about-image-frame {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 6 / 7;
  box-shadow: 0 28px 80px rgba(47,65,86,0.12), 0 8px 24px rgba(47,65,86,0.07);
}
.about-image-frame svg { width: 100%; height: 100%; }

/* ─── Why It Matters ────────────────────────────────────── */
.why-section {
  background: var(--col-bg);
  position: relative;
}
.why-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--col-divider);
}
.why-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--col-divider);
}
.why-body {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
}
.why-body p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--col-text);
  margin-bottom: 16px;
}
.why-body p:last-child { margin-bottom: 0; }

.why-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 16px;
}
.pillar {
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--col-divider);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.pillar:hover {
  box-shadow: 0 12px 40px rgba(47,65,86,0.09);
  transform: translateY(-4px);
}
.pillar-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar h3 {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--col-dark);
  margin-bottom: 12px;
}
.pillar p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--col-muted);
}

/* ─── Book ──────────────────────────────────────────────── */
.book-section { background: #fff; }
.col-book {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 16px;
}
.book-mockup {
  position: relative;
  display: inline-block;
}
.book-cover-img {
  width: min(280px, 80vw);
  height: auto;
  border-radius: 4px 8px 8px 4px;
  box-shadow:
    -6px 6px 0 rgba(47,65,86,0.08),
    0 24px 70px rgba(47,65,86,0.22),
    0 6px 20px rgba(47,65,86,0.12);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.book-cover-img:hover {
  transform: rotate(-1.5deg) translateY(-6px);
  box-shadow:
    -6px 8px 0 rgba(47,65,86,0.10),
    0 36px 90px rgba(47,65,86,0.28),
    0 10px 30px rgba(47,65,86,0.14);
}
.book-shadow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 5%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(47,65,86,0.2) 0%, transparent 75%);
  filter: blur(8px);
  pointer-events: none;
}
.book-section .btn { margin-top: 36px; }

/* ─── Store ─────────────────────────────────────────────── */
.store-section {
  background: var(--col-bg);
  border-top: 1px solid var(--col-divider);
  border-bottom: 1px solid var(--col-divider);
}
.store-intro {
  font-size: 17px;
  color: var(--col-text);
  line-height: 1.8;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 48px;
}
.store-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
  width: 100%;
  max-width: 440px;
}
.store-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--col-dark);
  font-weight: 400;
}
.store-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Contact ───────────────────────────────────────────── */
.contact-section { background: #fff; }
.contact-intro {
  text-align: center;
  font-size: 17px;
  color: var(--col-muted);
  margin-bottom: 52px;
  line-height: 1.7;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--col-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--ff-sans);
  font-size: 16px;
  color: var(--col-dark);
  background: var(--col-bg);
  border: 1.5px solid var(--col-divider);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0bec8; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--col-teal);
  box-shadow: 0 0 0 3px rgba(47,175,154,0.12);
}
.form-submit { margin-top: 8px; }
.form-success {
  min-height: 24px;
  font-size: 15px;
  color: var(--col-teal);
  text-align: center;
  font-style: italic;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--col-dark);
  color: rgba(246,247,248,0.75);
  padding: 64px 0 44px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-logo {
  height: 72px;
  width: auto;
  /* Make logo appear white/light on dark footer background */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(246,247,248,0.6);
  transition: color 0.25s;
  position: relative;
}
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--col-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.footer-nav a:hover { color: rgba(246,247,248,0.95); }
.footer-nav a:hover::after { transform: scaleX(1); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 40px;
}
.footer-bottom {
  padding-top: 40px;
  text-align: center;
}
.footer-tagline {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 400;
  color: rgba(246,247,248,0.9);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.footer-sub {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--col-teal);
  margin-bottom: 32px;
  opacity: 0.85;
}
.footer-copy {
  font-size: 12px;
  color: rgba(246,247,248,0.3);
  letter-spacing: 0.5px;
}
.footer-copy a:hover {
  font-size: 12px;
  color: rgba(246,247,248,0.9);
  letter-spacing: 0.5px;
}


/* ─── Scroll animations ─────────────────────────────────── */
.fade-in {
  animation: fadeIn 1.1s var(--ease-out) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.18s; }
.delay-2 { transition-delay: 0.36s; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-gap: 100px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .book-layout { gap: 52px; }
  .col-image { order: -1; }
  .about-image-frame { max-width: 400px; margin: 0 auto; }

  .why-pillars { grid-template-columns: 1fr; gap: 24px; }
  .pillar { padding: 28px 24px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { text-align: left; }
}

@media (max-width: 700px) {
  :root {
    --section-gap: 80px;
    --nav-h: 64px;
  }

  .container { padding: 0 24px; }
  .nav-container { padding: 0 24px; }
  .footer-divider { margin: 0 24px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(246,247,248,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    box-shadow: 0 8px 32px rgba(47,65,86,0.12);
    border-top: 1px solid var(--col-divider);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: var(--col-dark);
    padding: 14px 28px;
    font-size: 14px;
    width: 100%;
    border-bottom: 1px solid rgba(228,231,234,0.5);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }

  .hero-title { font-size: clamp(36px, 10vw, 48px); }
  .hero-subtitle { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .break-desktop { display: none; }

  .why-body p { font-size: 16px; }

  .col-book { justify-content: center; }
  .book-cover-img { width: min(220px, 70vw); }

  .footer-top { gap: 24px; }
  .footer-nav { gap: 20px; }
  .footer-divider { margin: 0 24px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 26px; }
  .hero-scroll-cue { display: none; }
}

/* ─── Print ─────────────────────────────────────────────── */
@media print {
  .nav-header, .hero-scroll-cue { display: none; }
  .section { page-break-inside: avoid; }
}
