/* ==========================================================================
   Ensemble Fitness — marketing site styles
   ========================================================================== */

:root {
  --navy-950: #05070d;
  --navy-900: #0b0f1a;
  --navy-800: #121a2c;
  --navy-700: #1c2740;
  --navy-600: #2a3652;

  --accent: #ff5a1f;
  --accent-2: #ff7a3d;
  --accent-dark: #c2410c;
  --accent-tint: rgba(255, 90, 31, 0.12);

  --accent-orange: #ff5a1f;
  --accent-orange-tint: rgba(255, 90, 31, 0.16);

  --pink: #db1f52;
  --pink-2: #ff3d68;
  --pink-tint: rgba(219, 31, 82, 0.16);

  --green: #1fae6e;
  --green-tint: rgba(31, 174, 110, 0.12);

  --ink: #0b0f1a;
  --muted: #5b6472;
  --muted-invert: #a7afc0;
  --faint-invert: #6b7690;

  --paper: #ffffff;
  --paper-2: #f6f7fb;
  --border-light: #e7e9f0;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 40px -20px rgba(11, 15, 26, 0.25);
  --shadow-hard: 0 30px 60px -25px rgba(11, 15, 26, 0.45);

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow.on-dark { color: var(--accent-2); }

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head.on-dark p { color: var(--muted-invert); }

.section-head h2 .lede-inline {
  color: var(--muted);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: normal;
}
.section-head.on-dark h2 .lede-inline { color: var(--muted-invert); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(255, 90, 31, 0.55);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost-dark:hover { border-color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-light);
}
.btn-ghost-light:hover { border-color: var(--ink); }

.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  height: 68px;
  max-width: 1300px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted-invert);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1044px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.full { display: none; }
  .nav-signin { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255, 90, 31, 0.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(255, 90, 31, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
  padding: 40px 0 24px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 605px;
  max-width: 1300px;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  color: #fff;
  margin-bottom: 14px;
}

.hero h1 span { color: var(--pink-2); }

.brand-def {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 6px 0 18px;
  font-size: 27px;
  color: var(--muted-invert);
}

.flag-fr {
  display: inline-flex;
  width: 34px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.flag-fr i {
  flex: 1;
  display: block;
  font-style: normal;
}

.flag-fr i:nth-child(1) { background: #0055a4; }
.flag-fr i:nth-child(2) { background: #fff; }
.flag-fr i:nth-child(3) { background: #ef4135; }

.brand-def-word {
  color: var(--accent);
  font-weight: 800;
}

.brand-def-lang {
  color: var(--muted-invert);
  font-weight: 500;
}

.brand-def-mean {
  color: var(--accent);
  font-weight: 800;
}

.hero .lede {
  font-size: 18px;
  color: var(--muted-invert);
  max-width: 410px;
  margin-bottom: 10px;
}

.hero .lede .lede-break {
  display: none;
}

@media (min-width: 1181px) {
  .hero .lede {
    max-width: 460px;
  }
  .hero .lede .lede-break {
    display: block;
    content: "";
  }
}

.hero .lede-sub {
  font-size: 15px;
  color: var(--faint-invert);
  max-width: 385px;
  margin-bottom: 18px;
}

.hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13px;
  color: var(--faint-invert);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 20px;
  max-width: 400px;
}

@media (max-width: 480px) {
  .hero-badges { grid-template-columns: 1fr; max-width: none; }
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-badge .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-orange-tint);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge .ico.ico-orange,
.pillar-card .ico.ico-orange {
  background: var(--accent-orange-tint);
  color: var(--accent-orange);
}

.hero-badge .ico.ico-pink,
.pillar-card .ico.ico-pink,
.feature-row .ico.ico-pink {
  background: var(--pink-tint);
  color: var(--pink-2);
}

.hero-badge strong { display: block; font-size: 14px; color: #fff; }
.hero-badge span { font-size: 12.5px; color: var(--faint-invert); }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-visual-row {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  width: 100%;
  max-width: 605px;
  height: 398px;
}

.hero-visual-media {
  position: relative;
  width: 100%;
  max-width: 484px;
}

.hero-photo-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-photo-card img {
  width: 100%;
  height: 395px;
  object-fit: cover;
  object-position: 78% 22%;
  filter: saturate(1.05);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0) 40%, rgba(5,7,13,0.85) 100%);
}

.hero-photo-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.hero-photo-heart {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--pink-2);
}

.hero-photo-caption-text {
  font-size: 14.5px;
  font-weight: 700;
}

.hero-floater-stack {
  position: absolute;
  left: 456px;
  top: -412px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ---------- Hero "Share Your Journey" card (sits above the phone floater) ---------- */

.hero-live-chat {
  width: 190px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  font-family: 'Inter', sans-serif;
}

.hero-live-chat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--accent-orange, #ff5a1f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-live-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: liveChatPulse 1.8s infinite;
}

@keyframes liveChatPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.hero-live-chat-body {
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 246px;
  overflow-y: auto;
  background: #fff;
}

.hero-live-chat-empty {
  font-size: 11px;
  color: #9aa3b5;
  text-align: center;
  padding: 10px 4px;
}

.hero-live-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.35;
  padding: 5px 6px;
  border-radius: 8px;
  color: #26292f;
}

.hero-live-chat-msg .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
}

