/* The click-through around the app's screens: the caption, the step count, the frame, Back and Next,
   and the one highlighted thing to tap. The screens inside .ex-app are the app's own CSS and markup
   (app-css/), unchanged. */
:root { --font-sans: "Figtree"; --font-serif: "Lora"; }
.ex-main { padding: 20px 0 40px; }
.ex-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.ex-top .s-eyebrow { margin: 0; }
.ex-count { font-size: 14.5px; color: var(--s-muted); font-weight: 600; }
.ex-cap { font-family: var(--s-serif); font-size: 23px; line-height: 1.3; letter-spacing: -.3px; margin: 8px 0 6px; color: var(--s-navy); }
.ex-sub { margin: 0 0 14px; color: var(--s-muted); font-size: 16px; max-width: 70ch; }
.ex-bar { height: 4px; background: #d9dccf; margin: 0 0 16px; }
.ex-bar span { display: block; height: 100%; background: var(--s-amber); transition: width .25s; }

/* The frame: an app screen, in the app's fonts and ground. */
.ex-frame { border: 1px solid var(--s-line); background: #fff; box-shadow: 0 10px 30px #15385614; }
.ex-chrome { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--s-line); background: var(--s-paper); font-size: 13px; color: var(--s-muted); }
.ex-chrome img { width: 54px; height: auto; display: block; }
.ex-chrome b { font-weight: 600; color: var(--s-ink); }
.ex-chrome span { margin-left: auto; text-align: right; }
.ex-app { font-family: var(--sans); font-size: var(--fs); line-height: 1.5; color: var(--text); background: var(--surface-page); min-width: 0; }
.ex-app .page { max-width: none; margin: 0; padding: 14px 12px 20px; gap: 16px; animation: none; }
.ex-app .rh-asCard .rh-bar { position: static; }
.ex-app .rh-bar { position: static; }

/* The one thing to tap. */
.ex-tap { position: relative; outline: 3px solid var(--s-amber) !important; outline-offset: 3px; animation: ex-pulse 1.8s ease-out infinite; }
@keyframes ex-pulse { 0% { box-shadow: 0 0 0 0 #df9b2f88; } 70% { box-shadow: 0 0 0 12px #df9b2f00; } 100% { box-shadow: 0 0 0 0 #df9b2f00; } }
.ex-hint { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14.5px; color: var(--s-muted); }


/* Back, Next */
.ex-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ex-nav .s-btn { flex: 1 1 0; min-width: 0; }
.ex-nav .s-btn[disabled] { opacity: .45; cursor: default; }

/* The end */
.ex-done { background: var(--s-paper); border: 1px solid #cbd1c3; border-top: 3px solid var(--s-navy); padding: 24px 20px; }
.ex-done .s-acts .s-btn { flex: 1 1 100%; justify-content: space-between; }

@media (min-width: 720px) {
  .ex-done .s-acts .s-btn { flex: 0 0 auto; min-width: 240px; }
  .ex-nav { justify-content: flex-end; }
  .ex-nav .s-btn { flex: 0 0 160px; }
}
@media (min-width: 1024px) {
  .ex-main { padding: 40px 0 72px; }
  .ex-cap { font-size: 32px; }
  .ex-stage { max-width: 1080px; margin: 0 auto; }
  .ex-app .page { padding: 24px 28px 30px; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { .ex-tap { animation: none; } }

/* Whose screen this is, on every step: the person and their role. */
.ex-who { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; color: var(--s-ink); }
.ex-who .ex-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--s-navy); color: var(--s-paper); }
.ex-who.is-hr .ex-av { background: var(--s-teal); }
.ex-who b { font-weight: 600; color: var(--s-navy); }
.ex-who .ex-again { margin-left: auto; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--s-teal); text-decoration: underline; cursor: pointer; }

/* The screen plays out, then numbered notes say what matters and the gain. A numbered dot marks
   the spot on the screen; the note sits beside the screen (above it on a phone), never over it. */
.ex-body { display: grid; gap: 12px; }
.ex-frame { position: relative; }
.ex-rail { display: grid; gap: 8px; order: -1; align-content: start; }
.ex-busy .ex-tap { outline-color: transparent !important; animation: none; }
[data-anim] { transition: opacity .35s ease, transform .35s ease; }
[data-anim].ex-hide { opacity: 0; transform: translateY(6px); }
.ex-note { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; background: var(--s-navy); color: var(--s-paper); padding: 10px 12px; font-size: 15px; line-height: 1.35; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.ex-note small { display: block; margin-bottom: 2px; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--s-amber); }
.ex-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--s-amber); color: var(--s-navy); font-size: 13px; font-weight: 700; font-family: var(--s-font); }
.ex-dot { position: absolute; z-index: 4; box-shadow: 0 0 0 3px #fff; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.ex-note.is-on, .ex-dot.is-on { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .ex-body { grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: start; }
  .ex-rail { order: 0; position: relative; display: block; }
  .ex-rail .ex-note { position: absolute; left: 0; right: 0; }
  .ex-rail .ex-note::before { content: ""; position: absolute; left: -6px; top: 14px; width: 12px; height: 12px; background: var(--s-navy); transform: rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { [data-anim], .ex-note, .ex-dot { transition: none; } }

/* The story: what is happening, in its own box above the screen (Chris, 18 Nov). Step 1 sets the
   scene and holds before the screen plays; after that it is a slim line in the same place. */
.ex-story { display: grid; gap: 4px; margin: 8px 0 14px; padding: 12px 16px; background: var(--s-paper); border: 1px solid var(--s-line); border-left: 4px solid var(--s-amber); font-size: 18px; line-height: 1.4; letter-spacing: 0; transition: opacity .5s ease, transform .5s ease; }
.ex-story .ex-day { font-family: var(--s-font); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s-teal); }
.ex-story.is-first { padding: 20px 24px; font-size: 21px; margin-bottom: 18px; }
.ex-story.ex-hide { opacity: 0; transform: translateY(6px); }
.ex-frame.ex-wait { opacity: .25; transition: opacity .6s ease; }
@media (min-width: 1024px) { .ex-story { font-size: 20px; } .ex-story.is-first { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { .ex-story, .ex-frame.ex-wait { transition: none; } .ex-frame.ex-wait { opacity: 1; } }
