/* ============================================================
   book.css — shared styles for the Books hub and book detail pages
   Extracted from the original single-page book.html so the hub and
   each detail page share one stylesheet instead of duplicating it.
   ============================================================ */

    .book-hero {
      padding-top: var(--nav-h);
      background: linear-gradient(160deg, #1A1612 0%, #2A2520 60%, #1A1612 100%);
      color: var(--cream);
      padding-bottom: 0;
      overflow: hidden;
    }
    .book-hero-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 6rem var(--page-pad) 0;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 5rem;
      align-items: end;
    }
    .book-launch-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      border: 1px solid rgba(184,150,46,0.35);
      padding: 0.5rem 1rem;
      margin-bottom: 2rem;
      font-size: 0.68rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .book-launch-badge::before {
      content: '';
      width: 6px; height: 6px;
      background: var(--gold);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }
    .book-hero h1 {
      font-size: clamp(3rem, 6vw, 5.5rem);
      font-weight: 300;
      color: var(--cream);
      line-height: 1.05;
      margin-bottom: 1.5rem;
      letter-spacing: -0.02em;
    }
    .book-hero-sub {
      font-family: var(--font-serif);
      font-size: clamp(1.25rem, 2.2vw, 1.6rem);
      font-style: italic;
      font-weight: 300;
      color: rgba(245,240,232,0.82);
      max-width: 520px;
      line-height: 1.45;
      margin-bottom: 1rem;
    }
    /* audience line — answers "is this for me?" above the fold */
    .book-audience {
      font-size: 0.92rem;
      line-height: 1.55;
      color: var(--gold-light);
      max-width: 500px;
      margin-bottom: 2rem;
    }
    .book-hero-flex { display: block; }
    .book-cta-row {
      display: flex;
      gap: 0.8rem;
      flex-wrap: wrap;
      margin-bottom: 1.2rem;
    }
    /* "watch the overview" link sits right by the buttons */
    .hero-watch {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(245,240,232,0.75);
      border-bottom: 1px solid rgba(184,150,46,0.4);
      padding-bottom: 2px;
      margin-bottom: 2.4rem;
      transition: color var(--transition);
    }
    .hero-watch::before { content: '\25B6'; font-size: 0.55rem; color: var(--gold); }
    .hero-watch:hover { color: var(--gold-light); }
    /* compressed, de-emphasised metadata */
    .book-meta-row {
      display: flex;
      gap: 2.5rem;
      padding-top: 1.6rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-bottom: 4rem;
    }
    .book-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
    .book-meta-label { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(184,150,46,0.8); }
    .book-meta-val { font-family: var(--font-serif); font-size: 0.95rem; color: rgba(245,240,232,0.85); }
    .book-cover-hero {
      width: 260px;
      box-shadow: -20px 0 80px rgba(0,0,0,0.6), 20px 20px 60px rgba(0,0,0,0.4);
      align-self: flex-end;
    }
    /* small cover shown only on mobile, beside the hook */
    .book-cover-mobile { display: none; }

    /* What the book is about */
    .book-about {
      padding: 8rem var(--page-pad);
      background: var(--white);
    }
    .book-about-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: center;
    }
    .book-about-left h2 {
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      margin-bottom: 1.5rem;
      line-height: 1.2;
    }
    .book-about-left p {
      font-size: 1rem;
      line-height: 1.85;
      color: var(--text-muted);
      margin-bottom: 1.2rem;
    }
    .book-tension {
      margin: 2rem 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .tension-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.9rem 0;
      border-bottom: 1px solid var(--rule);
      font-family: var(--font-serif);
      font-size: 1.05rem;
      font-style: italic;
      color: var(--text-body);
    }
    .tension-item:first-child { border-top: 1px solid var(--rule); }
    .tension-dash { color: var(--gold); font-style: normal; }

    .book-outcomes {
      background: var(--cream-dark);
      padding: 2.5rem;
    }
    .book-outcomes h4 {
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.5rem;
    }
    .book-outcomes ul {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }
    .book-outcomes li {
      font-size: 0.92rem;
      color: var(--text-body);
      display: flex;
      gap: 0.8rem;
      line-height: 1.5;
    }
    .book-outcomes li::before {
      content: '→';
      color: var(--gold);
      flex-shrink: 0;
    }

    /* Video section */
    .book-video {
      padding: 7rem var(--page-pad);
      background: var(--cream);
      text-align: center;
    }
    .book-video-inner {
      max-width: 800px;
      margin: 0 auto;
    }
    .book-video h2 {
      font-size: clamp(1.8rem, 3vw, 2.6rem);
      margin-bottom: 1rem;
    }
    .book-video p {
      color: var(--text-muted);
      margin-bottom: 2.5rem;
      line-height: 1.8;
    }
    .video-frame {
      width: 100%;
      background: var(--ink);
      position: relative;
      padding-bottom: 56.25%;
      overflow: hidden;
    }
    .video-frame video {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      object-fit: cover;
    }

    /* For */
    .book-for {
      padding: 7rem var(--page-pad);
      background: var(--ink);
    }
    .book-for-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
    }
    .book-for h2 {
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      color: var(--cream);
      margin-bottom: 1.5rem;
    }
    .book-for p { color: rgba(245,240,232,0.65); line-height: 1.8; margin-bottom: 1rem; }
    .for-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: rgba(255,255,255,0.08);
    }
    .for-item {
      background: rgba(255,255,255,0.03);
      padding: 1.8rem;
    }
    .for-item h4 {
      font-family: var(--font-serif);
      font-size: 1.1rem;
      color: var(--cream);
      margin-bottom: 0.4rem;
    }
    .for-item p {
      font-size: 0.8rem;
      color: rgba(245,240,232,0.45);
      margin: 0;
      line-height: 1.5;
    }

    /* Order section */
    .book-order {
      padding: 7rem var(--page-pad);
      background: var(--white);
    }
    .book-order-inner {
      max-width: var(--max-w);
      margin: 0 auto;
    }
    .book-order-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1px;
      background: var(--rule);
      margin-top: 3rem;
    }
    .order-card {
      background: var(--cream);
      padding: 3rem 2.5rem;
      position: relative;
    }
    .order-card.preferred { background: var(--white); box-shadow: inset 0 3px 0 var(--gold); }
    .order-badge {
      display: inline-block;
      font-size: 0.58rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--ink);
      background: var(--gold);
      padding: 0.25rem 0.7rem;
      margin-bottom: 1rem;
    }
    .order-card h3 {
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 1rem;
    }
    .order-card p {
      font-size: 0.88rem;
      line-height: 1.8;
      color: var(--text-muted);
      margin-bottom: 2rem;
    }

    /* Chapter CTA */
    .book-chapter {
      padding: 7rem var(--page-pad);
      background: var(--cream-dark);
      text-align: center;
    }
    .book-chapter-inner {
      max-width: 600px;
      margin: 0 auto;
    }
    .book-chapter h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
    .book-chapter p { color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.8; }
    .chapter-form {
      display: flex;
      max-width: 460px;
      margin: 0 auto;
    }
    .chapter-form input {
      flex: 1;
      padding: 1rem 1.4rem;
      border: 1px solid var(--rule);
      border-right: none;
      background: var(--white);
      font-family: var(--font-sans);
      font-size: 0.9rem;
      outline: none;
    }
    .chapter-form input:focus { border-color: var(--gold); }
    .chapter-form button {
      background: var(--ink);
      color: var(--cream);
      border: none;
      padding: 1rem 1.5rem;
      font-family: var(--font-sans);
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      cursor: pointer;
      white-space: nowrap;
      transition: background var(--transition);
    }
    .chapter-form button:hover { background: var(--gold); color: var(--ink); }
    .chapter-note { font-size: 0.72rem; color: var(--warm-gray); margin-top: 1rem; }

    /* hero proof line */
    .book-hero-proof {
      font-size: 0.72rem;
      letter-spacing: 0.04em;
      color: rgba(245,240,232,0.5);
      margin-bottom: 0.5rem;
    }
    .book-hero-proof a { color: rgba(245,240,232,0.72); border-bottom: 1px solid rgba(184,150,46,0.4); transition: color var(--transition); }
    .book-hero-proof a:hover { color: var(--gold-light); }
    .hero-stars { color: var(--gold); letter-spacing: 0.1em; }
    .book-hero-proof strong { color: var(--cream); font-weight: 500; }

    /* ── PROOF BAND (credibility, near the top) ── */
    .proof-band {
      background: var(--ink-soft);
      border-top: 1px solid rgba(184,150,46,0.18);
      padding: 3.2rem var(--page-pad);
    }
    .proof-band-inner {
      max-width: 760px;
      margin: 0 auto;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.3rem;
    }
    .proof-quote {
      font-family: var(--font-serif);
      font-style: italic;
      font-weight: 300;
      font-size: clamp(1.2rem, 2.2vw, 1.6rem);
      line-height: 1.5;
      color: var(--cream);
      max-width: 680px;
    }
    .proof-quote-attr {
      font-size: 0.64rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      margin-top: -0.5rem;
    }
    .proof-pods {
      width: 100%;
      padding-top: 1.6rem;
      margin-top: 0.4rem;
      border-top: 1px solid rgba(255,255,255,0.08);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    .proof-eyebrow {
      font-size: 0.62rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .proof-pod-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
    .proof-pod {
      display: inline-flex;
      align-items: baseline;
      gap: 0.5rem;
      border: 1px solid rgba(255,255,255,0.18);
      padding: 0.7rem 1.2rem;
      font-family: var(--font-serif);
      font-size: 1rem;
      color: var(--cream);
      transition: border-color var(--transition), background var(--transition);
    }
    .proof-pod span { font-size: 0.8rem; font-style: italic; color: rgba(245,240,232,0.55); }
    .proof-pod:hover { border-color: var(--gold); background: rgba(184,150,46,0.08); }

    /* repeat CTA after a content block */
    .about-cta { margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

    /* ══ AUGMENTATION DISCIPLINE ══ */

    /* pre-order badge reuses the launch badge, minus the live pulse */
    .badge-preorder::before { animation: none; background: var(--gold-light); }

    /* countdown chip in the hero meta row */
    .ad-countdown {
      font-family: var(--font-serif);
      font-size: 0.95rem;
      color: var(--gold-light);
    }

    /* in-page switch between the two books */
    .book-switch {
      background: var(--ink-soft);
      border-bottom: 1px solid rgba(184,150,46,0.18);
      padding: 0.95rem var(--page-pad);
    }
    .book-switch .sw-label {
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .book-switch a em {
      font-style: normal;
      font-size: 0.85em;
      letter-spacing: 0.1em;
      color: rgba(245,240,232,0.38);
      margin-left: 0.45rem;
    }
    .book-switch a.on em { color: var(--gold); }
    .book-switch-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.6rem;
      flex-wrap: wrap;
    }
    .book-switch a {
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(245,240,232,0.65);
      transition: color var(--transition);
    }
    .book-switch a:hover, .book-switch a.on { color: var(--gold-light); }
    .book-switch .sw-sep { color: rgba(255,255,255,0.2); }

    /* the four disciplines — the spine of the AD page */
    .ad-four { padding: 7rem var(--page-pad); background: var(--white); }
    .ad-four-inner { max-width: var(--max-w); margin: 0 auto; }
    .ad-four-head { max-width: 640px; margin-bottom: 3.5rem; }
    .ad-four-head h2 { font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1.2; margin-bottom: 1rem; }
    .ad-four-head p { color: var(--text-muted); line-height: 1.85; }
    .ad-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: var(--rule);
    }
    .ad-card { background: var(--cream); padding: 2.6rem 2.4rem; }
    .ad-card-role {
      display: block;
      font-family: var(--font-serif);
      font-size: 1.5rem;
      color: var(--ink);
      margin-bottom: 0.9rem;
    }
    .ad-card-role::after {
      content: '';
      display: block;
      width: 28px; height: 1px;
      background: var(--gold);
      margin-top: 0.9rem;
    }
    .ad-card p { font-size: 0.92rem; line-height: 1.8; color: var(--text-muted); }
    .ad-card p + p { margin-top: 0.9rem; }
    .ad-card .ad-do {
      font-family: var(--font-serif);
      font-style: italic;
      font-size: 1rem;
      color: var(--ink);
    }

    /* vertical (9:16) video player */
    .video-frame-vertical {
      width: 100%;
      max-width: 340px;
      margin: 0 auto;
      background: var(--ink);
      position: relative;
      padding-bottom: 0;
      aspect-ratio: 9 / 16;
      overflow: hidden;
      box-shadow: 0 30px 70px rgba(0,0,0,0.28);
    }
    .video-frame-vertical video {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      object-fit: contain;
      background: var(--ink);
    }

    /* section divider that hands off from one book to the other */
    .book-divider {
      background: var(--ink);
      padding: 5rem var(--page-pad) 0;
      text-align: center;
    }
    .book-divider-inner { max-width: 700px; margin: 0 auto; }
    .book-divider .eyebrow { color: var(--gold); }
    .book-divider h2 {
      font-size: clamp(1.6rem, 2.6vw, 2.2rem);
      color: var(--cream);
      font-weight: 300;
      margin-top: 0.8rem;
    }
    .book-divider p {
      color: rgba(245,240,232,0.6);
      line-height: 1.8;
      margin-top: 1rem;
      font-size: 0.95rem;
    }

    .ad-connect {
      margin-top: 3.5rem;
      padding: 2.4rem 2.6rem;
      background: var(--ink);
      border-left: 3px solid var(--gold);
    }
    .ad-connect p {
      font-family: var(--font-serif);
      font-size: clamp(1.05rem, 1.8vw, 1.35rem);
      font-style: italic;
      font-weight: 300;
      line-height: 1.6;
      color: var(--cream);
      margin: 0;
    }

    .pull-quote-block .pq-turn {
      display: inline-block;
      margin-top: 0.5rem;
      font-size: 0.82em;
      color: rgba(245,240,232,0.62);
    }

    /* advance praise (currently commented out — see markup) */
    .ad-praise { padding: 7rem var(--page-pad); background: var(--cream-dark); }
    .ad-praise-inner { max-width: var(--max-w); margin: 0 auto; }
    .ad-praise h2 { font-size: clamp(1.8rem,3vw,2.6rem); margin: 0.8rem 0 3rem; }
    .praise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
    .praise-card { background: var(--white); padding: 2.6rem 2.4rem; margin: 0; }
    .praise-card blockquote {
      margin: 0 0 1.2rem;
      font-family: var(--font-serif);
      font-size: 1.22rem;
      font-weight: 300;
      line-height: 1.55;
      color: var(--ink);
    }
    .praise-card figcaption {
      font-size: 0.62rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
    }

    /* lines from the book */
    .ad-lines { margin-top: 3.5rem; }
    .ad-lines .eyebrow { display: block; margin-bottom: 1.6rem; }
    .ad-lines-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--rule);
    }
    .ad-lines-grid blockquote cite {
      display: block;
      margin-top: 1.1rem;
      font-style: normal;
      font-family: var(--font-sans);
      font-size: 0.56rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--warm-gray);
    }
    .ad-lines-grid blockquote {
      background: var(--white);
      padding: 2rem 1.9rem;
      margin: 0;
      font-family: var(--font-serif);
      font-size: 1.08rem;
      font-weight: 300;
      line-height: 1.45;
      color: var(--ink);
      border-top: 2px solid var(--gold);
    }

    .ad-connect-attr {
      display: block;
      margin-top: 1.4rem;
      font-family: var(--font-sans);
      font-size: 0.85rem;
      font-style: normal;
      line-height: 1.75;
      color: rgba(245,240,232,0.55);
    }

    /* product details strip */
    .ad-details {
      margin-top: 3rem;
      padding-top: 1.8rem;
      border-top: 1px solid var(--rule);
      display: flex;
      flex-wrap: wrap;
      gap: 2.2rem 3rem;
    }
    .ad-detail { display: flex; flex-direction: column; gap: 0.3rem; }
    .ad-detail-label {
      font-size: 0.58rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--warm-gray);
    }
    .ad-detail-val { font-family: var(--font-serif); font-size: 1rem; color: var(--ink); }

    .divider-proof {
      margin-top: 1.4rem;
      font-size: 0.8rem;
      letter-spacing: 0.06em;
      color: rgba(245,240,232,0.6);
    }
    .divider-proof .stars { color: var(--gold); letter-spacing: 0.1em; }
    .divider-proof a { color: var(--gold-light); border-bottom: 1px solid rgba(184,150,46,0.35); }

    .divider-cover {
      width: 132px;
      margin: 2.6rem auto 0;
      display: block;
      box-shadow: 0 22px 55px rgba(0,0,0,0.55);
    }

    /* two-up order grid for AD (no publisher option yet) */
    .book-order-grid.two-up { grid-template-columns: 1fr 1fr; }

    /* ── STICKY MOBILE BUY BAR ── */
    .sticky-buy { display: none; }

    @media (max-width: 900px) {
      .book-hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: 4.5rem; }
      .book-hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); margin-bottom: 1.2rem; }
      .book-cover-hero { display: none; }
      /* show the cover on mobile, beside the hook, above the fold */
      .book-hero-flex { display: flex; gap: 1.1rem; align-items: flex-start; }
      .book-cover-mobile {
        display: block;
        width: 100px;
        flex-shrink: 0;
        box-shadow: 0 12px 34px rgba(0,0,0,0.55);
      }
      .book-meta-row { gap: 1.6rem; flex-wrap: wrap; padding-bottom: 3rem; }
      /* tighten the gap into the about section so the page doesn't feel like it restarts */
      .book-about { padding-top: 3.5rem; padding-bottom: 4.5rem; }
      .book-about-inner { grid-template-columns: 1fr; gap: 3rem; }
      .book-for-inner { grid-template-columns: 1fr; gap: 3rem; }
      .book-order-grid, .book-order-grid.two-up { grid-template-columns: 1fr; }
      .ad-grid { grid-template-columns: 1fr; }
      .ad-lines-grid { grid-template-columns: 1fr 1fr; }
      .praise-grid { grid-template-columns: 1fr; }
      .ad-four { padding: 4.5rem var(--page-pad); }
      .book-switch-inner { gap: 1rem; }
      .for-grid { grid-template-columns: 1fr; }
      .chapter-form { flex-direction: column; }
      .chapter-form input { border-right: 1px solid var(--rule); border-bottom: none; }

      /* sticky buy bar — two real choices, revealed only after the hero CTA scrolls away */
      .sticky-buy {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 150;
        gap: 0.6rem;
        background: rgba(26,22,18,0.97);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(184,150,46,0.3);
        padding: 0.7rem 0.8rem;
        transform: translateY(110%);
        transition: transform 0.32s ease;
      }
      .sticky-buy.show { transform: translateY(0); }
      .sticky-buy a {
        flex: 1;
        text-align: center;
        font-family: var(--font-sans);
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 0.85rem 0.4rem;
        white-space: nowrap;
      }
      .sticky-buy-btn { background: var(--gold); color: var(--ink); }
      /* the scroll handler toggles [hidden]; make sure nothing re-displays it */
      .sticky-buy a[hidden] { display: none !important; }
      body { padding-bottom: 64px; }
    }
