/* Theo Harrow — site v2.0 */
:root {
  --cream: #faf6ee;
  --cream-deep: #f0e8d8;
  --sand: #e6d7bf;
  --stone: #5c5a56;
  --ink: #2a2926;
  --sage: #7a8f7a;
  --sage-deep: #5f735f;
  --dusty: #6b7f94;
  --coral: #d4654a;
  --coral-soft: #e8a090;
  --pine: #14463c;
  --copper: #d6702a;
  --white: #fffcf7;
  --shadow: 0 18px 40px rgba(42, 41, 38, 0.08);
  --radius: 18px;
  --max: 1120px;
  --accent: var(--coral);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #f3ebe0 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #e8efe8 0%, transparent 55%),
    var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dusty); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - 1.6rem)); margin: 0 auto; }
@media (min-width: 700px) {
  .wrap { width: min(var(--max), calc(100% - 2.4rem)); }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 999px;
  z-index: 40; text-decoration: none;
}
.skip:focus { top: 0.8rem; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(250, 246, 238, 0.9);
  border-bottom: 1px solid rgba(92, 90, 86, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 0; position: relative;
}
.brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.brand:hover { color: var(--coral); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 8px; cursor: pointer;
}
.nav-burger .bars,
.nav-burger .bars::before,
.nav-burger .bars::after {
  display: block; width: 1.2rem; height: 2px;
  background: var(--ink); border-radius: 1px; position: relative;
}
.nav-burger .bars::before,
.nav-burger .bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-burger .bars::before { top: -6px; }
.nav-burger .bars::after { top: 6px; }

.nav {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100vw - 1.6rem));
  background: rgba(250, 246, 238, 0.98);
  border: 1px solid rgba(92, 90, 86, 0.1);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
}
.nav-toggle:checked ~ .nav { display: flex; }
.nav a {
  color: var(--stone); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.7rem 0.85rem; border-radius: 10px;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink); background: rgba(122, 143, 122, 0.12);
}

@media (min-width: 1080px) {
  .nav-burger { display: none; }
  .nav {
    display: flex; flex-direction: row; align-items: center;
    position: static; transform: none; width: auto;
    background: transparent; border: 0; box-shadow: none;
    padding: 0; gap: 0.2rem;
  }
  .nav a { padding: 0.4rem 0.45rem; font-size: 0.88rem; }
}

/* Headings */
h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: rgba(122, 143, 122, 0.14);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.theme-stay .eyebrow { color: var(--pine); background: rgba(20, 70, 60, 0.1); }
.theme-equity .eyebrow { color: #9a4a38; background: rgba(212, 101, 74, 0.12); }
.theme-skeleton .eyebrow { color: #3d5870; background: rgba(107, 127, 148, 0.16); }

.subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--stone);
  margin: 0 0 1rem;
  max-width: 42ch;
}
.hook { color: var(--stone); max-width: 46ch; margin: 0 0 1.4rem; }
.hook strong { color: var(--ink); font-weight: 600; }
.tagline { color: var(--ink); font-weight: 500; margin: 0 0 0.7rem; }

.meta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 1.2rem; }
.chip {
  font-size: 0.82rem; font-weight: 500;
  color: var(--stone);
  background: var(--cream-deep);
  border: 1px solid rgba(92, 90, 86, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(212, 101, 74, 0.28);
}
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--dusty);
  border: 1px solid rgba(107, 127, 148, 0.35);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.price-note, .edu-note {
  font-size: 0.88rem; color: var(--stone); margin: 0.7rem 0 0;
  max-width: 46ch;
}
.edu-note strong { color: var(--ink); font-weight: 600; }

/* Home intro */
.intro {
  padding: 2.4rem 0 1.2rem;
  text-align: center;
}
.intro h1 { margin-bottom: 0.8rem; }
.intro .lede {
  margin: 0 auto 0.4rem;
  max-width: 44ch;
  color: var(--stone);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}
@media (min-width: 800px) {
  .intro { padding: 3.4rem 0 1.6rem; }
}

