/* The home page demo: the lens has landed on one business (Scripts/home-demo.js).
   No window, no grid: the sentence first, the star in a pool of light on the page, the
   person's sentences beside it. It uses the page's own tokens (home-terminal-press.css).
   Drawn first as designs/home-guide-lens-directions.html (Edward, 2026-11-17: "build it"). */
.hd { max-width: 1172px; margin: 0 auto; padding: 0 16px; }
.hd button { font: inherit; color: inherit; }

/* The sentence comes first: the one large thing a person can do. */
.hd-say { max-width: 760px; margin: 0 auto; }
.hd-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line2); border-radius: 14px;
  padding: 8px 8px 8px 20px; box-shadow: 0 10px 30px rgba(19,24,34,.07); transition: border-color .15s ease, box-shadow .15s ease; }
.hd-box:focus-within, .hd-box.is-typing { border-color: var(--acc); box-shadow: 0 10px 34px rgba(0,72,186,.14); }
.hd-in { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font-family: var(--display); font-size: 21px; line-height: 1.3; padding: 8px 0; }
.hd-in::placeholder { color: #8a93a1; font-style: italic; }
.hd-in:disabled { color: var(--dim); }
.hd .hd-go { flex: 0 0 auto; border: 0; border-radius: 10px; background: var(--acc); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 20px; cursor: pointer; }
.hd .hd-go:hover { background: var(--acc-hi); }
.hd.is-busy .hd-go { opacity: .55; pointer-events: none; }
/* What it says back: the latest only. Two lines are held so a reply does not move the star. */
/* With nothing said yet there is no line, and with nothing to tap there is no row: an empty
   band between the input and the star read as something missing. */
.hd-back:empty, .hd-taps:empty, .hd-gone:empty { display: none; }
/* What a sentence took off the drawing: under the reply, in the reply's column, marked off by a
   rule in the signal color so it is not read as more of the assistant's words. */
.hd-gone { margin: 8px 4px 0; padding: 6px 12px; border-left: 2px solid var(--hs-signal, #b4530a); color: var(--ink); font-size: 14.5px; line-height: 1.45; text-align: left; }
.hd-back { min-height: 48px; margin: 12px 4px 0; text-align: center; color: var(--soft); font-size: 15.5px; line-height: 1.5; }
/* One tap to go on: a business to start from, then the next sentence to say. */
.hd-taps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; min-height: 42px; }
.hd-back + .hd-taps { margin-top: 4px; }
.hd-back:empty + .hd-taps { margin-top: 14px; }
.htp .hd ~ .demo-foot { text-align: center; text-wrap: balance; }
.hd-taps span { color: var(--dim); font-size: 14.5px; }
.hd .hd-tap { background: #fff; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.hd .hd-tap:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-1px); }

.hd-work { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 14px; }
.hd.is-stacked .hd-work { grid-template-columns: minmax(0, 1fr); margin-top: 4px; }
/* Stacked, the sentences come first and the star under them, and only the sentence in the light
   is written: the last one said, or the one that named the thing a person tapped. So the words
   and what they drew are on one screen of a phone. */
.hd.is-stacked .hd-said li:not(.is-lit), .hd.is-stacked .hd-none { display: none; }
.hd.is-stacked .hd-said li { border-bottom: 0; grid-template-columns: 1fr; padding-left: 12px; }
.hd.is-stacked .hd-said li i { display: none; }
.hd.is-stacked .hd-said { margin-top: 12px; }
.hd.is-stacked.is-empty .hd-said { display: none; }
/* Stacked, what the assistant says back is read like the paragraph it is: from the left, not a
   centered block eleven lines deep (Edward's phone, 2026-11-18). */
.hd.is-stacked .hd-back { text-align: left; font-size: 15px; margin: 12px 2px 0; min-height: 0; }

/* The person's sentences stay, whole and in order. */
.hd-said { padding-top: 26px; }
.hd.is-stacked .hd-said { padding-top: 0; }
.hd-said-hd { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--dim); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hd .hd-over { background: none; border: 0; padding: 0; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.hd .hd-over:hover { color: var(--acc); }
.hd-said ol { list-style: none; margin: 0; padding: 0; }
.hd-said li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; margin: 0; padding: 12px 8px 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer;
  font-family: var(--display); font-size: 17.5px; line-height: 1.38; color: var(--soft); border-left: 2px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease; animation: hd-landed .45s ease both; }
.hd-said li i { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--dim); padding-top: 5px; }
.hd-said li.is-lit { color: var(--ink); background: #fff; border-left-color: var(--acc); }
/* What the entry drew, under it: quieter than the words, the star's name in the middle's blue. */
.hd-drew { margin-top: 6px; font-family: var(--font); font-size: 13px; line-height: 1.55; color: var(--dim); }
.hd-drew:empty { display: none; }
.hd-drew span[role="button"] { cursor: pointer; }
.hd-drew span[role="button"]:hover, .hd-drew span[role="button"]:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: 0; }
.hd-drew .is-star { color: var(--acc); font-weight: 600; }
/* The lines the entry added, one press away, a sentence a line. */
/* The one question over what nothing settled, under the newest entry (home-demo.js drawAsk, W389): the entry's own type, its presses the demo's taps. */
.hd-counted { margin-top: 8px; font-family: var(--font); font-size: 13.5px; line-height: 1.5; }
.hd-counted-presses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hd .hd-counted .hd-tap { padding: 6px 13px; font-size: 13.5px; }
.hd-read { margin-top: 4px; font-family: var(--font); font-size: 13px; line-height: 1.5; color: var(--dim); }
.hd-read-press { display: inline-block; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hd-read-press::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.hd-read-press[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: -2px; }
.hd-read-press:hover, .hd-read-press:focus-visible { color: var(--acc); outline: 0; }
.hd-read[hidden], .hd-read-lines[hidden] { display: none; }
.hd-read-lines { margin: 4px 0 2px; cursor: default; }
.hd-read-lines div { padding: 5px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink); }
.hd-none { padding: 14px 4px; color: var(--dim); font-size: 14.5px; }
@keyframes hd-landed { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* The stage: a pool of light on the page with the star in it. The light is larger than the
   stage and fades to nothing well inside its own edge, so no rectangle shows where it ends. */
.hd-stage { position: relative; --hd-h: 500px; height: var(--hd-h); }
.hd.is-stacked .hd-stage { --hd-h: 408px; }
.hd-stage::before { content: ""; position: absolute; inset: -70px -40px; pointer-events: none;
  background:
    radial-gradient(closest-side, #ffffff 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,0) 82%),
    radial-gradient(closest-side, rgba(0,72,186,.085) 0%, rgba(0,72,186,.04) 55%, rgba(0,72,186,0) 96%); }
.hd .hd-star { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; transition: opacity .35s ease, transform .35s ease; }
.hd-stage.is-answer .hd-star { opacity: 0; transform: scale(.94); pointer-events: none; }

/* The star is drawn the way the hero's lens draws it. */
.hd-ray { stroke: #9fb4dc; stroke-width: 1.4; stroke-linecap: round; transition: stroke .25s ease, stroke-width .25s ease, opacity .25s ease; }
.hd-ray.is-lit { stroke: var(--acc); stroke-width: 2; }
.hd-star.has-lit .hd-ray:not(.is-lit) { opacity: .6; }
.hd-thing { cursor: pointer; }
.hd-thing-bg { fill: #fff; stroke: var(--line2); stroke-width: 1; transition: stroke .25s ease, stroke-width .25s ease; filter: drop-shadow(0 3px 7px rgba(19,24,34,.10)); }
.hd-thing-t { font-family: var(--font); font-size: 14.5px; font-weight: 600; fill: var(--ink); }
.hd-thing-s { font-family: var(--font); font-size: 12px; fill: var(--dim); }
.hd-star.is-small .hd-thing-t { font-size: 17.5px; }
.hd-star.is-small .hd-thing-s { font-size: 14.5px; }
.hd-star.is-small .hd-hub-t { font-size: 19px; }
.hd-star.is-small .hd-hub-s { font-size: 14px; }
.hd-thing.is-lit .hd-thing-bg { stroke: var(--acc); stroke-width: 1.8; filter: drop-shadow(0 4px 12px rgba(0,72,186,.28)); }
/* What the star does not reach yet: there, and not joined. */
.hd-thing.is-loose .hd-thing-bg { stroke-dasharray: 4 4; filter: none; }
.hd-hub-halo { fill: var(--acc); opacity: .13; transform-box: fill-box; transform-origin: center; animation: hd-breathe 3.6s ease-in-out infinite; }
.hd-star.is-busy .hd-hub-halo, .hd-star.is-busy .hd-ghost-ring { animation: hd-breathe .9s ease-in-out infinite; }
.hd-hub-bg { fill: var(--acc); filter: drop-shadow(0 6px 16px rgba(0,72,186,.35)); }
.hd-hub-t { font-family: var(--font); font-size: 17px; font-weight: 600; fill: #fff; }
.hd-hub-s { font-family: var(--font); font-size: 12px; fill: #fff; fill-opacity: .82; }
.hd-ghost-ring { fill: none; stroke: #c3cbd9; stroke-width: 1.3; stroke-dasharray: 4 6; transform-box: fill-box; transform-origin: center; }
.hd-ghost-t { font-family: var(--display); font-style: italic; font-size: 19px; fill: #7a8494; }
@keyframes hd-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* More than one star: the drawing is laid out at its own size and the stage is as tall as it
   is, with the press under it in the page. A folded star is a middle in outline, there to press;
   a star nothing was measured for is a middle in a broken outline, the way a thing no star
   reaches is. */
.hd .hd-stars { display: none; position: relative; width: 100%; overflow: visible; }
.hd-stage.is-many { height: auto; }
.hd-stage.is-many .hd-star { display: none; }
.hd-stage.is-many .hd-stars { display: block; }
.hd .hd-stage.is-many .hd-ask { position: static; translate: none; display: block; margin: 12px auto 8px; max-width: 100%; }
.hd .hd-stage.is-many .hd-ask[hidden] { display: none; }
.hd-hub { cursor: pointer; transition: opacity .25s ease; }
.hd-stars .hd-thing { transition: opacity .25s ease; }
.hd-stars.is-small .hd-thing-t { font-size: 15px; }
.hd-stars.is-small .hd-hub-t { font-size: 15.5px; }
.hd-stars .hd-ray.is-quiet { opacity: .42; }
.hd-stars.has-lit .hd-ray:not(.is-lit) { opacity: .28; }
.hd-stars.has-lit .hd-thing:not(.is-lit), .hd-stars.has-lit .hd-hub:not(.is-lit) { opacity: .45; }
.hd-stars .hd-ray.is-lit { opacity: 1; }
.hd-stars.is-busy .hd-hub-halo { animation: hd-breathe .9s ease-in-out infinite; }
.hd-hub.is-folded .hd-hub-bg, .hd-hub.is-assumed .hd-hub-bg { fill: #fff; stroke: var(--acc); stroke-width: 1.6; filter: drop-shadow(0 3px 8px rgba(0,72,186,.16)); }
.hd-hub.is-assumed .hd-hub-bg { stroke-dasharray: 5 4; filter: none; }
.hd-hub.is-folded .hd-hub-t, .hd-hub.is-assumed .hd-hub-t { fill: var(--acc); }
.hd-hub.is-folded .hd-hub-s, .hd-hub.is-assumed .hd-hub-s { fill: var(--acc); fill-opacity: .8; }
.hd-hub.is-folded .hd-hub-halo, .hd-hub.is-assumed .hd-hub-halo { display: none; }

/* The press under the star. A sample ends on its question, in the asker's voice, as the hero's
   stars do; a person's own model ends on the press that keeps it. */
.hd .hd-ask { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; max-width: calc(100% - 24px); white-space: nowrap;
  background: #fff; border: 1.5px solid var(--acc); border-radius: 999px; padding: 10px 20px; cursor: pointer;
  font-family: var(--display); font-style: italic; font-size: 19px; color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,72,186,.22); animation: hd-landed .5s ease both; }
.hd .hd-ask[hidden] { display: none; }
.hd .hd-ask b { font-family: var(--font); font-style: normal; font-weight: 600; font-size: 14px; color: var(--acc); margin-left: 10px; }
.hd .hd-ask:hover { background: #f4f7fd; }
.hd .hd-ask.is-next { font-family: var(--font); font-style: normal; font-weight: 600; font-size: 15.5px; color: var(--acc); padding: 11px 22px; }
.hd .hd-ask.is-next b { font-size: 15.5px; margin-left: 8px; }
.hd .hd-ask.is-keep { background: var(--acc); color: #fff; font-family: var(--font); font-style: normal; font-weight: 600; font-size: 16px; padding: 13px 24px; }
.hd .hd-ask.is-keep b { color: #fff; font-size: 16px; margin-left: 8px; }
.hd .hd-ask.is-keep:hover { background: var(--acc-hi); }
.hd .hd-ask:disabled { opacity: .6; cursor: default; }
.hd-stage.is-answer .hd-ask { display: none; }

/* The answer stands in the page, not over it: the stage grows to hold it. Laid over a stage of
   the star's height it ran out of both ends on a phone, onto the line above and the sentences
   below (Edward's phone, 2026-11-17). */
.hd-answer { position: relative; display: none; align-items: center; justify-content: center; padding: 14px 8px; min-height: var(--hd-h); box-sizing: border-box; }
.hd-stage.is-answer { height: auto; min-height: var(--hd-h); }
.hd-stage.is-answer .hd-answer { display: flex; animation: hd-landed .45s ease both; }
.hd-ans { width: 100%; max-width: 600px; }
.hd .hd-ans-q { font-family: var(--display); font-style: italic; font-size: 22px; margin: 0 0 14px; color: var(--ink); }
.hd-ans-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.hd-ans-num { font-family: var(--display); font-size: 50px; font-weight: 500; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.hd-ans-sub { color: var(--soft); font-size: 14.5px; }
.hd-bars { margin-top: 18px; display: grid; gap: 11px; }
.hd-bar { display: grid; grid-template-columns: 132px 1fr 76px; gap: 12px; align-items: center; font-size: 14.5px; color: var(--ink); }
.hd-trk { height: 12px; border-radius: 6px; background: #eef1f6; overflow: hidden; }
.hd-fill { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--acc); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.hd-bar.is-low .hd-fill { background: var(--hs-signal); }
.hd-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--soft); }
.hd .hd-ans-how { margin: 14px 0 0; color: var(--dim); font-size: 13.5px; }
.hd-ans-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.hd .hd-keep { border: 0; border-radius: 10px; background: var(--acc); color: #fff; font-weight: 600; font-size: 16px; padding: 13px 24px; cursor: pointer; }
.hd .hd-keep:hover { background: var(--acc-hi); }
.hd .hd-again { background: none; border: 0; padding: 0; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14.5px; }

/* On a phone the bars' names take less room and the input's words are smaller. */
@media (max-width: 560px) {
  .hd-in { font-size: 17px; }
  .hd .hd-go { padding: 12px 14px; }
}
@media (max-width: 380px) {
  .hd-in { font-size: 16px; }
}
@media (max-width: 560px) {
  .hd-box { padding-left: 14px; }
  .hd-bar { grid-template-columns: 104px 1fr 62px; gap: 8px; font-size: 13.5px; }
  .hd-ans-num { font-size: 40px; }
  .hd .hd-ask { font-size: 16.5px; padding: 9px 16px; white-space: normal; text-align: center; border-radius: 22px; }
  /* The question keeps its own line and the press its own, so the question never breaks in two. */
  .hd .hd-ask b { display: block; margin: 2px 0 0; }
  /* The press stands under the star, in the page, and the stage is as tall as the two: laid
     over the star's foot, a question that broke onto three lines covered the star's names. */
  .hd.is-stacked .hd-stage { --hd-h: 262px; height: auto; }
  .hd.is-stacked .hd-star { position: relative; height: var(--hd-h); }
  .hd.is-stacked .hd-stage.is-answer .hd-star { display: none; }
  .hd.is-stacked .hd-ask { position: static; translate: none; display: block; margin: 2px auto 8px; max-width: 100%; }
  .hd.is-stacked .hd-ask[hidden] { display: none; }
  .hd .hd-ask.is-next b, .hd .hd-ask.is-keep b { display: inline; margin: 0 0 0 8px; }
  .hd .hd-ask.is-keep { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hd *, .hd *::before { animation: none !important; transition: none !important; }
}