.hero-live-chat-msg.story .dot { background: var(--accent-orange, #ff5a1f); }
.hero-live-chat-msg.reply { padding-left: 20px; background: #f7f8fa; }
.hero-live-chat-msg.reply .dot { background: #1d4ed8; }

.hero-live-chat-msg .who {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.6;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hero-live-chat-msg .reply-link {
  display: inline-block;
  margin-top: 3px;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #1d4ed8;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hero-live-chat-msg .reply-link:hover { text-decoration: underline; }

.hero-live-chat-reactions {
  display: flex;
  gap: 5px;
  padding: 0 6px 6px 20px;
  margin-top: -3px;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #e6e8ee;
  background: #fff;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 10.5px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1.5;
  font-family: inherit;
}

.reaction-btn span { font-weight: 700; }

.reaction-btn.active {
  border-color: var(--accent-orange, #ff5a1f);
  background: #fff4ee;
  color: #ff5a1f;
}

.reaction-btn.active span { color: #ff5a1f; }

.hero-live-chat-replybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: #eef2ff;
  border-top: 1px solid #e2e6f0;
  font-size: 10.5px;
  color: #26292f;
}

.hero-live-chat-replybar strong { color: #1d4ed8; }

.hero-live-chat-replybar button {
  border: none;
  background: none;
  color: #9aa3b5;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.hero-live-chat-auth {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border-top: 1px solid #eee;
  background: #fafbfc;
}

.hero-live-chat-auth input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 11px;
  color: #26292f;
  outline: none;
  font-family: inherit;
}

.hero-live-chat-auth-submit {
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-orange, #ff5a1f);
  cursor: pointer;
}

.hero-live-chat-auth-note {
  font-size: 10px;
  color: #9aa3b5;
  text-align: center;
}

.hero-live-chat-auth-note a { color: #1d4ed8; font-weight: 600; }

.hero-live-chat-auth-error {
  font-size: 10px;
  color: #d1341f;
  text-align: center;
  min-height: 12px;
}

.hero-live-chat-poststatus {
  padding: 7px 11px;
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
  color: #1a7f4b;
  background: #eefaf2;
  border-top: 1px solid #eee;
}

.hero-live-chat-poststatus.is-error {
  color: #b3261e;
  background: #fdecea;
}

.hero-live-chat-form {
  display: flex;
  gap: 6px;
  padding: 8px 9px;
  border-top: 1px solid #eee;
  background: #fff;
}

.hero-live-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
  color: #26292f;
  outline: none;
  font-family: inherit;
}

.hero-live-chat-form input::placeholder { color: #9aa3b5; }

.hero-live-chat-form button {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent-orange, #ff5a1f);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floater {
  position: static;
  width: 144px;
  margin-top: 9px;
  margin-left: 35px;
  transform: rotate(6deg);
  filter: drop-shadow(0 8px 8px rgba(0,0,0,0.4));
}

.hero-floater img {
  width: 100%;
  display: block;
}

/* ---------- Hero "also here for Dating" vertical rail ---------- */

.hero-dating-v {
  width: 103px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-dating-v-tag {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pink-2);
  flex-shrink: 0;
}

.dating-rail-v {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.dating-track-v {
  display: flex;
  flex-direction: column;
  height: max-content;
  animation: feedScrollV 24s linear infinite;
}
.dating-rail-v:hover .dating-track-v,
.dating-track-v.paused { animation-play-state: paused; }

.dating-group-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 15px 0;
}

.dating-chip-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.dating-avatar-v {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dating-chip-v:hover .dating-avatar-v { transform: scale(1.06); border-color: #fff; }

.dating-name-v {
  font-size: 14px;
  color: var(--muted-invert);
  white-space: nowrap;
  max-width: 91px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dating-wake-v {
  font-size: 10.5px;
  color: var(--faint-invert);
  white-space: nowrap;
  max-width: 91px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: -3px;
}

.hero-dating-v-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-2);
  text-align: center;
  flex-shrink: 0;
}
.hero-dating-v-link:hover { text-decoration: underline; }

@keyframes feedScrollV {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ---------- Hero "Latest Workouts" video square row ---------- */

.hero-video-row {
  position: relative;
  width: 100%;
  max-width: 605px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-video-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 20px;
}

.hero-video-row-head strong {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.hero-video-row-head a {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-orange);
  flex-shrink: 0;
}
.hero-video-row-head a:hover { text-decoration: underline; }

.hero-video-squares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-video-square {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-video-square video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  transition: transform 0.15s ease;
  position: relative;
  z-index: 1;
}
.hero-video-square:hover .hero-video-play { transform: scale(1.1); }

.hero-video-dur {
  position: absolute;
  bottom: 8px;
  right: 9px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(5, 7, 13, 0.55);
  color: #fff;
  z-index: 1;
}

@media (max-width: 1180px) {
  .hero { padding: 56px 0 64px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
  .hero-floater-stack { display: none; }
  .hero-visual-row, .hero-video-row { max-width: 340px; }
}

/* Between the single-column breakpoint and ~1300px, the two-column hero still
   fits, but the fixed-width right column leaves too little clearance for the
   larger phone floater to sit next to it without overlapping — so just hide
   the decorative floater in that narrow band rather than the whole layout. */
@media (min-width: 1181px) and (max-width: 1300px) {
  .hero-floater-stack { display: none; }
}

@media (max-width: 420px) {
  .hero-dating-v { width: 54px; }
  .dating-name-v { display: none; }
  .dating-wake-v { display: none; }
}

/* ---------- Logo strip ---------- */

.marquee-wrap {
  background: var(--navy-900);
  padding: 26px 0 46px;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint-invert);
  margin-bottom: 18px;
}

.activity-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.activity-chip {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted-invert);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Generic sections ---------- */

.section { padding: 96px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--navy-900); color: #fff; }
.section.navy-950 { background: var(--navy-950); color: #fff; }

/* ---------- Problem cards ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.why-closing-line {
  margin: 36px 0 0;
  text-align: center;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.info-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.info-card h4 { font-size: 17px; margin-bottom: 8px; }
.info-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 26px 20px;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Pillars ---------- */

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1040px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid-5 { grid-template-columns: 1fr; } }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
@media (max-width: 640px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar-card {
  border-radius: var(--radius-md);
  padding: 26px 22px;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
}

.pillar-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-orange-tint);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-card h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.pillar-card p { color: var(--muted-invert); font-size: 13.5px; margin: 0; }
.pillar-card.featured { background: linear-gradient(160deg, var(--accent-dark), var(--navy-900)); border-color: transparent; }

/* ---------- Active Now spotlight ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; gap: 40px; } }

.phone-row {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 176px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  border: 1px solid var(--border-light);
}

.phone-frame:nth-child(2) { transform: translateY(-22px); }

.feature-list { margin-top: 28px; }

.feature-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.feature-row:last-child { border-bottom: none; }

.feature-row .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-row h4 { font-size: 15px; margin: 0 0 3px; }
.feature-row p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Safety ---------- */

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .safety-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: 1fr; } }

.safety-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
}

.safety-card .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.safety-card h4 { color: #fff; font-size: 15.5px; margin-bottom: 6px; }
.safety-card p { color: var(--muted-invert); font-size: 13.5px; margin: 0; }

.safety-banner {
  margin-top: 40px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--muted-invert);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.safety-banner .ico { color: var(--accent-2); flex-shrink: 0; }

/* ---------- Pricing ---------- */

/* A short accent-colored bar that marks where the pricing/payment area starts,
   standing in for the heading we removed to tighten this section up. */
.section-divider {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--pink-2));
  margin: 0 auto 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  border: 1px solid var(--border-light);
  background: var(--paper);
}

.price-card.highlight {
  background: var(--navy-900);
  color: #fff;
  border-color: transparent;
  position: relative;
  box-shadow: var(--shadow-hard);
}

.price-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  position: absolute;
  top: -14px;
  right: 28px;
}

.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .price {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 40px;
  margin: 14px 0 4px;
}
.price-card .price span { font-size: 15px; font-weight: 500; opacity: 0.7; }
.price-card .price-note { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.price-card.highlight .price-note { color: var(--muted-invert); }
.price-bio { font-size: 14px; line-height: 1.55; color: var(--muted-invert); margin: -8px 0 22px; }

.price-list { margin-bottom: 26px; }
.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  padding: 7px 0;
  color: var(--muted);
}
.price-card.highlight .price-list li { color: var(--muted-invert); }
.price-list li .chk { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.price-card.highlight .price-list li .chk { color: var(--accent-2); }

.pricing-disclaimer {
  max-width: 820px;
  margin: 28px auto 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Manifesto ---------- */

.manifesto {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.manifesto blockquote {
  margin: 0 0 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  color: #fff;
}

.manifesto .signoff {
  color: var(--muted-invert);
  font-size: 14.5px;
}

/* ---------- Waitlist ---------- */

.waitlist-box {
  background: linear-gradient(150deg, var(--accent-dark), var(--navy-900) 70%);
  border-radius: 28px;
  padding: 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .waitlist-box { grid-template-columns: 1fr; padding: 36px 26px; } }

.waitlist-box h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); }
.waitlist-box p { color: rgba(255,255,255,0.82); font-size: 15.5px; }

.waitlist-perks { margin-top: 20px; }
.waitlist-perks li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
}
.waitlist-perks li .chk { color: #fff; flex-shrink: 0; }

.waitlist-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(6px);
}

.form-row { margin-bottom: 14px; }

.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.75);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(5,7,13,0.35);
  color: #fff;
  font-size: 14.5px;
  font-family: "Inter", sans-serif;
}
.form-row input::placeholder { color: rgba(255,255,255,0.45); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.form-check input { margin-top: 3px; }

.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  text-align: center;
}

.form-error {
  font-size: 12px;
  color: #ff9d8a;
  margin-top: 10px;
  text-align: center;
  min-height: 14px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .ico {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: #fff;
}
.form-success h4 { color: #fff; margin-bottom: 6px; }
.form-success p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: "Inter", sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.2s ease;
  font-size: 16px;
}

.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a-inner { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; max-width: 680px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}
.contact-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.contact-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.contact-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.contact-card a.email { font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-950);
  color: var(--muted-invert);
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: var(--faint-invert); max-width: 280px; }

.footer-col h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--faint-invert);
  padding: 6px 0;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--faint-invert);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--faint-invert);
  max-width: 820px;
  margin-top: 18px;
  line-height: 1.6;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 64px 0 44px;
}
.legal-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.legal-hero p { color: var(--muted-invert); margin: 0; }

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-body h2 { font-size: 21px; margin-top: 40px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.legal-body li { padding: 3px 0; }

.notice-box {
  background: var(--paper-2);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ---------- Utilities ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: "Poppins", sans-serif;
}
.mobile-menu .btn { margin-top: 28px; }
.mobile-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }

