/* =============================================================
   Boon - Official AI Information Page
   =============================================================
   Documentary-style reference page (think: "official source of
   truth for LLMs and search crawlers"). Visually quieter than the
   marketing pages on purpose - no orbiting blobs, no warm
   gradients, no per-section accent washes - so the page reads as
   verified factual content rather than a sales surface.

   Layout: fixed top nav (reuses the .cs-nav pattern from
   /case-studies/case-study.css), an editorial hero, then a
   two-column body on lg+ with the long-form content on the left
   and a sticky table of contents on the right. Mobile collapses
   to a single column with no TOC.

   Inherits design tokens from /styles.css (Satoshi body, button
   styles, color tokens).
   ============================================================= */

/* -------------------------------------------------------------
   STICKY-SCOPE OVERRIDE
   /styles.css sets `overflow-x: hidden` on html+body to contain
   the hero blob bleed on the marketing pages. That creates a
   scroll-container at the root, which breaks `position: sticky`
   for elements (like our TOC) whose nearest scrollable ancestor
   then becomes the root rather than the document.

   This page has no horizontally-bleeding blobs, so we swap to
   `overflow-x: clip` instead - same visual clipping, but `clip`
   does NOT establish a scroll container, so sticky positioning
   on .li-toc works correctly. Scoped to .li-page so other pages
   keep the original `hidden` behavior.
   ------------------------------------------------------------- */
html:has(body.li-page),
body.li-page {
  overflow-x: clip;
}

/* -------------------------------------------------------------
   PAGE SHELL
   ------------------------------------------------------------- */
.li-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .li-wrap { padding: 0 40px; }
}

/* -------------------------------------------------------------
   HERO
   Editorial, left-aligned (case-study heroes are centered; this
   one is documentary so we anchor it to the leading edge).
   The "Last updated" pill sits inline with the eyebrow on lg,
   stacks below it on mobile.
   ------------------------------------------------------------- */
.li-hero {
  padding: 120px 0 56px;
}
@media (min-width: 768px) {
  .li-hero { padding: 160px 0 80px; }
}
.li-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 28px;
}
.li-hero-eyebrow,
.li-hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2A251F;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,14,12,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Verified-source dot: a small calm green that signals "this is
   the canonical reference," not a marketing accent. Kept outside
   the brand palette intentionally because this page is a meta
   surface (talking ABOUT Boon) rather than the brand itself. */
.li-hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #4A7C59;
}
.li-hero-updated .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #8B8073;
}

.li-hero-title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: 40px;
  line-height: 1.06;
  color: #0F0E0C;
  max-width: 18ch;
  margin: 0;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .li-hero-title { font-size: 56px; }
}
@media (min-width: 1024px) {
  .li-hero-title { font-size: 72px; max-width: 16ch; }
}
.li-hero-title .italic {
  font-family: 'Instrument Serif', 'Fraunces', serif;
  font-style: italic;
}

.li-hero-lede {
  margin: 28px 0 0;
  max-width: 640px;
  color: #2A251F;
  font-size: 17.5px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .li-hero-lede { font-size: 19px; line-height: 1.55; }
}
.li-hero-lede a {
  color: #0F0E0C;
  text-decoration: underline;
  text-decoration-color: rgba(15,14,12,0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.li-hero-lede a:hover {
  text-decoration-color: rgba(15,14,12,0.7);
}

/* -------------------------------------------------------------
   BODY GRID
   On lg+ this is a 2-column layout: long-form content on the
   left (max-width clamped for readability) and a sticky TOC on
   the right. Mobile/tablet drop to single-column; the TOC is
   hidden because a long sticky strip on a small screen is more
   noise than help.
   ------------------------------------------------------------- */
.li-body {
  padding-bottom: 80px;
  border-top: 1px solid rgba(15,14,12,0.08);
}
@media (min-width: 768px) {
  .li-body { padding-bottom: 120px; }
}
.li-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 1024px) {
  .li-body-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 80px;
    align-items: start;
  }
}

/* -------------------------------------------------------------
   TABLE OF CONTENTS (right column, sticky)
   ------------------------------------------------------------- */