/* Book cards (home) */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 0 0 2.5rem;
}
.book-card {
  background: var(--white);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: 24px;
  padding: 1.2rem 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.book-card .cover-link {
  display: block;
  max-width: 280px;
  margin: 0 auto 1.2rem;
  text-decoration: none;
}
.book-card .cover-frame {
  background: var(--cream);
  border-radius: 16px;
  padding: 0.7rem;
  border: 1px solid rgba(92, 90, 86, 0.06);
  box-shadow: 0 10px 24px rgba(42, 41, 38, 0.08);
}
.book-card .cover-frame img { border-radius: 10px; width: 100%; }
.book-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.book-card h2 a { color: inherit; text-decoration: none; }
.book-card h2 a:hover { color: var(--coral); }
.book-card .subtitle { max-width: none; }
.book-card .hook { flex: 1; max-width: none; }
.book-card .cta-row { margin-top: 0.2rem; }

@media (min-width: 860px) {
  .book-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; padding-bottom: 3.2rem; }
  .book-card { padding: 1.5rem 1.5rem 1.7rem; }
  .book-card .cover-link { max-width: 300px; }
  .book-card.theme-equity .cover-frame { transform: rotate(-1.1deg); }
  .book-card.theme-stay .cover-frame { transform: rotate(1.1deg); }
  .book-card.theme-skeleton .cover-frame { transform: rotate(-0.6deg); }
}
@media (min-width: 1100px) {
  .book-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Book page hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: center;
  padding: 2rem 0 2.4rem;
}
.cover-card {
  background: var(--white);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(92, 90, 86, 0.08);
  max-width: 320px;
  margin: 0 auto;
}
.cover-card img { border-radius: 14px; width: 100%; }
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 3rem;
    padding: 3.4rem 0 3rem;
  }
  .cover-card { max-width: none; margin: 0; transform: rotate(-1.2deg); }
  .theme-stay .cover-card { transform: rotate(1.1deg); }
  .theme-skeleton .cover-card { transform: rotate(-1.0deg); }
}

/* Sections */
section { padding: 2.6rem 0; }
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.6rem;
}
.lead { color: var(--stone); max-width: 58ch; margin: 0 0 1.6rem; }

.inside-grid, .chapter-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 700px) {
  .inside-grid, .chapter-list { grid-template-columns: 1fr 1fr; }
}
.card, .chapter {
  background: var(--white);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 22px rgba(42, 41, 38, 0.04);
}
.card .num, .chapter .num {
  font-family: Fraunces, Georgia, serif;
  color: var(--coral);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.theme-stay .chapter .num { color: var(--copper); }
.theme-skeleton .chapter .num { color: var(--dusty); }
.card h3, .chapter h3 { margin-bottom: 0.3rem; font-size: 1.08rem; }
.card p, .chapter p { margin: 0; color: var(--stone); font-size: 0.95rem; }
.chapter.extra { background: var(--cream-deep); box-shadow: none; }
.chapter.extra .num { color: var(--sage-deep); }

.spot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 600px) {
  .spot-row { grid-template-columns: repeat(3, 1fr); }
}
.spot {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(92, 90, 86, 0.06);
}
.spot img {
  width: 120px; height: auto; margin: 0 auto 0.7rem;
  filter: drop-shadow(0 6px 10px rgba(42,41,38,0.08));
}
.spot p { margin: 0; font-size: 0.88rem; color: var(--stone); }

/* Sample pages */
.sample-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.4rem;
}
@media (min-width: 700px) {
  .sample-row { grid-template-columns: repeat(3, 1fr); }
}
.sample-row.two { }
@media (min-width: 700px) {
  .sample-row.two { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: start; }
}
.sample {
  margin: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 0.7rem;
  border: 1px solid rgba(92, 90, 86, 0.08);
  box-shadow: var(--shadow);
}
.sample a { display: block; text-decoration: none; color: inherit; }
.sample img {
  width: 100%; border-radius: 8px;
  border: 1px solid rgba(92, 90, 86, 0.08);
  background: #fff;
}
.sample figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--stone);
  text-align: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 700px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(92, 90, 86, 0.08);
}
.panel.yes { border-top: 4px solid var(--sage); }
.panel.no { border-top: 4px solid var(--coral-soft); }
.panel ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--stone); }
.panel li { margin: 0.35rem 0; }

