/* html/labs/bracket/demo/shared/lite.css
 * Five-second walkthrough pages (staffing, payables, merge, insurer).
 * Loads after demo.css and uses its tokens only: one violet, light only, Figtree.
 * Motion is transform and opacity (plus two colour fades) and stops under prefers-reduced-motion.
 */

.lite .main { padding-top: 30px; }
.lite .nav-back { font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; margin-right: auto; margin-left: 18px; }
.lite .nav-back:hover { color: var(--violet); }

/* Hero: one line, one sentence, one action */
.lite .hero { margin-bottom: 24px; }
.lite .hero h1 { font-size: clamp(30px, 4.3vw, 46px); margin-bottom: 10px; }
.lite .hero p { font-size: 17.5px; max-width: 56ch; color: var(--ink-2); }
.sub-free { display: none; }
.hero-cta { margin-top: 14px; display: flex; justify-content: center; }
.hero-cta .cta-btn { padding: 12px 22px; font-size: 15px; background: var(--violet); }
.hero-cta .cta-btn:hover { background: var(--violet-hover); }

/* The flow card */
.flow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(20, 18, 31, 0.035);
  overflow: hidden;
}

/* Rail: five moments, stakes rise left to right */
.rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.rail-step {
  appearance: none;
  position: relative;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 13px 14px 14px;
  text-align: left;
  font-family: var(--font);
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.rail-step:last-child { border-right: 0; }
.rail-step:hover { color: var(--ink); }
.rail-step:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.rail-top { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 3px; }
.rail-ico { width: 18px; height: 18px; flex: none; fill: currentColor; }
.pips { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.pips i { width: 5px; border-radius: 2px; background: var(--dot); transition: background 0.25s var(--ease); }
.pips i:nth-child(1) { height: 5px; }
.pips i:nth-child(2) { height: 8px; }
.pips i:nth-child(3) { height: 11px; }
.pips i:nth-child(4) { height: 13px; }
.pips i:nth-child(5) { height: 16px; }
.pips i.on { background: var(--ink-3); }
.rail-step strong { font-size: 15px; font-weight: 600; line-height: 1.2; color: inherit; }
.rail-proof { font-size: 12.5px; line-height: 1.3; }
.rail-step.is-active { background: var(--surface); color: var(--ink); }
.rail-step.is-active .pips i.on { background: var(--violet); }
.rail-step.is-done .pips i.on { background: var(--ok); }
.rail-step.is-active::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--violet);
}

/* Scene: the approval, the wire, the receipt */
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  align-items: start;
  padding: 26px 30px 12px;
}
.pane-label { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; min-height: 24px; }
.pane-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.moment {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 252px;
}
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-av {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.who-av + .who-av { margin-left: -16px; box-shadow: 0 0 0 2px var(--surface); background: var(--warn-soft); color: var(--warn); }
.who-av[hidden] { display: none; }
.who-av.is-ok { background: var(--ok); color: var(--surface); }
.who-text { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.tile {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--violet-soft);
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tile svg { width: 28px; height: 28px; fill: currentColor; }
.tile.is-half { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.tile.is-ok { background: var(--ok); color: var(--surface); transform: scale(1.06); }
.who-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.who-role { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.what {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: auto 0;
  text-wrap: balance;
}
.what.is-exact { box-shadow: -3px 0 0 var(--violet); padding-left: 11px; }
.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  background: var(--violet-soft);
  border-radius: 7px;
  padding: 4px 9px;
  transition: opacity 0.2s var(--ease);
}
.chip svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.moment .bracket-btn { padding: 0 20px; }
.moment .bracket-btn .seal {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
}
.moment .bracket-btn.is-sealing .seal { transform: scaleX(1); transition: transform 0.6s linear; }
.moment .bracket-btn.is-sealing.is-slow .seal { transition-duration: 1.05s; }
.moment .bracket-btn.is-verified .seal { opacity: 0; }

.wire { position: relative; align-self: center; height: 2px; margin: 0 9px; background: var(--line); }
.wire::after {
  content: "";
  position: absolute;
  right: -1px; top: -4px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: rotate(45deg);
}
.wire-dot {
  position: absolute;
  left: 0; top: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0;
}
.flow.is-sent .wire-dot { animation: wireGo 0.5s var(--ease) both; }
@keyframes wireGo {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(44px); }
}

/* The receipt: labels always visible, values fill in when signed */
.slip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
  padding: 18px;
  min-height: 252px;
  display: flex;
  flex-direction: column;
}
.slip dl { margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; min-height: 132px; }
.slip-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.35; }
.slip-row dt { color: var(--ink-2); font-size: 13px; padding-top: 1px; }
.slip-row dd {
  margin: 0;
  font-weight: 600;
  color: transparent;
  background: var(--line);
  border-radius: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.flow.is-signed .slip-row dd { color: var(--ink); background: transparent; }
.flow.is-signed .slip { animation: slipIn 0.4s var(--ease); }
@keyframes slipIn { from { transform: translateX(-8px); } to { transform: none; } }
.slip dd del { color: var(--ink-2); font-weight: 500; margin-right: 6px; }
.slip dd ins { text-decoration: none; color: var(--crit); }

.stamp {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
}
.stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid var(--ok-line);
  border-radius: 8px;
  padding: 6px 10px;
  opacity: 0;
  transform: scale(0.94);
}
.stamp-badge::before { content: "\2713"; font-weight: 600; }
.flow.is-checked .stamp-badge { opacity: 1; transform: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.flow.is-tampered .stamp-badge { color: var(--crit); background: var(--crit-soft); border-color: var(--crit-line); }
.flow.is-tampered .stamp-badge::before { content: "\00D7"; }
.flow.is-tampered .slip { animation: brkShake 0.26s var(--ease); border-color: var(--crit-line); }
.tamper-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--violet);
  cursor: pointer;
  padding: 0 2px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  visibility: hidden;
}
.flow.is-checked .tamper-btn { visibility: visible; }
.tamper-btn[hidden] { display: none; }
.tamper-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

