/* Readable by machines (BEA-432), after the kit's tokens, base and waterfall css. Motion only under html.m.
   ?draft outlines every sentence written for this board. */
.show-draft [data-draft] { outline: 2px dashed var(--barn); outline-offset: 3px; }
.hero-art .glow { z-index: 2; }

/* 2 · The waterfall (night) */
.scene { position: relative; background: var(--canvas); }
.rd { --wf-len: 8.6; --wf-col: clamp(96px, 31vw, 150px); }
.rd .wf-sample { color: var(--cream); border-color: rgba(240, 230, 207, 0.55); }
.rd .wf-r > b, .rd .wf-nb { text-transform: uppercase; }
.m .rd .wf-r > b { margin-right: 0; letter-spacing: 0.08em; }
/* a spot is gold once its check strikes (and in the stills), plain before (.wf-wait) */
.pg { display: grid; gap: 7px; min-width: 0; max-width: 100%; padding: 8px; background: var(--paper-hi); color: var(--ink); border: 1px solid rgba(35, 31, 26, 0.4); box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.85); }
.pg-files { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.pg-files > span, .f-canon, .f-ld { border: 1px solid var(--gold-ink); background: rgba(244, 196, 90, 0.34); transition: background-color 0.35s, border-color 0.35s; }
.pg-files > span { padding: 3px 6px 4px; font: 500 12px/1.2 var(--mono); }
.pg-page { display: grid; gap: 6px; min-width: 0; max-width: 100%; padding: 7px; border: 1px solid rgba(35, 31, 26, 0.2); }
.f-canon { justify-self: start; padding: 3px 7px 4px; font: 500 12px/1.2 var(--mono); }
.pg-say { min-width: 0; max-width: 100%; font: 400 clamp(16px, 4.2vw, 22px)/1.14 var(--display); overflow-wrap: anywhere; text-decoration: underline 2px rgba(125, 90, 26, 0.75); text-underline-offset: 4px; }
.f-ld { display: grid; min-width: 0; max-width: 100%; padding: 4px 6px 5px; font: 500 12px/1.35 var(--mono); }
.f-ld span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.m .pg .wf-wait { background: transparent; border-color: rgba(35, 31, 26, 0.24); }
.m .pg .f-canon.wf-wait { background: #efe7d4; }
.m .pg .f-ld.wf-wait { background: rgba(35, 31, 26, 0.04); }
.m .pg-say { text-decoration-color: transparent; transition: text-decoration-color 0.4s; }
.m .pg-page:has(.f-ld:not(.wf-wait)) .pg-say { text-decoration-color: rgba(125, 90, 26, 0.75); }
html:not(.m) .rd .wf-fall { max-width: 360px; }
.m .rd .pg { max-width: 100%; }
/* the payoff: page.js lights each tool (.lit), then the line (.out) */
.rd-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.rd-tools li { flex: 1 0 auto; padding: 10px 5px; text-align: center; font: 500 12px/1 var(--mono); color: var(--gold-bright); border: 1px solid rgba(244, 196, 90, 0.75); background: rgba(10, 16, 36, 0.82); white-space: nowrap; }
.rd .pay-big { margin-top: 14px; }
.rd-wire { display: none; }
.m .rd-tools li { color: var(--cream-2); border-color: rgba(240, 230, 207, 0.24); transition: border-color 0.35s, color 0.35s, box-shadow 0.35s; }
.m .rd-tools li.lit { color: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 22px rgba(244, 196, 90, 0.32); }
.m .rd-wire { display: block; z-index: 3; }
.m .rd .wf-pay p { opacity: 0; transition: opacity 0.45s; }
.m .rd .wf-pay.out p { opacity: 1; }

/* 3 · Dawn: the short answer on a card */
.ans-head { background: linear-gradient(180deg, var(--canvas) 0%, #111c36 40%, var(--night-2) 75%, var(--indigo) 100%); padding: 76px 0 28px; }
.ans-head h2 { max-width: 17ch; color: var(--white); }
.answer .dawn-art { -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.ans-body { padding: 22px 20px 4px; color: var(--ink); }
.ans-pull { font: 400 clamp(26px, 6.6vw, 38px)/1.14 var(--display); max-width: 18ch; }
.ans-say { margin-top: 14px; font-size: 17px; line-height: 1.6; max-width: 58ch; }
.six { display: grid; margin-top: 18px; border-top: 1px solid var(--rule-ink); color: var(--ink); }
.six li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 20px 12px; border-bottom: 1px solid var(--rule-ink); }
.six li:last-child { border-bottom: 0; }
.six span { font: 600 16px/1.3 var(--sans); }
.six b { font: 600 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
.six .most { background: rgba(244, 196, 90, 0.22); }
.face-night .ans-body, .face-night .six { color: var(--cream); }
.face-night .six, .face-night .six li { border-color: var(--rule); }
.face-night .six b { color: var(--gold-bright); }
.face-night .six .most { background: rgba(244, 196, 90, 0.12); }

/* 4 · Day: the words, the price (Start lands there), the AI box */
.day > .topo { -webkit-mask-image: linear-gradient(transparent 60px, #000 240px); mask-image: linear-gradient(transparent 60px, #000 240px); }
.read { position: relative; padding: 70px 0 34px; }
.read h2, .cost h2 { max-width: 16ch; }
.read .prose { margin-top: 30px; gap: 16px; }
.prose h3 { margin-top: 30px; font: 400 clamp(25px, 6.4vw, 34px)/1.15 var(--display); letter-spacing: -0.005em; color: var(--ink); max-width: 24ch; text-wrap: balance; }
.prose h3:first-child { margin-top: 0; }
.cost { position: relative; padding: 46px 0 30px; }
.cost-say { margin-top: 14px; font-size: 17px; line-height: 1.55; max-width: 52ch; }
.offers { display: grid; gap: 18px; margin-top: 26px; }
.day .offer { background: var(--paper-hi); border-color: rgba(35, 31, 26, 0.3); }
.day .offer strong, .day .offer .price { color: var(--ink); }
.day .offer .say { color: var(--ink-2); }
.cost-notes { display: grid; gap: 12px; margin-top: 26px; max-width: 62ch; }
.cost-notes p { font-size: 17px; line-height: 1.55; }
.cost-notes .n { font: 500 0.93em/1 var(--mono); }
.cost-notes a { display: inline-block; padding: 10px 0; margin: -10px 0; font-weight: 600; text-decoration-color: var(--barn); text-decoration-thickness: 2px; }
.cost-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }
.cost-act .more { color: var(--ink); text-decoration-color: rgba(35, 31, 26, 0.45); }
.cost-act .btn { min-width: 150px; }
.ai-sec { position: relative; padding: 30px 0 92px; }
.ai-in { max-width: 820px; }
.ai-sec .aibox { margin-top: 0; }

/* Short phones */
@media (max-height: 760px) and (max-width: 899px) {
  .rd { --wf-len: 10.2; }
  .rd .wf-head .eyebrow { display: none; }
  .m .rd .wf-head h2 { margin-top: 0; }
}
/* Narrow phones, and 125% zoom (about 314px) */
@media (max-width: 599px) {
  .m .rd .wf-checks > li { width: var(--wf-col); padding-right: 8px; border-top-color: transparent; background: linear-gradient(var(--rule), var(--rule)) left top / 100% 1px no-repeat; }
  .m .rd .wf-fall { left: calc(var(--wf-col) + 18px); }
}
@media (max-width: 360px) {
  .rd { --wf-col: 94px; }
  .pg { padding: 6px; gap: 6px; }
  .pg-page { padding: 6px; }
  .pg-files > span, .f-ld { padding-inline: 5px; }
  .pg .xt { display: none; }
  .six li { padding-inline: 16px; }
  .ans-body { padding-inline: 16px; }
}
@media (max-width: 309px) { .f-ld, .rd-tools li { font-size: 11.5px; } }

/* Laptop */
@media (min-width: 900px) {
  .rd { --wf-col: 150px; }
  .m .rd .wf-checks > li { padding-top: 7px; padding-bottom: 9px; }
  .rd .pg { gap: 11px; padding: 13px; }
  .m .rd .pg { max-width: 100%; }
  .m .rd .wf-fall { left: calc(var(--wf-col) + 8px); right: 8px; width: auto; max-width: 100%; }
  html:not(.m) .rd .wf-fall { max-width: 100%; }
  .pg-page { gap: 10px; padding: 12px 13px 13px; }
  .pg-files { gap: 8px; }
  .pg-files > span, .f-canon { padding: 4px 8px 5px; font-size: 14px; }
  .pg-say { font-size: clamp(18px, 2.2vw, 24px); }
  .f-ld { display: block; font-size: 14px; padding: 7px 9px 8px; }
  .rd-tools { justify-content: flex-start; }
  .rd-tools li { flex: 0 0 auto; padding: 11px 14px; font-size: 13px; }
  .ans-head { padding: 104px 0 40px; }
  .answer .face-day, .answer .face-night { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .ans-body { padding: 30px; }
  .six { margin: 0; border-top: 0; border-left: 1px solid var(--rule-ink); align-content: center; }
  .face-night .six { border-left-color: var(--rule); }
  .six li { padding: 14px 28px 15px; }
  .read { padding: 96px 0 40px; }
  .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .cost { padding: 60px 0 40px; }
  .ai-sec { padding: 40px 0 130px; }
}