.blurb-band {
  background: linear-gradient(135deg, #efe6d6 0%, #e4ebe4 55%, #dde5ee 100%);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(92, 90, 86, 0.08);
}
.blurb-band p {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.4;
  margin: 0;
  max-width: 38ch;
}
.blurb-band .tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--stone);
}
@media (min-width: 700px) {
  .blurb-band { padding: 2rem 2.1rem; }
}

/* FAQ */
.faq { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: 14px;
  padding: 0.15rem 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--coral);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--stone); }

/* About / contact */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
@media (min-width: 800px) {
  .about { grid-template-columns: 1.4fr 0.8fr; gap: 1.5rem; }
}
.about-card, .contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(92, 90, 86, 0.08);
  box-shadow: var(--shadow);
}
.quote {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1rem;
}
.contact-card p { color: var(--stone); margin: 0 0 0.9rem; }
.email {
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
  text-decoration: none; word-break: break-all;
}
.email:hover { color: var(--coral); }

/* Other book promo */
.also {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: 24px;
  padding: 1.3rem 1.3rem;
  box-shadow: var(--shadow);
}
.also .mini-cover { max-width: 160px; margin: 0 auto; }
.also .mini-cover img { border-radius: 10px; box-shadow: var(--shadow); }
@media (min-width: 700px) {
  .also { grid-template-columns: 160px 1fr; padding: 1.5rem 1.8rem; gap: 1.8rem; }
  .also .mini-cover { margin: 0; }
}

.buy-band {
  background: var(--white);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: 24px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 700px) {
  .buy-band {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 1.6rem 1.8rem;
  }
  .buy-band .cta-row { margin: 0; }
}

footer {
  margin-top: 1.5rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(92, 90, 86, 0.1);
  color: var(--stone);
  font-size: 0.88rem;
}
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: flex-start;
}
footer a { color: var(--stone); text-decoration: none; }
footer a:hover { color: var(--coral); }
.disclaimer { max-width: 72ch; }
.disclaimer + .disclaimer, .disclaimer .block { margin-top: 0.7rem; }

/* Legal pages */
.legal { padding: 2.5rem 0 4rem; max-width: 720px; }
.legal h1 { margin-bottom: 0.4rem; }
.legal .updated { color: var(--stone); font-size: 0.9rem; margin-bottom: 1.6rem; }
.legal h2 { margin-top: 1.8rem; font-size: 1.25rem; }
.legal p, .legal li { color: var(--stone); }
.legal ul { padding-left: 1.2rem; }


/* Library catalogue (v1.6) */
.library-intro {
  padding: 2.4rem 0 0.4rem;
  text-align: center;
}
.library-intro h1 { margin-bottom: 0.8rem; }
.library-intro .lede {
  margin: 0 auto 0.4rem;
  max-width: 48ch;
  color: var(--stone);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}
@media (min-width: 800px) {
  .library-intro { padding: 3.2rem 0 0.6rem; }
}

.line-block {
  padding: 2rem 0 0.6rem;
}
.line-block .line-head {
  max-width: 58ch;
  margin: 0 0 1.4rem;
}
.line-block .line-head h2 { margin-bottom: 0.45rem; }
.line-block .line-head p {
  margin: 0;
  color: var(--stone);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
@media (min-width: 800px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: 24px;
  padding: 1.3rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  align-self: stretch;
  height: auto;
}
.product-card .thumb {
  flex: 0 0 110px;
  max-width: 110px;
}
.product-card .thumb a,
.product-card .thumb .thumb-frame {
  display: block;
  text-decoration: none;
}
.product-card .thumb img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(42, 41, 38, 0.1);
  background: var(--cream-deep);
}
.product-card .thumb.illustration .thumb-frame {
  background: var(--cream-deep);
  border-radius: 14px;
  padding: 0.7rem;
  border: 1px solid rgba(92, 90, 86, 0.06);
}
.product-card .thumb.illustration img {
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 6px 10px rgba(42,41,38,0.08));
}
.product-card .body { flex: 1; min-width: 0; }
.product-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { color: var(--coral); }
.product-card .hook {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  max-width: none;
}
.product-card .cta-row { margin-top: 0.2rem; }
.product-card.theme-equity .eyebrow { color: #9a4a38; background: rgba(212, 101, 74, 0.12); }
.product-card.theme-stay .eyebrow { color: var(--pine); background: rgba(20, 70, 60, 0.1); }
.product-card.theme-free .eyebrow { color: var(--sage-deep); background: rgba(122, 143, 122, 0.14); }
.product-card.theme-skeleton .eyebrow { color: #3d5870; background: rgba(107, 127, 148, 0.16); }

.coming-flag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-deep);
  border: 1px dashed rgba(92, 90, 86, 0.28);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  margin-top: 0.15rem;
}

