/* BookMasher product-page brand (7/17/26): Masher Blue CTAs, Deep Navy sections,
   Electric Orange for chips and the money CTA only, Barlow 800 + Inter. Literata is
   used only where the page shows book prose (first lines, the opening scene).
   Layout: one reading column; idea cards are numbered catalog cards. Light only. */
:root {
  --blue: #1A6BFF; --blue-dark: #1257D6; --navy: #0D1F3C; --navy-deep: #0A1830;
  --orange: #FF6B2B; --orange-text: #B4440F; --ink: #111827; --muted: #556074;
  --cloud: #F8FAFC; --tint: #EEF3FB; --line: #D7DEEA; --white: #FFFFFF; --danger: #B42318; --ok: #17803D;
  --display: "Barlow", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --prose: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cloud); color: var(--ink); font: 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
.wrap { max-width: 880px; margin: 0 auto; padding-inline: 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; color: var(--navy); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); margin: 0; }
.eyebrow-orange { color: var(--orange-text); }
.eyebrow-light { color: #9EC0FF; }

.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.logo { height: 36px; width: auto; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--orange); color: var(--white); padding: 5px 10px; border-radius: 999px; }

.hero { padding-block: 44px 24px; display: grid; gap: 12px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); letter-spacing: -.01em; }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0; }

.btn { font: 700 16px/1 var(--body); border-radius: 10px; border: 2px solid transparent; padding: 14px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-ghost[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, .chip:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn-big { padding: 18px 26px; font-size: 18px; }

.desk { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 10px 30px -18px rgba(13, 31, 60, .35); }
.gen-row { display: grid; gap: 8px; }
.gen-inputs { display: flex; gap: 10px; flex-wrap: wrap; }
.gen-inputs input { flex: 1 1 240px; min-width: 0; }
input[type=text], input[type=email] { font: 17px/1.3 var(--body); color: var(--ink); background: var(--cloud); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px var(--body); padding: 7px 12px; border-radius: 999px; background: var(--tint); color: var(--navy); border: 1px solid transparent; cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip:disabled { opacity: .5; cursor: not-allowed; }
.msg { margin: 0; min-height: 1.2em; font-size: 15px; color: var(--muted); }
.msg:empty { min-height: 0; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* The timer panel shown while Claude is working */
.work { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; background: var(--tint); border-radius: 12px; padding: 14px 16px; }
.clock { width: 44px; height: 44px; grid-row: span 2; }
.clock .face { fill: var(--white); stroke: var(--blue); stroke-width: 3; }
.clock .tick { stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.clock .hand { stroke: var(--orange); stroke-width: 3; stroke-linecap: round; transform-origin: 22px 22px; animation: sweep 2s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.work-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.stage { font-weight: 700; color: var(--navy); }
.times { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); }
.times b { color: var(--navy); }
.bar { height: 8px; background: var(--white); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.steps { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
.steps li { padding: 3px 9px; border-radius: 999px; background: var(--white); color: var(--muted); }
.steps li.done { background: var(--navy); color: var(--white); }
.steps li.now { background: var(--orange); color: var(--white); }

.shelf-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 44px 0 6px; }
.shelf-head h2 { font-size: 32px; }
.hint { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ideas.loading { opacity: .5; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; }
.card.kept { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.num { font: 800 44px/1 var(--display); color: var(--blue); padding-top: 2px; }
.num small { display: block; font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.body { min-width: 0; display: grid; gap: 10px; }
.genre { display: inline-block; justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-text); background: #FFF1EA; padding: 3px 9px; border-radius: 6px; }
.card h3 { font-size: clamp(24px, 3.6vw, 30px); }
.logline { font-size: 18px; margin: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; min-width: 0; }
.first { margin: 2px 0 0; padding: 12px 16px; background: var(--tint); border-radius: 10px; font: italic 17px/1.55 var(--prose); color: var(--navy); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.card-actions .btn { padding: 11px 16px; font-size: 15px; }

.kit { margin: 52px 0 56px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 16px; scroll-margin-top: 16px; }
.kit h2 { font-size: clamp(28px, 4.4vw, 38px); }
.kit-lede { margin: 0; max-width: 64ch; color: var(--muted); }
.lead-form { display: grid; gap: 12px; max-width: 560px; }
.kit-for { margin: 0; }
.lead-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.kit-out { display: grid; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.kit-out h3 { font-size: 22px; margin-bottom: 8px; }
.kit-out p { margin: 0 0 10px; max-width: 66ch; }
.kit-out ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cast div { background: var(--tint); border-radius: 12px; padding: 14px; min-width: 0; }
.cast strong { font-family: var(--display); font-size: 20px; color: var(--navy); }
.cast p { margin: 6px 0 0; font-size: 15px; }
.act { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-text); }
.scene p { font: 17px/1.7 var(--prose); }
.kit-actions { display: grid; gap: 10px; background: var(--tint); border-radius: 12px; padding: 18px; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.kit-cta { display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 2px solid var(--orange); border-radius: 12px; padding: 18px; }
.kit-cta p { margin: 0; flex: 1 1 300px; min-width: 0; }

.band { background: var(--navy); color: #D5DFF0; }
.band-in { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 48px; }
.band-in > div { flex: 1 1 380px; min-width: 0; display: grid; gap: 10px; }
.band h2 { color: var(--white); font-size: clamp(30px, 4.6vw, 44px); }
.band p { margin: 0; max-width: 54ch; }
.foot { background: #000; color: #9AA6BC; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 22px; }
.foot p { margin: 0; }
.foot a { color: #C9D4E8; }

@media (max-width: 560px) {
  .card { grid-template-columns: 1fr; }
  .num { font-size: 32px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-top: 6px; }
  .actions-row .btn, .gen-inputs .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .clock .hand { animation: none; }
  .bar span { transition: none; }
}
