/* ==========================================================================
   Firefly — industry case study pages (/case-studies/<industry>/)

   Loaded after styles.css and case.css. One page per industry, one use case,
   problem first: the pain, the sum, what we'd build, what stays the same.
   The screens are drawn here in HTML and CSS, not screenshots, so they stay
   sharp on any screen and each page can show its own trade's data.
   ========================================================================== */

/* the industry's icon stands in for the label's dash */
.ind-label::before { display: none; }
.ind-label__icon { flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--glow); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Hero: the headline is a full sentence here, so it is set smaller and wider ---- */

.ind .case-hero { min-height: 0; padding-block: clamp(7.5rem, 18vh, 10rem) clamp(3rem, 8vh, 5rem); align-items: center; }
.ind .case-hero h1 { max-width: 17ch; font-size: clamp(2.15rem, 4.7vw, 4.3rem); line-height: 1.02; letter-spacing: -.04em; }
.ind .case-hero__lede { max-width: 36ch; font-size: clamp(1.08rem, 1.5vw, 1.35rem); color: var(--mist); }
.ind .case-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.ind-hero__art { position: relative; justify-self: center; width: min(100%, 20rem); margin-bottom: 1.9rem; }
.ind-hero__chip {
  position: absolute; left: -1.6rem; bottom: -1.9rem;
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem .95rem; border-radius: .8rem;
  background: #1f1a14; color: var(--paper);
  font-size: .86rem; font-weight: 500; line-height: 1.25;
  box-shadow: 0 18px 50px rgb(0 0 0 / .6), 0 0 0 1px rgb(var(--glow-rgb) / .45);
}
.ind-hero__chip b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; color: var(--glow); }
.ind-hero__more {
  display: inline-flex; align-items: center; gap: .5em; margin-top: clamp(1.3rem, 3vh, 1.9rem);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem); font-weight: 500; color: var(--glow);
  border-bottom: 1px solid rgb(var(--glow-rgb) / .5); padding-bottom: .2em;
  transition: border-color .3s;
}
.ind-hero__more:hover, .ind-hero__more:focus-visible { border-bottom-color: var(--glow); }
.ind .sect[id] { scroll-margin-top: 4.5rem; }
@media (max-width: 899px) {
  .ind .case-hero { padding-top: 7rem; }
  .ind .case-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ind-hero__art { width: min(78%, 17.5rem); margin-top: .6rem; }
  .ind-hero__chip { left: -1.4rem; }
  .ind .case-hero { padding-bottom: 3.6rem; }
}

/* ---- Sections sit closer together than on the long case studies ---- */

.ind .sect { padding-block: clamp(2.8rem, 7vh, 4.6rem); }
.ind .sect__title { max-width: 20ch; }
.ind .sect--line { border-top: 1px solid rgb(var(--paper-rgb) / .1); }

/* ---- Sound familiar? three pains, each with a small drawing ---- */

.ind .pains { margin-top: clamp(1.8rem, 4vh, 2.6rem); gap: clamp(1rem, 2.4vw, 2rem); }
.ind .pains li {
  padding: 1.3rem 1.3rem 1.4rem; border: 1px solid rgb(var(--paper-rgb) / .12); border-radius: 1rem;
  background: linear-gradient(180deg, rgb(var(--paper-rgb) / .035), rgb(var(--paper-rgb) / .01));
}
.pain__icon { display: block; width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--glow); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ind .pains h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.ind .pains p { margin-top: .45rem; font-size: 1rem; line-height: 1.5; }
@media (max-width: 899px) {
  .ind .pains li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 1rem; padding: 1.1rem; }
  .pain__icon { grid-row: span 2; margin: .1rem 0 0; }
}

/* ---- Do the sums: two numbers in, one out ---- */

