/* /how only: the hero, the three example cards with their fixed-height
   visuals, the ceremony presets and the strip of what the service plugs into.
   Scoped under .how so nothing leaks. */

.how {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.how__micro { font: var(--dm11); color: var(--ph-dim); letter-spacing: 1px; -webkit-font-smoothing: none; }

/* == hero == */
.how__hero { padding: 66px 0 44px; display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.how__eyebrow { font: var(--dm11); color: var(--ph-dim); letter-spacing: 2px; -webkit-font-smoothing: none; }
.how__title { margin: 0; font: 400 33px/1.3 var(--face-pixel); color: var(--ph-bright); -webkit-font-smoothing: none; text-wrap: balance; }
.how__lede { margin: 0; font: 400 16px/1.75 var(--face-mono); color: var(--ph-mute); max-width: 34em; text-wrap: pretty; }

/* == the worked example == */
.how__flow { padding-bottom: 88px; display: flex; flex-direction: column; gap: 14px; }
.how__example { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.how__example-say { font: 400 13px/1.5 var(--face-mono); color: var(--ph-mute2); }

.steps { display: flex; flex-wrap: wrap; gap: 1px; }
.step {
  min-width: 0;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ph-l2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step--side { flex: 1 1 230px; }
.step--mid { flex: 0 1 364px; }
.step__head { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.step__num { font: var(--dm11); color: var(--ph); letter-spacing: 1px; -webkit-font-smoothing: none; }
.step__text { min-height: 108px; display: flex; flex-direction: column; gap: 10px; }
.step__title { font: 400 22px/1.3 var(--face-pixel); color: var(--ph-bright); -webkit-font-smoothing: none; }
.step__body { font: 400 13px/1.6 var(--face-mono); color: var(--ph-mute); }
.step__visual { height: 112px; display: flex; flex-direction: column; }

/* 01: the YAML, with the gate line lit */
.yaml {
  flex: 1;
  background: #000;
  box-shadow: 0 0 0 1px var(--ph-l2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font: 400 12px/1.75 var(--face-mono);
  color: var(--ph-mute);
  overflow: hidden;
}
.yaml__line { padding: 0 10px; white-space: pre; }
.yaml__line--hot { background: var(--ph-wash); color: var(--ph-bright); box-shadow: inset 2px 0 0 var(--ph); }

/* 02: the device screen, cropped to its top 112px */
.crop {
  width: 320px;
  max-width: 100%;
  height: 112px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(185, 181, 172, .3);
  background: #000;
}
.crop .dev { box-shadow: none; }

/* 03: the two outcomes */
.outcomes { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.outcome {
  flex: 1;
  background: var(--em);
  box-shadow: 0 0 0 1px var(--ph-l2);
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.outcome .pill { width: 90px; height: 24px; justify-content: center; padding: 0; box-sizing: border-box; }
.outcome__say { font: 400 12px/1.4 var(--face-mono); color: var(--ph-text); white-space: nowrap; }

/* == the ceremonies: four presets, one shown == */
.how__cer { padding-bottom: 88px; display: flex; flex-direction: column; gap: 22px; }
.how__cer-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.how__h2 { margin: 0; font: 400 33px/1.3 var(--face-pixel); color: var(--ph-bright); -webkit-font-smoothing: none; text-wrap: balance; }
.how__cer-lede { margin: 0; font: 400 15px/1.7 var(--face-mono); color: var(--ph-mute); }
.how__cer .chips { min-height: 44px; }
.how__cer .chip[aria-selected="true"] { background: var(--ph); border-color: var(--ph); color: var(--ink); text-shadow: var(--px-bold); }

.preset { display: flex; flex-wrap: wrap; gap: 1px; }
.preset[hidden] { display: none; }
.spec {
  flex: 1 1 260px;
  max-width: 340px;
  background: var(--em);
  box-shadow: 0 0 0 1px var(--ph-l2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.spec__action, .spec__sub { font: var(--dm11); color: var(--ph-dim); letter-spacing: 1px; -webkit-font-smoothing: none; }
.spec__group { display: flex; flex-direction: column; gap: 8px; }
.spec__big { font: 400 44px/1 var(--face-pixel); color: var(--ph-bright); -webkit-font-smoothing: none; }
.spec__mode { font: 400 22px/1 var(--face-pixel); color: var(--ph-bright); -webkit-font-smoothing: none; }
.spec__line { margin: 0; font: 400 13.5px/1.65 var(--face-mono); color: var(--ph-text2); }

.ops {
  flex: 1 1 440px;
  min-width: 0;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ph-l2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tiles { display: flex; flex-wrap: wrap; gap: 1px; }
.tile {
  flex: 0 0 112px;
  background: #000;
  box-shadow: 0 0 0 1px var(--ph-l2);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tile--ok { box-shadow: 0 0 0 1px var(--go-l); }
.tile__name { font: 400 13px/1 var(--face-mono); color: var(--ph-text); }
.tile__status { font: var(--dm11); letter-spacing: 1px; white-space: nowrap; -webkit-font-smoothing: none; }
.tile--ok .tile__status { color: var(--go); }
.tile--idle .tile__status { color: var(--ph-mute2); }
.tile--self .tile__status { color: var(--alert); }

/* the timeline: request to expiry, with press marks; only the coincident preset shades its window */
.line { display: flex; flex-direction: column; gap: 10px; }
.line__track { position: relative; height: 84px; background: #000; box-shadow: 0 0 0 1px var(--ph-l2); }
.line__band { position: absolute; top: 0; bottom: 0; background: var(--ph-wash); box-shadow: inset 1px 0 0 var(--ph-l4), inset -1px 0 0 var(--ph-l4); }
.line__window {
  position: absolute;
  top: 8px;
  transform: translateX(-100%);
  padding-right: 8px;
  font: var(--dm11);
  color: var(--ph);
  letter-spacing: 1px;
  white-space: nowrap;
  -webkit-font-smoothing: none;
}
.line__rule { position: absolute; left: 14px; right: 14px; top: 41px; height: 2px; background: var(--ph-l3); }
.line__mark { position: absolute; top: 28px; width: 4px; height: 28px; background: var(--ph-bright); }
.line__label { position: absolute; top: 62px; font: 400 12px/1 var(--face-mono); color: var(--ph-text); white-space: nowrap; }
.line__ends { display: flex; justify-content: space-between; gap: 12px; }

/* == what it plugs into == */
.how__plugs { padding-bottom: 88px; }
.plugs { display: flex; flex-wrap: wrap; gap: 1px; }
.plug {
  flex: 1 1 300px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ph-l2);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.plug__label { font: var(--dm11); color: var(--ph-dim); letter-spacing: 1px; width: 88px; -webkit-font-smoothing: none; }
.plug__icons { display: flex; gap: 18px; align-items: center; }
.plug__say { font: 400 13px/1.5 var(--face-mono); color: var(--ph-text2); }
.how__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 18px 22px;
  margin-top: 1px;
  box-shadow: 0 0 0 1px var(--ph-l2);
}
.how__more:hover { background: var(--ph-wash2); }
.how__more-say { font: 400 13px/1.6 var(--face-mono); color: var(--ph-mute2); }
.how__more-go { font: var(--dm11); color: var(--ph); letter-spacing: 1px; white-space: nowrap; -webkit-font-smoothing: none; }
