/* People's Doctor — Post-Visit interactive demo
   Fully self-contained: this :root block declares every token this demo uses,
   so the demo renders standalone with no external stylesheet dependency.
   Values are colour-true to the real People's Doctor patient app
   (Pre-Visit/Design System/platform.css) — do NOT shift to marketing navy.
   Phone mockup on a transparent canvas, nominal 380x780. */

:root {
  /* Navy scale — primary brand (matches the patient app) */
  --color-navy-900: #13102C;
  --color-navy-800: #26304F;
  --color-navy-700: #323E63;
  --color-navy-600: #38456D;
  --color-navy-500: #5669A4;
  --color-navy-400: #7A8ABD;
  --color-navy-300: #BFC9E3;
  --color-navy-200: #D8DEEE;
  --color-navy-100: #EDF0F7;

  /* Semantic + neutral */
  --color-text: #13102C;
  --color-white: #FFFFFF;
  --color-gray-100: #F8F8FD;

  /* Gradients */
  --gradient-button-primary: linear-gradient(135deg, #38456D 0%, #5669A4 100%);

  /* Shadows */
  --shadow-soft: 0 2px 12px rgba(38, 48, 79, 0.06);
  --shadow-card: 0 2px 30px rgba(38, 48, 79, 0.10);

  /* Radius */
  --radius-lg: 12px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset — formerly inherited from the shared tokens.css */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: transparent;
  font-family: var(--font-family);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Stage: centres + scales the phone to fit any iframe ---- */
.stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.phone-scaler {
  /* JS sets --scale; phone is nominal 380x780 */
  width: 380px;
  height: 780px;
  /* Fixed numeric scale — leaves room inside the iframe for the drop shadow */
  transform: scale(0.74);
  transform-origin: center center;
  flex-shrink: 0;
}

/* ---- Phone frame ---- */
.phone {
  position: relative;
  width: 380px;
  height: 780px;
  border-radius: 54px;
  background: #000000;
  padding: 9px;
  box-shadow:
    0 18px 44px rgba(19, 16, 44, 0.30),
    0 6px 16px rgba(19, 16, 44, 0.18),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}

/* side buttons */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  background: rgba(19, 16, 44, 0.55);
  border-radius: 3px;
}
.phone::before {
  left: -3px;
  top: 132px;
  height: 58px;
  box-shadow: 0 78px 0 rgba(19, 16, 44, 0.55);
}
.phone::after {
  right: -3px;
  top: 168px;
  height: 78px;
}

/* ---- Screen ---- */
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(180deg, #EEF0F8 0%, #FBFBFE 38%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
}

/* notch / dynamic island */
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 27px;
  background: #16142E;
  border-radius: 16px;
  z-index: 60;
}

/* status bar */
.statusbar {
  position: relative;
  z-index: 55;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy-900);
}
.statusbar__time {
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.statusbar__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.statusbar__icons svg {
  width: 16px;
  height: 16px;
}

/* ---- Scene viewport ---- */
.viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition:
    opacity 0.5s var(--ease-smooth),
    transform 0.5s var(--ease-smooth),
    visibility 0s linear 0.5s;
  will-change: opacity, transform;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition:
    opacity 0.55s var(--ease-smooth),
    transform 0.55s var(--ease-smooth),
    visibility 0s linear 0s;
}
.scene.is-prev {
  transform: translateX(-28px);
}

