/* BookLens. The palette is the product's own verdict scale: green = write it,
   amber = crowded, red = don't. Deep indigo ground, Fraunces for display,
   Atkinson Hyperlegible (made for low-vision readers) for everything read at length. */
:root {
  --ink: #141b34;
  --ink-2: #1e2850;
  --ink-3: #2b3766;
  --paper: #f2f5fb;
  --white: #ffffff;
  --text: #182033;
  --muted: #55607a;
  --muted-ink: #a9b4d4;
  --go: #15a05c;
  --go-dark: #0d7544;
  --careful: #d99400;
  --stop: #cf4030;
  --mark: #ffe463;
  --focus: #7fb2ff;
  --base: 20px;
  --measure: 36em;
}
:root[data-big="1"] { --base: 25px; }

* { box-sizing: border-box; }
html { font-size: var(--base); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, .display {
  font-family: Fraunces, Georgia, serif;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0 0 0.9em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.measure { max-width: var(--measure); }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }

/* ---------- bar ---------- */
.bar { background: var(--ink); color: var(--white); }
.bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: 1.25rem; color: var(--white); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.bar nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tool {
  font: inherit; font-size: 0.8rem; font-weight: 700;
  color: var(--white); background: transparent;
  border: 2px solid var(--ink-3); border-radius: 999px;
  padding: 7px 17px; cursor: pointer;
}
.tool:hover { border-color: var(--muted-ink); }
.tool[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.1rem); margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--mark); }
.hero-lede { font-size: 1.1rem; color: #dde3f4; max-width: 24em; margin-bottom: 30px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  background: var(--go); color: var(--white);
  border: 2px solid var(--go); border-radius: 8px; padding: 15px 28px;
}
.btn:hover { background: var(--go-dark); border-color: var(--go-dark); }
.btn.line { background: transparent; color: var(--white); border-color: var(--muted-ink); }
.btn.line:hover { background: rgba(255, 255, 255, 0.08); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.ink:hover { background: var(--ink-2); border-color: var(--ink-2); }

.spots { font-size: 0.95rem; color: #dde3f4; }
.spots b { color: var(--mark); }

/* The verdict: BookLens's own five answers, with this search's answer marked. */
.verdict { background: var(--ink-2); border-radius: 14px; padding: 28px 30px 32px; }
.verdict .q { font-size: 0.92rem; color: #dde3f4; margin-bottom: 20px; }
.verdict .q b { color: var(--white); }
.scale { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.scale li {
  display: grid; grid-template-columns: 7.6em 1fr; gap: 14px; align-items: baseline;
  padding: 11px 0 11px 16px; border-left: 4px solid var(--ink-3);
  color: var(--muted-ink);
}
.scale li span { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.05rem; }
.scale li small { font-size: 0.82rem; line-height: 1.4; }
.scale li.here {
  background: rgba(21, 160, 92, 0.16); border-left-color: var(--go);
  border-radius: 0 8px 8px 0; color: var(--white);
}
.scale li.here span { color: #49e295; font-weight: 900; font-size: 1.3rem; }
.scale li:nth-child(3) { border-left-color: #3a4472; }
.scale li:nth-child(4), .scale li:nth-child(5) { border-left-color: #46365a; }

/* the real screenshot, bridging ink and paper */
.proof { background: linear-gradient(to bottom, var(--ink) 55%, var(--paper) 55%); padding-top: 60px; }
.proof figure { margin: 0 auto; max-width: 900px; }
.proof img { border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65); }
.proof figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.ink { background: var(--ink); color: var(--white); }
section h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 1.05rem; }
section.ink .sub { color: #dde3f4; }

/* the two halves of the job: research, then repair */
.halves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19em, 100%), 1fr)); gap: 46px; margin-top: 44px; }
.half { border-top: 7px solid var(--go); padding-top: 22px; }
.half.after { border-top-color: var(--careful); }
.half-h { font-size: 1.45rem; margin-bottom: 4px; }
.half-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.asks { list-style: none; padding: 0; margin: 0; counter-reset: ask; }
.asks li {
  counter-increment: ask; position: relative;
  padding: 0 0 20px 2.4em; color: var(--muted);
}
.asks li::before {
  content: counter(ask); position: absolute; left: 0; top: 0.05em;
  width: 1.65em; height: 1.65em; border-radius: 50%;
  display: grid; place-items: center;
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 0.82rem;
  color: var(--go-dark); background: rgba(21, 160, 92, 0.14);
}
.half.after .asks li::before { color: #8a5c00; background: rgba(217, 148, 0, 0.16); }
.asks li b { color: var(--text); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: center; margin-top: 56px; }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: 1.5rem; margin-bottom: 12px; }
.feature img { border-radius: 8px; box-shadow: 0 16px 34px -22px rgba(20, 27, 52, 0.55); }

.rest { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17em, 100%), 1fr)); gap: 34px 46px; }
.rest h3 { font-size: 1.1rem; margin-bottom: 6px; }
.rest p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- beta ---------- */
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 36px; align-items: start; }
.counter { font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: clamp(4rem, 11vw, 7rem); line-height: 1; color: var(--go); margin: 0 0 10px; }
.deal { list-style: none; padding: 0; margin: 0; }
.deal li { padding: 14px 0; border-top: 1px solid #d6ddea; }
.deal li:first-child { border-top: 0; padding-top: 0; }
.deal b { display: block; }
.deal span { color: var(--muted); }

mark { background: var(--mark); color: var(--text); padding: 0 0.15em; }

.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 9px; }

footer { background: var(--ink); color: var(--muted-ink); padding: 40px 0 56px; font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 36px; }
footer a { color: var(--white); }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero .wrap, .feature, .beta-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature.flip > :first-child { order: 0; }
  .proof { background: linear-gradient(to bottom, var(--ink) 40%, var(--paper) 40%); padding-top: 40px; }
  section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  .verdict { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
