@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --wb-paper: #f6f1e4;
  --wb-paper-deep: #ece3cd;
  --wb-card: #fffdf8;
  --wb-ink: #1c2b22;
  --wb-green: #1f4d3b;
  --wb-green-dark: #112f23;
  --wb-green-light: #3a7359;
  --wb-gold: #f0bd3e;
  --wb-gold-dark: #c8941c;
  --wb-stamp: #b1402a;
  --wb-muted: #6b6457;
  --wb-line: #e1d6b9;
  --wb-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wb-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wb-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

body.site-page,
body.home-page,
body.book-detail-page,
body.book-list-page {
  background-color: var(--wb-paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 43, 34, 0.05) 1px, transparent 0);
  background-size: 22px 22px;
  font-family: var(--wb-font-body);
  color: var(--wb-ink);
  padding-top: 80px !important;
}

body.site-page .navbar,
body.home-page .navbar,
body.book-detail-page .navbar,
body.book-list-page .navbar {
  display: none;
}

body.site-page .content,
body.home-page .content,
body.book-detail-page .content,
body.book-list-page .content {
  margin-top: 0 !important;
  padding-top: 0;
  background-color: transparent;
}

body.site-page .content > header:not(.home-hero):not(.site-hero),
body.home-page .content > header:not(.home-hero) {
  display: none;
}

::selection {
  background: var(--wb-gold);
  color: var(--wb-green-dark);
}

:focus-visible {
  outline: 2.5px solid var(--wb-stamp);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Loading bar during Turbo navigation */
body.site-nav-loading::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--wb-gold), var(--wb-stamp), var(--wb-gold));
  background-size: 200% 100%;
  z-index: 9999;
  animation: site-nav-progress 1s ease-in-out infinite;
}

@keyframes site-nav-progress {
  0% { background-position: 0% 0; transform: translateX(-100%); }
  100% { background-position: 200% 0; transform: translateX(100%); }
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
.site-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background-color: var(--wb-card) !important; 
  border-bottom: 1px solid var(--wb-line) !important;
  box-shadow: 0 4px 12px rgba(28, 43, 34, 0.05) !important;
  padding: 0.75rem 2rem !important;
  margin-bottom: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-topbar__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-topbar__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.site-topbar__brand:hover {
  opacity: 0.92;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--wb-card);
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: 0 2px 0 var(--wb-line), 0 6px 18px rgba(28, 43, 34, 0.07);
  border: 1px solid var(--wb-line);
}

.site-nav__link {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--wb-muted);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  font-family: var(--wb-font-body);
}

.site-nav__link:hover {
  color: var(--wb-green);
  background: var(--wb-paper);
}

.site-nav__link.is-active {
  background: var(--wb-green);
  color: #fff;
  box-shadow: 0 2px 0 var(--wb-green-dark);
}

.site-nav__link--mobile-only {
  display: none;
}

.site-nav__link--desktop-only {
  display: inline-flex;
}

.site-topbar__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-topbar__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: var(--wb-green);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--wb-green-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-topbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--wb-green-dark);
}

.site-topbar__cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--wb-green-dark);
}

.site-topbar__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.site-topbar__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wb-ink);
  border-radius: 2px;
}

/* ==========================================================================
   SEARCH FORM & MULTI-SEARCH
   ========================================================================== */
.site-search-form {
  margin-bottom: 2rem;
}

.home-hero__copy,
.home-hero__grid {
  overflow: visible;
}

.home-hero .site-search-form {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.home-hero .site-search-form__row {
  width: var(--hero-search-width, 100%);
  max-width: none;
  flex-shrink: 0;
}

.site-search-form__row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 100%;
  width: 100%;
}

.site-search-form__input-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background: var(--wb-card);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.4rem;
  box-shadow: 0 2px 0 var(--wb-line), 0 10px 28px rgba(28, 43, 34, 0.08);
  border: 1px solid var(--wb-line);
  min-height: 3.4rem;
  min-width: 0;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-search-form__input-wrap:focus-within {
  border-color: var(--wb-green-light);
  box-shadow: 0 2px 0 var(--wb-line), 0 0 0 4px rgba(31, 77, 59, 0.12);
}

.site-search-form__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--wb-font-body);
  background: transparent;
  min-width: 0;
  color: var(--wb-ink);
}

.site-search-form__scan {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--wb-gold);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.site-search-form__scan:hover {
  transform: scale(1.06) rotate(-4deg);
}

