/* public/css/playbook.css
   Owns: all styles for /playbook and /playbook/thank-you pages.
   Does NOT own: global theme (theme.css), other vertical pages. */

/* ── Reset & tokens ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:      #C9A96E;
  --gold-dark: #A8853A;
  --navy:      #1A1A2E;
  --cream:     #FFFEF9;
  --warm-bg:   #F5EDD8;
  --muted:     #2C2C3E;
  --border:    #E8DCC4;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --radius:    10px;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ────────────────────────────────────────────────────────── */
.pb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pb-nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.pb-nav-cta {
  font-size: var(--text-sm);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: color 0.2s;
}
.pb-nav-cta:hover { color: var(--gold-dark); }

/* ── Shared section inner ──────────────────────────────────────── */
.pb-section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Eyebrow labels ─────────────────────────────────────────────── */
.pb-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.pb-hero {
  background: var(--cream);
  padding: 72px 40px 80px;
}

.pb-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pb-hero-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.pb-hero-sub {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 520px;
}

.pb-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.pb-meta-item {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Email gate form ──────────────────────────────────────────── */
.pb-gate-form {
  max-width: 500px;
}

.pb-form-row {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.06);
}

.pb-email-input {
  flex: 1;
  padding: 16px 20px;
  font-size: var(--text-base);
  font-family: 'Jost', sans-serif;
  color: var(--navy);
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}
.pb-email-input::placeholder { color: #aaa; }

.pb-submit-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Jost', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.pb-submit-btn:hover { background: var(--gold-dark); }
.pb-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.pb-form-note {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}

.pb-form-status {
  font-size: var(--text-sm);
  color: #c0392b;
  margin-top: 8px;
  min-height: 18px;
}

/* ── Hero visual ──────────────────────────────────────────────── */
.pb-hero-visual {
  position: relative;
}

.pb-hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 16px 48px rgba(26, 26, 46, 0.14);
}

.pb-hero-badge {
  position: absolute;
  bottom: -18px;
  right: 24px;
  background: var(--navy);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.2);
}

.pb-badge-text {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

.pb-badge-sub {
  display: block;
  font-size: 11px;
  color: rgba(255, 254, 249, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Table of Contents ────────────────────────────────────────── */
.pb-toc {
  background: var(--warm-bg);
  padding: 80px 40px;
}

.pb-toc-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.pb-toc-intro {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
}

.pb-toc-table {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 48px;
}

.pb-toc-header {
  display: grid;
  grid-template-columns: 48px 240px 1fr;
  gap: 0;
  background: var(--navy);
  padding: 14px 24px;
}

.pb-toc-col-num,
.pb-toc-col-chapter,
.pb-toc-col-desc {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.pb-toc-row {
  display: grid;
  grid-template-columns: 48px 240px 1fr;
  gap: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pb-toc-row:last-child { border-bottom: none; }
.pb-toc-row:hover { background: #faf7f0; }

.pb-toc-num {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.pb-toc-chapter {
  font-size: var(--text-base);
  color: var(--navy);
  font-weight: 500;
  padding-right: 20px;
}

.pb-toc-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Inline gate form below TOC */
.pb-toc-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pb-toc-cta-text {
  font-size: var(--text-md);
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}

.pb-gate-form--inline {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

/* ── Social proof bar ─────────────────────────────────────────── */
.pb-proof {
  background: var(--navy);
  padding: 64px 40px;
}

.pb-proof-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 32px;
}

.pb-proof-stat { text-align: center; padding: 0 24px; }

.pb-proof-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.pb-proof-label {
  font-size: 13px;
  color: rgba(255, 254, 249, 0.7);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

.pb-proof-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 254, 249, 0.15);
}

.pb-sup { font-size: 9px; vertical-align: super; }
.pb-sup-link { color: var(--gold); text-decoration: none; }

.pb-proof-footnotes {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 254, 249, 0.1);
}

.pb-footnote {
  font-size: 11px;
  color: rgba(255, 254, 249, 0.4);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.pb-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  text-align: center;
}

.pb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pb-footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
}

.pb-footer-sep { color: var(--border); }

.pb-footer-link {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
}
.pb-footer-link:hover { color: var(--gold); }

.pb-footer-address {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.05em;
}

/* ── Thank-you page ──────────────────────────────────────────── */
.pb-thankyou {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.pb-thankyou-inner {
  max-width: 560px;
  text-align: center;
}

.pb-thankyou-icon {
  margin-bottom: 24px;
}

.pb-thankyou-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
}

.pb-thankyou-sub {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.pb-thankyou-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.pb-thankyou-followup {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.pb-thankyou-cta {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 32px;
}

.pb-thankyou-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pb-thankyou-link {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
}
.pb-thankyou-link:hover { color: var(--gold); }

.pb-thankyou-sep { color: var(--border); }

/* ── Cross-site inline playbook CTA block ─────────────────────── */
/* Used on vertical pages and compare page */
.pb-inline-cta {
  background: var(--warm-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.pb-inline-cta-text h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.pb-inline-cta-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
}

.pb-inline-cta-btn {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gold);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  font-family: 'Jost', sans-serif;
}
.pb-inline-cta-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pb-nav { padding: 16px 24px; }

  .pb-hero {
    padding: 48px 24px 64px;
  }

  .pb-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pb-hero-visual { order: -1; }
  .pb-hero-badge { display: none; }

  .pb-toc { padding: 56px 24px; }
  .pb-proof { padding: 56px 24px; }

  .pb-proof-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pb-proof-divider { width: 40px; height: 1px; margin: 0 auto; }

  .pb-toc-table { overflow-x: auto; }
  .pb-toc-header,
  .pb-toc-row {
    grid-template-columns: 40px 160px 1fr;
    min-width: 600px;
  }

  .pb-toc-cta { flex-direction: column; align-items: flex-start; }

  .pb-inline-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .pb-form-row { flex-direction: column; border-radius: var(--radius); }
  .pb-email-input { border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
  .pb-submit-btn { border-radius: 0 0 var(--radius) var(--radius); text-align: center; }
}