/* common scene padding */
.scene__pad {
  padding: 8px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ============================================================
   SCENE 1 — Notifikation (lock screen)
   ============================================================ */
.scene--lock .screen-inner {
  position: absolute;
  inset: 0;
}
.lock {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, #2B3358 0%, transparent 60%),
    linear-gradient(170deg, #1B1B3A 0%, #13102C 55%, #26304F 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 22px 30px;
  color: var(--color-white);
}
/* soft drifting orb behind clock */
.lock__orb {
  position: absolute;
  top: 96px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 105, 164, 0.55) 0%, rgba(86, 105, 164, 0) 70%);
  filter: blur(8px);
  animation: orbDrift 9s ease-in-out infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(-26px, 0) scale(1); }
  50% { transform: translate(26px, 22px) scale(1.12); }
}
.lock__time {
  position: relative;
  font-size: 74px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lock__date {
  position: relative;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

/* notification card */
.notif {
  position: relative;
  margin-top: auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 15px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}
.scene--lock.is-active .notif {
  animation: notifIn 0.6s var(--ease-smooth) 0.35s both;
}
@keyframes notifIn {
  0% { opacity: 0; transform: translateY(26px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.notif__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, #5669A4 0%, #38456D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(19, 16, 44, 0.4);
}
.notif__icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.notif__body {
  flex: 1;
  min-width: 0;
}
.notif__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.notif__app {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.notif__ago {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.notif__title {
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.34;
  color: #fff;
}
.notif__sub {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

/* swipe hint */
.lock__hint {
  position: relative;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.lock__hint svg {
  width: 14px;
  height: 14px;
  animation: hintBob 1.8s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* ============================================================
   In-app chrome (scenes 2-5)
   ============================================================ */
.appbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 12px;
}
.appbar__back {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-600);
  flex-shrink: 0;
}
.appbar__back svg { width: 16px; height: 16px; }
.appbar__title {
  flex: 1;
  min-width: 0;
}
.appbar__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-navy-400);
}
.appbar__name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-navy-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 1px;
}
.appbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #15803D;
  flex-shrink: 0;
}
.appbar__badge svg { width: 11px; height: 11px; }

/* ============================================================
   SCENE 2 — Notatet (the consultation note)
   ============================================================ */
.note-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 2px 2px 4px;
}

.note-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.note-card__head {
  padding: 16px 17px 13px;
  background: linear-gradient(150deg, #F4F5FB 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--color-navy-100);
}
.note-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy-400);
}
.note-card__eyebrow svg { width: 12px; height: 12px; }
.note-card__title {
  margin-top: 7px;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-navy-900);
  letter-spacing: -0.015em;
}
.note-card__meta {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-navy-500);
}

.note-card__body {
  padding: 6px 17px 16px;
}

/* one plain-language block */
.note-block {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  opacity: 0;
  transform: translateY(12px);
}
.note-block + .note-block {
  border-top: 1px solid var(--color-navy-100);
}
.scene--note.is-active .note-block {
  animation: blockReveal 0.5s var(--ease-smooth) both;
}
.scene--note.is-active .note-block:nth-child(1) { animation-delay: 0.30s; }
.scene--note.is-active .note-block:nth-child(2) { animation-delay: 0.52s; }
.scene--note.is-active .note-block:nth-child(3) { animation-delay: 0.74s; }
.scene--note.is-active .note-block:nth-child(4) { animation-delay: 0.96s; }
@keyframes blockReveal {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.note-block__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.note-block__icon svg { width: 16px; height: 16px; }
.note-block__icon--what { background: var(--color-navy-100); color: var(--color-navy-600); }
.note-block__icon--plan { background: rgba(86, 105, 164, 0.13); color: var(--color-navy-500); }
.note-block__icon--watch { background: rgba(245, 158, 11, 0.13); color: #B45309; }
.note-block__icon--next { background: rgba(34, 197, 94, 0.13); color: #15803D; }

.note-block__body { flex: 1; min-width: 0; }
.note-block__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-navy-400);
}
.note-block__text {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-navy-900);
}

/* the explainable word */
.term {
  color: var(--color-navy-600);
  font-weight: 500;
  border-bottom: 1.5px dashed var(--color-navy-300);
  padding-bottom: 1px;
}

/* ============================================================
   SCENE 3 — Forstå et ord
   ============================================================ */
/* scene 3 reuses the note card; highlights the term + sheet slides up */
.term--pulse {
  position: relative;
  color: var(--color-navy-700);
  border-bottom-color: var(--color-navy-500);
}
.scene--word.is-active .term--pulse {
  animation: termGlow 1.5s var(--ease-smooth) 0.2s;
}
@keyframes termGlow {
  0% { background: rgba(86, 105, 164, 0); }
  40% { background: rgba(86, 105, 164, 0.16); }
  100% { background: rgba(86, 105, 164, 0); }
}

/* tap ripple over the term */
.tap-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(86, 105, 164, 0.28);
  opacity: 0;
  pointer-events: none;
}
.scene--word.is-active .tap-dot {
  animation: tapRipple 1s var(--ease-smooth) 1.0s;
}
@keyframes tapRipple {
  0% { opacity: 0; transform: scale(0.3); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.7); }
}