.sum {
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
  display: grid; grid-template-columns: repeat(5, auto); justify-content: start; align-items: stretch; gap: clamp(.6rem, 1.6vw, 1.2rem);
}
.sum__cell {
  display: grid; align-content: center; gap: .5rem;
  padding: clamp(1.1rem, 2.2vw, 1.7rem); border-radius: 1rem;
  border: 1px solid rgb(var(--paper-rgb) / .12);
}
.sum__n { font-size: clamp(1.9rem, 3.3vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.sum__what { max-width: 24ch; font-size: .95rem; line-height: 1.35; color: var(--mist); }
.sum__op { align-self: center; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; color: rgb(var(--paper-rgb) / .45); }
.sum__cell--out { border-color: rgb(var(--glow-rgb) / .45); background: radial-gradient(ellipse 80% 120% at 100% 0%, rgb(var(--glow-rgb) / .1), transparent 70%); }
.sum__cell--out .sum__n { color: var(--glow); }
.sum__line { margin-top: 1.4rem; max-width: 34ch; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.sum__note { margin-top: .7rem; font-size: .86rem; color: var(--mist); }
@media (max-width: 899px) {
  .sum { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .sum__op--eq { display: none; }
  .sum__cell--out { grid-column: 1 / -1; position: relative; padding-left: 3rem; }
  .sum__cell--out::before { content: "="; position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; color: rgb(var(--paper-rgb) / .45); }
}

/* ---- What we'd build: three steps, each with its screen ---- */

.build { list-style: none; margin: clamp(2.2rem, 5vh, 3.4rem) 0 0; padding: 0; display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.build__row {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.4rem, 4vw, 4rem);
  padding: clamp(1.3rem, 3vw, 2.6rem); border-radius: 1.4rem;
  border: 1px solid rgb(var(--paper-rgb) / .12);
  background: linear-gradient(180deg, rgb(var(--paper-rgb) / .04), rgb(var(--paper-rgb) / .012));
}
.build__num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  font: 500 .8rem/1 var(--mono); color: var(--ink); background: var(--glow);
}
.build__row > div:first-child h3 { margin-top: 1rem; font-size: clamp(1.45rem, 2.5vw, 2.1rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.build__row > div:first-child p { margin-top: .7rem; max-width: 34ch; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.5; color: var(--mist); }
.build__art { display: grid; justify-items: center; }
.build__art > * { width: 100%; }
.build__art .mphone { width: min(100%, 17rem); }
.build__note { margin-top: 1.1rem; font-size: .86rem; color: var(--mist); }
@media (max-width: 899px) {
  .build__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---- What stays the same ---- */

.keep { list-style: none; margin: clamp(1.6rem, 4vh, 2.2rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.keep li {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem; border-radius: .9rem;
  border: 1px solid rgb(var(--paper-rgb) / .12);
  font-size: clamp(1rem, 1.3vw, 1.12rem); font-weight: 500; line-height: 1.3;
}
.keep svg { flex: none; width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--glow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 899px) { .keep { grid-template-columns: minmax(0, 1fr); } }

/* ---- How we start ---- */

.ind .steps { margin-top: clamp(1.6rem, 4vh, 2.2rem); }
.ind .steps--short .step h3 { margin-top: .9rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.02em; }
.ind .steps--short .step p { color: var(--mist); }

/* ---- Close ---- */

.ind .case-close { padding-top: clamp(4rem, 11vh, 7rem); }
.ind .case-close .cta-wrap { margin-top: clamp(1.6rem, 4vh, 2.4rem); }
.ind .case-close .foot { margin-top: clamp(3.5rem, 10vh, 6rem); }

/* ==========================================================================
   Drawn screens. A phone with a chat app, a light card, a table in a window.
   Sizes are in em so a screen scales with the font-size set on its frame.
   ========================================================================== */

.mphone {
  margin: 0; position: relative; font-size: clamp(.68rem, 1.9vw, .78rem);
  padding: 1.5em .55em .6em; border-radius: 2.4em;
  background: linear-gradient(160deg, #3a322a, #17130f);
  box-shadow: 0 30px 80px rgb(0 0 0 / .55), 0 0 0 1px rgb(var(--paper-rgb) / .14), inset 0 0 0 1px rgb(255 255 255 / .06);
}
.mphone::before { content: ""; position: absolute; left: 50%; top: .62em; width: 22%; height: .34em; transform: translateX(-50%); border-radius: 1em; background: #0b0a08; }
.mphone__screen { overflow: hidden; border-radius: .5em .5em 1.9em 1.9em; background: #efe7dd; color: #111b21; }

/* the chat app: a green bar, then either the list of chats or one chat */
.chat__bar { display: flex; align-items: center; gap: .7em; padding: .85em .9em; background: #0b5d52; color: #fff; }
.chat__bar b { display: block; font-size: 1.08em; font-weight: 600; line-height: 1.2; }
.chat__bar span { display: block; font-size: .86em; opacity: .8; }
.chat__av {
  flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%;
  font-style: normal; font-size: .9em; font-weight: 600; color: #fff; background: #6f8f86;
}
.chats { list-style: none; margin: 0; padding: 0; background: #fff; }
.chats li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75em; padding: .8em .9em; border-bottom: 1px solid #edf0f1; }
.chats .chat__av { background: var(--c, #8696a0); }
.chats b { display: block; font-size: 1em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chats span { display: block; margin-top: .15em; font-size: .9em; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chats__meta { display: grid; justify-items: end; gap: .35em; }
.chats time { font-size: .78em; color: #1faa5a; }
.chats__n { display: grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 1em; font-size: .78em; font-weight: 600; color: #fff; background: #25d366; }

.chat__body { display: grid; gap: .55em; align-content: start; padding: 1em .8em 1.4em; min-height: 15em; }
.chat__day { justify-self: center; padding: .35em .8em; border-radius: .6em; font-size: .8em; color: #54656f; background: rgb(255 255 255 / .85); }
.msg { justify-self: start; max-width: 88%; padding: .6em .7em .45em; border-radius: 0 .7em .7em .7em; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / .1); font-size: 1em; line-height: 1.4; }
.msg time { display: block; margin-top: .15em; text-align: right; font-size: .76em; color: #667781; }

/* the checked order: a light card, like the app it stands for */
.ocard {
  margin: 0; font-size: clamp(.78rem, 1.9vw, .9rem);
  border-radius: 1.1em; overflow: hidden; background: #fbf7ef; color: #1f1a14;
  box-shadow: 0 30px 80px rgb(0 0 0 / .5), 0 0 0 1px rgb(var(--glow-rgb) / .3), 0 0 70px rgb(var(--glow-rgb) / .1);
}
.ocard__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 1.2em; border-bottom: 1px solid #e6dccb; }
.ocard__head b { display: block; font-size: 1.08em; font-weight: 600; }
.ocard__head span { display: block; margin-top: .15em; font-size: .86em; color: #6b6255; }
.ocard__tag { flex: none; padding: .45em .7em; border-radius: 2em; font-size: .78em; font-weight: 600; white-space: nowrap; color: #1c6b3f; background: #dff3e6; }
.ocard__rows { list-style: none; margin: 0; padding: 0 1.2em; }
.ocard__rows li { display: grid; grid-template-columns: 1.3em minmax(0, 1fr) auto auto; align-items: center; column-gap: .8em; padding: .7em 0; border-bottom: 1px solid #efe6d6; }
.ocard__rows b { display: block; font-weight: 500; }
.ocard__rows small { display: block; margin-top: .1em; font: 500 .78em/1.2 var(--mono); color: #8a8073; }
.ocard__qty { font-variant-numeric: tabular-nums; color: #6b6255; white-space: nowrap; }
.ocard__amt { min-width: 5.4em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ocard__tick { width: 1.3em; height: 1.3em; fill: none; stroke: #2f9e5b; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ocard__rows li.is-flag { margin-inline: -1.2em; padding-inline: 1.2em; background: #fff3d6; border-bottom-color: #f0dfb4; }
.ocard__rows li.is-flag .ocard__tick { stroke: #b97a1c; }
.ocard__pick { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: .4em; margin-top: .55em; }
.ocard__pick i { padding: .4em .7em; border-radius: .5em; font-style: normal; font-size: .84em; font-weight: 500; background: #fff; box-shadow: 0 0 0 1px #e0c98f; }
.ocard__pick i:first-child { box-shadow: 0 0 0 2px #b97a1c; }
.ocard__foot { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 1.2em; }
.ocard__foot span { font-size: .9em; color: #6b6255; }
.ocard__foot .ocard__btn { padding: .75em 1.3em; border-radius: .6em; font-size: .95em; font-weight: 500; background: #1f1a14; color: #ffc758; }

/* the accounting system: a table in a window. Plain on purpose: it is theirs, not ours */
.acct { font-size: clamp(.72rem, 1.8vw, .86rem); background: #f4f5f7; color: #1d2430; }
.acct__top { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .9em 1.1em; background: #fff; border-bottom: 1px solid #dfe3e8; }
.acct__top b { font-size: 1.1em; font-weight: 600; }
.acct__top span { font-size: .86em; color: #6a7482; }
.acct__rows { list-style: none; margin: 0; padding: 0; }
.acct__rows li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr) 6.2em auto; align-items: center; column-gap: .9em; padding: .75em 1.1em; background: #fff; border-bottom: 1px solid #e8ebef; }
.acct__rows li.acct__h { padding-block: .6em; background: #eef0f3; font-size: .78em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6a7482; }
.acct__rows li.is-new { background: #fff8e4; box-shadow: inset 3px 0 0 #e0a528; }
.acct__no { font: 500 .92em/1.2 var(--mono); }
.acct__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct__who small { display: block; font-size: .84em; color: #6a7482; }
.acct__amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct__src { justify-self: end; padding: .35em .6em; border-radius: 2em; font-size: .78em; font-weight: 600; white-space: nowrap; color: #1c6b3f; background: #dff3e6; }
.acct__src--plain { color: #5b6470; background: #e8ebef; }
.acct__src--warn { color: #8a5a0a; background: #ffe9bd; }
.acct__src--bad { color: #a3271f; background: #fde0dc; }
.acct__strip { margin: 0; padding: .7em 1.1em; font-size: .92em; background: #fff8e4; border-bottom: 1px solid #f0dfb4; }
.acct__strip b { font-weight: 600; }
@media (max-width: 480px) {
  .acct__rows li { grid-template-columns: minmax(0, 1fr) auto; row-gap: .3em; }
  .acct__rows li.acct__h { display: none; }
  .acct__no { order: 1; }
  .acct__src { order: 2; }
  .acct__who { order: 3; }
  .acct__amt { order: 4; }
}

/* ---- More of the chat: messages we sent, who said it in a group, a gap, a button in a message ---- */

.msg--out { justify-self: end; border-radius: .7em 0 .7em .7em; background: #d9fdd3; }
.msg__from { display: block; margin-bottom: .1em; font-size: .86em; font-weight: 600; }
.msg__btn { display: block; margin-top: .6em; padding: .6em; border-radius: .5em; text-align: center; font-weight: 600; color: #0b5d52; background: #e7f3ef; }
.chat__sep { justify-self: center; margin-block: .3em; padding: .3em .8em; border-radius: .6em; font-size: .8em; color: #54656f; background: rgb(255 255 255 / .6); }

/* ---- A form on a phone: a job sheet, a site instruction, an outlet's order, a booking ---- */

.pform { background: #fbf7ef; color: #1f1a14; padding-bottom: 1.2em; }
.pform__head { padding: 1.1em 1.1em .9em; border-bottom: 1px solid #e6dccb; }
.pform__head b { display: block; font-size: 1.2em; font-weight: 600; letter-spacing: -.01em; }
.pform__head span { display: block; margin-top: .2em; font-size: .86em; color: #6b6255; }
.pform__rows { list-style: none; margin: 0; padding: 0 1.1em; }
.pform__rows li { padding: .75em 0; border-bottom: 1px solid #efe6d6; }
.pform__rows small { display: block; font-size: .82em; color: #8a8073; }
.pform__rows b { font-weight: 500; }
.pform__kv b { display: block; margin-top: .15em; }
.pform__tick { display: grid; grid-template-columns: 1.3em minmax(0, 1fr); align-items: center; column-gap: .7em; }
.pform__item { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.pform__qty { flex: none; display: flex; align-items: center; gap: .5em; padding: .3em; border-radius: .6em; background: #fff; box-shadow: 0 0 0 1px #e0d6c4; }
.pform__qty i { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: .4em; font-style: normal; color: #6b6255; background: #f1eadc; }
.pform__qty b { min-width: 1.6em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pform__photos { display: flex; align-items: center; gap: .5em; }
.pform__photos i { width: 3.1em; height: 3.1em; border-radius: .45em; background: linear-gradient(140deg, #cfc4b0, #a89b85 55%, #8d806b); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.pform__photos span { margin-left: .3em; font-size: .86em; color: #6b6255; }
.pform__sign svg { display: block; width: 8.5em; height: 2.4em; fill: none; stroke: #2a3b8f; stroke-width: 1.6; stroke-linecap: round; }
.pform__voice { display: flex; align-items: center; gap: .6em; }
.pform__voice i { flex: none; width: 2em; height: 2em; border-radius: 50%; background: #0b5d52; }
.pform__voice span { flex: 1; height: .5em; border-radius: 1em; background: repeating-linear-gradient(90deg, #b9ae9b 0 .18em, transparent .18em .42em); }
.pform__rows li.pform__note { border-bottom: 0; font: 500 .78em/1.4 var(--mono); color: #8a8073; }
.pform__btn { display: block; margin: 1em 1.1em 0; padding: .9em; border-radius: .7em; text-align: center; font-weight: 500; background: #1f1a14; color: #ffc758; }
.pform__btn--big { padding: 1.7em .9em; font-size: 1.35em; font-weight: 600; background: #ffc758; color: #1f1a14; }

/* ---- More of the card: a QR code on a job sheet, stages not done yet, tags that warn ---- */

.ocard__head > div { flex: 1; min-width: 0; }
.ocard__qr { flex: none; width: 3.2em; height: 3.2em; fill: #1f1a14; }
.ocard__tag--warn { color: #8a5a0a; background: #ffe9bd; }
.ocard__tag--bad { color: #a3271f; background: #fde0dc; }
.ocard__tick--todo { stroke: #cfc4b0; stroke-width: 1.6; }
.ocard__rows li.is-todo b { font-weight: 400; color: #8a8073; }
.ocard__rows li.is-flag .ocard__amt { font-weight: 600; color: #8a5a0a; }

/* a card or a table in the hero sits a little wider than a phone */
.ind-hero__art--card, .ind-hero__art--table { width: min(100%, 23rem); }
@media (max-width: 899px) { .ind-hero__art--card, .ind-hero__art--table { width: min(92%, 22rem); } }

/* ---- The list page: every industry, one tile each ---- */

.ind .hub-hero { display: block; padding-bottom: clamp(2rem, 6vh, 4rem); }
.ind .hub-hero h1 { max-width: 14ch; }
.hub { list-style: none; margin: clamp(2.2rem, 6vh, 3.6rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.hub__item {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: center; column-gap: 1rem; row-gap: .2rem;
  height: 100%; padding: 1.1rem 1.2rem; border-radius: 1rem;
  border: 1px solid rgb(var(--paper-rgb) / .14); background: rgb(15 13 10 / .72);
  transition: border-color .3s;
}
.hub__item:hover, .hub__item:focus-visible { border-color: rgb(var(--glow-rgb) / .6); }
.hub__icon { width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: .7rem; fill: none; stroke: var(--glow); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; background: rgb(var(--glow-rgb) / .1); }
.hub__item b { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
@media (max-width: 760px) { .hub { grid-template-columns: minmax(0, 1fr); } }

/* ---- Our solution: what it is, in the biggest words on the page after the headline ---- */

.ind .sol { padding-top: clamp(3.4rem, 9vh, 6rem); }
.sol__title {
  max-width: 21ch; text-wrap: balance;
  font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 600; line-height: 1.03; letter-spacing: -.04em;
}
.sol__line {
  margin-top: clamp(1rem, 2.4vh, 1.5rem); max-width: 32ch; text-wrap: balance;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--glow);
}

/* how it flows: three boxes and the arrows between them */
.flow {
  list-style: none; margin: clamp(2rem, 5vh, 3.2rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3.2rem);
}
.flow li {
  position: relative; display: grid; justify-items: center; align-content: start; gap: .8rem;
  padding: clamp(1rem, 2.4vw, 1.6rem) .6rem; border-radius: 1rem; text-align: center;
  border: 1px solid rgb(var(--glow-rgb) / .3); background: rgb(var(--glow-rgb) / .05);
}
.flow li + li::before {
  /* the arrow, in the gap to the left */
  content: ""; position: absolute; top: 50%; right: calc(100% + clamp(.35rem, 1vw, .9rem));
  width: clamp(.7rem, 2vw, 1.4rem); height: 2px; background: rgb(var(--glow-rgb) / .7);
}
.flow li + li::after {
  content: ""; position: absolute; top: 50%; right: calc(100% + clamp(.3rem, .9vw, .8rem));
  width: .5rem; height: .5rem; margin-top: -.22rem;
  border-top: 2px solid rgb(var(--glow-rgb) / .7); border-right: 2px solid rgb(var(--glow-rgb) / .7); transform: rotate(45deg);
}
.flow__icon { width: clamp(1.8rem, 3.4vw, 2.6rem); height: clamp(1.8rem, 3.4vw, 2.6rem); fill: none; stroke: var(--glow); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.flow b { font-size: clamp(.86rem, 1.5vw, 1.2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.flow + .build { margin-top: clamp(1.4rem, 3.5vh, 2.2rem); }

/* ---- What changes: today on the left, with it on the right ---- */

.changes { margin-top: clamp(1.6rem, 4vh, 2.2rem); border: 1px solid rgb(var(--paper-rgb) / .12); border-radius: 1rem; overflow: hidden; }
.changes__head, .changes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.changes__head { margin: 0; font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.changes__head span { padding: .9rem clamp(.9rem, 2.4vw, 1.6rem); }
.changes__head span + span { color: var(--glow); background: rgb(var(--glow-rgb) / .07); }
.changes ul { list-style: none; margin: 0; padding: 0; }
.changes li { border-top: 1px solid rgb(var(--paper-rgb) / .1); }
.changes__was, .changes__now { padding: clamp(.95rem, 2.2vw, 1.3rem) clamp(.9rem, 2.4vw, 1.6rem); font-size: clamp(.98rem, 1.5vw, 1.25rem); line-height: 1.3; }
.changes__was { color: var(--mist); text-decoration: line-through; text-decoration-color: rgb(var(--paper-rgb) / .28); }
.changes__now { font-weight: 500; color: var(--paper); background: rgb(var(--glow-rgb) / .07); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* on a phone the sum stacks: each number on its own line with what it is beside it */
@media (max-width: 899px) {
  .sum { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .sum__op, .sum__op--eq { display: block; justify-self: center; font-size: 1.15rem; line-height: 1; }
  .sum__cell { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1rem; padding: 1rem 1.1rem; }
  .sum__cell--out { grid-column: auto; padding-left: 1.1rem; }
  .sum__cell--out::before { display: none; }
  .sum__n { font-size: 1.85rem; }
}

/* ---- The dream: one line, lit by the pointer. glow.js moves the light; with no pointer it drifts. ---- */

@property --tx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --ty { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

.dream {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding-block: clamp(4rem, 12vh, 7.5rem);
  border-block: 1px solid rgb(var(--glow-rgb) / .2);
  background: rgb(var(--glow-rgb) / .03);
  animation: dream-drift 5.5s ease-in-out infinite alternate;
}
.dream.is-live { animation: none; }
@keyframes dream-drift {
  from { --tx: 4%; --ty: 35%; --gx: 18%; --gy: 40%; }
  to   { --tx: 96%; --ty: 65%; --gx: 82%; --gy: 60%; }
}
.dream::before {
  /* the pool of light on the ground */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle 24rem at var(--gx) var(--gy), rgb(var(--glow-rgb) / .2), rgb(var(--glow-rgb) / .05) 45%, transparent 72%);
}
.dream__line {
  display: inline-block; max-width: 17ch; padding-bottom: .12em; text-wrap: balance;
  font-size: clamp(2.2rem, 6.2vw, 5.2rem); font-weight: 600; line-height: 1.02; letter-spacing: -.045em;
  /* the words are lit where the pointer is, and linen everywhere else */
  background: radial-gradient(circle 5.5em at var(--tx) var(--ty), #fffaf0 0, var(--glow-hi) 14%, var(--glow) 38%, var(--paper) 78%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--paper);
  filter: drop-shadow(0 0 1.4rem rgb(var(--glow-rgb) / .18));
}
.dream__line sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: .08em; -webkit-text-fill-color: var(--glow); color: var(--glow); letter-spacing: 0; }
.dream__note { margin-top: clamp(1.1rem, 3vh, 1.7rem); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.4; color: var(--mist); }
.dream__note sup { color: var(--glow); margin-right: .15em; }
.dream__note b { font-weight: 600; color: var(--paper); }

/* the demo button: light follows the pointer across it, and a ring breathes behind it */
.demo-cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(1.6rem, 4.5vh, 2.6rem);
  padding: 1.2em 1.8em 1.2em 2em; font-size: clamp(1.02rem, 1.3vw, 1.2rem); font-weight: 600;
  transition: transform .35s var(--out), box-shadow .6s var(--out), background-color .4s;
  animation: demo-breathe 2.8s ease-in-out infinite;
}
.demo-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(circle 7em at var(--gx) var(--gy), #fff8e0, rgb(255 248 224 / 0) 70%);
  transition: opacity .3s;
}
.demo-cta.is-live::before { opacity: .9; }
.demo-cta:hover, .demo-cta:focus-visible { transform: translateY(-2px) scale(1.03); animation: none; }
.demo-cta:active { transform: scale(.98); }
@keyframes demo-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgb(var(--glow-rgb) / .9), 0 0 36px rgb(var(--glow-rgb) / .3), 0 0 0 0 rgb(var(--glow-rgb) / .45); }
  55% { box-shadow: 0 0 0 1px rgb(var(--glow-rgb) / .9), 0 0 48px rgb(var(--glow-rgb) / .42), 0 0 0 .9rem rgb(var(--glow-rgb) / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .dream, .demo-cta { animation: none; }
}

/* ---- Fit and finish ---- */

/* the second line in a table row wraps, so nothing is cut off with dots */
.acct__who small { white-space: normal; line-height: 1.3; margin-top: .1em; }

/* the diagram on a small phone: tighter boxes, smaller words, and long words may break */
.flow b { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) {
  .flow { gap: 1.05rem; }
  .flow li { padding: .9rem .3rem; gap: .6rem; }
  .flow b { font-size: .8rem; }
  .flow li + li::before { right: calc(100% + .32rem); width: .45rem; }
  .flow li + li::after { right: calc(100% + .28rem); width: .4rem; height: .4rem; margin-top: -.17rem; }
}

/* the hero's chip hangs below the screen, clear of its last row */
.ind-hero__chip { bottom: -2.5rem; }
.ind-hero__art { margin-bottom: 2.5rem; }
.ind-hero__art--card .ind-hero__chip, .ind-hero__art--table .ind-hero__chip { bottom: -3.7rem; }
.ind-hero__art--card, .ind-hero__art--table { margin-bottom: 3.7rem; }
