:root {
  --paper: #f6f3ee;
  --surface: #ffffff;
  --ink: #1c1812;
  --muted: #625b51;
  --line: #ddd7ce;
  --rust: #ad5517;
  --rust-dark: #7f390c;
  --forest: #245b49;
  --gold: #c8922f;
  --shadow: 0 16px 44px rgba(28, 24, 18, 0.12);
  --ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.pl-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.pl-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.pl-brand { font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.pl-brand span { color: var(--rust); }
.pl-nav-link { color: var(--muted); font-size: 0.86rem; font-weight: 700; text-decoration: none; }

.pl-hero {
  min-height: calc(100vh - 64px);
  max-height: 780px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 64px;
  align-items: center;
  padding: 58px 0 72px;
}
.pl-kicker {
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.pl-hero h1 {
  max-width: 760px;
  margin: 0;
  font: 700 clamp(2.55rem, 5.5vw, 4.85rem)/0.98 var(--serif);
  letter-spacing: 0;
}
.pl-hero h1 em { color: var(--rust); font-style: italic; }
.pl-lead { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.pl-qualifier {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: #4d473e;
  font-size: 0.9rem;
}
.pl-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.pl-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 6px;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(173, 85, 23, 0.22);
}
.pl-button:hover { background: var(--rust-dark); }
.pl-price { color: var(--muted); font-size: 0.82rem; }
.pl-price strong { color: var(--ink); }
.pl-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 0.77rem; }
.pl-trust strong { color: var(--ink); display: block; font-size: 0.9rem; }

.pl-visual { position: relative; min-height: 520px; }
.pl-cover {
  position: absolute;
  width: 47%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: #d8d2c8;
}
.pl-cover img { width: 100%; aspect-ratio: 0.66; object-fit: cover; }
.pl-cover:nth-child(1) { left: 0; top: 52px; transform: rotate(-5deg); }
.pl-cover:nth-child(2) { left: 29%; top: 0; z-index: 2; }
.pl-cover:nth-child(3) { right: 0; top: 76px; transform: rotate(5deg); }
.pl-output-strip {
  position: absolute;
  left: 8%; right: 5%; bottom: 22px; z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(28,24,18,0.14);
}
.pl-output-strip div { padding: 13px 10px; text-align: center; color: var(--muted); font-size: 0.68rem; border-right: 1px solid var(--line); }
.pl-output-strip div:last-child { border-right: 0; }
.pl-output-strip strong { display: block; color: var(--ink); font-size: 0.76rem; }

.pl-band { border-top: 1px solid var(--line); background: var(--surface); }
.pl-band.alt { background: #ece8e1; }
.pl-section { padding: 72px 0; }
.pl-section-head { max-width: 720px; margin-bottom: 36px; }
.pl-section h2 { margin: 0; font: 700 clamp(2rem, 3.5vw, 3.05rem)/1.08 var(--serif); }
.pl-section-head p { color: var(--muted); margin: 14px 0 0; }
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pl-item { border-top: 3px solid var(--forest); padding: 20px 2px 0; }
.pl-item h3 { margin: 0 0 8px; font-size: 1rem; }
.pl-item p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.pl-proof { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: center; }
.pl-proof-image { border-radius: 6px; border: 1px solid #cfc8bd; box-shadow: var(--shadow); }
.pl-proof-copy blockquote { margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--rust); font: italic 500 1.08rem/1.6 var(--serif); }
.pl-proof-copy small { display: block; margin-top: 12px; color: var(--muted); }
.pl-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pl-fit section { border: 1px solid var(--line); border-radius: 6px; padding: 26px; background: var(--surface); }
.pl-fit h3 { margin: 0 0 14px; }
.pl-fit ul { margin: 0; padding-left: 20px; color: var(--muted); }
.pl-fit li + li { margin-top: 9px; }
.pl-final { text-align: center; padding: 68px 0 76px; }
.pl-final h2 { margin: 0 auto; max-width: 760px; font: 700 clamp(2rem, 4vw, 3.35rem)/1.08 var(--serif); }
.pl-final p { color: var(--muted); margin: 15px auto 26px; max-width: 620px; }
.pl-disclaimer { max-width: 760px; margin: 22px auto 0; color: #7a7268; font-size: 0.7rem; }

/* --- Hero idea-capture form: the primary conversion action. Lets the visitor
   commit their book idea on the landing page; it is passed straight into the
   generator via ?description= so the funnel starts warm. --- */
.pl-startform { margin-top: 30px; max-width: 560px; }
.pl-startform textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(28,24,18,0.05);
}
.pl-startform textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(173,85,23,0.14); }
.pl-startrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.pl-startrow .pl-button { min-height: 50px; padding: 0 28px; font-size: 0.95rem; }
.pl-startnote { color: var(--muted); font-size: 0.8rem; }
.pl-startnote strong { color: var(--ink); }

/* --- 3-step "how it works" --- */
.pl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: plstep; }
.pl-step { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px 22px; background: var(--surface); }
.pl-step::before {
  counter-increment: plstep;
  content: counter(plstep);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--forest); color: #fff;
  font: 800 0.95rem/1 var(--ui);
}
.pl-step h3 { margin: 0 0 7px; font-size: 1.02rem; }
.pl-step p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* --- Proof stat band --- */
.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.pl-stat strong { display: block; font: 700 clamp(1.9rem, 3vw, 2.6rem)/1 var(--serif); color: var(--rust); }
.pl-stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.82rem; }