/* dim overlay when sheet is up */
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(19, 16, 44, 0.32);
  opacity: 0;
  z-index: 20;
}
.scene--word.is-active .sheet-scrim {
  animation: scrimIn 0.5s var(--ease-smooth) 1.35s both;
}
@keyframes scrimIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* explanation bottom sheet */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--color-white);
  border-radius: 26px 26px 0 0;
  padding: 12px 20px 26px;
  box-shadow: 0 -16px 44px rgba(19, 16, 44, 0.22);
  transform: translateY(102%);
}
.scene--word.is-active .sheet {
  animation: sheetUp 0.55s var(--ease-smooth) 1.45s both;
}
@keyframes sheetUp {
  0% { transform: translateY(102%); }
  100% { transform: translateY(0); }
}
.sheet__grip {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--color-navy-200);
  margin: 0 auto 14px;
}
.sheet__term {
  display: flex;
  align-items: center;
  gap: 9px;
}
.sheet__term-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-navy-100);
  color: var(--color-navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sheet__term-icon svg { width: 17px; height: 17px; }
.sheet__word {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-navy-900);
  letter-spacing: -0.01em;
}
.sheet__pos {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--color-navy-400);
  margin-top: 1px;
}
.sheet__def {
  margin-top: 13px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-navy-800);
}
.sheet__aside {
  margin-top: 12px;
  padding: 11px 13px;
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-navy-700);
}
.sheet__aside svg {
  width: 15px;
  height: 15px;
  color: var(--color-navy-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   SCENE 4 — Spørg companion'en (chat)
   ============================================================ */
.scene--chat .scene__pad {
  padding-top: 2px;
}
.chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 8px 2px 4px;
  overflow: hidden;
}

/* day divider */
.chat__divider {
  align-self: center;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--color-navy-400);
  background: var(--color-navy-100);
  padding: 3px 11px;
  border-radius: var(--radius-full);
}

.bubble-row {
  display: flex;
  gap: 8px;
  max-width: 86%;
}
.bubble-row--in {
  align-self: flex-start;
}
.bubble-row--out {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bubble-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
}
.bubble-av--bot {
  background: linear-gradient(150deg, #5669A4 0%, #38456D 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(56, 69, 109, 0.32);
}
.bubble-av--bot svg { width: 15px; height: 15px; }

.bubble {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
}
.bubble--out {
  background: var(--gradient-button-primary);
  color: #fff;
  border-radius: 18px 18px 5px 18px;
  box-shadow: 0 4px 14px rgba(56, 69, 109, 0.22);
}
.bubble--in {
  background: var(--color-white);
  color: var(--color-navy-900);
  border-radius: 18px 18px 18px 5px;
  box-shadow: var(--shadow-soft);
}
.bubble__name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-navy-500);
  margin-bottom: 3px;
}

/* entrance: bubbles pop in */
.bubble-row.show {
  animation: bubbleIn 0.42s var(--ease-smooth) both;
}
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* hidden bubbles reserve no space so the chat builds up cleanly */
.bubble-row.hide {
  display: none;
}

/* typing indicator */
.typing {
  display: flex;
  gap: 4px;
  padding: 13px 14px;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-navy-300);
  animation: typingDot 1.3s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* fake composer at the bottom of chat */
.composer {
  flex-shrink: 0;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px 8px 15px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}
