:root {
  --orange: #ff7700;
  --dark: #18181b;
  --muted: #6b7280;
  --light: #ffecd6; /* NEW: a noticeably deeper creamy orange */
  --primary-color: #ff7700;
  --font-family: 'Montserrat', Arial, sans-serif;
  --container-max: 880px; /* was 1100px */
}

html {
  font-size: 13px; /* was 16px; 80% size */
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--light);
  color: var(--dark);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.2em;
  font-size: 1.3em;    /* NEW: boost base size */
}

.topbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ececec;
  color: var(--dark);
  font-size: 1em;
  padding: 0.55em 0; /* was 0.7em */
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1em; /* was 1.5em */
}

.topbar-btn {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  margin-left: 0.8em;
  background: #fff5ed;
  padding: 0.32em 0.8em;
  border-radius: 5px;
  transition: background 0.2s;
}
.topbar-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.bookfox-hero-wrap {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  max-width: 960px; /* was 1200px */
  margin: 0 auto;
  padding: 0 1.1em; /* was 2em */
}

.bookfox-hero-left {
  flex: 1 1 370px; /* was 470px */
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2em 1em 1em 0.4em; /* all paddings reduced */
}

.bookfox-hero-right {
  flex: 1 1 370px; /* was 470px */
  min-width: 220px; /* was 300px */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8em 0 1.8em 1em;
}

.hero-image-drama {
  max-width: 300px; /* was 380px */
  width: 90%;
  border-radius: 14px;
  background: transparent;
  border: none; /* Or use a semi-transparent border if you like */
}

.bookfox-logo-inline-wrapper {
  width: 344px; /* 80% of 430px */
  min-width: 344px;
  overflow-x: auto;
}
.bookfox-logo-inline {
  width: 344px;
  height: 98px; /* 80% of 123px */
  max-width: none;
  max-height: none;
  display: block;
}

/* Responsive: stack vertically on mobile */
@media (max-width: 900px) {
  .bookfox-hero-wrap {
    flex-direction: column;
    align-items: center;
    padding: 0 0.5em;
  }
  .bookfox-hero-left, .bookfox-hero-right {
    padding: 1.1em 0.2em;
    width: 100%;
    max-width: 97vw;
    text-align: center;
    align-items: center;
  }
  .bookfox-logo-inline-wrapper, .bookfox-logo-inline {
    width: 274px !important;
    min-width: 274px !important;
    height: 78px !important;
  }
}

.hero-headline {
  font-size: 1.85em; /* was 2.3em */
  font-weight: 900;
  color: #18181b;
  margin-bottom: 0.12em;
  letter-spacing: -0.012em;
  line-height: 1.11;
  text-shadow: 0 2px 30px rgba(255, 137, 24, 0.05);
}
.hero-orange { color: var(--orange); font-weight: 900; display: block; margin-top: 0.09em; }
.hero-subhead { font-size: 0.88em; margin-bottom: 1em; color: #404040; line-height: 1.4; }
.hero-bold { font-weight: 700; color: var(--orange); display: block; margin-top: 0.38em; }

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-bottom: 0.7em;
  width: 98%;
  max-width: 270px; /* was 350px */
}
.hero-form input[type="email"] {
  padding: 0.8em;
  font-size: 0.88em;
  border-radius: 8px;
  border: 2px solid #f3e3d4;
  outline: none;
  transition: border 0.2s;
  box-shadow: 0 2px 8px rgba(249,115,22,0.05);
}
.hero-form input[type="email"]:focus { border: 2px solid var(--orange); }
.hero-cta-btn {
  padding: 0.88em 0;
  background: var(--orange);
  color: #fff;
  font-size: 0.9em;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  box-shadow: 0 3px 18px rgba(249,115,22,0.13);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}