.li-toc {
  display: none;
}
@media (min-width: 1024px) {
  .li-toc {
    display: block;
    position: sticky;
    top: 110px;
    align-self: start;
    padding-top: 56px;
  }
}
.li-toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8B8073;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,14,12,0.08);
}
.li-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: li-toc;
}
.li-toc li {
  counter-increment: li-toc;
  margin: 0;
}
.li-toc a {
  display: flex;
  gap: 14px;
  padding: 7px 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: #5A5247;
  text-decoration: none;
  transition: color .2s ease;
}
.li-toc a::before {
  content: counter(li-toc, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #B8AC9D;
  flex-shrink: 0;
  padding-top: 2px;
}
.li-toc a:hover {
  color: #0F0E0C;
}
.li-toc a:hover::before {
  color: #5A5247;
}

/* -------------------------------------------------------------
   SECTIONS
   Each numbered section has: a small mono "01" badge in a
   gutter, an H2, and a body region. On lg+ the badge sits in
   a left-of-content gutter; on mobile it stacks above the H2.
   ------------------------------------------------------------- */
.li-content {
  padding-top: 56px;
  min-width: 0;       /* lets long inline tokens wrap inside grid */
}
.li-section {
  padding: 0 0 64px;
  scroll-margin-top: 96px;   /* TOC anchor lands below fixed nav */
}
@media (min-width: 768px) {
  .li-section {
    padding: 0 0 80px;
    scroll-margin-top: 110px;
  }
}
.li-section + .li-section {
  border-top: 1px solid rgba(15,14,12,0.08);
  padding-top: 56px;
}
@media (min-width: 768px) {
  .li-section + .li-section { padding-top: 80px; }
}

.li-section-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8B8073;
  margin-bottom: 14px;
}
.li-section-title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  letter-spacing: -0.018em;
  font-size: 30px;
  line-height: 1.12;
  color: #0F0E0C;
  margin: 0 0 22px;
  text-wrap: balance;
  max-width: 22ch;
}
@media (min-width: 768px) {
  .li-section-title { font-size: 38px; margin-bottom: 28px; }
}

/* -------------------------------------------------------------
   PROSE
   Editorial reading defaults. Slightly looser than the case-
   study prose because this content is denser (lots of lists,
   short factual paragraphs) and benefits from extra breathing
   room.
   ------------------------------------------------------------- */
.li-prose {
  color: #2A251F;
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 65ch;
}
@media (min-width: 768px) {
  .li-prose { font-size: 17.5px; }
}
.li-prose > * + * { margin-top: 1.05em; }
.li-prose strong { color: #0F0E0C; font-weight: 600; }
.li-prose a {
  color: #0F0E0C;
  text-decoration: underline;
  text-decoration-color: rgba(15,14,12,0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.li-prose a:hover { text-decoration-color: rgba(15,14,12,0.7); }
.li-prose ul {
  margin: 1em 0;
  padding: 0;
  list-style: none;
}
.li-prose li {
  position: relative;
  padding-left: 22px;
  margin: 0.55em 0;
}
.li-prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 1.5px;
  background: #8B8073;
  border-radius: 2px;
}
.li-prose h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 500;
  letter-spacing: -0.012em;
  font-size: 21px;
  line-height: 1.25;
  color: #0F0E0C;
  margin: 1.6em 0 0.5em;
}
@media (min-width: 768px) {
  .li-prose h3 { font-size: 23px; }
}

/* -------------------------------------------------------------
   SERVICE / DIFFERENTIATOR / USE-CASE CARDS
   Light, structured cards used in three sections:
     - Core Services: 5 cards (2-up at md, 3-up at lg)
     - What Makes Boon Different: 5 cards (same grid)
     - Common Use Cases: 5 cards (same grid)
   Single component, three uses. Each card has a small mono label,
   a title, and supporting prose.
   ------------------------------------------------------------- */
.li-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
@media (min-width: 640px) {
  .li-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .li-card-grid { grid-template-columns: repeat(2, 1fr); }
}
.li-card {
  padding: 24px 22px 26px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15,14,12,0.07);
  border-radius: 18px;
  transition: border-color .2s ease, transform .25s ease,
              box-shadow .25s ease;
}
.li-card:hover {
  border-color: rgba(15,14,12,0.14);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -18px rgba(15,14,12,0.18);
}
@media (min-width: 768px) {
  .li-card { padding: 28px 26px 30px; }
}
.li-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B8073;
  margin-bottom: 14px;
}
.li-card-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 500;
  letter-spacing: -0.012em;
  font-size: 22px;
  line-height: 1.2;
  color: #0F0E0C;
  margin: 0 0 10px;
  text-wrap: balance;
}
.li-card-body {
  color: #2A251F;
  font-size: 15.5px;
  line-height: 1.55;
}

/* -------------------------------------------------------------
   "How to Describe Boon" tier blocks
   Three labeled blocks (Short / Standard / Detailed). Reads like
   a glossary - quote-style indent + label.
   ------------------------------------------------------------- */
