/* E-commerce · vertical scene reel (2 · Elena esita; also Hotel · 3). Step line → graphic → one insight line that pops
   with its key figure, large and bold (shared by the search, Elena and Hotel reels). Frame, launch, transport, pills and end frame come from demo-kit.css (30 Nov). */
.er-reel {
  --er-top: var(--er-sticky-edge, 88px);
  --er-height: min(580px, calc(100svh - var(--er-top) - 32px));
  --er-gap: clamp(5px, 1.4cqh, var(--space-8));
  --er-inset: clamp(10px, 2.6cqh, var(--space-16));
  --er-body: max(var(--type-13), min(2.6cqh, .9375rem));
  --er-emphasis: color-mix(in srgb, var(--blue) 16%, var(--white));
  --er-match: color-mix(in srgb, var(--sunset) 26%, var(--white));
  --er-ok: color-mix(in srgb, var(--ok) 55%, var(--ink));
  --er-ok-soft: color-mix(in srgb, var(--ok) 10%, var(--white));
  --er-line: color-mix(in srgb, var(--ink) 12%, var(--white));
  --er-sand: #EBD3A8;
  --er-control: 36px;
  --er-transport-pad: clamp(6px, 1.25cqh, var(--space-8));
  --er-transport-height: calc(var(--er-control) + 2 * var(--er-transport-pad) + 1px);
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  container-type: size;
  width: min(100%, max(320px, calc(var(--er-height) * 9 / 16)));
  height: max(500px, var(--er-height));
  overflow: hidden;
  overflow-anchor: none;
  color: var(--ink);
  font: 650 var(--er-body)/1.35 var(--sans);
  font-variant-numeric: tabular-nums;
}
.er-reel.is-ready:not(.is-launched) { cursor: pointer; }

.er-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.er-reel svg.er-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.er-num { font-family: var(--mono); letter-spacing: -.03em; white-space: nowrap; }

.er-stage { position: relative; isolation: isolate; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; }
.er-stage > * { grid-area: 1 / 1; min-width: 0; }
.er-stage > [aria-hidden="true"]:is(.er-cover, .er-scene) { visibility: hidden; pointer-events: none; }
/* Opener (30 Nov): the cover's sentence plays as the title beat (.er-title, centred in the empty stage), then sits in
   a header row above every scene (.er-head), also above the end frame in the static reduced-motion state. */
.er-reel.has-opener .er-stage { grid-template: auto minmax(0, 1fr) / minmax(0, 1fr); background: var(--paper); }
.er-reel.has-opener .er-stage > * { grid-area: 2 / 1; }
.er-reel.has-opener .er-stage > :is(.er-cover, .er-title) { grid-row: 1 / -1; }
.er-reel.has-opener .er-stage > .er-head { grid-row: 1; }
.er-head { z-index: 1; max-width: none; padding: calc(1.2 * var(--er-inset)) var(--er-inset) 0; background: var(--paper); }
.er-reel.is-ready:not(.is-launched) .er-head { display: none; }
.er-reel.has-opener .er-scene { padding-top: var(--er-inset); }
.er-title { z-index: 2; padding: var(--er-inset); }
.er-reel.is-launched .er-scene { margin-block-end: var(--er-transport-height); }