.more-note {
  margin: 2rem auto 0.4rem;
  max-width: 62ch;
  text-align: center;
  background: var(--cream-deep);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
}
.more-note h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.more-note p {
  margin: 0;
  color: var(--stone);
  font-size: 0.95rem;
}

@media (max-width: 599px) {
  .product-card { flex-direction: column; align-items: center; text-align: center; }
  .product-card .thumb { max-width: 160px; flex-basis: auto; }
  .product-card .meta-row,
  .product-card .cta-row { justify-content: center; }
  .product-card .hook,
  .product-card .edu-note,
  .product-card .price-note { margin-left: auto; margin-right: auto; }
}

/* Free scorecard sign-up (Kit form) */
.signup-block {
  margin: 8px auto 40px;
  max-width: 760px;
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--cream-deep);
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}
.signup-block h2 { margin: 6px 0 10px; }
.signup-block > p { max-width: 600px; margin: 0 auto 18px; }
.signup-block .kit-embed { display: flex; justify-content: center; margin: 8px 0 16px; min-height: 120px; }
.signup-block .kit-embed form { text-align: left; max-width: 100%; }


/* Skeleton product page (v1.8) */
.theme-skeleton code {
  font-family: "IBM Plex Sans", ui-monospace, monospace;
  font-size: 0.92em;
  font-weight: 500;
  background: var(--cream-deep);
  border-radius: 5px;
  padding: 0.05em 0.22em;
  color: var(--ink);
}