.site-search-form__submit {
  flex-shrink: 0;
  padding: 0.85rem 1.85rem;
  background: var(--wb-green);
  color: #fff;
  font-weight: 700;
  font-family: var(--wb-font-body);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 3px 0 var(--wb-green-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-search-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--wb-green-dark);
}

.site-search-form__extras {
  margin-top: 0.65rem;
}

.site-search-form__multi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wb-green);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-search-form__multi-toggle:hover {
  color: var(--wb-green-dark);
}

.site-search-form__multi-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-search-form__multi-toggle[aria-expanded="true"] .site-search-form__multi-chevron {
  transform: rotate(180deg);
}

.site-search-form__multi-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-search-form__multi-panel.is-open {
  grid-template-rows: 1fr;
  margin-top: 0.75rem;
  pointer-events: auto;
}

.site-search-form__multi-panel-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  padding: 1rem;
  background: var(--wb-card);
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(28, 43, 34, 0.06);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-search-form__multi-panel.is-open .site-search-form__multi-panel-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.06s;
}

.site-search-form__multi-panel:not(.is-open) .site-search-form__multi-panel-inner {
  transition-delay: 0s;
  padding: 0;
  border-color: transparent;
  box-shadow: none;
}

.site-search-form__multi-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wb-ink);
  margin-bottom: 0.5rem;
}

.site-search-form__multi-input {
  width: 100%;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 0.65rem;
  font-family: var(--wb-font-body);
  background: var(--wb-paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-search-form__multi-input:focus {
  outline: none;
  border-color: var(--wb-green);
  box-shadow: 0 0 0 3px rgba(31, 77, 59, 0.12);
}

.site-search-form__multi-submit {
  padding: 0.55rem 1rem;
  background: var(--wb-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.site-search-form__multi-submit:hover {
  background: var(--wb-green-dark);
}

/* ==========================================================================
   PAGE HERO (Rent, Sell, Blog)
   ========================================================================== */
.site-hero {
  background: transparent;
  padding: 1.5rem 0 2.5rem;
  margin-top: 0 !important;
  position: relative;
}

.site-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-hero__title {
  font-family: var(--wb-font-display);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--wb-ink);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  max-width: 640px;
}

.site-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--wb-muted);
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.site-hero--center .site-hero__title,
.site-hero--center .site-hero__subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-hero--center .site-search-form__row {
  margin: 0 auto;
}

/* ==========================================================================
   SITE CONTENT & CARDS
   ========================================================================== */
body.site-page .site-content {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

body.site-page .home-section__title {
  font-family: var(--wb-font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  color: var(--wb-ink);
  letter-spacing: -0.01em;
}

body.site-page .site-content-card {
  background: var(--wb-card);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 2px 0 var(--wb-line), 0 14px 32px rgba(28, 43, 34, 0.06);
  border: 1px solid var(--wb-line);
}

body.site-page .site-content-card h2,
body.site-page .site-content-card h3 {
  font-family: var(--wb-font-display);
  font-weight: 700;
  color: var(--wb-ink);
  letter-spacing: -0.01em;
}

body.site-page .site-content-card p,
body.site-page .site-content-card li {
  color: var(--wb-muted);
  line-height: 1.65;
}

body.site-page .site-content-card a {
  color: var(--wb-green);
}

body.site-page .blog_list_cont .blog-card {
  border-radius: 14px;
  border: 1px solid var(--wb-line) !important;
  box-shadow: 0 2px 0 var(--wb-line), 0 8px 20px rgba(28, 43, 34, 0.05) !important;
  background: var(--wb-card);
}

body.site-page .blog-card .more-btn {
  color: var(--wb-green);
  font-weight: 700;
}

body.site-page .container.my-4 {
  margin-top: 0 !important;
}

/* ==========================================================================
   HOME HERO
   ========================================================================== */
.home-hero {
  background: transparent;
  padding: 1.5rem 0 2rem;
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background:
    radial-gradient(closest-side, rgba(240, 189, 62, 0.22), transparent),
    radial-gradient(closest-side at 80% 20%, rgba(31, 77, 59, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.home-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.home-hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.home-hero__brand {
  font-family: var(--wb-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wb-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.home-hero__brand:hover {
  color: var(--wb-ink);
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.home-hero__login {
  color: var(--wb-ink);
  font-weight: 600;
  text-decoration: none;
}

.home-hero__login:hover {
  color: var(--wb-green);
}

.home-hero__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  background: var(--wb-green);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--wb-green-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-hero__cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--wb-green-dark);
  color: #fff;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.home-hero__copy--solo {
  max-width: 720px;
  padding-bottom: 1rem;
}

.home-hero__title {
  font-family: var(--wb-font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--wb-ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.home-hero__subtitle {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--wb-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.home-hero__search-form {
  margin-bottom: 2rem;
}

.home-hero__search-row {
  display: flex;
  align-items: stretch;
  position: relative;
  max-width: 560px;
}

.home-hero__search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--wb-card);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  box-shadow: 0 2px 0 var(--wb-line), 0 12px 30px rgba(28, 43, 34, 0.08);
  border: 1px solid var(--wb-line);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-hero__search-input-wrap:focus-within {
  border-color: var(--wb-green-light);
  box-shadow: 0 2px 0 var(--wb-line), 0 0 0 4px rgba(31, 77, 59, 0.12);
}

.home-hero__search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.96rem;
  font-family: var(--wb-font-body);
  color: var(--wb-ink);
  background: transparent;
  min-width: 0;
}

.home-hero__search-input::placeholder {
  color: #a39c8b;
}

.home-hero__scan-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--wb-gold);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-ink);
  margin-right: 0.35rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.home-hero__scan-btn:hover {
  transform: scale(1.06) rotate(-4deg);
}

.home-hero__submit {
  flex-shrink: 0;
  padding: 0.85rem 1.85rem;
  background: var(--wb-green);
  color: #fff;
  font-weight: 700;
  font-family: var(--wb-font-body);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 3px 0 var(--wb-green-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-hero__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--wb-green-dark);
}

.home-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-hero__feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wb-ink);
}

.home-hero__feature-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--wb-green);
  flex-shrink: 0;
}

/* Phone Mockup */
.home-hero__phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.home-page .home-hero__phone-wrap {
  justify-content: flex-end;
}

.home-hero__phone {
  width: 360px;
  background: var(--wb-ink);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(17, 26, 20, 0.28), 0 4px 0 rgba(0, 0, 0, 0.15) inset;
  transform: none;
}

.home-hero__phone-screen {
  background: var(--wb-card);
  border-radius: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 640px;
  max-height: 700px;
}

.home-hero__phone-notch {
  height: 28px;
  background: var(--wb-card);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 4px;
}

.home-hero__phone-notch span {
  width: 80px;
  height: 6px;
  background: var(--wb-ink);
  border-radius: 999px;
}

.home-hero__phone-content {
  padding: 0.75rem 1rem 1.5rem;
}

.home-hero__phone-title {
  font-family: var(--wb-font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--wb-ink);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.home-hero__phone-title--center {
  text-align: center;
}

.home-hero__phone-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--wb-line);
  gap: 0.75rem;
}

.home-hero__phone-result:last-child {
  border-bottom: none;
}

.home-hero__phone-seller {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wb-ink);
}

.home-hero__phone-price {
  font-family: var(--wb-font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wb-ink);
}

.home-hero__phone-savings {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wb-green);
  margin-top: 0.15rem;
}

