:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5c6964;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #dcd8cb;
  --soft: #efeadf;
  --brand: #1f6f63;
  --brand-dark: #134a43;
  --blue: #315c91;
  --gold: #a77b32;
  --dark: #111816;
  --shadow: 0 24px 70px rgba(26, 33, 29, .14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .2em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 245, .92);
  border-bottom: 1px solid rgba(220, 216, 203, .8);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(17, 24, 22, .22);
}

.nav-links,
.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.button,
.nav-links a.button:hover {
  color: #fff;
}

.nav-menu > a { color: var(--muted); text-decoration: none; }
.nav-menu > a:hover,
.nav-menu > a[aria-current="page"] { color: var(--ink); }
/* An email is unbounded user data in a fixed-width bar — clip it rather than
   let it push the CTA off the row. Full address stays in the title tooltip. */
.nav-acct { max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .nav-acct { max-width: none; } }
/* Keep the CTA text white: the .nav-menu > a rule above (0,1,1) otherwise
   outranks the base .button rule (0,1,0) and paints it gray. */
.nav-menu a.button,
.nav-menu a.button:hover,
.nav-menu a.button[aria-current="page"] { color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-icon { display: grid; gap: 4px; width: 19px; }
.nav-toggle-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child { transform: translateY(-6px) rotate(-45deg); }

.nav-tools { position: relative; }
.nav-tools summary { padding: 10px 2px; color: var(--muted); cursor: pointer; list-style: none; font-weight: 700; }
.nav-tools summary::-webkit-details-marker { display: none; }
.nav-tools summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 2px 3px 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.nav-tools[open] summary,
.nav-tools summary:hover { color: var(--ink); }
.nav-dropdown { position: absolute; top: calc(100% + 7px); right: 0; width: 235px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 16px 45px rgba(17,24,22,.16); }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 7px; color: var(--muted); text-decoration: none; }
.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] { color: var(--ink); background: var(--soft); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(31, 111, 99, .22);
}

.button:hover { background: var(--brand-dark); color: #fff; }

.button.secondary {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,24,22,.96) 0%, rgba(17,24,22,.82) 38%, rgba(17,24,22,.28) 68%, rgba(17,24,22,.08) 100%),
    linear-gradient(180deg, rgba(17,24,22,.08), rgba(17,24,22,.62));
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  min-height: clamp(620px, 86vh, 780px);
  margin: 0 auto;
  padding: 86px 0 64px;
  display: grid;
  align-content: center;
}

.hero-copy { max-width: 690px; }

.eyebrow {
  margin: 0 0 14px;
  color: #d8c18f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  /* Body headings, not billboards. The old clamp(44px, 7vw, 78px) was a hero
     size applied everywhere, so a page title like "BookPublish Concierge" came
     in at 78px over its own form. The hero sections keep the display size
     below, where a big H1 is the design rather than an accident. */
  font-size: clamp(28px, 3.4vw, 40px);
}

.hero h1,
.mini-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
}

h2 {
  margin: 0 0 18px;
  /* Below the body h1 (40px max), or a section heading outranks the page title.
     Marketing section headings keep the old display size via .section h2. */
  font-size: clamp(22px, 2.6vw, 32px);
}

/* The landing pages set their section headings as display type against a lot of
   white space; that is the design there, and they sit under a hero h1 (58px),
   so the hierarchy still reads. */
