/* Motion-specific styles — each block owns one motion moment */

/* ============ MOMENT 1 — email vs. button (side-by-side with red scratch) ============ */

.email-vs-button {
  position: relative;
  margin: 64px 0 72px;
  padding: 0;
  display: grid;
  grid-template-columns: 1.1fr auto 0.9fr;
  gap: 28px;
  align-items: start;
}

.evb__col { display: flex; flex-direction: column; }
.evb__colhead {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-1);
  padding: 0 2px 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.steps {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--prose);
  padding: 22px 24px 22px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: 0 12px 28px -18px rgba(29,29,31,0.18);
  position: relative;
}

.steps__head {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.steps__head > div { display: flex; gap: 10px; align-items: baseline; }
.steps__label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute-2); min-width: 52px;
}
.steps__val {
  font-family: var(--font-sans); font-size: 13px; color: var(--ink); font-weight: 500;
}

.steps__list {
  list-style: none !important;
  padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: none;
}
.steps__list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.steps__list li.is-in { opacity: 1; transform: none; }
.steps__list li::marker { content: none; }
.steps__list li .n {
  font-size: 11px;
  color: var(--mute-2);
  text-align: right;
  letter-spacing: 0.06em;
}
.steps__list li .c { position: relative; }
.steps__list li .c em { font-style: italic; color: var(--ink); }

.steps__signoff {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--mute-1);
  font-style: italic;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

/* ---- The scratch ---- */
.scratchable .c { padding: 2px 0; }
.c__original { display: inline-block; }
.c__rewrite {
  display: block;
  font-family: var(--font-script);
  font-size: 19px;
  line-height: 1.1;
  color: var(--accent-ink);
  margin-top: 4px;
  padding-left: 2px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.c__rewrite-strike {
  display: inline-block;
  color: var(--accent-ink);
  margin-right: 6px;
  font-size: 17px;
}
.c__rewrite-alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-ink);
}
.c__hamburger {
  width: 32px;
  height: 22px;
  flex-shrink: 0;
}
.c__hamburger line {
  stroke: var(--accent-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}
.c__rewrite-arrow {
  font-family: var(--font-script);
  font-size: 18px;
  color: var(--accent-ink);
}
.scratch {
  position: absolute;
  top: 8px;
  left: -4px;
  width: calc(100% + 8px);
  height: 18px;
  pointer-events: none;
  overflow: visible;
}
.scratch__stroke {
  fill: none !important;
  stroke: var(--accent) !important;
  stroke-width: 6 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  transform: rotate(-1.2deg);
  opacity: 0.95;
  /* stroke-dasharray / dashoffset set by JS for progressive draw */
}

.email-vs-button.scratched .scratchable .c__original { color: var(--mute-2); }
.scratchable .c__original { transition: color 240ms var(--ease); }

/* ---- Divider ---- */
.email-vs-button__divider {
  display: flex; align-items: center; justify-content: center;
  align-self: stretch; min-width: 40px;
  color: var(--mute-2);
  font-family: var(--font-display); font-style: italic; font-size: 18px;
  position: relative;
}
.email-vs-button__divider span {
  background: var(--canvas); padding: 6px 8px; position: relative; z-index: 1;
}
.email-vs-button__divider::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: 50%; width: 1px; background: var(--hairline);
}

/* ---- Button side ---- */
.button-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 20px 8px;
}
.button-side__caption, .button-side__sub {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute-1); text-align: center;
}
.button-side__sub { color: var(--mute-2); max-width: 220px; line-height: 1.5; }
.deeplink-button {
  background: var(--ink-deep); color: var(--canvas);
  padding: 16px 32px; border: none; border-radius: 14px;
  font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  box-shadow: 0 18px 40px -16px rgba(29, 29, 31, 0.3);
  cursor: default;
}

/* ============ MOMENT 2 — parallel navigation ============ */

.parallel-nav {
  position: absolute;
  left: 100%;
  top: 0;
  width: calc(var(--col-margin) + var(--gutter));
  height: 100%;
  margin-left: calc(-1 * var(--gutter) + 8px);
  pointer-events: none;
}
.parallel-nav svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: auto;
}
.parallel-nav .deeplink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke-width 200ms var(--ease), stroke 200ms var(--ease);
}
.parallel-nav .deeplink.hot { stroke: var(--accent); stroke-width: 2.2; }
.parallel-nav .deeplink-dot {
  fill: var(--ink);
  transition: fill 200ms var(--ease), r 200ms var(--ease);
  cursor: help;
}
.parallel-nav .deeplink-dot.hot { fill: var(--accent); }
.deeplink-label {
  position: absolute;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--mute-1);
  letter-spacing: 0.02em;
  max-width: 180px;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.deeplink-label.visible { opacity: 1; transform: translateX(0); }