.li-tier {
  margin-top: 24px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(15,14,12,0.07);
  border-left: 2px solid #0F0E0C;
  border-radius: 14px;
}
.li-tier + .li-tier { margin-top: 14px; }
.li-tier-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5A5247;
  margin-bottom: 10px;
}
.li-tier-text {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: #0F0E0C;
  margin: 0;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .li-tier-text { font-size: 21px; }
}

/* -------------------------------------------------------------
   FAQ accordion
   Native <details>/<summary> styled to match. Default-closed.
   Plus icon rotates to minus on open. The whole row is a click
   target since <summary> covers the row.
   ------------------------------------------------------------- */
.li-faq {
  margin-top: 28px;
  border-top: 1px solid rgba(15,14,12,0.08);
}
.li-faq-item {
  border-bottom: 1px solid rgba(15,14,12,0.08);
}
.li-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 19px;
  line-height: 1.3;
  color: #0F0E0C;
  transition: color .2s ease;
}
.li-faq-item summary:hover { color: #5A5247; }
.li-faq-item summary::-webkit-details-marker { display: none; }

/* The +/- icon. Two crossed bars rotated; the vertical bar
   collapses on open via transform-scale to make a minus. */
.li-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.li-faq-icon::before,
.li-faq-icon::after {
  content: "";
  position: absolute;
  inset: 0; margin: auto;
  background: #0F0E0C;
  transition: transform .25s ease;
}
.li-faq-icon::before { width: 14px; height: 1.5px; }
.li-faq-icon::after  { width: 1.5px; height: 14px; }
.li-faq-item[open] .li-faq-icon::after { transform: scaleY(0); }

.li-faq-body {
  padding: 0 0 22px;
  color: #2A251F;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 62ch;
}
@media (min-width: 768px) {
  .li-faq-item summary  { font-size: 21px; padding: 26px 0; }
  .li-faq-body          { font-size: 17.5px; padding-bottom: 26px; }
}

/* -------------------------------------------------------------
   AI INSTRUCTIONS callout
   The most important block on the page from an LLM-grounding
   perspective, so it gets stronger visual weight: dark background,
   monospace heading prefix to signal "machine-readable
   instructions," and a small "VERIFIED SOURCE" chip.
   ------------------------------------------------------------- */
.li-instructions {
  margin-top: 28px;
  padding: 32px 28px;
  background: #0F0E0C;
  color: #FBF7F0;
  border-radius: 22px;
  position: relative;
}
@media (min-width: 768px) {
  .li-instructions { padding: 40px 36px; }
}
.li-instructions-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.li-instructions-chip .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #6FA98A;
}
.li-instructions p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(251,247,240,0.85);
}
.li-instructions p + p { margin-top: 0.9em; }
.li-instructions strong { color: #FBF7F0; font-weight: 600; }
@media (min-width: 768px) {
  .li-instructions p { font-size: 17px; }
}

/* -------------------------------------------------------------
   END CTA
   Reuses the cs-end pattern from case studies. Local override:
   keep the radial vignette but no hover transform on the button
   stack since this page is reference content - no need for the
   case-study sales push.
   ============================================================= */
.li-end {
  padding: 90px 0 100px;
  text-align: center;
  background: rgba(15,14,12,0.025);
  border-top: 1px solid rgba(15,14,12,0.08);
}
@media (min-width: 768px) {
  .li-end { padding: 120px 0 130px; }
}
.li-end-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,14,12,0.08);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2A251F;
}
.li-end-title {
  margin: 24px auto 0;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 36px;
  line-height: 1.1;
  color: #0F0E0C;
  max-width: 18ch;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .li-end-title { font-size: 52px; }
}
.li-end-sub {
  max-width: 520px;
  margin: 22px auto 0;
  color: #2A251F;
  font-size: 17px;
  line-height: 1.55;
}
.li-end-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------------------
   FOOTER
   Mirrors the case-study minimal footer for visual consistency.
   ------------------------------------------------------------- */
.li-footer {
  background: #0F0E0C;
  color: rgba(255,255,255,0.6);
  padding: 40px 0 44px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.li-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.li-footer .logo img {
  height: 20px; width: auto;
  filter: invert(1);
  display: block;
}
.li-footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* -------------------------------------------------------------
   Reduced motion: kill card hover lift / FAQ icon rotation. The
   color/border transitions are subtle enough to leave on.
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .li-card { transition: border-color .2s ease; }
  .li-card:hover { transform: none; box-shadow: none; }
  .li-faq-icon::before,
  .li-faq-icon::after { transition: none; }
}