svg { display: block; }

/* ==========================================================================
   Community feed — story-style rail + viewer
   ========================================================================== */

.feed-section { padding-top: 26px; padding-bottom: 64px; background: var(--paper-2); }
.feed-section .section-head { margin-bottom: 22px; }
.feed-section .container { max-width: 1300px; }

.feed-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 18px;
}
.feed-subhead h3 {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0;
}
.feed-subhead-note { font-size: 12.5px; color: var(--muted); }

.feed-rail {
  overflow: hidden;
  padding: 6px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
}

.feed-track {
  display: flex;
  width: max-content;
  animation: feedScroll 52s linear infinite;
}

.feed-rail:hover .feed-track,
.feed-track.paused {
  animation-play-state: paused;
}

@keyframes feedScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.feed-group {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
  padding: 0 11px 0 24px;
}

.story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 84px;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.story-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.story-bubble:hover .story-ring { transform: scale(1.05); }
.story-ring.seen { background: var(--border-light); }
.story-ring.active-ring { background: linear-gradient(135deg, var(--green), #6ee7ac); }

.story-avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--paper-2);
  padding: 2.5px;
}

.story-avatar-gradient {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.story-play-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.story-play-badge svg { margin-left: 1px; }
.story-play-badge.active-badge { background: var(--green); }
.story-play-badge.active-badge .pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulseDot 1.7s ease-in-out infinite;
}

