/* profiles.red home page: "Live order" (UI round 1 pick A, Bike 11/12/2026).
 * The order form sits in the hero beside the receipt printer, and the receipt carries what the owner types
 * (profiles.js). Steps are one line with the owner's stops above it and ours below; prices are a bill.
 * Every class here starts with lo- so nothing collides with pbn.red's skin. The printer drawing is receipt.css.
 * Hallmark · macrostructure: Workbench (the form is the hero) · theme: profiles.red brand (locked) */

.lo h2 { font-size: clamp(1.9rem, 2.2vw + 1.1rem, 3.05rem); font-weight: 900; letter-spacing: -0.035em; max-width: 20ch; }
.lo-lead { margin-top: var(--space-md); font-size: var(--text-md); line-height: 1.4; max-width: 46ch; }
.lo-fine { margin-top: var(--space-lg); font-size: var(--text-sm); max-width: 62ch; }
.lo > section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.go--big { font-size: var(--text-lg); min-height: 4rem; padding-inline: 2rem; }

/* ---------- hero: copy + order form left, the printer right ---------- */
.lo > .lo-hero { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.lo-hero__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.lo-hero h1 { font-size: clamp(2.5rem, 4.1vw + 0.9rem, 4.6rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95; max-width: 13ch; }
.lo-hero__big { margin-top: var(--space-lg); font-family: var(--font-display); font-size: clamp(1.15rem, 0.7vw + 1rem, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; max-width: 30ch; }
.lo-hero__lede { margin-top: var(--space-sm); max-width: 62ch; font-size: var(--text-sm); color: var(--color-ink-2); }
.lo-hero__stage { position: relative; min-width: 0; }

.lo-order { margin-top: var(--space-lg); border: var(--rule-slab); background: var(--color-paper); box-shadow: 10px 10px 0 var(--color-red); }
.lo-order__body { padding: var(--space-lg); }
.lo-order__say { font-size: var(--text-md); line-height: 1.3; }
.lo-order__grid { margin-top: var(--space-md); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.lo-f { display: grid; gap: 0.3rem; min-width: 0; }
.lo-f label { font-family: var(--font-data); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.lo-f input {
  width: 100%; min-width: 0; min-height: 3rem; padding: 0.6rem 0.8rem; border: 2px solid var(--color-ink); border-radius: 0;
  background: var(--color-paper); color: var(--color-ink); font: inherit; font-size: var(--text-base);
}
.lo-f input::placeholder { color: var(--color-muted); }
.lo-f input:focus-visible { outline: 3px solid var(--color-red); outline-offset: 0; }
/* the price and the button sit on ink, so the lime button is the loudest thing in the hero */
.lo-order__go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); background: var(--color-ink); color: var(--color-paper); }
.lo-order__price { display: flex; align-items: baseline; gap: 0.6rem; }
.lo-order__price b { font-family: var(--font-display); font-size: clamp(2.4rem, 2vw + 1.6rem, 3.4rem); font-weight: 900; font-style: italic; letter-spacing: -0.05em; line-height: 1; }
.lo-order__price span { font-weight: 700; color: var(--on-ink-2); }
.lo-after { margin-top: calc(var(--space-lg) + 10px); }
.lo-order__no { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: var(--text-sm); font-weight: 600; }
.lo-order__no li { padding-left: 1rem; position: relative; }
.lo-order__no li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.5rem; height: 0.5rem; background: var(--color-red); }
.lo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lo-ok { margin-top: var(--space-xl); background: var(--color-ink); color: var(--color-paper); padding: var(--space-lg); font-weight: 700; font-size: var(--text-md); line-height: 1.35; box-shadow: 10px 10px 0 var(--color-red); }
.lo-err { margin-top: var(--space-md); border-left: 6px solid var(--color-red); background: var(--color-red-wash); padding: var(--space-md) var(--space-lg); font-weight: 600; }
.lo-ok[hidden], .lo-err[hidden] { display: none; }
@media (max-width: 64rem) { .lo-hero__in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 34rem) {
  .lo-order__grid { grid-template-columns: minmax(0, 1fr); }
  .lo-order, .lo-ok { box-shadow: 6px 6px 0 var(--color-red); }
  .lo-order__body, .lo-order__go { padding: var(--space-md); }
  .lo-order__go .go { width: 100%; }
}

/* ---------- how: one line, the owner's stops above it, ours below ---------- */
.lo-how { background: var(--color-ink); color: var(--color-paper); }
.lo-how .lo-lead, .lo-how .lo-fine { color: var(--on-ink-2); }
.lo-how .lo-fine b { color: var(--color-paper); }
.lo-track { position: relative; margin-top: var(--space-2xl); }
.lo-track ol.lo-track__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto 3rem auto; gap: 0 var(--space-lg); position: relative; }
.lo-track__list::before { content: ""; grid-row: 2; grid-column: 1 / -1; align-self: center; height: 4px; background: var(--color-red); }
.lo-stop { position: relative; grid-row: 3; display: grid; gap: 0.3rem; align-content: start; font-size: var(--text-sm); line-height: 1.4; }
.lo-stop--you { grid-row: 1; align-content: end; }
.lo-stop:nth-child(1) { grid-column: 1; --i: 0; } .lo-stop:nth-child(2) { grid-column: 2; --i: 1; } .lo-stop:nth-child(3) { grid-column: 3; --i: 2; }
.lo-stop:nth-child(4) { grid-column: 4; --i: 3; } .lo-stop:nth-child(5) { grid-column: 5; --i: 4; } .lo-stop:nth-child(6) { grid-column: 6; --i: 5; }
.lo-stop:nth-child(7) { grid-column: 7; --i: 6; }
.lo-stop::before { content: ""; position: absolute; left: 0; width: 1.1rem; height: 1.1rem; background: var(--color-paper); border: 4px solid var(--color-red); top: -2.05rem; }
.lo-stop--you::before { top: auto; bottom: -2.05rem; background: var(--color-red); border-color: var(--color-paper); }
.lo-stop::after { content: ""; position: absolute; left: 0.45rem; top: -1rem; height: 0.8rem; width: 2px; background: var(--on-ink-2); }
.lo-stop--you::after { top: auto; bottom: -1rem; }
.lo-stop b { font-family: var(--font-display); font-size: var(--text-md); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.lo-stop span:last-child { color: var(--on-ink-2); }
.lo-stop__who { font-family: var(--font-data); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-2); }
.lo-stop--you .lo-stop__who { color: var(--color-paper); background: var(--color-red); justify-self: start; padding: 0 0.4rem; }
@media (max-width: 64rem) {
  .lo-track ol.lo-track__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: var(--space-lg); padding-left: 2.25rem; }
  .lo-track__list::before { position: absolute; grid-row: auto; grid-column: auto; align-self: auto; left: 0.45rem; top: 0; bottom: 0; width: 4px; height: auto; }
  .lo-track__list .lo-stop { grid-row: auto; grid-column: 1; align-content: start; }
  .lo-stop::before, .lo-stop--you::before { left: -2.25rem; top: 0.15rem; bottom: auto; }
  .lo-stop::after, .lo-stop--you::after { display: none; }
}