.lock-band {
  background: linear-gradient(135deg, #efe6d6 0%, #e8eef4 100%);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-left: 5px solid var(--dusty);
}
.lock-band p { margin: 0 0 0.9rem; color: var(--stone); max-width: 62ch; }
.lock-band p:last-child { margin-bottom: 0; }
.lock-band .lock-note { font-size: 0.92rem; }
.mode-demo { color: #1a7f37; }
.mode-practice { color: #bc4c00; }
.mode-live { color: #cf2230; }
@media (min-width: 700px) {
  .lock-band { padding: 2rem 2.1rem; }
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: install;
}
.install-steps li {
  background: var(--white);
  border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.15rem 1.2rem;
  box-shadow: 0 8px 22px rgba(42, 41, 38, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
}
.install-steps li::before {
  counter-increment: install;
  content: counter(install);
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--dusty);
  line-height: 1.15;
  grid-row: 1 / span 2;
  min-width: 1.4rem;
}
.install-steps h3 { margin: 0 0 0.25rem; font-size: 1.08rem; }
.install-steps p { margin: 0 0 0.55rem; color: var(--stone); font-size: 0.95rem; }
.install-steps p:last-child { margin-bottom: 0; }
.install-steps h3, .install-steps p { grid-column: 2; }

.also-stack { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .also-stack { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .also-stack .also { grid-template-columns: 110px 1fr; padding: 1.2rem 1.3rem; gap: 1.1rem; }
  .also-stack .also .mini-cover { max-width: 110px; }
}

/* ============================================================
   Backtest Lie Detector (lie-detector.html) — v1.9
   ============================================================ */
.ld-page { --ld-red: #b8432c; --ld-amber: #c98a12; --ld-green: #4f7a52; --ld-grey: #9b978f; }
.ld-intro { padding: 2.4rem 0 1rem; }
.ld-intro .lede { color: var(--stone); font-size: clamp(1.02rem, 1.5vw, 1.15rem); max-width: 60ch; margin: 0 0 1.1rem; }
.ld-private {
  margin: 0; max-width: 62ch; font-size: 0.93rem; color: var(--stone);
  background: rgba(122, 143, 122, 0.12); border: 1px solid rgba(95, 115, 95, 0.2);
  border-radius: 14px; padding: 0.8rem 1rem;
}
.ld-private strong { color: var(--ink); }
.ld-tool { display: grid; gap: 1.1rem; padding-top: 1.2rem; }
.ld-card {
  background: var(--white); border: 1px solid rgba(92, 90, 86, 0.08);
  border-radius: 22px; padding: 1.3rem 1.2rem 1.4rem; box-shadow: var(--shadow);
}
@media (min-width: 700px) { .ld-card { padding: 1.6rem 1.8rem 1.8rem; } }
.ld-card h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.4rem; }
.ld-opt { font-family: "IBM Plex Sans", sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--stone); }
.ld-help { color: var(--stone); font-size: 0.93rem; margin: 0 0 1rem; max-width: 70ch; }
.ld-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  border: 2px dashed rgba(107, 127, 148, 0.4); border-radius: 16px;
  padding: 1.4rem 1rem; text-align: center; cursor: pointer; background: var(--cream);
}
.ld-drop:hover, .ld-drop.over { border-color: var(--coral); background: #fbf1ea; }
.ld-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ld-drop:focus-within { outline: 2px solid var(--coral); outline-offset: 3px; }
.ld-drop-main { font-weight: 600; color: var(--ink); }
.ld-drop-sub { font-size: 0.84rem; color: var(--stone); }
.ld-file-status { margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--stone); min-height: 0; }
.ld-file-status:empty { display: none; }
.ld-file-status.ok { color: var(--ld-green); }
.ld-file-status.err { color: var(--ld-red); }
.ld-samples { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; font-size: 0.9rem; color: var(--stone); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.86rem; }
.ld-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem 1rem; }
@media (min-width: 560px) { .ld-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .ld-grid { grid-template-columns: repeat(3, 1fr); } }
.ld-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.ld-field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.ld-hint { font-weight: 400; color: var(--stone); }
.ld-field input, .ld-field select {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: var(--cream); border: 1px solid rgba(92, 90, 86, 0.22); border-radius: 10px;
  padding: 0.6rem 0.7rem; min-height: 2.75rem;
}
.ld-field input:focus, .ld-field select:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.ld-more { margin-top: 1rem; border-top: 1px solid rgba(92, 90, 86, 0.12); padding-top: 0.8rem; }
.ld-more summary { cursor: pointer; font-weight: 600; color: var(--dusty); margin-bottom: 0.8rem; }
.ld-actions { margin-top: 1.3rem; }
.ld-results { padding-top: 1.6rem; }
.ld-results[hidden], #ld-cta[hidden] { display: none; }
.ld-verdict {
  border-radius: 22px; padding: 1.3rem 1.3rem 1.2rem; background: var(--white);
  box-shadow: var(--shadow); border-left: 8px solid var(--ld-grey); margin-bottom: 1.1rem;
}
.ld-verdict h2 { margin-bottom: 0.4rem; }
.ld-verdict p { margin: 0 0 0.6rem; color: var(--stone); max-width: 70ch; }
.ld-verdict.ld-red { border-left-color: var(--ld-red); }
.ld-verdict.ld-amber { border-left-color: var(--ld-amber); }
.ld-verdict.ld-green { border-left-color: var(--ld-green); }
.ld-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.3rem; }
.ld-meter { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; margin: 0.4rem 0 0.5rem; max-width: 460px; }
.ld-meter .seg { flex-basis: 0; min-width: 8px; }
.ld-meter .ld-red { background: var(--ld-red); }
.ld-meter .ld-amber { background: var(--ld-amber); }
.ld-meter .ld-green { background: var(--ld-green); }
.ld-tally { font-size: 0.88rem; margin: 0 !important; }
.ld-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.ld-flag {
  background: var(--white); border: 1px solid rgba(92, 90, 86, 0.08); border-left: 6px solid var(--ld-grey);
  border-radius: 16px; padding: 0.95rem 1.1rem; box-shadow: 0 8px 22px rgba(42, 41, 38, 0.04);
}
.ld-flag.ld-red { border-left-color: var(--ld-red); }
.ld-flag.ld-amber { border-left-color: var(--ld-amber); }
.ld-flag.ld-green { border-left-color: var(--ld-green); }
.ld-flag-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem; margin-bottom: 0.35rem; }
.ld-flag-head h3 { margin: 0; font-size: 1.05rem; }
.ld-value { font-size: 0.88rem; color: var(--stone); font-variant-numeric: tabular-nums; }
.ld-pill {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px; color: #fff; background: var(--ld-grey);
}
.ld-red .ld-pill { background: var(--ld-red); }
.ld-amber .ld-pill { background: var(--ld-amber); }
.ld-green .ld-pill { background: var(--ld-green); }
.ld-flag p { margin: 0; color: var(--stone); font-size: 0.95rem; }
.ld-flag p.ld-book { margin-top: 0.45rem; font-size: 0.82rem; color: #9a4a38; font-weight: 500; }
.ld-years, .ld-cant {
  margin-top: 1.1rem; background: var(--white); border-radius: 18px; padding: 1.1rem 1.2rem;
  border: 1px solid rgba(92, 90, 86, 0.08);
}
.ld-years table { border-collapse: collapse; width: 100%; max-width: 560px; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.ld-years th, .ld-years td { text-align: right; padding: 0.4rem 0.6rem; border-bottom: 1px solid rgba(92, 90, 86, 0.1); }
.ld-years th:first-child, .ld-years td:first-child { text-align: left; }
.ld-years th { font-size: 0.8rem; color: var(--stone); font-weight: 600; }
.ld-years td.neg { color: var(--ld-red); }
.ld-years td.pos { color: var(--ld-green); }
.ld-cant { background: var(--cream-deep); }
.ld-cant ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; color: var(--stone); }
.ld-cant li { margin: 0.25rem 0; }
.ld-small { font-size: 0.84rem; color: var(--stone); margin: 0.6rem 0 0; }
#ld-cta { padding-top: 1.8rem; }
.ld-about h3 { margin-bottom: 0.2rem; }
.home-tool { padding-top: 0; }
.home-tool .buy-band h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.35rem; }
.home-tool .buy-band p { margin: 0; color: var(--stone); max-width: 60ch; }
@media (min-width: 860px) and (max-width: 1060px) {
  .nav a { padding: 0.4rem 0.4rem; font-size: 0.86rem; }
}
#ld-results, #ld-cta, #ld-form { scroll-margin-top: 80px; }