/* --- FAQ / objection handling --- */
.pl-faq { max-width: 760px; margin: 0 auto; }
.pl-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.pl-faq details:last-child { border-bottom: 1px solid var(--line); }
.pl-faq summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: "+"; color: var(--rust); font-weight: 800; }
.pl-faq details[open] summary::after { content: "\2013"; }
.pl-faq p { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; }

/* --- Small trust badges row --- */
.pl-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pl-badge { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.76rem; font-weight: 700; color: #4d473e; background: var(--surface); }

/* --- Rating + live proof row (hero) --- */
.pl-rating { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 0.84rem; }
.pl-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; line-height: 1; }
.pl-rating strong { color: var(--ink); }
.pl-rating .pl-dot { color: var(--line); }
.pl-heroproof { margin: 12px 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink); font-weight: 600; font-style: italic; max-width: 52ch; }
.pl-heroproof span { color: var(--muted); font-weight: 500; font-style: normal; }

/* --- Testimonials (real authors, ICP-ordered) --- */
.pl-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pl-testi { border: 1px solid var(--line); border-radius: 8px; padding: 24px 22px; background: var(--surface); display: flex; flex-direction: column; }
.pl-testi .pl-stars { font-size: 0.82rem; margin-bottom: 12px; }
.pl-testi-body { font: italic 500 1.02rem/1.55 var(--serif); color: var(--ink); margin: 0 0 18px; }
.pl-testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.pl-testi-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.pl-testi-name { font-weight: 700; font-size: 0.9rem; }
.pl-testi-role { color: var(--muted); font-size: 0.76rem; }
.pl-testi-role a { color: var(--rust); text-decoration: none; white-space: nowrap; }
.pl-testi-role a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .pl-shell { width: min(100% - 28px, 680px); }
  .pl-nav { height: 58px; }
  .pl-hero { min-height: auto; max-height: none; grid-template-columns: 1fr; gap: 34px; padding: 42px 0 52px; }
  .pl-hero h1 { font-size: clamp(2.45rem, 12vw, 3.55rem); }
  .pl-visual { min-height: 400px; }
  .pl-output-strip { left: 0; right: 0; }
  .pl-grid, .pl-proof, .pl-fit, .pl-steps, .pl-testi-grid { grid-template-columns: 1fr; }
  .pl-stats { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .pl-section { padding: 54px 0; }
}

@media (max-width: 480px) {
  .pl-nav-link { display: none; }
  .pl-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .pl-button { width: 100%; }
  .pl-price { text-align: center; }
  .pl-trust { display: grid; grid-template-columns: 1fr 1fr; }
  .pl-visual { min-height: 330px; }
  .pl-cover:nth-child(1) { top: 38px; }
  .pl-cover:nth-child(3) { top: 55px; }
  .pl-output-strip div { padding: 10px 3px; font-size: 0.58rem; }
  .pl-output-strip strong { font-size: 0.65rem; }
  .pl-startrow .pl-button { width: 100%; }
}