.home-hero__phone-cta {
  padding: 0.35rem 0.75rem;
  background: var(--wb-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  white-space: nowrap;
}

a.home-hero__phone-cta {
  text-decoration: none;
  color: #fff;
}

.home-hero__phone-divider {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--wb-line) 0 6px, transparent 6px 12px);
  margin: 0.85rem 0;
}

.home-hero__phone-title--recs {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.home-hero__phone-result--review {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.45rem 0;
}

.home-hero__phone-result--review + .home-hero__phone-result--review {
  border-top: 1px dashed var(--wb-line);
}

.home-hero__phone-result--review > div {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.home-hero__phone-result--review .home-hero__phone-seller {
  font-size: 0.78rem;
  line-height: 1.25;
  font-family: var(--wb-font-body);
}

.home-hero__phone-price--review {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--wb-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
  text-align: center;
}

.home-hero__phone-cta--stars {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--wb-gold-dark);
  background: var(--wb-paper);
  padding: 0.35rem 0.45rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.home-hero__phone-content--testimonials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.home-hero__phone-testimonial {
  margin: 1rem 0 0.75rem;
  padding: 0;
}

.home-hero__phone-testimonial p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--wb-ink);
  margin: 0;
  font-family: var(--wb-font-display);
}

.home-hero__phone-stars {
  color: var(--wb-gold-dark);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   HOME SECTIONS (Partners, Actions, Showcase)
   ========================================================================== */
body.home-page article.container {
  background: transparent;
  border-radius: 0;
  margin-top: 0;
  padding-top: 0;
  max-width: 1200px;
}

body.home-page .content {
  background-color: transparent;
}

body.home-page .home-main {
  padding: 0 1.5rem 3rem;
}

body.home-page .home-section__title {
  font-family: var(--wb-font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  color: var(--wb-ink);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

body.home-page .home-section__lead {
  max-width: 720px;
  margin: 0 auto 1rem;
  text-align: center;
  color: var(--wb-muted);
  line-height: 1.65;
  font-size: 1rem;
}

body.home-page .wb-partners__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

body.home-page .wb-partners__scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  animation: wb-partners-scroll 28s linear infinite !important;
}

body.home-page .wb-partners__logo {
  flex: 0 0 auto !important;
  width: 130px !important;
}

body.home-page .wb-partners__logo img {
  max-width: 120px !important;
  max-height: 44px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

body.home-page .home-partners {
  background: var(--wb-card);
  border-radius: 18px;
  margin: 0 0 2rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 2px 0 var(--wb-line), 0 10px 24px rgba(28, 43, 34, 0.05);
  border: 1px solid var(--wb-line);
  overflow: hidden;
}

body.home-page .home-partners .scrollbar {
  gap: 2.5rem;
}

body.home-page .home-partners img {
  width: 120px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: 0.8;
}

body.home-page .home-how-it-works {
  margin-bottom: 3rem !important;
}

body.home-page .home-action-card {
  background: var(--wb-card);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: 0 2px 0 var(--wb-line), 0 12px 28px rgba(28, 43, 34, 0.06);
  border: 1px solid var(--wb-line);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

body.home-page .home-action-card:hover {
  box-shadow: 0 2px 0 var(--wb-line), 0 18px 36px rgba(28, 43, 34, 0.1);
  transform: translateY(-4px);
  border-color: #d2c6a0;
}

body.home-page .home-action-card__icon {
  width: 88px;
  height: 88px;
  border: 3px solid var(--wb-green);
  border-radius: 50%;
  background: var(--wb-paper);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.home-page .selling-cards .home-action-card__icon img {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: 36px;
  height: 36px;
  filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(700%) hue-rotate(115deg) brightness(0.85);
}

body.home-page .selling-cards .home-action-card__icon img.home-action-card__icon-img--native {
  width: 52px;
  height: 52px;
  filter: none;
}

body.home-page .home-action-card__title {
  display: block;
  font-family: var(--wb-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wb-ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

body.home-page .home-action-card p {
  color: var(--wb-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

body.home-page .home-action-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  background: var(--wb-green);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--wb-green-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.home-page .home-action-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--wb-green-dark);
  color: #fff !important;
}

body.home-page .home-section--intro:not(.home-section--intro-tight) {
  margin-bottom: 2.5rem !important;
}

body.home-page .home-section--intro-tight {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.home-page .home-section--intro-tight .home-section__lead {
  margin-bottom: 0;
}

body.home-page .home-showcase-stack {
  background: var(--wb-card);
  border: 1px solid var(--wb-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 0 var(--wb-line), 0 18px 40px rgba(28, 43, 34, 0.08);
  margin: 2rem 0 2.5rem; 
}

body.home-page .home-showcase-stack .home-section--intro-tight {
  margin: 0 !important;
  padding: 1.35rem 1.75rem 0.85rem;
  border-bottom: 1px dashed var(--wb-line);
}

body.home-page .home-showcase-stack .wb-showcase {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.home-page .home-section--content {
  background: var(--wb-card);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 0 var(--wb-line), 0 12px 28px rgba(28, 43, 34, 0.05);
  border: 1px solid var(--wb-line);
}

body.home-page .home-section--content h2 {
  font-family: var(--wb-font-display);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  font-weight: 700;
  color: var(--wb-ink);
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

body.home-page .home-section--content h2:first-child {
  margin-top: 0;
}

body.home-page .home-section--content h3 {
  font-family: var(--wb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wb-ink);
  margin-top: 1rem;
}

body.home-page .home-section--content p {
  color: var(--wb-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

body.home-page .home-section--content ul {
  color: var(--wb-muted);
  line-height: 1.75;
  padding-left: 1.25rem;
}

body.home-page .home-section--content hr {
  border: none;
  border-top: 1px dashed var(--wb-line);
  margin: 2rem 0;
}

body.home-page .home-section--content img {
  border-radius: 14px;
  margin: 1.5rem auto !important;
  box-shadow: 0 14px 32px rgba(28, 43, 34, 0.1);
}

/* ==========================================================================
   SUBJECTS GRID (if used on home)
   ========================================================================== */
.home-subjects {
  margin-bottom: 1.25rem !important;
  padding-top: 1rem;
}

.home-subjects .home-section__lead {
  color: var(--wb-muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 0.5rem;
}

.home-subjects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.home-subjects__grid a {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  background: var(--wb-card);
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  color: var(--wb-ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.home-subjects__grid a:hover {
  border-color: var(--wb-green);
  color: var(--wb-green);
  transform: translateY(-2px);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
[data-hero-rotate-text],
[data-phone-rotate-text] {
  transition: opacity 0.22s ease;
}

[data-hero-rotate-text].is-fading,
[data-phone-rotate-text].is-fading {
  opacity: 0;
}

.home-hero__title-dynamic {
  color: var(--wb-green);
  position: relative;
  white-space: nowrap;
}

.home-hero__title-dynamic::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--wb-gold);
  opacity: 0.55;
  z-index: -1;
  border-radius: 2px;
}

@keyframes wb-partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* ==========================================================================
   MOBILE RESPONSIVENESS & LAYOUT FIXES
   ========================================================================== */
@media (max-width: 850px) {
  /* Header Mobile */
  .site-topbar {
    padding: 0.75rem 1rem !important;
  }

  .site-topbar__menu-btn {
    display: flex;
  }

  .site-nav__link--desktop-only {
    display: none;
  }

  .site-nav__link--mobile-only {
    display: block;
  }

  .site-nav:not(.site-nav--actions) {
    display: none;
    position: fixed !important;
    top: 70px !important;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: column;
    margin-top: 0.75rem;
    padding: 0.5rem;
    min-width: 320px;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(28, 43, 34, 0.14);
    z-index: 20;
    background: var(--wb-card);
  }

  .site-topbar.is-open .site-nav:not(.site-nav--actions) {
    display: flex;
  }

  .site-nav--actions {
    padding: 0.2rem;
  }

  .site-nav--actions .site-nav__link {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .site-nav:not(.site-nav--actions) .site-nav__link {
    width: 100%;
    text-align: left;
    border-radius: 10px;
  }

  body.site-page,
  body.home-page,
  body.book-detail-page,
  body.book-list-page {
    padding-top: 100px !important; 
  }

  /* Hero Mobile Stacking & Centering */
  .home-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .home-hero__phone-wrap {
    order: -1 !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .home-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  .home-hero .site-search-form,
  .home-hero .site-search-form__row {
    width: 100% !important;
    max-width: 600px !important;
  }
  
  .home-hero__search-row {
    width: 100% !important;
    max-width: 600px !important;
  }


  .home-hero__phone {
    width: 340px !important;
    transform: none;
    margin: 0 auto !important;
    box-shadow: 0 15px 30px rgba(17, 26, 20, 0.15) !important;
  }

  .home-hero__phone-screen {
    min-height: 500px;
    max-height: 600px;
  }

  /* FIX: Allow search bar to be wider on tablets, but stack the button */
  .home-hero__search-row,
  .site-search-form__row {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 500px !important; /* Expands on tablet */
    margin: 0 auto;
  }

  .home-hero__submit,
  .site-search-form__submit {
    margin-left: 0;
    width: 100%;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  .home-hero__topbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .home-hero__features {
    flex-direction: column;
    gap: 1rem;
  }

  .site-search-form__scan {
    display: inline-flex;
  }
  
  .home-hero__phone {
    width: 280px !important; 
  }

  .home-hero__phone-screen {
    min-height: 400px;
    max-height: 480px;
  }
  
  /* FIX: On small phones, let the search bar take full screen width */
  .home-hero__search-row,
  .site-search-form__row {
    max-width: 100% !important;
    padding: 0 1rem;
  }
}

@media (max-width: 576px) {
  .home-hero__topbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .home-hero__features {
    flex-direction: column;
    gap: 1rem;
  }

  .site-search-form__scan {
    display: inline-flex;
  }
  
  .home-hero__phone {
    width: 280px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search-form__multi-panel,
  .site-search-form__multi-panel-inner,
  .site-search-form__multi-chevron {
    transition: none;
  }

  .site-search-form__multi-panel-inner {
    opacity: 1;
    transform: none;
  }

  .site-search-form__multi-panel:not(.is-open) {
    display: none;
  }

  .site-search-form__multi-panel.is-open {
    display: block;
    margin-top: 0.75rem;
  }

  body.site-nav-loading::before,
  body.home-page .wb-partners__scroll {
    animation: none !important;
  }
}
@media (max-width: 400px) {
  body.site-page,
  body.home-page,{
    padding-top: 130px !important; 
  }
}
}