/* ============================================================
   Equity Curve Checkup (checkup.html) — v2.0
   Reuses the Lie Detector form, flag and verdict styles.
   ============================================================ */
.cu-lead-note { color: var(--stone); font-size: 0.92rem; max-width: 70ch; margin: 0 0 0.8rem; }
.cu-units { margin: 0.9rem 0 0; font-size: 0.86rem; }
.cu-samples { margin-top: 1.1rem; }
.cu-verdict { padding: 1.2rem 1.2rem 1.1rem; }
@media (min-width: 700px) { .cu-verdict { padding: 1.4rem 1.5rem 1.25rem; } }
.cu-grade-row { display: flex; gap: 1rem; align-items: flex-start; }
.cu-grade-row > div { min-width: 0; }
.cu-grade {
  flex: 0 0 auto;
  width: 4.4rem; height: 4.4rem;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700; font-size: 2.4rem; line-height: 1;
  color: #fff;
  background: var(--ld-grey, #9b978f);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}
.cu-grade-green { background: var(--ld-green, #4f7a52); }
.cu-grade-amber { background: var(--ld-amber, #c98a12); }
.cu-grade-red { background: var(--ld-red, #b8432c); }
.cu-grade-grey { background: var(--ld-grey, #9b978f); color: #fff; font-size: 2.1rem; }
.cu-verdict h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.cu-score-note { font-size: 0.84rem; color: var(--stone); margin: 0.55rem 0 0 !important; }
.cu-why { font-size: 0.92rem; color: var(--ink) !important; font-weight: 500; margin-bottom: 0.35rem !important; }
.cu-next { margin-top: 1.1rem; }
.cu-next h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }
.cu-next ol { margin: 0; padding-left: 1.2rem; color: var(--stone); }
.cu-next li { margin: 0.35rem 0; }
.cu-rules { margin-top: 1.2rem; }
.cu-rules h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.cu-rules p, .cu-rules li { color: var(--stone); }
.cu-rules ul { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
#cu-results, #cu-cta, #cu-form { scroll-margin-top: 80px; }
#cu-results[hidden], #cu-cta[hidden] { display: none; }

.home-tools { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .home-tools { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.home-tools .buy-band {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  gap: 0.85rem;
}
.home-tools .buy-band .cta-row { margin: 0; }