.story-live-dot {
  position: absolute;
  top: -2px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--paper-2);
  animation: pulseDot 1.7s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 174, 110, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(31, 174, 110, 0); }
}

.story-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-time { font-size: 11px; color: var(--muted); }
.story-time.live { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.story-add {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 26px;
  font-weight: 300;
  background: var(--paper);
}

/* gradient palette for placeholder avatars */
.g1 { background: linear-gradient(135deg, #ff5a1f, #ffb366); }
.g2 { background: linear-gradient(140deg, #0b0f1a, #ff5a1f); }
.g3 { background: linear-gradient(135deg, #c2410c, #2a3652); }
.g4 { background: linear-gradient(160deg, #ff7a3d, #121a2c); }
.g5 { background: linear-gradient(135deg, #1fae6e, #0b0f1a); }
.g6 { background: linear-gradient(150deg, #ff5a1f, #121a2c); }

/* ---------- Members directory (members.html) ---------- */

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .member-grid { grid-template-columns: 1fr; } }

.member-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.member-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }

.member-card .story-ring { width: 84px; height: 84px; }
.member-card .story-avatar-gradient { font-size: 21px; }

.member-name { font-size: 15px; font-weight: 700; color: var(--ink); }

.member-status { font-size: 11.5px; color: var(--muted); }
.member-status.live { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.member-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.member-actions { display: flex; gap: 8px; width: 100%; margin-top: auto; padding-top: 4px; }
.member-actions .btn { flex: 1; padding: 9px 8px; font-size: 12px; }

.member-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.member-filter-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.member-filter-chip:hover { border-color: var(--accent); color: var(--ink); }
.member-filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Video feed grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.video-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }

.video-thumb {
  position: relative;
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
}

.video-thumb .story-play { width: 46px; height: 46px; z-index: 1; }
.video-thumb .story-play svg { width: 17px; height: 17px; }

.video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 13, 0.55);
  color: #fff;
  backdrop-filter: blur(2px);
}

.video-badge.active-now {
  background: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.video-badge.active-now::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.7s ease-in-out infinite;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(5, 7, 13, 0.55);
  color: #fff;
  z-index: 1;
}

.video-info {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.video-member {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.video-member .story-avatar { width: 30px; height: 30px; font-size: 12px; flex-shrink: 0; }
.video-member-text { min-width: 0; }
.video-member-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-member-sub { font-size: 11.5px; color: var(--muted); display: block; }

.video-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.video-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}
.video-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.video-tag.reason { background: var(--accent-tint); color: var(--accent); border-color: transparent; }

.video-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 2px; }
.video-actions .btn { flex: 1; padding: 9px 8px; font-size: 12px; }

.btn-follow[data-following="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.feed-load-more { display: flex; justify-content: center; margin-top: 30px; }
.feed-load-more .btn[hidden] { display: none; }

/* ---------- Story viewer modal ---------- */

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.story-modal.open { display: flex; }

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(4px);
}

.story-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  color: #fff;
  z-index: 1;
}

.story-inner {
  background: var(--navy-900);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.story-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  margin: 12px 14px 0;
  border-radius: 2px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}
.story-progress-fill.animate { transition: width linear; }

.story-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.story-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.story-meta { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.story-meta strong { font-size: 14px; }
.story-meta span { font-size: 11.5px; color: var(--muted-invert); }

.story-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
  padding: 4px;
  display: flex;
}
.story-close:hover { opacity: 1; }

.story-visual {
  margin: 0 14px;
  height: 360px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.story-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding-left: 4px;
}

.story-stats {
  display: flex;
  gap: 20px;
  padding: 14px 16px 0;
  flex-wrap: wrap;
}
.story-stat { font-size: 12px; color: var(--muted-invert); }
.story-stat strong { display: block; color: #fff; font-size: 13.5px; margin-top: 2px; }

.story-caption { padding: 10px 16px 22px; font-size: 13.5px; color: var(--muted-invert); margin: 0; }

.story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-nav:hover { background: rgba(255, 255, 255, 0.2); }
.story-nav.prev { left: -54px; }
.story-nav.next { right: -54px; }

@media (max-width: 560px) {
  .story-nav { display: none; }
  .story-visual { height: 300px; }
}

/* ---------- Real video lightbox ---------- */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-lightbox.open { display: flex; }

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(4px);
}

/* Row on wide screens (video + "Up next" strip side by side), single
   column on narrow ones — there's no spare width on a phone to show a
   peek of what's next without shrinking the main video, so the strip is a
   desktop-only bonus layered on top of the same single-video experience. */
.video-lightbox-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 92vh;
}
@media (min-width: 900px) {
  .video-lightbox-layout { flex-direction: row; align-items: center; gap: 30px; }
}

.video-lightbox-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  z-index: 1;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.video-lightbox-card.transitioning { opacity: 0; }
.video-lightbox-card.transitioning.slide-next { transform: translateY(-22px); }
.video-lightbox-card.transitioning.slide-prev { transform: translateY(22px); }

.video-lightbox-card video {
  width: 100%;
  max-height: 58vh;
  border-radius: 18px;
  display: block;
  background: #000;
  box-shadow: var(--shadow-hard);
}
@media (min-width: 900px) {
  .video-lightbox-card video { max-height: 64vh; }
}

.video-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

@media (max-width: 560px) {
  .video-lightbox-close { top: auto; bottom: calc(100% + 10px); }
}

.video-lightbox-meta { color: #fff; text-align: center; padding: 10px 6px 0; }
.video-lightbox-name { font-weight: 700; font-size: 14.5px; }
.video-lightbox-sub { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }

.video-lightbox-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
  margin-top: 8px;
}
.video-lightbox-hint .chev {
  display: inline-block;
  animation: videoHintBounceY 1.6s ease-in-out infinite;
}
@keyframes videoHintBounceY {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* Up/down nav — a small pill of two arrows overlaid at the bottom-center
   of the card itself, matching the vertical swipe gesture (swipe up for
   next, down for previous, same as TikTok/Reels/Shorts). Positioned as one
   row below the card (not individually above/below it) so it can never
   run off-screen on a narrow phone. */
.video-lightbox-navrow {
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 14px;
}
.video-lightbox-nav {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.video-lightbox-nav:disabled { opacity: 0.25; cursor: default; }
@media (max-width: 560px) {
  .video-lightbox-nav { width: 34px; height: 34px; font-size: 15px; }
  .video-lightbox-navrow { bottom: -48px; }
}

/* "Up next" strip — desktop only (see .video-lightbox-layout above).
   Static preview frames, not autoplaying video, so several don't compete
   for bandwidth/CPU with the one actually playing. The nearest upcoming
   item is a little bigger/brighter to draw the eye toward it. */
.video-lightbox-upnext {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 92px;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .video-lightbox-upnext { display: flex; }
}

.video-lightbox-upnext-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.video-lightbox-upnext-item {
  position: relative;
  width: 78px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.video-lightbox-upnext-item:hover { opacity: 0.85; }
.video-lightbox-upnext-item.next-up {
  opacity: 0.95;
  transform: scale(1);
  border-color: rgba(255, 255, 255, 0.45);
}
.video-lightbox-upnext-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ============ MARKETPLACE: REVIEWS, GEAR TAGS, APPROVED BADGE ============ */
.review-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 18px);
  padding: 22px;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(20, 24, 40, 0.06));
  align-self: center;
}
.review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-card-top > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  margin-right: auto;
}
.review-card-top strong { font-size: 14px; }
.review-card-top span { font-size: 11.5px; color: var(--muted); }
.review-stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
  flex-shrink: 0;
}
.review-stars svg { width: 14px; height: 14px; fill: #f5a623; }
.review-card-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 14px;
}
.review-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gear-used {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}
.gear-used-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.approved-badge {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  border: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 90, 31, 0.25);
}
.approved-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.approved-badge strong {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.approved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approved-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.approved-list li .chk {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Healthy Meal Prep ---------- */

.mealprep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .mealprep-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mealprep-grid { grid-template-columns: 1fr; } }

.mealprep-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.mealprep-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.mealprep-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mealprep-avatar-wrap { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.mealprep-avatar-wrap .story-ring { width: 96px; height: 96px; }
.mealprep-avatar-wrap .story-avatar-gradient { font-size: 26px; }
.mealprep-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

.mealprep-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--paper);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.mealprep-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.mealprep-quote { font-size: 13.5px; color: var(--muted); font-style: italic; margin: 0; }

.mealprep-note {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Fitness Journey (illustrative "what people are logging" grid) ---------- */

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.journey-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.journey-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }

.journey-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.journey-card-top .story-avatar { flex-shrink: 0; }
.journey-card-info { flex: 1; min-width: 0; }
.journey-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.journey-started { font-size: 11.5px; color: var(--muted); }
.journey-badge { font-size: 17px; flex-shrink: 0; }

.journey-stat { font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.journey-quote { font-size: 13px; color: var(--muted); font-style: italic; margin: 0; line-height: 1.45; }

/* ---------- Healthy Meal Prep detail reel ----------
   Click a card in .mealprep-grid to open a close-up of that meal, then
   scroll/swipe/use the arrows to move straight to the next one — the same
   reel pattern as the video lightboxes elsewhere on the site. The card
   itself scrolls (long prep notes on a short screen), so the nav buttons
   live on a separate outer "frame" that doesn't clip, not on the card. */
.mealprep-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mealprep-lightbox.open { display: flex; }

.mealprep-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(4px);
}

/* Row on wide screens (meal card + "Up next" strip side by side), single
   column on narrow ones — same reasoning as .video-lightbox-layout: no
   spare width on a phone to show a peek of what's next. */
.mealprep-lightbox-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 92vh;
}
@media (min-width: 900px) {
  .mealprep-lightbox-layout { flex-direction: row; align-items: center; gap: 30px; }
}

.mealprep-lightbox-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 92vh;
  z-index: 1;
}

.mealprep-lightbox-card {
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.mealprep-lightbox-card.transitioning { opacity: 0; }
.mealprep-lightbox-card.transitioning.slide-next { transform: translateY(-18px); }
.mealprep-lightbox-card.transitioning.slide-prev { transform: translateY(18px); }

.mealprep-lightbox-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 18px 18px 0 0;
}

.mealprep-lightbox-body { padding: 18px 22px 22px; }
.mealprep-lightbox-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.mealprep-lightbox-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }

.mealprep-lightbox-lines { margin: 0 0 16px; padding: 0; list-style: none; }
.mealprep-lightbox-lines li {
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.mealprep-lightbox-lines li:last-child { border-bottom: none; }

.mealprep-lightbox-signoff { display: flex; align-items: baseline; gap: 8px; }
.mealprep-lightbox-signoff-label { font-size: 11.5px; color: var(--muted); }
.mealprep-lightbox-signature {
  font-family: "Dancing Script", cursive;
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.mealprep-lightbox-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 14px;
}
.mealprep-lightbox-hint .chev {
  display: inline-block;
  animation: videoHintBounceY 1.6s ease-in-out infinite;
}

.mealprep-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mealprep-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
@media (max-width: 560px) {
  .mealprep-lightbox-close { top: auto; bottom: calc(100% + 10px); }
}

/* Prev/next float BELOW the whole frame (not to its sides) — sitting to
   the left/right would run off-screen on a narrow phone, since there's
   only ~24px of margin outside the frame horizontally but plenty of
   vertical breathing room in the lightbox overlay. Grouped as one pair,
   using up/down arrows to match the vertical swipe gesture. Positioned
   relative to .mealprep-lightbox-frame (not -card) so they're unaffected
   by the card's own internal scrolling. */
.mealprep-lightbox-navrow {
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 14px;
}
.mealprep-lightbox-nav {
  position: static;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mealprep-lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.mealprep-lightbox-nav:disabled { opacity: 0.25; cursor: default; }
@media (max-width: 560px) {
  .mealprep-lightbox-nav { width: 36px; height: 36px; font-size: 16px; }
  .mealprep-lightbox-navrow { bottom: -48px; }
}

/* "Up next" strip — desktop only, same idea as .video-lightbox-upnext:
   a quiet peek at the next few meals so scrolling onward isn't a guess. */
.mealprep-lightbox-upnext {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 92px;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .mealprep-lightbox-upnext { display: flex; }
}

.mealprep-lightbox-upnext-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mealprep-lightbox-upnext-item {
  position: relative;
  width: 78px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.mealprep-lightbox-upnext-item:hover { opacity: 0.85; }
.mealprep-lightbox-upnext-item.next-up {
  opacity: 0.95;
  transform: scale(1);
  border-color: rgba(255, 255, 255, 0.45);
}
.mealprep-lightbox-upnext-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- Ensemble Reads (books storefront + submission form) -------- */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
  margin-top: 8px;
}

/* Horizontal "move left to right" shelf — used on books.html instead of the
   wrapping grid above, so visitors land on real book covers immediately
   instead of scrolling down past a wall of headings first. Scrolls
   sideways with a soft snap; the grid class above is kept for any future
   full-page "browse everything" view. */
.books-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 16px;
  margin-top: 4px;
  -webkit-overflow-scrolling: touch;
}
.books-row .book-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
}

.book-card {
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

/* The sample placeholder photos are landscape shots of an open book, not
   portrait front covers — a wider box shows the actual page spread (and
   the quotes on it) instead of cropping most of it away. Only used for
   preview/placeholder books; real uploaded covers keep the 2:3 box above. */
.book-cover.landscape { aspect-ratio: 4 / 3; }

/* Cover placeholder — a large open-book icon plus the title, filling the
   whole cover area (not a tiny centered glyph), so it reads as a book
   even before a real cover image exists. Dim/gray on the plain paper
   background (a real, published book with no cover art yet); bright
   white with a drop shadow on the colored "on-gradient" placeholder
   covers used for sample/preview books. */
.book-cover-fallback {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12% 12%;
  text-align: center;
}
.book-cover-fallback svg { width: 46%; height: auto; flex-shrink: 0; }
.book-cover-fallback-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-cover-fallback svg { stroke: #b7bdc9; }
.book-cover-fallback .book-cover-fallback-title { color: #b7bdc9; }
.book-cover-fallback.on-gradient svg { stroke: #fff; }
.book-cover-fallback.on-gradient .book-cover-fallback-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.book-card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.book-author { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.book-blurb { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; flex: 1; }
.book-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.book-price-tag { font-size: 16px; font-weight: 800; color: var(--accent); }

.notice-banner {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  text-align: center;
}
.notice-banner.success { background: rgba(34, 197, 94, 0.12); color: #15803d; border: 1px solid rgba(34, 197, 94, 0.3); }
.notice-banner.cancelled { background: var(--paper-2); color: var(--muted); border: 1px solid var(--border-light); }
.notice-banner.error { background: rgba(239, 68, 68, 0.1); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.28); }

.guideline-box {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 18px 22px;
  background: var(--accent-tint);
  border: 1px solid rgba(255, 90, 31, 0.25);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink);
}
.guideline-box strong { color: var(--accent-dark); }

.light-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.light-form-row { margin-bottom: 16px; }
.light-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.light-form-row .hint { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }

.light-form-row input[type="text"],
.light-form-row input[type="email"],
.light-form-row input[type="number"],
.light-form-row input[type="url"],
.light-form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  font-family: "Inter", sans-serif;
}
.light-form-row textarea { resize: vertical; min-height: 90px; }

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--muted);
}
.file-drop strong { color: var(--ink); font-size: 14px; }
.file-drop input[type="file"] { display: none; }

/* ---------- Homepage hero: Motivational Short Books teaser card -------- */

.hero-books-card {
  width: 190px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  font-family: 'Inter', sans-serif;
}

.hero-books-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--accent-orange, #ff5a1f);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
}

.hero-books-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: liveChatPulse 1.8s infinite;
}

/* Single-item rotating "stage" — shows one book at a time, fading to the
   next every few seconds, instead of a scrollable list. The whole stage is
   a link to books.html, same as the header and footer, so clicking almost
   anywhere on the card takes a visitor to the full shelf. */
.hero-books-stage {
  padding: 16px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.hero-books-empty {
  font-size: 11px;
  color: #9aa3b5;
  text-align: center;
  padding: 10px 4px;
}

.hero-books-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.hero-books-feature.fading { opacity: 0; }

.hero-books-feature-cover {
  width: 128px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2, #f1f2f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.hero-books-feature-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-books-feature-cover .book-cover-fallback { padding: 9% 10%; gap: 6px; }
.hero-books-feature-cover .book-cover-fallback-title { font-size: 10px; -webkit-line-clamp: 2; }

/* Same landscape treatment as the shelf's placeholder covers, above. */
.hero-books-feature-cover.landscape { width: 150px; aspect-ratio: 4 / 3; }

.hero-books-feature-title {
  font-size: 12px;
  font-weight: 700;
  color: #26292f;
  line-height: 1.25;
  margin: 0;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  /* Locks the title to exactly 2 lines of space every time, whether the
     text needs 1 line or 2 — otherwise a short title (1 line) vs. a long
     one like "Rebuild: A Comeback Story" (2 lines) makes the whole card
     grow/shrink as it rotates, visibly shifting the phone mockup beside it. */
  height: 2.5em;
}
.hero-books-feature-author { font-size: 10.5px; color: #9aa3b5; margin: 0; }

.hero-books-price {
  display: inline-block;
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-orange, #ff5a1f);
  border-radius: 999px;
  padding: 1px 8px;
}

.hero-books-footer {
  display: block;
  text-align: center;
  padding: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-orange, #ff5a1f);
  text-decoration: none;
  border-top: 1px solid var(--border-light);
  background: #fff;
}
.hero-books-footer:hover { text-decoration: underline; }