/* Cover (30 Nov, like the home hero reel): the opener, a hook with the result, one card, play. */
.er-cover {
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: calc(1.4 * var(--er-inset));
  padding: var(--er-inset);
  background: var(--paper);
  text-align: center;
}
/* The top label is the opener (.demo-opener): what the viewer is about to see. */
.er-cover .er-opener { max-width: 32ch; }
.er-cover-hook { max-width: 13ch; font-size: clamp(var(--type-24), 5.8cqh, 2.125rem); font-weight: 850; line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.er-cover-hook strong { color: var(--blue-dark); }
.er-cover-hook em { font-style: normal; color: var(--er-ok); }

/* Scenes */
.er-scene {
  display: grid;
  align-items: stretch;
  padding: calc(1.6 * var(--er-inset)) var(--er-inset) var(--er-inset);
  overflow: hidden;
  background: var(--paper);
}
.er-scene-content { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(var(--space-8), 2.2cqh, var(--space-16)); min-height: 0; }
.er-step { margin: 0; font-size: max(var(--type-20), min(4.2cqh, 1.4rem)); font-weight: 850; line-height: 1.16; letter-spacing: -.025em; text-wrap: pretty; }
.er-step > span { display: block; margin-bottom: 4px; color: var(--blue-dark); font: 700 var(--type-13)/1.35 var(--mono); letter-spacing: 0; }
.er-graphic { display: grid; align-content: center; gap: var(--er-gap); min-height: 0; }
/* Insight line (30 Nov): pops as in the home hero and margin reels, large and bold with the key words highlighted.
   .is-bad (sunset) for the problem, .is-result (soft green) for the gain. */
.er-insight {
  --er-emphasis: var(--white);
  margin: 0;
  padding: clamp(var(--space-8), 1.8cqh, var(--space-16)) var(--er-inset);
  border-left: 3px solid var(--blue-dark);
  border-radius: 0 var(--radius-8) var(--radius-8) 0;
  background: color-mix(in srgb, var(--blue) 8%, var(--white));
  font-size: clamp(var(--type-20), 4.3cqh, var(--type-32));
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.er-insight mark { padding: 0 .13em; border-radius: var(--radius-8); background: var(--er-emphasis); color: var(--blue-dark); font-weight: 900; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.er-insight strong { font-weight: 900; }
.er-insight.is-bad { --er-emphasis: color-mix(in srgb, var(--sunset) 30%, var(--white)); border-left-color: var(--sunset); background: var(--white); }
.er-insight.is-bad mark { color: var(--ink); }
.er-insight.is-result { border-left-color: var(--ok); background: var(--er-ok-soft); }
.er-insight.is-result mark { color: var(--er-ok); }
.er-word { display: inline-block; }

/* Cards inside the reel */
.er-card {
  display: grid;
  gap: var(--er-gap);
  padding: var(--er-inset);
  border: 1px solid var(--er-line);
  border-radius: var(--radius-16);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.er-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); color: var(--text-2); font-size: var(--type-13); font-weight: 800; }
.er-card-head > span { display: inline-flex; align-items: center; gap: var(--space-8); white-space: nowrap; }
.er-product { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: var(--space-8); }
.er-product b { display: block; font-weight: 850; }
.er-product small { display: block; color: var(--text-2); font-size: var(--type-13); font-weight: 600; }
.er-product > strong { font-weight: 900; }
.er-thumb { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border-radius: var(--radius-8); background: var(--paper-2); }
.er-thumb svg { width: 36px; height: 36px; }
.er-rows { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--er-line); }
.er-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); padding: 6px 4px; border-bottom: 1px solid var(--er-line); border-radius: 4px; }
.er-rows li span:first-child { color: var(--text-2); }
.er-rows li small { color: var(--text-2); font-size: var(--type-13); font-weight: 600; }
.er-rows .er-total { border-bottom: 0; font-size: var(--type-17); font-weight: 900; }
.er-rows .er-total strong { font-weight: 900; }
.er-ok { color: var(--er-ok); font-weight: 900; }
.er-stamp.demo-pill { justify-self: center; }
/* One plain line, not two outlined chips. */
.er-browse { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--type-15); font-weight: 700; }
.er-browse span { display: inline-flex; align-items: center; gap: 6px; }
.er-browse span + span { color: var(--ink); font-weight: 900; }

.er-mail { gap: 6px; }
.er-mail-from { display: flex; align-items: center; gap: var(--space-8); color: var(--text-2); font-size: var(--type-13); font-weight: 700; }
.er-mail-from i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-style: normal; font-weight: 900; }
.er-mail-subject { font-size: var(--type-17); font-weight: 900; line-height: 1.2; }
.er-mail-body { color: var(--text-2); font-weight: 600; line-height: 1.42; }
.er-coupon { justify-self: start; padding: 4px 10px; border-radius: var(--radius-8); background: color-mix(in srgb, var(--demo-bad) 22%, var(--white)); color: var(--ink); font-family: var(--mono); font-weight: 700; }
.er-generic { opacity: .9; }
.er-cta-fake {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius-8);
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 850;
}
.er-tap { position: absolute; right: 18%; bottom: -6px; width: 26px; height: 26px; color: var(--ink); opacity: 0; fill: var(--white); stroke: currentColor; stroke-width: 1.4; }

.er-signals { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.er-signals li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 6px; padding: 8px; border: 1px solid var(--er-line); border-radius: var(--radius-8); background: var(--white); line-height: 1.3; }
.er-signals li svg { color: var(--blue-dark); }
.er-signals strong { color: var(--ink); font-weight: 900; }

.er-rules li { justify-content: flex-start; }
.er-rules svg { color: var(--er-ok); }
.er-template { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); padding: 10px; border: 1px solid var(--er-line); border-radius: var(--radius-8); background: var(--paper); }
.er-template b { display: flex; align-items: flex-start; gap: var(--space-8); flex: 1 1 14em; font-weight: 850; }
.er-template b svg { color: var(--blue); }

/* End frame = the result (30 Nov): the kit's one big figure and one plain line, centred on the paper. */
.er-end { align-items: center; padding: var(--er-inset); }
.er-end .demo-end-figure { font-size: clamp(var(--type-44), 11cqh, var(--type-80)); }

/* Transport: the kit's strip (.demo-transport, .demo-control, .demo-seek, .demo-time), pinned to the foot in a fixed height. */
.er-transport { position: absolute; inset: auto 0 0; z-index: 3; gap: var(--er-gap); padding: var(--er-transport-pad) var(--er-inset); }
.er-reel :is(button, input):focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }

@container (max-height: 540px) {
  .er-step { font-size: var(--type-17); }
  .er-card { padding: 10px; }
}
/* The big insight line needs the room on phones: the long mail scene tightens its body text instead. */
@container (max-height: 600px) {
  .er-mail-body { font-size: var(--type-13); line-height: 1.35; }
}
