/* Three steps from task to record, redrawn plainly on 2026-11-17 to match the continuity figure
   and the base station rows (the earlier glossy phone with a status bar, a tap ripple, a dark
   camera view, a green check, large numbered steps and a progress bar is in
   archive/home-2026-11-17-before-polish/floor-pass/; the first plain version, with steps that read
   as a list rather than as controls, in floor-pass-2/). The phone is an outline, its screens are
   plain lists and boxes in the page's own greys, and a step changes at once, without fades.
   Desktops: the steps are rows between thin lines; a whole row is one button, it lights up under
   the pointer, and the current one has a filled square. Phones: the steps are three joined buttons
   like the internet buttons of the continuity figure, the chosen one filled. A tap on the phone
   picture goes on to the next step. The phone's screens have no buttons of their own (Adrians,
   2026-11-17: the controls belong under the picture, not in it). */
.floor-demo { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; max-width: 1080px; margin-top: 12px; }

/* Phone: one outline and a screen, no shine and no shadow. */
.floor-phone { justify-self: center; width: 100%; aspect-ratio: 9 / 18.5; padding: 9px; border: 1px solid var(--n6); border-radius: 34px; background: var(--n1); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.floor-screen { position: relative; height: 100%; overflow: hidden; border: 1px solid var(--n4); border-radius: 26px; background: var(--n0); color: var(--n10); }
.floor-view { position: absolute; inset: 34px 16px 18px; display: none; flex-direction: column; }
.floor-demo[data-step="0"] .floor-view-open, .floor-demo[data-step="1"] .floor-view-scan, .floor-demo[data-step="2"] .floor-view-confirm { display: flex; }
.floor-view b { font-weight: 500; }

/* 1. Open: the list of tasks; the first one is chosen. */
.floor-title { margin: 0 4px 12px; font-size: 18px; letter-spacing: -.02em; }
.floor-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--n4); }
.floor-list li { display: grid; gap: 2px; padding: 11px 8px; border-top: 1px solid var(--n4); font-size: 14px; }
.floor-list span { color: var(--n8); font-size: 13px; }
.floor-demo[data-step="0"] .floor-list .is-target { animation: floor-choose .01s .9s both; }
@keyframes floor-choose { to { background: var(--n2); } }