[data-deeplink-idx].bypassed {
  /* Translucent vermilion (was translucent cadmium 255,176,0). Tones the
     paragraph being bypassed by the parallel-nav deeplink hover. Kept softer
     than yellow's 0.28 — red carries more visual weight at the same alpha. */
  background: rgba(199, 62, 42, 0.14);
  transition: background 240ms var(--ease);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(199, 62, 42, 0.14);
}

/* ============ MOMENT 1.5 — the 26% lift chart (hand-drawn) ============ */

.lift-chart {
  margin: 48px 0 64px;
  padding: 0;
  position: relative;
}
.lift-chart__svg {
  width: 100%;
  height: auto;
  max-height: 420px;
  font-family: var(--font-mono);
}

/* Graph paper */
.lift-grid line {
  stroke: var(--mute-3);
  stroke-width: 1.2;
  fill: none;
}
.lift-grid .lift-grid__tick {
  stroke-dasharray: 2 4;
  opacity: 0.55;
}
.lift-grid__axis {
  fill: var(--mute-2);
  font-size: 10px;
  text-anchor: end;
}

/* Bars — outline stroke that draws itself */
.lift-bar__outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lift-bar__outline--hot { stroke: var(--ink); }

/* Hatch fill — each line grows from baseline */
.lift-bar__hatch line {
  stroke: var(--mute-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 600ms var(--ease);
}
[data-bar="variant"] .lift-bar__hatch line { stroke: var(--ink); opacity: 0.85; }

/* Numbers + labels */
.lift-bar__num {
  fill: var(--ink);
  font-size: 14px;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.lift-bar__label {
  fill: var(--mute-1);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.lift-bar__sub {
  fill: var(--mute-2);
  font-size: 10px;
  text-anchor: middle;
  font-family: var(--font-sans);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

/* Delta callout */
.lift-delta__line {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-dasharray: 5 5;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 600ms var(--ease);
  fill: none;
}
.lift-delta__bracket {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.8;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 500ms var(--ease);
}
.lift-delta__num {
  fill: var(--accent-ink);
  font-family: var(--font-script);
  font-size: 32px;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.lift-delta__sub {
  fill: var(--mute-1);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

/* Staged reveal */
.lift-chart.stage-1 [data-bar="control"] .lift-bar__outline { stroke-dashoffset: 0; }
.lift-chart.stage-2 [data-bar="control"] .lift-bar__hatch line { stroke-dashoffset: 0; }
.lift-chart.stage-2 [data-bar="control"] .lift-bar__num,
.lift-chart.stage-2 [data-bar="control"] .lift-bar__label,
.lift-chart.stage-2 [data-bar="control"] .lift-bar__sub { opacity: 1; }
.lift-chart.stage-3 [data-bar="variant"] .lift-bar__outline { stroke-dashoffset: 0; }
.lift-chart.stage-4 [data-bar="variant"] .lift-bar__hatch line { stroke-dashoffset: 0; }
.lift-chart.stage-4 [data-bar="variant"] .lift-bar__num,
.lift-chart.stage-4 [data-bar="variant"] .lift-bar__label,
.lift-chart.stage-4 [data-bar="variant"] .lift-bar__sub { opacity: 1; }
.lift-chart.stage-5 .lift-delta__line { stroke-dashoffset: 0; }
.lift-chart.stage-5 .lift-delta__bracket { stroke-dashoffset: 0; }
.lift-chart.stage-5 .lift-delta__num,
.lift-chart.stage-5 .lift-delta__sub { opacity: 1; }

.lift-chart__cap {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute-1);
  text-align: center;
}

/* ============ MOMENT 2.5 — the bypass / fast-lane ============ */

.bypass {
  margin: 56px 0 56px;
  padding: 0;
}
.bypass__svg {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
  overflow: visible;
}

/* Main road (the product) */
.bypass__road-edge {
  stroke: var(--mute-2);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bypass__road-center {
  stroke: var(--mute-2);
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 8 10;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}

/* Gates */
.bypass__gate line {
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 280ms var(--ease);
}
.bypass__gate-label {
  fill: var(--mute-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

/* Product label */
.bypass__label {
  fill: var(--mute-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.bypass__sublabel {
  fill: var(--mute-2);
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 11px;
}

/* Fast lane — the arc that flies over the gates */
.bypass__fastlane {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bypass__fastlane-shadow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.10;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Motion streaks that trail the fast-lane */
.bypass__streaks line {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 300ms var(--ease), transform 600ms var(--ease);
}

/* Fast-lane pill label */
.bypass__tag rect {
  fill: var(--accent);
}
.bypass__tag text {
  fill: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.bypass__tag {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

/* The car — drives the fast lane */
.bypass__car {
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.bypass__car rect {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2.2;
}
.bypass__car circle {
  fill: var(--ink);
  stroke: none;
}
.bypass__car line {
  stroke: var(--ink);
  stroke-width: 1.4;
  opacity: 0.6;
}

/* Destination arrow head and flag */
.bypass__head {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.bypass__flag line { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.bypass__flag path { fill: var(--accent); stroke: none; }
.bypass__flag { opacity: 0; transition: opacity 300ms var(--ease); }

/* Staged reveal */
.bypass.stage-road .bypass__road-edge,
.bypass.stage-road .bypass__road-center { stroke-dashoffset: 0; }
.bypass.stage-gates .bypass__gate line,
.bypass.stage-gates .bypass__gate-label { opacity: 1; }
.bypass.stage-gates .bypass__gate line { opacity: 0.9; }
.bypass.stage-fastlane .bypass__fastlane,
.bypass.stage-fastlane .bypass__fastlane-shadow { stroke-dashoffset: 0; }
.bypass.stage-fastlane .bypass__tag { opacity: 1; transform: none; }
.bypass.stage-streaks .bypass__streaks line { opacity: 0.7; transform: none; }
.bypass.stage-streaks .bypass__car { opacity: 1; }
.bypass.stage-done .bypass__head { opacity: 1; }
.bypass.stage-done .bypass__flag { opacity: 1; }

/* After it lands — the main road dims, signalling disuse */
.bypass.stage-done .bypass__road-edge,
.bypass.stage-done .bypass__road-center { opacity: 0.5; transition: opacity 500ms var(--ease); }
.bypass.stage-done .bypass__gate line { opacity: 0.35; transition: opacity 500ms var(--ease); }
.bypass.stage-done .bypass__gate-label { opacity: 0.45; }

.bypass__cap {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute-1);
  text-align: center;
}

/* ============ MOMENT 3 — notification vanishes, frantic menu ============ */

.notif-frantic {
  position: relative;
  margin: 56px 0 36px;
  width: 100%;
  height: 340px;
}
.notif-frantic svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.notif-frantic svg rect,
.notif-frantic svg line,
.notif-frantic svg circle,
.notif-frantic svg path,
.notif-frantic svg polyline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Phone shell */
.nf-phone rect:nth-child(1) { stroke-width: 1.8; }
.nf-phone rect:nth-child(2) { stroke: var(--mute-3); }
.nf-phone rect:nth-child(3) { fill: var(--ink); stroke: none; }

/* Notification card — slides in, then vanishes (green theme, real copy) */
.nf-notif {
  transform: translateY(-22px);
  opacity: 0;
  transition: transform 600ms var(--ease), opacity 480ms var(--ease);
}
.nf-notif rect:first-child {
  fill: #ecfdf5;             /* green-50 — soft mint card background */
  stroke: #10b981;            /* emerald-500 — outline */
  stroke-width: 1.4;
}
.nf-notif__icon {
  fill: #059669;              /* emerald-600 — solid app icon */
  stroke: none;
}
.nf-notif text {
  stroke: none;
  fill: #064e3b;              /* emerald-900 — body text */
}
.nf-notif__app {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: #059669;
}
.nf-notif__head {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: -0.005em;
}

.notif-frantic.stage-arrive .nf-notif { transform: translateY(0); opacity: 1; }
.notif-frantic.stage-vanish .nf-notif,
.notif-frantic.stage-search .nf-notif,
.notif-frantic.stage-frantic .nf-notif,
.notif-frantic.stage-stuck .nf-notif {
  transform: translateY(-4px) scale(0.96);
  opacity: 0;
  transition: transform 360ms var(--ease), opacity 280ms var(--ease);
}

/* Puff particles when notification disappears */
.nf-puff circle {
  fill: var(--mute-2);
  stroke: none;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transition: opacity 360ms var(--ease), transform 480ms var(--ease);
}
.notif-frantic.stage-vanish .nf-puff circle { opacity: 1; transform: scale(1); }
.notif-frantic.stage-search  .nf-puff circle,
.notif-frantic.stage-frantic .nf-puff circle,
.notif-frantic.stage-stuck   .nf-puff circle { opacity: 0; transform: scale(1.5); }

/* Menu rows + search bar — fade in once notification is gone.
   Search bar appears first (stage-search), the user taps it; the menu rows
   themselves only become tappable from stage-frantic onward — that's the
   whole point: search was the obvious affordance and didn't help. */
.nf-menu g { opacity: 0; transition: opacity 360ms var(--ease); }
.nf-menu g rect { stroke: var(--mute-3); }
.nf-menu g line { stroke: var(--mute-2); }
.notif-frantic.stage-vanish  .nf-menu g.nf-search,
.notif-frantic.stage-search  .nf-menu g.nf-search,
.notif-frantic.stage-frantic .nf-menu g.nf-search,
.notif-frantic.stage-stuck   .nf-menu g.nf-search { opacity: 1; }
.notif-frantic.stage-frantic .nf-menu g[data-menu]:not(.nf-search),
.notif-frantic.stage-stuck   .nf-menu g[data-menu]:not(.nf-search) { opacity: 1; }

/* Search bar — its bar gets an ink outline once the user has tapped it,
   the placeholder line fades, the typed query types in, then "no matches"
   appears beneath. All controlled by .is-typed / .is-empty on .nf-search. */
.nf-search__bar { stroke: var(--mute-3); transition: stroke 240ms var(--ease); }
.nf-search.is-typed .nf-search__bar { stroke: var(--ink); }
.nf-search__icon circle,
.nf-search__icon path { stroke: var(--mute-2); transition: stroke 240ms var(--ease); }
.nf-search.is-typed .nf-search__icon circle,
.nf-search.is-typed .nf-search__icon path { stroke: var(--ink); }
.nf-search__placeholder { stroke: var(--mute-2); transition: opacity 200ms var(--ease); }
.nf-search.is-typed .nf-search__placeholder { opacity: 0; }
.nf-search__query {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--ink);
  stroke: none;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.nf-search.is-typed .nf-search__query { opacity: 1; }
.nf-search__empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  fill: var(--mute-1);
  stroke: none;
  opacity: 0;
  transition: opacity 360ms var(--ease);
}
.nf-search__empty--sub {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--mute-2);
}
.nf-search.is-empty .nf-search__empty { opacity: 1; }
/* Once the menu hunt begins, the search empty-state fades — search was a dead end. */
.notif-frantic.stage-frantic .nf-search.is-empty .nf-search__empty,
.notif-frantic.stage-stuck   .nf-search.is-empty .nf-search__empty { opacity: 0; }
.notif-frantic.stage-frantic .nf-search .nf-search__query,
.notif-frantic.stage-stuck   .nf-search .nf-search__query { opacity: 0.4; }

/* Highlighted row under cursor */
.nf-menu g.is-hit rect { stroke: var(--ink); stroke-width: 1.8; }
.nf-menu g.is-hit line { stroke: var(--ink); }

/* Frantic cursor — blue tap circle that snaps between rows.
   Visible from stage-search onward (it lands on the search bar first). */
.nf-cursor {
  opacity: 0;
  transform: translate(320px, 67px);
  transition: opacity 200ms var(--ease),
              transform 220ms cubic-bezier(0.5, 0, 0.2, 1);
}
.nf-cursor circle:first-child { fill: rgba(199, 62, 42, 0.14); stroke: var(--accent); stroke-width: 1.4; }
.nf-cursor .nf-cursor__inner   { fill: var(--accent); stroke: none; }
.notif-frantic.stage-search  .nf-cursor { opacity: 1; transition-duration: 280ms; }
.notif-frantic.stage-frantic .nf-cursor { opacity: 1; transition-duration: 140ms; }
.notif-frantic.stage-stuck   .nf-cursor { opacity: 0.5; transition-duration: 380ms; }

/* "?" appears at the end */
.nf-confused { opacity: 0; transition: opacity 320ms var(--ease); }
.nf-confused text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  fill: var(--accent-ink);
  stroke: none;
  opacity: 0.7;
}
.notif-frantic.stage-stuck .nf-confused { opacity: 1; }

/* Hand-written annotations */
.nf-anno { opacity: 0; transition: opacity 360ms var(--ease); }
.nf-anno text {
  font-family: 'Sacramento', cursive;
  font-size: 19px;
  fill: var(--ink);
  stroke: none;
}
.nf-anno path,
.nf-anno polyline { stroke: var(--ink); stroke-width: 1.1; }
.notif-frantic.stage-vanish  .nf-anno--gone,
.notif-frantic.stage-search  .nf-anno--gone,
.notif-frantic.stage-frantic .nf-anno--gone,
.notif-frantic.stage-stuck   .nf-anno--gone   { opacity: 1; }
.notif-frantic.stage-search  .nf-anno--search,
.notif-frantic.stage-frantic .nf-anno--search,
.notif-frantic.stage-stuck   .nf-anno--search { opacity: 1; }
.notif-frantic.stage-frantic .nf-anno--frantic,
.notif-frantic.stage-stuck   .nf-anno--frantic { opacity: 1; }

.notif-frantic .note {
  position: absolute;
  bottom: -28px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
}

/* ============ MOMENT 4 — prompt bar migration ============ */

.prompt-migration {
  position: relative;
  min-height: 80vh;
  margin: 72px 0;
}

.prompt-ghost {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--mute-3);
  border-radius: 10px;
  background: #fff;
  color: var(--mute-2);
  font-size: 13px;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity 160ms var(--ease);
}

.app-frame {
  position: relative;
  margin: 48px auto 0;
  width: 100%;
  max-width: 560px;
  height: 400px;
  border: 1px solid var(--mute-3);
  border-radius: 10px;
  background: #fff;
  opacity: 1;
  transition: opacity 220ms var(--ease);
  overflow: hidden;
  box-shadow: 0 12px 30px -20px rgba(29,29,31,0.18);
}
.app-frame .frame-topbar {
  position: relative;
  height: 40px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.app-frame .frame-topbar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mute-3);
}
/* Doorman wordmark in the chrome */
.frame-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);                /* vermilion ink — the AI accent */
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.frame-brand sup {
  font-size: 7px;
  margin-left: 1px;
  color: var(--mute-2);
  font-weight: 400;
}

.app-frame .frame-slot {
  position: relative;
  margin: 28px auto 0;
  width: 70%;
  height: 38px;
  border: 1px dashed var(--mute-3);
  border-radius: 12px;
  opacity: 0.4;
  transition: opacity 240ms var(--ease);
}
/* Soft vermilion glow that pulses on once the bar settles into the slot.
   Reduced alpha (0.42 -> 0.32) compared to the cadmium original — red carries
   more visual weight at the same opacity; cooled to keep the moment "warmth"
   rather than "alert." */
.app-frame .frame-slot::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 24px;
  background: radial-gradient(closest-side, rgba(199,62,42,0.32), rgba(199,62,42,0) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease);
}
.app-frame.is-arrived .frame-slot { opacity: 0; }
.app-frame.is-arrived .frame-slot::after { opacity: 1; }

/* Gen-AI interior — greeting + suggestion chips */
.frame-genai {
  position: absolute;
  inset: 96px 0 0 0;
  padding: 28px 36px 0;
  text-align: center;
}
.genai-greet {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.genai-greet::after {
  /* blinking caret to read as a prompt-style interface */
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--accent-ink);
  animation: doorman-caret 1.1s steps(1, end) infinite;
}
@keyframes doorman-caret {
  50% { opacity: 0; }
}
.genai-sub {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--mute-1);
  font-style: italic;
}
.genai-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.genai-chips span {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--accent-ink);       /* deep vermilion for chip text */
  background: #fdf0eb;            /* vermilion-50 — pale red wash */
  border: 1px solid #f3cfc4;      /* vermilion-200 — light red outline */
  padding: 7px 12px;
  border-radius: 10px;            /* squircle */
  white-space: nowrap;
}

/* Corner sparkle */
.frame-sparkle {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.2;
  opacity: 0.7;
}
.frame-sparkle path { fill: #fff7e3; }
.frame-sparkle circle { fill: var(--accent); stroke: none; }

.prompt-migration.reduced .app-frame { opacity: 1; }

/* ============ MOMENT 5 — WhatsApp message to an agent ============
   The product dissolves into a single sentence in a chat the user
   already had open. Reveal sequence: phone fades up, outgoing bubble
   slides in, ticks turn double-blue, typing dots pulse, agent reply
   slides in. Each step is argument-bearing — no decorative motion. */

.wamsg {
  margin: 88px auto 56px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* Above-the-fold by default until JS marks it played */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.wamsg.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Phone shell — soft warm shadow, no fake bezel theatrics */
.wamsg__phone {
  position: relative;
  width: 320px;
  border-radius: 28px;
  background: #efeae2; /* WhatsApp's warm chat-paper tint */
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 18px 40px -12px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header bar */
.wamsg__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f2f5;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.wamsg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.wamsg__avatar svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
}
.wamsg__name {
  font-size: 14px;
  font-weight: 600;
  color: #111b21;
  line-height: 1.1;
}
.wamsg__status {
  font-size: 11px;
  color: #667781;
  margin-top: 2px;
}
.wamsg__chrome {
  display: flex;
  gap: 4px;
}
.wamsg__chrome span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #667781;
  opacity: 0.6;
}

/* Chat body */
.wamsg__body {
  position: relative;
  min-height: 280px;
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.4) 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.3) 1px, transparent 1.5px),
    #efeae2;
  background-size: 60px 60px, 90px 90px;
}

.wamsg__day {
  align-self: center;
  padding: 4px 10px;
  margin-bottom: 4px;
  background: rgba(225, 245, 254, 0.92);
  border-radius: 8px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #54656f;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.05);
}

.wamsg__row {
  display: flex;
  width: 100%;
}
.wamsg__row--out { justify-content: flex-end; }
.wamsg__row--in  { justify-content: flex-start; }

/* Bubble — staged in via JS adding .is-in */
.wamsg__bubble {
  max-width: 78%;
  padding: 7px 10px 6px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.36;
  color: #111b21;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transform-origin: bottom right;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.wamsg__bubble p { margin: 0; }
.wamsg__bubble.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wamsg__bubble--out {
  background: #d9fdd3;
  border-top-right-radius: 2px;
}
.wamsg__bubble--in {
  background: #ffffff;
  border-top-left-radius: 2px;
  transform-origin: bottom left;
}

.wamsg__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 2px;
  font-size: 10.5px;
  color: #667781;
  line-height: 1;
}
.wamsg__ticks {
  width: 16px;
  height: 11px;
  fill: none;
  stroke: #667781;       /* Single grey by default — "sent" */
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 380ms var(--ease);
}
/* When JS marks the message read, ticks turn WhatsApp's read-blue */
.wamsg__bubble.is-read .wamsg__ticks { stroke: #53bdeb; }

/* Typing dots — three small circles that breathe */
.wamsg__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
}
.wamsg__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa6ad;
  animation: wamsgBlink 1.1s infinite ease-in-out;
}
.wamsg__dot:nth-child(2) { animation-delay: 0.18s; }
.wamsg__dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes wamsgBlink {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.45; }
  40%           { transform: scale(1);   opacity: 1;    }
}
/* When JS hides typing (right before reply lands) */
.wamsg__typing.is-out {
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

/* Input bar */
.wamsg__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  background: #f0f2f5;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}
.wamsg__placeholder {
  flex: 1;
  background: #fff;
  border-radius: 22px;
  padding: 9px 14px;
  font-size: 13px;
  color: #98a4ac;
}
.wamsg__send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00a884;
  display: grid;
  place-items: center;
}
.wamsg__send svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Caption beneath the phone */
.wamsg__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-1);
  text-align: center;
}
.wamsg__cap em {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--ink);
}

/* Reduced-motion: skip stagger; everything visible immediately */
@media (prefers-reduced-motion: reduce) {
  .wamsg, .wamsg__bubble { opacity: 1 !important; transform: none !important; }
  .wamsg__dot { animation: none; opacity: 0.6; }
}

/* Mobile fallbacks for pinned moments */
@media (max-width: 900px) {
  .email-vs-button {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .email-vs-button__divider { transform: rotate(90deg); min-width: 0; min-height: 24px; }
  .button-side { padding: 8px 0 24px; }

  .parallel-nav { display: none; }

  .prompt-migration { min-height: 0; }
  .prompt-ghost { display: none; }
  .app-frame { opacity: 1; }
}
