@layer pages {
/*
  The legacy free tools (T-tool-legacy), noindex. Owner: pages-reality.
  #tool: the H1 and one line low-left, the tool itself (the field, or the commission controls) on a warm glass desk
  beside it, over the tool's own plate (the counter, the lit floors, the office, the kitchen pass), graded into ink.
  #scenario (commission only): the headline beside the scenario receipt on the counter under the pendant.
  #example (the scan tools) is a frames.css type frame.
*/
.lt {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: min(92svh, 880px);
  display: grid;
  align-items: end;
  padding-block: calc(var(--nav-h) + 40px) clamp(56px, 7vw, 96px);
  background: var(--ink);
}
/* the tool's own scene, sharp and wide (2.39:1): its lit object lands behind the console (the key the console's glass
   takes), the copy sits in the dark third of the frame on its own scrim pool */
.lt-plate {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.lt-plate :where(picture, img) {
  display: block;
  width: 100%;
  height: 100%;
}
.lt-plate img {
  object-fit: cover;
  object-position: var(--plate-pos, 50% 50%);
}
.lt-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 62% at 20% 64%, rgba(7, 8, 10, 0.9), rgba(7, 8, 10, 0.74) 48%, rgba(7, 8, 10, 0) 100%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.86), rgba(7, 8, 10, 0.4) 40%, rgba(7, 8, 10, 0) 58%),
    radial-gradient(40% 50% at var(--light-at), color-mix(in oklab, var(--key) 10%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 20%, transparent 66%, var(--ink) 100%);
}
/* mirrored (the counter's lit storefront is on the left of its frame): the console takes the light on the left, the
   copy sits in the dark street on the right */