.hero-cta-btn:hover, .hero-cta-btn:focus {
  background: #ea6b10;
  box-shadow: 0 5px 18px rgba(249,115,22,0.18);
}
.hero-trust { font-size: 0.78em; color: #666; margin-top: 0.5em; }

.bookfox-bg-circle, .bookfox-bg-circle2 {
  position: absolute; z-index: 1; pointer-events: none;
}
.bookfox-bg-circle {
  top: 24px; left: 52%; width: 210px; height: 210px;
  background: radial-gradient(circle, #f97316 0%, #fffaf5 70%, transparent 100%);
  opacity: 0.15; filter: blur(6px);
  animation: hero-bounce 7s infinite alternate ease-in-out;
}
.bookfox-bg-circle2 {
  bottom: 7px; left: 7%; width: 95px; height: 95px;
  background: radial-gradient(circle, #f97316 0%, #fffaf5 70%, transparent 100%);
  opacity: 0.12; filter: blur(8px);
  animation: hero-bounce2 9s infinite alternate-reverse;
}
@keyframes hero-bounce { 0%{transform:translateY(0)scale(1);} 80%{transform:translateY(8px)scale(1.05);} 100%{transform:translateY(-16px)scale(1.08);} }
@keyframes hero-bounce2 { 0%{transform:translateY(0)scale(1);} 60%{transform:translateY(-14px)scale(1.07);} 100%{transform:translateY(11px)scale(1.02);} }

.highlight {
  background-color: rgba(255, 119, 0, 0.09);
  padding: 1em 1.2em;
  border-left: 4px solid var(--orange);
  font-size: 0.9em;
  font-weight: 500;
  margin: 1.6em auto;
  text-align: center;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(255,119,0,0.06);
}

ul, .container ul {
  font-size: 0.9em;
  padding-left: 1.1em;
  margin-bottom: 1.3em;
}
li { margin-bottom: 0.5em; line-height: 1.5; }
h2 {
  color: var(--orange);
  font-size: 1.22em;
  margin-top: 1.2em;
  text-align: left;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
}
h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #ffc470 88%);
  border-radius: 2.5px;
  margin: 0.2em 0 0.3em 0;
}

footer {
  background: #f4f4f4;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.78em;
  color: var(--muted);
  margin-top: 3em;
}

.bookfox-section {
  /* Remove max-width and margin */
  padding: 0 1.1em;
  position: relative;
}

.bookfox-section:not(:last-child) { margin-bottom: 2.2em; }
.bookfox-section ul { padding-left: 1.12em; margin-bottom: 1.1em; font-size: 0.91em; }
.bookfox-section li { margin-bottom: 0.44em; }
.bookfox-section p { margin-bottom: 0.8em; font-size: 0.93em; line-height: 1.58; }
.bookfox-section strong { color: var(--orange); }

/* FAQ SECTION — unchanged, as requested */
.faq {
  max-width: 100%;
  margin: 0 auto 5em auto; /* reduced bottom margin */
  padding: 0 1em;
}
.faq h2 {
  color: var(--orange);
  font-size: 1.05em;
  font-weight: 800;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
  text-align: left;
  position: relative;
}
.faq h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #ffc470 88%);
  border-radius: 2.5px;
  margin: 0.15em 0 0.35em 0;
}
.faq-item.static {
  border-left: 3px solid #ffc470;
  background: #fffefb;
  border-radius: 0;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  box-shadow: none;
}
.faq-question {
  font-weight: 700;
  color: var(--orange);
  padding: 0.7em 0.7em 0.05em 1em;
  font-size: 0.95em;
  background: none;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
}
.faq-answer {
  padding: 0.5em 1.1em 0.4em 1.4em;
  font-size: 0.89em;
  color: #333;
  background: none;
  border: none;
  display: block;
}

.modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(24, 24, 27, 0.38);
  align-items: center;
  justify-content: center;
}
.modal[hidden] { display: none; }
.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 300px;
  min-width: 200px;
  padding: 1.1em 0.7em 1em;
  box-shadow: 0 6px 24px rgba(255,119,0,0.13), 0 2px 20px rgba(0,0,0,0.13);
  border-left: 4px solid var(--orange);
  text-align: center;
  position: relative;
  animation: modal-appear 0.22s cubic-bezier(.62,.12,.64,.94);
}
@keyframes modal-appear {
  from { transform: scale(0.96) translateY(22px); opacity: 0.5; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-content.success { border-left-color: #18c58f; }
.modal-content.error   { border-left-color: #ff7700; }
.modal-content h3 { margin-top: 0; font-size: 1em; color: var(--orange); font-weight: 800; }
.modal-content.error h3 { color: #ff7700; }
.modal-content.success h3 { color: #18c58f; }
.close-button {
  position: absolute; top: 0.7em; right: 0.7em;
  font-size: 1em; color: #aaa; background: none; border: none;
  cursor: pointer; font-weight: 800; transition: color 0.12s;
}
.close-button:hover { color: var(--orange); }

.sticky-cta-bar {
  position: fixed; left: 0; bottom: 0; width: 100%;
  background: #fff; box-shadow: 0 -2px 18px rgba(255,119,0,0.07), 0 -1px 7px rgba(0,0,0,0.07);
  border-top: 2px solid var(--orange); z-index: 999;
}
.sticky-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7em 1.1em;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.88em;
}
.sticky-cta-inner span { color: var(--dark); font-weight: 600; }
.sticky-cta-btn {
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.95em;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  box-shadow: 0 2px 10px rgba(255,119,0,0.11);
  text-decoration: none;
  margin-left: 0.7em;
  transition: background 0.17s, box-shadow 0.17s;
  cursor: pointer;
}
.sticky-cta-btn:hover, .sticky-cta-btn:focus {
  background: #ea6b10;
  box-shadow: 0 4px 18px rgba(255,119,0,0.18);
}

@media (max-width: 1050px) {
  .bookfox-hero-wrap { flex-direction: column; align-items: center; padding: 0 0.4em; min-height: unset; }
  .bookfox-hero-left, .bookfox-hero-right { padding: 1.1em 0.2em; max-width: 97vw; text-align: center; align-items: center; }
  .hero-headline { font-size: 1.15em; }
  .hero-image-drama { max-width: 78vw; }
  .bookfox-section, .highlight { max-width: 97vw; padding: 1em 0.6em; }
  .sticky-cta-inner { padding: 1em 0.7em; }
}
@media (max-width: 650px) {
  .sticky-cta-inner {
    flex-direction: column; gap: 0.5em; align-items: stretch; padding: 0.5em 0.3em; font-size: 0.9em;
  }
  .sticky-cta-btn { width: 100%; text-align: center; margin-left: 0; font-size: 0.95em; }
}
.bookfox-intro {
  font-size: 1em;
  font-weight: 500;
  color: #18181b;
  line-height: 1.18;
  margin-bottom: 0.7em;
  margin-top: 0.3em;
  text-align: left;
  letter-spacing: -0.01em;
}
@media (max-width: 700px) {
  .bookfox-intro {
    font-size: 0.91em;
    padding: 0 0.2em;
  }
}
.hero-summary {
  margin-top: 1.2em;
  margin-bottom: 1.6em;
  max-width: 670px;
  font-size: 1.17em;
  font-weight: 500;
  color: #18181b;
  letter-spacing: -0.01em;
  text-align: left;
  line-height: 1.44;
}

.hero-summary p {
  margin: 0 0 1.1em 0; /* More space below each line */
  padding: 0;
}

.hero-summary p:last-child {
  margin-bottom: 0;
}
.hero-title-block {
  margin-bottom: 1.2em;
}

.hero-title-block p {
  margin: 0 0 0.45em 0;   /* controls space between lines */
  font-size: 2.18em;
  font-weight: 800;
  color: #18181b;
  letter-spacing: -0.015em;
  line-height: 1.16;
  text-shadow: 0 2px 30px rgba(255, 137, 24, 0.04);
  text-align: left;
}

.hero-title-block .hero-headline-sub {
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0;  /* no extra space after the last line */
}
.hero-form-box {
  background: #fff;
  border: 2.8px solid var(--orange);
  border-radius: 17px;
  box-shadow: 0 4px 28px rgba(255,119,0,0.06), 0 1.5px 8px rgba(24,24,27,0.03);
  padding: 2em 1.4em 1.1em 1.4em;
  max-width: 385px;
  margin-bottom: 2em;
  margin-top: 0.3em;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Optionally, center on mobile: */
  /* margin-left: auto; margin-right: auto; */
}

@media (max-width: 600px) {
  .hero-form-box {
    padding: 1em 0.5em 0.7em 0.5em;
    max-width: 98vw;
  }
}
.hero-headline-topspaced {
  margin-top: 1.2em; /* adjust to taste (try 1em–1.5em for subtle to roomy) */
}
.hero-form {
  margin-bottom: 0.5em;   /* Reduce if needed */
}

.hero-cta-highlight {
  font-size: 1.32em;
  font-weight: 800;
  color: var(--orange);
  margin-top: 0.0em;      /* Decreased from 1.3em */
  margin-bottom: 1.3em;
  text-align: left;
  letter-spacing: 0.01em;
}
#exitIntentModal .modal-content input[type="email"] {
  width: 94%;
  margin-bottom: 0.4em;
  font-size: 0.98em;
}
#exitIntentModal .modal-content label {
  font-weight: 500;
  font-size: 0.98em;
}
#exitIntentModal .modal-content hr {
  border: none;
  border-top: 1.5px solid #ffe1cb;
  margin: 1.1em 0 0.9em;
}
@media (max-width:600px) {
  #exitIntentModal .modal-content {
    max-width:98vw !important;
    padding: 1em 0.2em 1em 0.2em !important;
  }
  #exitIntentModal .modal-content input,
  #exitIntentModal .modal-content button {
    font-size:1em;
    width:97%;
  }
}