.flow-foot { display: flex; justify-content: flex-end; padding: 0 30px 14px; }
.play-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 2px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.play-btn:hover { color: var(--violet); }
.play-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

/* Three facts on one line */
.facts {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.fact { padding: 20px 24px; border-right: 1px solid var(--line); min-width: 0; }
.fact:last-child { border-right: 0; }
.fact:first-child { background: var(--violet-soft); }
.fact-big { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.fact:first-child .fact-big { color: var(--violet); }
.fact p { margin: 5px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.fact small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }

/* Pilot strip */
.lite .cta-strip { margin-top: 20px; padding: 24px 26px; }
.lite .cta-strip h2 { font-size: 23px; }
.lite .cta-strip p { font-size: 15px; }
.lite .cta-strip .cta-btn { padding: 12px 22px; font-size: 15px; background: var(--violet); }
.lite .cta-strip .cta-btn:hover { background: var(--violet-hover); }
.lite .pilot-pill { font-family: var(--font); font-size: 13px; padding: 4px 10px; }
.lite-note { margin: 16px 2px 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; text-align: center; }

/* Hub: compact links to the walkthroughs */
.lite-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lite-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.16s var(--ease);
}
.lite-link:hover { border-color: var(--violet); }
.lite-link strong { font-size: 14.5px; font-weight: 600; }
.lite-link span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }

.rise { opacity: 0; transform: translateY(12px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.no-js .rise { opacity: 1; transform: none; }
.no-js .slip-row dd { color: var(--ink); background: transparent; }
.no-js .stamp-badge { opacity: 1; transform: none; }
.no-js .play-btn, .no-js .tamper-btn { display: none; }

@media (max-width: 840px) {
  .scene { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 8px; gap: 12px; }
  .wire { display: none; }
  .moment, .slip { min-height: 0; }
  .moment { padding: 14px; gap: 10px; }
  .moment .what { display: none; }
  .who { min-height: 46px; }
  .scene .pane-a { display: none; }
  .scene .pane-label { margin-bottom: 6px; font-size: 14px; }
  .slip { padding: 14px; }
  .slip .stamp { order: -1; margin: 0 0 12px; padding: 0 0 10px; border-top: 0; border-bottom: 1px dashed var(--line); min-height: 70px; }
  .slip dl { display: contents; }
  .slip-row { margin-top: 9px; }
  .slip-row:nth-child(2) { order: -2; margin: 0 0 12px; }
  .slip-row dd.r-what { min-height: 2.7em; }
  .tile { width: 42px; height: 42px; border-radius: 10px; }
  .who-role { display: none; }
  .slip-row { grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
  .tile svg { width: 24px; height: 24px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .lite-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-foot { padding: 0 16px 10px; }
  .tamper-btn, .play-btn { min-height: 44px; }
  .scene .pane-b { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .lite .nav-inner { flex-wrap: nowrap; height: 54px; padding: 0 14px; }
  .lite .nav-back { display: none; }
  .lite .main { padding-top: 18px; }
  .lite .hero { margin-bottom: 14px; }
  .lite .hero h1 { font-size: 27px; }
  .lite .hero p { font-size: 15.5px; }
  .scene { padding-top: 10px; gap: 8px; }
  .lite .hero { margin-bottom: 10px; }
  .hero-cta { display: none; }
  .sub-free { display: inline; font-weight: 600; color: var(--ink); }
  .rail-step strong { min-height: 2.4em; display: flex; align-items: center; }
  .rail-step { padding: 9px 4px 10px; align-items: center; text-align: center; }
  .rail-step strong { font-size: 12px; }
  .rail-proof { display: none; }
  .lite .cta-strip .cta-btn { width: 100%; justify-content: center; }
  .lite .cta-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; }
  .wire-dot { display: none; }
}