.section h2,
.hero h2,
.mini-hero h2 {
  font-size: clamp(28px, 3.8vw, 44px);
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.lead {
  margin: 20px 0 0;
  max-width: 710px;
  font-size: clamp(18px, 2vw, 23px);
  color: rgba(255,255,255,.86);
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.microcopy {
  margin: 12px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

main { overflow: hidden; }

.section {
  padding: 84px 0;
  border-top: 1px solid rgba(220, 216, 203, .75);
}

.section.dark {
  color: #f5f2e9;
  background: var(--dark);
  border: 0;
}

.section.soft { background: var(--soft); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow { max-width: 780px; }

.section p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.section.dark p { color: rgba(245,242,233,.74); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.card p { font-size: 16px; }

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tool-card .status {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e2f1ed;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-card .status.soon {
  color: #684c17;
  background: #f4e6c4;
}

.tool-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.proof {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.proof-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.proof-row:first-child { border-top: 0; }
.proof-row strong { color: var(--ink); }
.proof-row span { color: var(--muted); }

.list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 28px;
  color: var(--muted);
  font-size: 17px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--gold);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 54px;
  margin: 0 0 26px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
}

.faq p {
  max-width: 820px;
  margin: 12px 0 0;
}

.cta-band {
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #1c3456);
}

.cta-band p { color: rgba(255,255,255,.78); }

.site-footer {
  padding: 36px 0;
  color: #c7ccc7;
  background: var(--dark);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-inner a { color: #e5dcc5; }

.mini-hero {
  padding: 82px 0 70px;
  color: #fff;
  /* Same fade-to-bright treatment as the index .hero — the veil clears toward
     the right so the photo shows through, instead of a flat heavy dim. */
  background:
    linear-gradient(90deg, rgba(17,24,22,.96) 0%, rgba(17,24,22,.82) 38%, rgba(17,24,22,.28) 68%, rgba(17,24,22,.08) 100%),
    linear-gradient(180deg, rgba(17,24,22,.08), rgba(17,24,22,.62)),
    url("author-tools-hero-cleanbook.png") center / cover;
}

.mini-hero .wrap { max-width: 1120px; }
.mini-hero h1 { max-width: 850px; }
.mini-hero .lead { max-width: 790px; }

.wizard-shell {
  padding: 44px 0 84px;
  background: var(--paper);
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.wizard-form {
  display: grid;
  gap: 18px;
}

.field-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.field-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.field-head label,
.field-head legend,
.field-label {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.optional-tag {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #684c17;
  background: #f4e6c4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.field-card input,
.field-card textarea,
.field-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfc9ba;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.field-card textarea {
  min-height: 150px;
  resize: vertical;
}

/* One line of plain-English reasoning UNDER a field whose value we suggested
   (the genre-driven trim size). Beats `.field-card p` on specificity so the
   spacing reads as attached to the control above it, not to the next one. */
.field-card .field-why {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: block;
  min-height: 54px;
  border: 1px solid #cfc9ba;
  border-radius: 8px;
  padding: 13px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-align: center;
}

.choice input:checked + span {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 99, .16);
}

.file-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.wizard-aside {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--dark);
  color: #f5f2e9;
}

.wizard-aside h2 {
  margin-bottom: 12px;
  font-size: 25px;
}

.wizard-aside p,
.wizard-aside li {
  color: rgba(245,242,233,.76);
  font-size: 15px;
}

.wizard-aside ul {
  margin: 14px 0 0;
  padding-left: 19px;
}

.wizard-aside ol.next-steps {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.wizard-aside ol.next-steps li { line-height: 1.5; }
.wizard-aside ol.next-steps strong,
.wizard-aside .next-note strong { color: #f5f2e9; }

.wizard-aside .next-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(245,242,233,.16);
}

.wizard-aside .next-note a {
  color: #cfe8dd;
  text-decoration: underline;
}

.wizard-fineprint {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #7a746a;
}

.wizard-error {
  display: none;
  margin-top: 16px;
  color: #7f2118;
  background: #f8ded9;
  border: 1px solid #efb6ae;
  border-radius: 8px;
  padding: 12px;
  font-weight: 700;
}

.wizard-error.show { display: block; }

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    padding: 13px 0;
    flex-direction: column;
  }

  .nav-links { gap: 13px; flex-wrap: wrap; }
  .nav-links .button { min-height: 38px; padding: 0 12px; }
  .hero::after { background: linear-gradient(90deg, rgba(17,24,22,.94), rgba(17,24,22,.72)); }
  .mini-hero { background:
    linear-gradient(90deg, rgba(17,24,22,.94), rgba(17,24,22,.72)),
    url("author-tools-hero-cleanbook.png") center / cover; }
  .hero-inner { min-height: 650px; padding-top: 72px; }
  .grid, .grid.two, .split, .wizard-layout { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .proof-row { grid-template-columns: 1fr; gap: 4px; }
  .wizard-aside { position: static; }
  .choice-grid, .field-grid, .field-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Phone header: a single row with the hamburger top-left, brand beside it;
     the menu drops full-width below when opened. */
  .nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px;
    gap: 12px;
    padding: 8px 0;
  }
  .nav-toggle { display: inline-flex; order: -1; }
  .brand { order: 0; }

  .nav-menu { order: 3; display: none; flex: 1 0 100%; padding: 6px 0 14px; }
  .nav-menu.is-open { display: grid; gap: 4px; }
  .nav-menu > a:not(.button) { display: block; padding: 11px 12px; border-radius: 7px; }
  .nav-menu > .button { margin-top: 8px; }

  /* Open straight to flat lists of tools — the group summaries become static
     captions (Publishing / Marketing) instead of tap-through disclosures. */
  .nav-tools { margin: 0; }
  .nav-tools > summary {
    display: block; pointer-events: none; padding: 12px 12px 3px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
  }
  .nav-tools > summary::after { display: none; }
  .nav-dropdown {
    display: block; position: static; width: auto; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  .nav-dropdown a { display: block; padding: 11px 12px; border-radius: 7px; }
}

@media (max-width: 540px) {
  .nav-links a:not(.button) { display: none; }
  .button { width: 100%; }
  .hero-actions, .actions { align-items: stretch; flex-direction: column; }
  .card { padding: 20px; }
}

/* ---- pricing block (includes/pricing.php) --------------------------------
   Reuses .card/.tool-card/.grid.two for structure; these are only the parts a
   price block needs that a tool card does not. */
.price-card .price-figure {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.price-card .price-sub {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-card .list { margin-bottom: 22px; }

/* The bundle card is the recommendation, so it is allowed to say so quietly —
   a brand edge rather than a different color, which would fight the page. */
.price-card.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.price-foot {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 66ch;
}

/* The à la carte / free badge. Same pill as .status so the two price cards read
   as a pair, but neutral — "Best value" is the recommendation and stops looking
   like one if the card beside it wears the same brand green. */
.tool-card .status.plain {
  color: var(--muted);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* A note set apart from the pitch — the honest-limitation kind, like "Deterrence,
   not DRM" on the ARC page. It sits inside a band rather than replacing one, so
   it needs its own edge; the brand rule marks it as an aside rather than another
   thing being sold. The heading steps down because .section h2 is display size
   and would overpower a box this small. */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 26px 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section .callout h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 10px;
}

.callout p:last-child { margin-bottom: 0; }