/* the line draws as the section scrolls into view and each stop lights when the line reaches it.
   Scroll-linked, CSS only; browsers without it, and reduced motion, get the finished line. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lo-track { view-timeline: --lo-track block; --s: 14%; --e: 46%; }
    .lo-track__list::before { transform-origin: 0 50%; animation: lo-draw linear both; animation-timeline: --lo-track; animation-range: cover var(--s) cover var(--e); }
    .lo-stop {
      animation: lo-lit linear both; animation-timeline: --lo-track;
      animation-range: cover calc(var(--s) + (var(--e) - var(--s)) * var(--i) / 7) cover calc(var(--s) + (var(--e) - var(--s)) * var(--i) / 7 + 4%);
    }
    @media (max-width: 64rem) {
      .lo-track { --s: 10%; --e: 66%; }
      .lo-track__list::before { transform-origin: 50% 0; animation-name: lo-draw-y; }
    }
  }
}
@keyframes lo-draw { from { transform: scaleX(0); } }
@keyframes lo-draw-y { from { transform: scaleY(0); } }
@keyframes lo-lit { from { opacity: 0.3; } }

/* ---------- prices as a bill ---------- */
.lo-bill__rows { list-style: none; padding: 0; margin: var(--space-xl) 0 0; border-top: var(--rule-slab); }
.lo-bill__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem) minmax(0, 15.5rem); gap: var(--space-lg); align-items: center; padding-block: var(--space-lg); border-bottom: var(--rule-ink); }
.lo-bill__t { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; font-style: italic; letter-spacing: -0.03em; line-height: 1.05; }
.lo-bill__d { margin-top: 0.3rem; max-width: 58ch; }
.lo-bill__n { text-align: right; font-family: var(--font-display); font-size: clamp(2.5rem, 3vw + 1.2rem, 4.4rem); font-weight: 900; font-style: italic; letter-spacing: -0.055em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lo-bill__n small { font-family: var(--font-data); font-style: normal; font-weight: 400; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; margin-right: 0.5rem; vertical-align: 0.9em; }
.lo-bill__n .per { margin: 0 0 0 0.5rem; vertical-align: 0; }
.lo-bill__row > a { justify-self: end; }
.lo-bill__row--main { background: var(--color-ink); color: var(--color-paper); padding-inline: var(--space-lg); margin-inline: calc(-1 * var(--space-lg)); border-bottom: 0; }
@media (max-width: 60rem) {
  .lo-bill__row { grid-template-columns: minmax(0, 1fr) max-content; }
  .lo-bill__row > a { grid-column: 1 / -1; justify-self: start; }
  .lo-bill__row--main { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .lo-bill__row--main > a { width: 100%; }
}
@media (max-width: 34rem) { .lo-bill__row { grid-template-columns: minmax(0, 1fr); } .lo-bill__n { text-align: left; } }

/* ---------- who can have one ---------- */
.lo-who { background: var(--color-paper-2); border-block: var(--rule-slab); }
.lo-who__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lo-yes { list-style: none; margin: 0; padding: 0; }
.lo-yes li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-ink); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.lo-yes li:first-child { border-top: var(--rule-slab); }
.lo-yes b { flex: none; font-style: italic; font-weight: 900; background: var(--color-ink); color: var(--color-paper); padding: 0.1em 0.5em 0.16em; }
.lo-yes li:nth-child(n+2):nth-child(-n+4) b { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 3px var(--color-ink); }
@media (max-width: 56rem) { .lo-who__in { grid-template-columns: minmax(0, 1fr); } .lo-yes li { font-size: var(--text-md); flex-wrap: wrap; } }

/* ---------- the 13 pages we read ---------- */
.lo-read { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lo .lo-read h2 { font-size: clamp(2.2rem, 3.4vw + 1rem, 4.4rem); max-width: 13ch; line-height: 1.02; }
.lo-read p { font-size: var(--text-md); line-height: 1.45; }
.lo-read p + p { margin-top: var(--space-md); }
@media (max-width: 56rem) { .lo-read { grid-template-columns: minmax(0, 1fr); } }

.lo > .lo-qs { padding-top: 0; }
.lo-qs .faq { margin-top: var(--space-xl); }

/* ---------- end band ---------- */
.lo-end { background: var(--color-red); color: var(--color-on-red); }
.lo-end__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.lo-end__line { font-family: var(--font-display); font-size: clamp(2rem, 3vw + 1rem, 4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.04; max-width: 16ch; }
@media (max-width: 34rem) { .lo-end .go { width: 100%; font-size: var(--text-md); padding-inline: 1rem; } }
/* the end band already says the footer's line, so the home footer starts at the small print */
.foot--plain { padding-top: var(--space-xl); border-top: 0; }
.foot--plain .foot__meta { margin-top: 0; padding-top: 0; border-top: 0; }
