:root {
  --bg: #ffffff;
  --bg-2: #f7f4ee;
  --ink: #16140f;
  --ink-2: #3a352c;
  --muted: #6e6759;
  --rule: #e6e1d3;
  --coral: #f48254;
  --coral-deep: #d96a3d;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Sofia Sans Condensed", "Sofia Sans", system-ui, sans-serif;
  --display-x: "Sofia Sans Extra Condensed", "Sofia Sans Condensed", system-ui, sans-serif;
  --body: Georgia, "Source Serif 4", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a { color: var(--coral-deep); }

.mobile-only { display: none; }
.desktop-only { display: inline; }
br.desktop-only { display: inline; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== NAV ===== */
.nav {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  background: var(--bg);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand em {
  font-style: normal;
  color: var(--coral);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 150ms ease;
}
.nav-links a:hover {
  color: var(--coral);
}
.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--rule);
  display: inline-block;
}
.nav-socials {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}
.nav-social {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 150ms ease;
}
.nav-social:hover {
  color: var(--coral);
}

/* Hamburger toggle — hidden by default, shown on small screens */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 150ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  padding: 56px 0 52px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.hero .wrap {
  max-width: 1190px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 3.9vw, 51px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin-bottom: 22px;
  width: 680px;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  font-weight: 500;
}
.hero .lead {
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 56ch;
}
.hero .byline {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.005em;
}
.hero .byline b {
  color: var(--ink);
  font-weight: 600;
}

.cover-wrap {
  display: flex;
  justify-content: center;
}
.cover {
  width: 100%;
  max-width: 195px;
  /* max-width: 325px; */
  height: auto;
  display: block;
  filter:
    drop-shadow(0 30px 40px rgba(20, 14, 8, 0.18))
    drop-shadow(0 8px 16px rgba(20, 14, 8, 0.10));
}

/* ===== SIGNUP (Kit form override) ===== */
.signup {
  max-width: 480px;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.005em;
}

.formkit-form[data-uid="2e328d0cb7"] {
  max-width: 100% !important;
  margin: 0 !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-fields {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-field {
  margin: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-input {
  padding: 13px 14px !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  color: var(--ink) !important;
  background: #fff !important;
  border: 1px solid var(--rule) !important;
  border-radius: 4px !important;
  line-height: 1.4 !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color 150ms ease !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-input:focus {
  border-color: var(--coral) !important;
  box-shadow: none !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-submit {
  margin: 0 !important;
  flex: 0 0 auto !important;
  background: var(--coral) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  transition: background 150ms ease !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-submit > span {
  padding: 13px 22px !important;
  color: #fff !important;
  white-space: nowrap;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-submit:hover {
  background: var(--coral-deep) !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-submit:hover > span {
  background-color: transparent !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-powered-by-convertkit-container {
  display: none !important;
}
.formkit-form[data-uid="2e328d0cb7"] .formkit-alert {
  margin: 0 0 12px 0 !important;
  font-size: 14px !important;
  border-radius: 4px !important;
}

/* ===== SECTION LABEL (shared) ===== */
.section-label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

/* ===== PROMISE SECTION (replaces "what you get") ===== */
.promise-section {
  border-bottom: 1px solid var(--rule);
  padding: 88px 0;
  background: var(--bg);
}
.promise-section .wrap {
  max-width: 880px;
  text-align: center;
}
.promise-section .section-label {
  display: block;
}
.promise-section h2 {
  font-family: var(--display-x);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 auto 16px;
  max-width: 22ch;
  text-wrap: balance;
}
.promise-section h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-2);
  margin: 0 auto 28px;
  max-width: 32ch;
  text-wrap: balance;
}
.promise-section .lede {
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 auto 28px;
  max-width: 62ch;
}
.promise-section .lede em {
  font-style: italic;
  color: var(--coral);
  font-weight: 500;
}
.promise-section .kicker {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: inline-block;
}

/* ===== INSIDE THE BOOK (chapter list) ===== */
.inside {
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  padding: 88px 0;
}
.inside .wrap {
  max-width: 880px;
}
.inside-head {
  text-align: center;
  margin-bottom: 56px;
}
.inside h2 {
  font-family: var(--display-x);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 auto 10px;
  max-width: 18ch;
  text-wrap: balance;
}
.inside .deck {
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 60ch;
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chapter-card {
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.chapter-card:hover {
  border-color: var(--coral);
}
.chapter-body {
  max-width: 100%;
}
.chapter-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.chapter-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}
.chapter-promise {
  font-family: var(--body);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  color: var(--coral-deep);
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 100%;
}
.chapter-card p:not(.chapter-promise) {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 100%;
}

.faq-list {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-list li {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.faq-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-style: normal;
}
.faq-more {
  color: var(--muted);
  font-style: italic;
  font-size: 16px !important;
  margin-top: 4px;
}

.contents-footnote {
  margin: 44px auto 0;
  font-size: 14.5px;
  color: var(--muted);
  font-style: italic;
  max-width: 64ch;
  line-height: 1.55;
  text-align: center;
}

/* Part dividers — quiet labels that section the list without slicing it */
.part-divider {
  list-style: none;
  margin: 32px 0 8px;
  padding: 8px 0 12px;
  display: block;
  text-align: center;
}
.part-divider:first-child {
  margin-top: 0;
}
.part-divider-num {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.part-divider-name {
  font-family: var(--display-x);
  font-weight: 500;
  font-size: clamp(32px, 3.8vw, 44px);
  letter-spacing: 0;
  line-height: 1.0;
  color: var(--ink);
}
.part-divider-blurb {
  font-family: var(--body);
  font-size: 20px;
  font-style: italic;
  color: var(--muted);
  margin: 6px auto 0;
  max-width: 56ch;
}

/* ===== SUBSCRIBE BAR ===== */
.subscribe-bar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 36px 0;
}
.sub-grid {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 460px);
  gap: 36px;
  align-items: center;
}
.subscribe-bar .signup-form {
  margin: 0;
}
.sub-copy {
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 50ch;
  letter-spacing: 0;
}
.sub-copy small {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0;
}
.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ===== FOOTER ===== */
footer {
  padding: 32px 0 40px;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 150ms ease, border-color 150ms ease;
}
footer a:hover {
  color: var(--coral);
  border-color: var(--coral);
}
.foot-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.foot-social a {
  color: var(--muted);
  border-bottom: none;
  display: inline-flex;
}
.foot-social a:hover {
  color: var(--coral);
}

/* ===== RESPONSIVE ===== */

/* Tablet (iPad mini etc.): keep hero side-by-side, tighten sizes */
@media (max-width: 1020px) and (min-width: 601px) {
  .wrap {
    padding: 0 24px;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
  }
  .hero h1 {
    width: auto;
    max-width: 100%;
    font-size: clamp(36px, 5.2vw, 41px);
  }
  /* Tablet band is too narrow for "...leading product strategy" on
     one line — use the mobile break so it stacks cleanly in 3 lines. */
  .hero h1 br.mobile-only { display: inline; }
  .hero h1 br.desktop-only { display: none; }
  .hero .lead,
  .hero .signup,
  .hero .form-note {
    max-width: 100%;
  }
  .cover-wrap {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* Tablet & below: simplify non-hero grids */
@media (max-width: 880px) {
  .promise-section,
  .inside {
    padding: 64px 0;
  }
  .inside h2 {
    margin-bottom: 8px;
  }
  .inside .deck {
    margin-bottom: 40px;
  }
  .chapter-card {
    padding: 24px 24px;
  }
  .part-divider {
    margin: 40px 0 8px;
  }
  .sub-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 20px;
  }
  .btn-ghost {
    align-self: start;
  }
}

/* Phone: single column, full-width form, more breathing room */
@media (max-width: 600px) {
  .mobile-only { display: inline; }
  br.mobile-only { display: inline; }
  .desktop-only { display: none; }
  br.desktop-only { display: none; }
  .wrap {
    padding: 0 20px;
  }
  .nav {
    padding: 14px 0;
  }
  .nav-inner {
    position: relative;
    justify-content: center;
  }
  .brand {
    margin: 0 auto;
  }
  .nav-toggle {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 36px;
    margin-right: 10px;
  }
  /* Collapsed mobile menu — hidden until is-open */
  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    left: -20px;
    right: -20px;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 24px 24px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-size: 18px;
    display: none;
    z-index: 20;
    text-align: center;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links > a:not(.nav-social) {
    color: var(--ink);
    width: 100%;
    text-align: center;
  }
  /* Use the divider as a horizontal rule above the social row */
  .nav-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--rule);
    margin-top: 4px;
  }
  .nav-socials {
    gap: 28px;
    margin: 4px auto 0;
    padding: 6px 0 2px;
    justify-content: center;
  }
  .brand {
    font-size: 18px;
  }
  .hero {
    padding: 20px 0 36px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .hero h1 {
    width: auto;
    max-width: 100%;
  }
  .hero-text {
    margin: 0 auto;
    max-width: 100%;
  }
  .cover-wrap {
    order: -1;
    max-width: 165px;
    margin: 0 auto;
  }
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .byline,
  .hero .form-note {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero h1 {
    font-size: 33px;
    line-height: 1.1;
    margin-bottom: 18px;
    max-width: 100%;
  }
  .hero .lead {
    font-size: 17px;
    max-width: 100%;
  }
  .hero .signup {
    margin: 0 auto;
  }
  /* Beefier Notify me button on mobile */
  .formkit-form[data-uid="2e328d0cb7"] .formkit-submit > span {
    padding: 22px 22px !important;
    font-size: 17px !important;
  }
  .formkit-form[data-uid="2e328d0cb7"] .formkit-input {
    padding: 22px 14px !important;
    font-size: 16px !important;
    text-align: center !important;
  }
  .receipts,
  .contents-preview {
    padding: 48px 0;
  }
  .promise-section h2,
  .inside h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
  .promise-section .lede {
    font-size: 17px;
  }
  .chapter-card {
    padding: 22px 20px;
  }
  .chapter-body {
    max-width: 100%;
  }
  .chapter-card h3 {
    font-size: 22px;
  }
  .chapter-promise {
    font-size: 16.5px;
  }
  .chapter-card p:not(.chapter-promise) {
    max-width: 100%;
  }
  .part-divider {
    margin: 32px 0 4px;
    padding: 24px 0 16px;
  }
  .part-divider-name {
    font-size: 26px;
  }
  .part-divider-blurb {
    font-size: 15.5px;
  }

  /* Stack form vertically and let it fill width */
  .formkit-form[data-uid="2e328d0cb7"] .formkit-fields {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .formkit-form[data-uid="2e328d0cb7"] .formkit-submit {
    width: 100% !important;
    height: 50px;
  }

  .foot-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Critical: prevent Kit's min-width from breaking small viewports */
.formkit-form[data-uid="2e328d0cb7"] .formkit-input {
  min-width: 0 !important;
}