.lt.is-mirror .lt-shade {
  background:
    radial-gradient(42% 80% at 80% 52%, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.84) 56%, rgba(7, 8, 10, 0) 100%),
    linear-gradient(270deg, rgba(7, 8, 10, 0.86), rgba(7, 8, 10, 0.4) 40%, rgba(7, 8, 10, 0) 58%),
    radial-gradient(40% 50% at var(--light-at), color-mix(in oklab, var(--key) 10%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 20%, transparent 66%, var(--ink) 100%);
}
.lt-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px) 24px;
  align-items: end;
}
.lt-copy {
  grid-column: 1 / span 6;
  display: grid;
  gap: 16px;
  align-content: end;
}
.lt-h1 {
  margin: 0;
  max-width: 14ch;
  font: var(--t-display-xl);
  font-size: clamp(42px, 5.6vw, 96px);
  font-stretch: var(--t-display-xl-wdth);
  letter-spacing: var(--t-display-xl-track);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.lt-sub {
  margin: 0;
  max-width: 34ch;
  font: var(--t-lede);
  color: var(--bone-dim);
}
.lt-tool {
  grid-column: 8 / span 5;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.lt-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-panel);
  /* the console over the lit object: a denser warm glass so the light blooms through its edge, never under its words */
  background: rgba(16, 11, 7, 0.78);
  box-shadow: var(--hair-warm), var(--bloom-warm), 0 0 140px rgba(255, 160, 60, 0.16), var(--shadow-deep);
  container-type: inline-size;
}
.lt-panel > * {
  min-width: 0;
}
.lt.is-mirror .lt-copy {
  grid-column: 8 / span 5;
  grid-row: 1;
}
.lt.is-mirror .lt-tool {
  grid-column: 1 / span 5;
  grid-row: 1;
}
.lt-label {
  margin-top: 6px;
  font: var(--t-label);
  color: var(--bone-dim);
}
.lt-slot {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 0 8px 0 44px;
  border-radius: var(--r-input);
  background: rgba(4, 5, 7, 0.7);
  box-shadow: inset 0 0 0 1px var(--bone-faint), inset 0 6px 14px rgba(0, 0, 0, 0.5);
  transition: box-shadow 180ms var(--ease-fade);
}
.lt-slot:focus-within {
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 16px rgba(255, 160, 60, 0.25);
}
.lt-icon {
  position: absolute;
  top: 21px;
  left: 15px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--bone-dim);
  stroke-width: 1.5;
}
.lt-slot input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  border: 0;
  background: transparent;
  color: var(--bone);
  font: 450 17px / 1.2 var(--f-sans);
  outline: none;
}
.lt-slot input::placeholder {
  color: var(--bone-mute);
}
.lt-go {
  flex: none;
  min-height: 44px;
  padding-inline: 16px;
  font-size: 15px;
}
.lt-err {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-left: 1px solid var(--signal);
  font: 500 16px / 1.4 var(--f-sans);
  color: var(--bone);
}
.lt-err::before {
  content: '✕';
  font-size: 13px;
  font-weight: 700;
  color: var(--signal);
}
.lt-caption {
  margin: 0;
  font: var(--t-caption);
  color: var(--bone-mute);
}
/* the button drops under the field whenever the console is too narrow for the field and its label side by side */
@container (max-width: 519px) {
  .lt-slot {
    flex-wrap: wrap;
    padding: 0 0 0 44px;
  }
  .lt-go {
    width: calc(100% + 44px);
    margin: 0 0 0 -44px;
    min-height: 52px;
    justify-content: center;
  }
  .lt-slot input {
    width: 100%;
  }
}
@media (max-width: 1099px) {
  .lt-copy,
  .lt-tool,
  .lt.is-mirror .lt-copy,
  .lt.is-mirror .lt-tool {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .lt-tool {
    max-width: 640px;
  }
}
/* phones: the scene is a band at the top (its 4:5 crop, the lit object centred), graded into ink; the copy starts on
   the band's dark foot and the console follows on ink */
@media (max-width: 759px) {
  .lt {
    --band: min(62svh, 520px);
    display: block;
    min-height: 0;
    padding-top: calc(var(--band) - 120px);
  }
  .lt-plate {
    inset: 0 0 auto;
    height: var(--band);
  }
  .lt-plate img {
    object-position: var(--plate-phone-pos, 50% 50%);
  }
  .lt-shade,
  .lt.is-mirror .lt-shade {
    inset: 0 0 auto;
    height: var(--band);
    background:
      radial-gradient(60% 40% at 50% 30%, color-mix(in oklab, var(--key) 8%, transparent), transparent 70%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%, transparent 42%, rgba(7, 8, 10, 0.86) 72%, var(--ink) 94%);
  }
  .lt-grid {
    row-gap: 28px;
  }
}

/* ------------------------------------------------------------------ #scenario: the receipt on the counter */
.lt-sc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) 24px;
  align-items: start;
}
.lt-sc-obj {
  grid-column: 7 / span 6;
  grid-row: 1;
  align-self: center;
  display: grid;
  justify-items: center;
  padding-top: 24px;
}
.lt-sc-copy {
  grid-column: 1 / span 5;
  grid-row: 1;
  align-self: center;
  display: grid;
  gap: 18px;
}
.lt-sc-copy .pf-lede {
  margin: 0;
}
/* the running total with the controls: the answer where the hand is */
.lt-live {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 239, 232, 0.12);
  font: 500 15px / 1.4 var(--f-sans);
  color: var(--bone-dim);
}
.lt-live-big {
  flex-basis: 100%;
}
.lt-live .lt-live-big b {
  font: 800 clamp(30px, 3vw, 42px) / 1.1 var(--f-sans);
  letter-spacing: -0.02em;
  color: var(--gold-hot);
  font-variant-numeric: tabular-nums;
}
.lt-live b {
  font: 700 17px / 1.2 var(--f-sans);
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.lt-fig {
  width: min(100%, 440px);
}
.lt-receipt {
  --lg-w: 440px;
}
.lt-cap {
  margin-top: 18px;
  text-align: center;
  font: var(--t-label);
}
.lt-controls {
  gap: 18px;
}
.lt-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: baseline;
}
.lt-slider label,
.lt-plats legend {
  font: var(--t-label);
  color: var(--bone-dim);
}
.lt-slider output {
  font: 700 17px / 1 var(--f-mono);
  color: var(--bone);
}
.lt-slider input {
  grid-column: 1 / -1;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.lt-slider input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(242, 239, 232, 0.14) var(--p, 0%));
}
.lt-slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 207, 138, 0.8);
  background: radial-gradient(circle at 40% 35%, #3a2a18, #141009);
  box-shadow: 0 0 12px rgba(255, 160, 60, 0.35);
}
.lt-slider input::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(242, 239, 232, 0.14) var(--p, 0%));
}
.lt-slider input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 207, 138, 0.8);
  background: #1b140c;
}
.lt-slider input:focus-visible,
.lt-rate input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.lt-plats {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.lt-plats legend {
  margin-bottom: 8px;
}
.lt-plat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lt-key {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-input);
  background: rgba(242, 239, 232, 0.035);
  box-shadow: inset 0 0 0 1px rgba(242, 239, 232, 0.2), inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  font: 600 15px / 1 var(--f-sans);
  color: var(--bone-dim);
  cursor: pointer;
}
.lt-key input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.lt-key-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(242, 239, 232, 0.2);
}
.lt-key:has(input:checked) {
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 16px rgba(255, 160, 60, 0.12);
}
.lt-key:has(input:checked) .lt-key-light {
  background: var(--gold-hot);
  box-shadow: 0 0 8px rgba(255, 180, 84, 0.9);
}
.lt-key:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.lt-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 15px / 1 var(--f-mono);
  color: var(--bone-dim);
}
.lt-rate input {
  width: 72px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-input);
  background: rgba(4, 5, 7, 0.7);
  box-shadow: inset 0 0 0 1px var(--bone-faint);
  color: var(--bone);
  font: inherit;
  text-align: right;
}
.lt-fee .fee-line {
  margin: 0;
}
.lt-fine {
  margin: 0;
  font: var(--t-caption);
  color: var(--bone-mute);
}
.lt-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
/* one column: the heading, the receipt, then the controls with their running total */
@media (max-width: 1099px) {
  .lt-sc-obj,
  .lt-sc-copy {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
/* the scenario receipt: a line too long for the paper keeps its label whole and drops the leader and value under it */
.lt-scenario .lg-paper .lg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
}
.lt-scenario .lg-paper .lg-row::before {
  content: none;
}
.lt-scenario .lg-paper .lg-name {
  flex: 0 1 auto;
  min-width: 0;
}
.lt-scenario .lg-paper .lg-val {
  display: flex;
  flex: 1 0 auto;
  align-items: baseline;
  justify-content: flex-end;
}
.lt-scenario .lg-paper .lg-val::before {
  content: '';
  flex: 1 1 14px;
  min-width: 14px;
  align-self: end;
  height: 12px;
  margin: 0 6px 5px 0;
  background: radial-gradient(circle at 1.5px 1.5px, rgba(7, 8, 10, 0.55) 0.9px, transparent 1.3px) 0 100% / 6px 3px repeat-x;
}
}



@layer pages {
/* ------------------------------------------------------------------ 2026-10-08 mobile pass (docs/site/design/mobile-brief.md)
   Phones: the plate zooms about its lit object when the data asks (plate.phoneZoom / phoneOrigin), so the subject is big
   in the band; the frames after the tool keep a 56 px rhythm instead of 96 px bands of ink. */
@media (max-width: 759px) {
  .lt-plate img {
    transform: scale(var(--plate-phone-zoom, 1));
    transform-origin: var(--plate-phone-origin, 50% 50%);
  }
  .lt {
    padding-bottom: 48px;
  }
  .lt-page :is(#scenario, #example) {
    padding-top: 40px;
  }
  .lt-page :is(#scenario, #example) {
    padding-bottom: 56px;
  }
}
}
