/* BeargrassAI 2.0.0 · page prototype: Terms (BEA-432). Loads after /brand/tokens.css and /brand/base.css.
   The page's own layout: the first screen (night, the township), the scene (night: what you own and what BeargrassAI
   retains, two ledgers; the Box V burns on yours), the agreement's contents crossing the dawn, and the agreement by
   day. Without motion everything you own shows lit and branded; under .m the scroll lights it (page.js, brand-burn). */

/* ?draft in the address outlines every sentence changed for 2.0.0 (data-draft), for Mark's and a lawyer's read. */
.show-draft [data-draft] { outline: 2px dashed var(--barn); outline-offset: 3px; }

/* The wordmark link at a full 44px touch target (as pricing). */
.site .mark { padding: 10px 0; }
/* The township, laid on the plan by page.js (one projective transform, never animated), the roll cut out of it.
   Without scripts it has no place on the picture, so it is not shown. The read sections are drawn on the glow. */
.twp-w { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.hero-art .twp { position: absolute; left: 0; top: 0; width: 240px; height: 240px; margin: 0; transform-origin: 0 0; visibility: hidden; --tl: rgba(70, 52, 30, 0.5); }
.hero-art .twp.laid { visibility: visible; }
.hero-art .twp i { padding: 3px 4px; font-size: 9px; color: rgba(60, 44, 26, 0.9); }
.hero-art .glow { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.actions .btn { min-width: 132px; }

/* 2 · The scene (night): two ledgers on the township's lines. Yours holds light and the brand; ours stays plain. */
.own { position: relative; background: linear-gradient(180deg, #142038 0%, var(--canvas) 14%, var(--canvas) 86%, #111c36 100%); }
.own .stage { padding: 60px 0 64px; }
.own-box { position: relative; z-index: 3; }
.own h2 { margin: 0; max-width: 13ch; font-size: clamp(28px, 7.4vw, 52px); line-height: 1.08; color: var(--white); }
.ledgers { display: grid; gap: 20px; margin-top: 24px; }
.ledger { position: relative; padding: 14px 16px 4px; background: rgba(11, 18, 37, 0.94); border: 1px solid var(--rule); --cm: rgba(240, 230, 207, 0.5); }
.ledger.yours { padding-right: 84px; border-color: rgba(244, 196, 90, 0.62); --cm: rgba(244, 196, 90, 0.9); box-shadow: 0 0 50px -16px rgba(244, 196, 90, 0.42); }
.lg-k { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-2); }
.yours .lg-k { color: var(--gold-bright); }
.lg-list { margin-top: 8px; }
.lg-list li { position: relative; padding: 10px 0 11px 20px; border-top: 1px solid var(--rule); font: 500 16.5px/1.4 var(--sans); color: var(--cream); }
.lg-list li::before { content: ""; position: absolute; left: 1px; top: calc(10px + 0.7em - 4px); width: 8px; height: 8px; border: 1px solid var(--cream-2); }
.yours .lg-list li { color: var(--white); border-top-color: rgba(244, 196, 90, 0.34); }
.yours .lg-list li::before { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(244, 196, 90, 0.6); }
.ours .lg-list li { font-weight: 400; font-size: 15.5px; line-height: 1.45; color: var(--cream-2); }
.yours .brand { top: 10px; right: 12px; }
.yours .b-label.b-night { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
html:not(.js) .own .stage { background-image: linear-gradient(rgba(240, 230, 207, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 230, 207, 0.06) 1px, transparent 1px); background-size: 64px 64px; }

/* The scene in motion: a tall track, a sticky stage; what you own starts unlit and the scroll lights it. */
.m .own .track { height: 260vh; }
.m .own .stage { padding: 0; }
.m .own-in { height: 100%; }
.m .own-box { transform-origin: 0 0; }
.m .ledger.yours { border-color: var(--rule); --cm: rgba(240, 230, 207, 0.5); box-shadow: none; transition: border-color 0.5s, box-shadow 0.5s; }
.m .ledger.yours.owned { border-color: rgba(244, 196, 90, 0.62); --cm: rgba(244, 196, 90, 0.9); box-shadow: 0 0 50px -16px rgba(244, 196, 90, 0.42); }
.m .yours .lg-k { color: var(--cream-2); transition: color 0.5s; }
.m .yours.owned .lg-k { color: var(--gold-bright); }
.m .yours .lg-list li { color: var(--cream-2); border-top-color: var(--rule); transition: color 0.35s, border-color 0.35s; }
.m .yours .lg-list li::before { background: transparent; border-color: var(--cream-2); box-shadow: none; transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s; }
.m .yours .lg-list li.on { color: var(--white); border-top-color: rgba(244, 196, 90, 0.34); }
.m .yours .lg-list li.on::before { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(244, 196, 90, 0.6); }
.own .sky { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }

/* 3 · Dawn: the agreement, section by section, night glass to cardstock (sunrise-wipe). */
.toc-head { background: linear-gradient(180deg, #111c36 0%, var(--night-2) 50%, var(--indigo) 100%); color: var(--cream); padding: 64px 0 26px; }
.toc-head h2 { max-width: 16ch; margin: 0; font-size: clamp(30px, 8vw, 54px); line-height: 1.06; color: var(--white); }
.toc .face-day, .toc .face-night { display: block; }
.toc-list { display: grid; padding: 4px 18px 6px; }
.toc-list li { display: flex; align-items: center; gap: 12px; min-height: 50px; border-top: 1px solid var(--rule-ink); }
.toc-list li:first-child { border-top: 0; }
.toc-list a, .toc-list li > span:last-child { flex: 1 1 auto; display: flex; align-items: center; min-height: 50px; padding: 10px 0; font: 600 16.5px/1.35 var(--sans); color: var(--ink); text-decoration: none; }
.toc-list a:hover { text-decoration: underline; }
.toc-n { flex: 0 0 auto; width: 28px; font: 500 13px/1 var(--mono); color: var(--ink-2); }
.face-night .toc-list li { border-color: var(--rule); }
.face-night .toc-list li > span:last-child { color: var(--cream); }
.face-night .toc-n { color: var(--cream-2); }

/* 4 · Day: the agreement, words that stay still on quiet paper. */
.day > .topo { -webkit-mask-image: linear-gradient(transparent 50px, #000 240px); mask-image: linear-gradient(transparent 50px, #000 240px); }
.legal { position: relative; padding-top: 60px; padding-bottom: 12px; }
.draft-note { display: block; max-width: 640px; margin: 0 0 4px; }
.draft-note p + p { margin-top: 6px; }
.clause { margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(35, 31, 26, 0.24); scroll-margin-top: 76px; }
.clause h2 { margin: 0; font-size: clamp(27px, 6.8vw, 36px); line-height: 1.12; color: var(--ink); }
.sec-n { display: block; width: fit-content; min-width: 32px; margin-bottom: 12px; padding: 0 7px; border: 1px solid var(--ink-2); font: 500 13px/24px var(--mono); letter-spacing: 0; text-align: center; color: var(--ink); }
.clause-b { margin-top: 14px; }
.clause-b > * + * { margin-top: 16px; }
.clause p, .clause li { max-width: 64ch; font-size: 17.5px; line-height: 1.66; color: var(--ink); }
.clause strong, .clause em { font-weight: 600; font-style: normal; }
.clause ul li { position: relative; padding-left: 22px; }
.clause ul li + li, .clause ol li + li { margin-top: 10px; }
.clause ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border: 1px solid var(--ink-2); }
.clause ol { counter-reset: step; }
.clause ol li { position: relative; padding-left: 42px; counter-increment: step; }
.clause ol li::before { content: counter(step); position: absolute; left: 0; top: 0.18em; width: 28px; height: 24px; border: 1px solid var(--ink-2); font: 500 12px/22px var(--mono); text-align: center; color: var(--ink); }
.clause a { text-decoration-color: rgba(35, 31, 26, 0.45); overflow-wrap: anywhere; }
.clause a:hover { text-decoration-color: var(--ink); }
.n { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; white-space: nowrap; }

/* 5 · The AI box, the one piece of night in the day. */
.ai-sec { position: relative; padding: 48px 0 92px; }
.ai-in { max-width: 884px; }
.ai-sec .aibox { margin-top: 0; }

/* Short phones: the same three thirds and the scene, set tighter. */
@media (max-height: 760px) and (max-width: 899px) {
  .ledgers { gap: 16px; margin-top: 18px; }
  .lg-list li { padding-top: 8px; padding-bottom: 9px; font-size: 15.5px; }
  .lg-list li::before { top: calc(8px + 0.7em - 4px); }
  .ours .lg-list li { font-size: 14.5px; }
}

/* Narrow phones, and a phone at 125% page zoom (about 314px): Start at the picture pages' width (as about). */
@media (max-width: 360px) {
  .actions .btn { min-width: 108px; padding-left: 18px; padding-right: 18px; }
}

/* Laptop and up: the words left and the township right; the ledgers side by side; the agreement with its headings
   held at the left while you read. */
@media (min-width: 700px) {
  .toc-list { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(6, auto); column-gap: 36px; padding: 8px 28px 10px; }
  .toc-list li:nth-child(7) { border-top: 0; }
}
@media (min-width: 900px) {
  .hero-art .twp-w, .hero-art .glow { -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.3) 6%, rgba(0, 0, 0, 0.75) 13%, #000 22%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.3) 6%, rgba(0, 0, 0, 0.75) 13%, #000 22%); } /* along the bottom edge, on the night, as Custom work's */
  .hero-art .twp i { font-size: 10.5px; padding: 5px 6px; }
  .own .stage { padding: 96px 0 96px; }
  .own h2 { max-width: none; }
  .ledgers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 34px; align-items: start; }
  .ledger { padding: 20px 24px 8px; }
  .ledger.yours { padding-right: 112px; }
  .lg-list li { font-size: 19px; padding-top: 13px; padding-bottom: 14px; }
  .lg-list li::before { top: calc(13px + 0.7em - 4px); }
  .ours .lg-list li { font-size: 17px; }
  .yours .brand { top: 14px; right: 18px; }
  .yours .iron { width: 62px; height: 62px; }
  .toc-head { padding: 104px 0 40px; }
  .legal { padding-top: 80px; }
  .clause { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); margin-top: 44px; padding-top: 36px; }
  .clause h2 { position: sticky; top: 96px; align-self: start; }
  .clause-b { margin-top: 2px; }
  .clause p, .clause li { font-size: 18.5px; }
  .ai-sec { padding: 64px 0 130px; }
}