.composer__placeholder {
  flex: 1;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--color-navy-300);
}
.composer__send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-button-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(56, 69, 109, 0.28);
}
.composer__send svg { width: 15px; height: 15px; color: #fff; }

/* ============================================================
   SCENE 5 — Påmindelse
   ============================================================ */
.scene--remind .scene__pad {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}
.remind-glow {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(150deg, #5669A4 0%, #38456D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(56, 69, 109, 0.34);
}
.scene--remind.is-active .remind-glow {
  animation: glowIn 0.6s var(--ease-smooth) 0.25s both;
}
@keyframes glowIn {
  0% { opacity: 0; transform: scale(0.6); }
  60% { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
.remind-glow::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(86, 105, 164, 0.3);
  animation: glowPulse 2.6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.16); opacity: 0; }
}
.remind-glow svg {
  width: 40px;
  height: 40px;
  color: #fff;
  stroke-width: 1.5;
}

.remind-title {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 500;
  color: var(--color-navy-900);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.remind-sub {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-navy-500);
  max-width: 250px;
}
.scene--remind.is-active .remind-title,
.scene--remind.is-active .remind-sub {
  animation: fadeRise 0.5s var(--ease-smooth) both;
}
.scene--remind.is-active .remind-title { animation-delay: 0.4s; }
.scene--remind.is-active .remind-sub { animation-delay: 0.5s; }
@keyframes fadeRise {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* reminder card */
.remind-card {
  margin-top: 20px;
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 15px 16px;
  text-align: left;
}
.scene--remind.is-active .remind-card {
  animation: cardRise 0.55s var(--ease-smooth) 0.62s both;
}
@keyframes cardRise {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.remind-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.remind-item + .remind-item {
  border-top: 1px solid var(--color-navy-100);
}
.remind-item__check {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.remind-item__check svg { width: 16px; height: 16px; }
.remind-item__check--cal {
  background: var(--color-navy-100);
  color: var(--color-navy-600);
}
.remind-item__body { flex: 1; min-width: 0; }
.remind-item__t {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-navy-900);
  line-height: 1.3;
}
.remind-item__s {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--color-navy-500);
}

/* ============================================================
   Controls — dots, replay, tap-to-advance
   ============================================================ */
.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

.dots {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-navy-200);
  padding: 0;
  position: relative;
  transition: background 0.3s var(--ease-smooth), width 0.4s var(--ease-smooth);
}
.dot:hover { background: var(--color-navy-300); }
.dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-navy-200);
  overflow: hidden;
}
/* progress fill inside the active dot */
.dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--gradient-button-primary);
  transform-origin: left;
  transform: scaleX(0);
}
.dot.is-active.is-running::after {
  animation: dotFill var(--scene-ms, 4200ms) linear forwards;
}
@keyframes dotFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.dot.is-active.is-done::after {
  transform: scaleX(1);
}
.dot.is-active.is-paused::after {
  animation-play-state: paused;
}

/* replay button */
.replay {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 11px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(19, 16, 44, 0.14);
  color: var(--color-navy-600);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), color 0.2s;
}
.replay svg {
  width: 13px;
  height: 13px;
  transition: transform 0.4s var(--ease-smooth);
}
.replay:hover { color: var(--color-navy-800); }
.replay:hover svg { transform: rotate(-90deg); }
.replay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* invisible tap layer to advance */
.tap-layer {
  position: absolute;
  inset: 0;
  z-index: 62;
  cursor: pointer;
  background: transparent;
}

/* tiny pause indicator (top-right of screen) */
.pause-flag {
  position: absolute;
  top: 54px;
  right: 16px;
  z-index: 64;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(19, 16, 44, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
  pointer-events: none;
}
.pause-flag svg { width: 10px; height: 10px; }
.pause-flag.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Reduced motion — stepped, non-auto fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .scene {
    transition: opacity 0.01ms, visibility 0s;
    transform: none;
  }
  .scene.is-active,
  .scene.is-prev { transform: none; }

  /* reveal all content immediately, no entrance animation */
  .scene--lock.is-active .notif,
  .scene--word.is-active .sheet,
  .scene--word.is-active .sheet-scrim,
  .scene--remind.is-active .remind-glow,
  .scene--remind.is-active .remind-title,
  .scene--remind.is-active .remind-sub,
  .scene--remind.is-active .remind-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .scene--note.is-active .note-block {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .bubble-row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bubble-row.hide { display: none; }

  .lock__orb,
  .lock__hint svg,
  .remind-glow::before,
  .term--pulse,
  .tap-dot,
  .typing span { animation: none; }
  .tap-dot { display: none; }

  /* dot progress: no auto fill animation */
  .dot.is-active.is-running::after,
  .dot.is-active.is-done::after { animation: none; transform: scaleX(1); }

  /* replay always available as the way to restart */
  .replay { opacity: 1; transform: none; }
}

/* ====== Tap cue — clear button telling the visitor the demo
   advances on tap. Sits at the bottom of the screen. ====== */
.step-cue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border: none;
  border-radius: 999px;
  background: var(--color-navy-500);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(86, 105, 164, 0.5);
  animation: stepCuePulse 2.6s ease-in-out infinite;
}

.step-cue:hover { background: var(--color-navy-600); }

.step-cue__icon { width: 16px; height: 16px; }

@keyframes stepCuePulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 6px 20px rgba(86, 105, 164, 0.5);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 26px rgba(86, 105, 164, 0.62);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-cue { animation: none; }
}