/* 2. Scan: a label in the viewfinder, a line passes over it, then the result in words. */
.floor-viewfinder { position: relative; display: grid; place-items: center; height: 54%; margin: 6px 0 16px; overflow: hidden; border: 1px solid var(--n5); border-radius: 6px; background: var(--n1); }
.floor-label { display: grid; gap: 6px; justify-items: center; width: 66%; padding: 12px 12px 8px; border: 1px solid var(--n4); border-radius: 2px; background: var(--n0); }
.floor-label small { color: var(--n10); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.floor-barcode { display: block; width: 100%; height: 42px; background: repeating-linear-gradient(90deg, var(--n10) 0 2px, transparent 2px 4px, var(--n10) 4px 5px, transparent 5px 8px, var(--n10) 8px 11px, transparent 11px 13px); }
.floor-line { position: absolute; left: 8%; right: 8%; top: 30%; height: 1px; background: var(--n10); opacity: 0; }
.floor-view-scan > b { font-size: 15px; text-align: center; }
.floor-hit { margin-top: 10px; color: var(--n8); font-size: 13px; text-align: center; visibility: hidden; }
.floor-demo[data-step="1"] .floor-line { animation: floor-scan 1.4s .2s ease-in-out both; }
.floor-demo[data-step="1"] .floor-hit { animation: floor-found .01s 1.6s both; }
@keyframes floor-scan { 0% { top: 30%; opacity: 1; } 92% { top: 70%; opacity: 1; } 100% { top: 70%; opacity: 0; } }
@keyframes floor-found { to { visibility: visible; color: var(--n10); } }

/* 3. Confirm: a check mark drawn once, then the record in words. */
.floor-view-confirm { align-items: center; justify-content: center; gap: 8px; padding-bottom: 24px; text-align: center; }
.floor-check { width: 64px; height: 64px; margin-bottom: 10px; fill: none; stroke: var(--n10); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.floor-check path { stroke-width: 2.2; stroke-dasharray: 40; stroke-dashoffset: 40; }
.floor-demo[data-step="2"] .floor-check path { animation: floor-draw .4s .3s ease-out forwards; }
@keyframes floor-draw { to { stroke-dashoffset: 0; } }
.floor-view-confirm b { font-size: 17px; letter-spacing: -.01em; }
.floor-view-confirm > b + span { max-width: 200px; color: var(--n8); font-size: 13px; line-height: 1.5; }

/* Steps on desktops: rows between thin lines; the whole row is the step's button. */
.floor-step-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--n4); }
.floor-step-list li { position: relative; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 32px; align-items: baseline; padding: 22px 18px; border-top: 1px solid var(--n4); }
.floor-step-list h3 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.floor-step-list h3 button { display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: var(--n8); -webkit-text-fill-color: var(--n8); font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
/* The button reaches over the whole row, so the sentence can be clicked too. */
.floor-step-list h3 button::after { content: ""; position: absolute; inset: 0; }
.floor-mark { flex: none; width: 10px; height: 10px; border: 1px solid var(--n8); }
.floor-step-list p { margin: 0; max-width: 440px; color: var(--n8); font-size: 17px; line-height: 1.55; }
.floor-step-list li.is-active h3 button { color: var(--n10); -webkit-text-fill-color: var(--n10); }
.floor-step-list li.is-active .floor-mark { border-color: var(--n10); background: var(--n10); }
.floor-step-list li.is-active p { color: var(--n10); }
@media (hover: hover) {
  .floor-step-list li:not(.is-active):hover { background: var(--n1); }
  .floor-step-list li:not(.is-active):hover h3 button { color: var(--n10); -webkit-text-fill-color: var(--n10); }
  .floor-step-list li:not(.is-active):hover .floor-mark { border-color: var(--n10); }
}
.floor-step-list button:focus-visible { outline: 0; }
.floor-step-list button:focus-visible::after { outline: 2px solid var(--n10); outline-offset: -2px; }

@media (max-width: 900px) {
  .floor-demo { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .floor-step-list li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding: 18px 14px; }
  .floor-step-list h3 { font-size: 20px; }
  .floor-step-list p { font-size: 16px; }
}
/* Phones: a shorter phone (the same screens, less empty glass below them), under it three joined
   buttons, as under the continuity figure (Adrians, 2026-11-17), and under those the current
   step's sentence; all on one screen. */
@media (max-width: 760px) {
  .floor-demo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .floor-phone { width: min(250px, 68vw, calc((100svh - var(--site-header-height, 64px) - 200px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 30px; }
  .floor-screen { border-radius: 22px; }
  .floor-view { inset: 22px 14px 14px; }
  .floor-step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; }
  .floor-step-list li { display: contents; }
  .floor-step-list li > * { grid-column: var(--col); }
  .floor-step-list li:nth-child(1) { --col: 1; }
  .floor-step-list li:nth-child(2) { --col: 2; }
  .floor-step-list li:nth-child(3) { --col: 3; }
  .floor-step-list h3 { grid-row: 1; font-size: 16px; font-weight: 400; letter-spacing: 0; }
  .floor-step-list h3 button { justify-content: center; width: 100%; min-height: 44px; padding: 10px 4px; border: 1px solid var(--n9); color: var(--n10); -webkit-text-fill-color: var(--n10); text-align: center; }
  .floor-step-list h3 button::after { content: none; }
  .floor-step-list li:nth-child(1) button { border-radius: 6px 0 0 6px; }
  .floor-step-list li:nth-child(2) button { border-left: 0; border-right: 0; border-radius: 0; }
  .floor-step-list li:nth-child(3) button { border-radius: 0 6px 6px 0; }
  .floor-step-list li.is-active h3 button { background: var(--n10); color: var(--n0); -webkit-text-fill-color: var(--n0); }
  .floor-mark { display: none; }
  .floor-step-list p { display: none; grid-row: 2; grid-column: 1 / -1; min-height: 3.1em; padding-top: 14px; font-size: 16px; }
  .floor-step-list li.is-active p { display: block; }
  .floor-step-list button:focus-visible { outline: 2px solid var(--n10); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .floor-demo *, .floor-demo *::before, .floor-demo *::after { animation: none !important; transition: none !important; }
  .floor-check path { stroke-dashoffset: 0; }
  .floor-hit { visibility: visible; color: var(--n10); }
  .floor-demo[data-step="0"] .floor-list .is-target { background: var(--n2); }
}
@media print { .floor-phone { display: none; } .floor-demo { display: block; } }
