body {
  overflow-x: clip;
}

.trace-story {
  --trace-ease: cubic-bezier(.16, 1, .3, 1);
  --trace-progress: 0;
  position: relative;
  height: 1800vh;
  margin-bottom: clamp(100px, 14vh, 200px) !important;
  color: #07365f;
  background:
    radial-gradient(circle at 12% 12%, rgba(32, 201, 236, .12), transparent 26%),
    linear-gradient(rgba(8, 123, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 123, 230, .045) 1px, transparent 1px),
    linear-gradient(180deg, #f8fdff, #edf8ff);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.trace-story-mount,
.trace-story-desktop {
  height: 100%;
}

.trace-story * {
  box-sizing: border-box;
}

.trace-story-sticky {
  position: sticky;
  z-index: 2;
  top: 76px;
  height: calc(100vh - 76px);
  min-height: 650px;
  overflow: hidden;
}

.trace-story-shell {
  display: grid;
  width: min(1360px, calc(100vw - 48px));
  height: 100%;
  margin: auto;
  padding: clamp(16px, 2.5vh, 28px) 0 clamp(60px, 8vh, 90px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.trace-story-header {
  position: relative;
  z-index: 50 !important;
  max-width: 860px;
  margin: 0 auto clamp(16px, 2vh, 24px);
  text-align: center;
  transform: translateY(calc(-1 * var(--intro-scroll-y, 0px)));
  transition: transform 120ms linear;
}

.trace-story-eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #0874ce;
  font: 700 .72rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
}

.trace-story-eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #18bbdb;
  content: "";
}

.trace-story-header h2 {
  margin: 9px 0 8px;
  color: #073f82;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.trace-story-header h2 span {
  color: #079bdc;
}

.trace-story-header p {
  max-width: 730px;
  margin: auto;
  color: #52718d;
  font-size: clamp(.84rem, 1vw, .96rem);
  line-height: 1.65;
}

.trace-story-stage {
  position: relative;
  min-height: 0;
}

/* Onboarding Simulated Hand Pointer */

.trace-onboarding-cursor {
  position: absolute;
  z-index: 99;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  pointer-events: none;
  transform: translate3d(var(--cursor-x, 50vw), var(--cursor-y, 50vh), 0);
  transition: transform 380ms cubic-bezier(.16, 1, .3, 1), opacity 400ms ease;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25));
}

.cursor-icon {
  width: 52px;
  height: 52px;
  transform: rotate(-10deg);
}

.cursor-ripple {
  position: absolute;
  top: 10px;
  left: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid #087be6;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
}

.trace-onboarding-cursor.is-clicking .cursor-ripple {
  animation: cursorRipplePulse 600ms ease-out forwards;
}

@keyframes cursorRipplePulse {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}

.trace-phone-slot {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: var(--phone-left-pct, 50%);
  transform: perspective(1200px) rotateY(16deg) rotateX(5deg) rotateZ(-1.5deg) translate(-50%, -48%);
  transition: transform 900ms var(--trace-ease), left 120ms linear;
  transform-style: preserve-3d;
}

.trace-phone-slot:hover {
  transform: perspective(1200px) rotateY(6deg) rotateX(2deg) rotateZ(0deg) translate(-50%, -48%);
}

.trace-phone.iphone-17-pro-max {
  position: relative;
  width: clamp(270px, 22vw, 315px);
  aspect-ratio: 1 / 2.02;
  padding: 0;
  background: transparent;
  filter: drop-shadow(-16px 28px 50px rgba(0, 0, 0, .48)) drop-shadow(-6px 10px 18px rgba(5, 35, 65, .25));
  transition: transform 900ms var(--trace-ease);
}

.iphone-hardware-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 20;
}

.trace-phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trace-phone-action-btn {
  position: relative;
  width: 100%;
  min-height: 38px;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, #087be6, #09a9d8);
  font-size: .63rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.trace-phone-action-btn.is-clicking {
  transform: scale(0.93);
  background: linear-gradient(100deg, #065eb3, #078bb4);
  box-shadow: 0 0 0 5px rgba(8, 123, 230, .35), 0 0 16px rgba(9, 169, 216, .5);
}

.trace-btn-ripple {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: radial-gradient(circle, rgba(255, 255, 255, .8) 10%, transparent 60%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
}

.trace-phone-action-btn.is-clicking .trace-btn-ripple {
  animation: btn-ripple 450ms ease-out forwards;
}

@keyframes btn-ripple {
  0% { opacity: .8; transform: scale(0.2); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* Phone Screen Base Viewport */

.trace-phone-screen {
  position: absolute !important;
  top: 2.7% !important;
  left: 5.4% !important;
  width: 89.2% !important;
  height: 94.6% !important;
  overflow: hidden !important;
  border-radius: 42px !important;
  background: var(--app-paper, #f8fcfe) !important;
  z-index: 5 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Phone Inner Views Switch */

.trace-phone-intro-view,
.trace-phone-app-view {
  transition: opacity 350ms ease, transform 350ms ease;
}

.trace-phone[data-view="intro"] .trace-phone-intro-view {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

.trace-phone[data-view="intro"] .trace-phone-app-view {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.95) !important;
  pointer-events: none !important;
}

.trace-phone[data-view="app"] .trace-phone-intro-view {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.95) !important;
  pointer-events: none !important;
}

.trace-phone[data-view="app"] .trace-phone-app-view {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 100% !important;
  width: 100% !important;
  background: var(--app-paper, #f8fcfe) !important;
  z-index: 10 !important;
}

/* Phone Multi-Tab Header */

.trace-phone-tab-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
}

/* Phone Multi-Tab Body & Panels */

.trace-phone-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.trace-phone[data-active-tab="0"] .trace-phone-tab-panel[data-tab-panel="0"],
.trace-phone[data-active-tab="1"] .trace-phone-tab-panel[data-tab-panel="1"],
.trace-phone[data-active-tab="2"] .trace-phone-tab-panel[data-tab-panel="2"],
.trace-phone[data-active-tab="3"] .trace-phone-tab-panel[data-tab-panel="3"] {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Skeleton Mockup Styling for Phone Mockup */

/* Skeleton Timeline */

/* Skeleton Layers */

/* Skeleton Docs */

.app-kv {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: .52rem;
  color: #617f97;
}

.app-kv b {
  color: #0c4371;
}

/* App Timeline (Tab 1) */

.app-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.app-timeline li {
  position: relative;
  padding-left: 12px;
  border-left: 2px solid #d5e8f5;
  font-size: .5rem;
}

.app-timeline li time {
  display: block;
  color: #0877c8;
  font-weight: 700;
  font-size: .46rem;
}

.app-timeline li b {
  display: block;
  color: #093c66;
}

.app-timeline li small {
  color: #728da3;
}

/* App Layers (Tab 2) */

/* App Docs (Tab 3) */

.trace-intro-scene {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.trace-methods {
  position: absolute;
  top: 50%;
  display: grid;
  width: min(34vw, 440px);
  gap: clamp(12px, 1.8vh, 18px);
  transform: translateY(calc(-50% - var(--intro-scroll-y, 0px)));
  opacity: 1;
  transition: transform 120ms linear;
}

.trace-methods-left {
 left: 0;
}

.trace-methods-right {
 right: 0;
}

.trace-method-tick {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 123, 230, .08);
  color: transparent;
  opacity: 0;
  transform: scale(0.6);
  transition: all 350ms cubic-bezier(.16, 1, .3, 1);
}

.trace-method-tick svg {
  width: 13px;
  height: 13px;
}

.trace-methods article {
  position: relative;
  min-height: 94px;
  padding: 16px 18px 16px 56px;
  border: 1.5px solid rgba(8, 123, 230, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(13, 80, 132, .08);
  opacity: 1;
  transform: translateY(0);
  transition: all 350ms ease;
}

.trace-methods article.is-highlighted {
  border-color: #087be6;
  background: rgba(240, 248, 255, .98);
  box-shadow: 0 0 24px rgba(8, 123, 230, .22), 0 14px 34px rgba(13, 80, 132, .12);
  transform: translateY(-2px);
}

.trace-methods article.is-ticked {
  border-color: rgba(14, 179, 159, .5);
  background: rgba(240, 252, 249, .98);
}

.trace-methods article.is-ticked .trace-method-tick {
  opacity: 1;
  color: #fff;
  background: #0eb39f;
  transform: scale(1);
  box-shadow: 0 4px 12px rgba(14, 179, 159, .35);
}

.trace-methods article > span {
  position: absolute;
  top: 17px;
  left: 16px;
  color: #0796d6;
  font: 700 .78rem/1 "IBM Plex Mono", monospace;
  background: rgba(7, 150, 214, .08);
  padding: 4px 6px;
  border-radius: 6px;
}

.trace-methods h3 {
  margin: 0 0 5px;
  color: #083f78;
  font-size: clamp(.96rem, 1.15vw, 1.12rem);
  font-weight: 700;
}

.trace-methods p {
  margin: 0;
  color: #55728a;
  font-size: clamp(.76rem, .9vw, .85rem);
  line-height: 1.5;
}

.trace-panel-slot {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Positioned against the pinned stage. No `!important`: it also beat the
   higher-specificity `.trace-story-mobile` override and left the panels
   stacked on top of the method list on phones. */

.trace-data-panel {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  width: min(50vw, 640px);
  max-height: min(61vh, 590px);
  overflow: hidden;
  padding: 0 clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(8, 123, 230, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 55px rgba(13, 80, 132, .1);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 120%) scale(1);
  filter: blur(0px);
  transition: opacity 650ms var(--trace-ease), transform 750ms var(--trace-ease), filter 550ms ease;
  scrollbar-width: none;
}

.trace-data-panel > header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 calc(-1 * clamp(18px, 2.2vw, 28px)) 16px calc(-1 * clamp(18px, 2.2vw, 28px));
  padding: clamp(16px, 2vw, 20px) clamp(18px, 2.2vw, 28px) 12px clamp(18px, 2.2vw, 28px);
  background: #ffffff;
  border-bottom: 1.5px solid rgba(8, 123, 230, .14);
  border-radius: 22px 22px 0 0;
}

.trace-data-panel > header span {
  color: #0782d5;
  font: 700 .68rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .1em;
}

.trace-data-panel > header h3 {
  margin: 5px 0 0;
  color: #073d73;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  letter-spacing: -.025em;
}

.trace-product-rows {
  margin: 0;
}

.trace-product-rows > div {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 1.3fr;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(8, 123, 230, .08);
  opacity: 0;
  transform: translateY(13px);
  transition: 420ms var(--trace-ease);
  transition-delay: calc(var(--row-index) * 45ms + 100ms);
}

.trace-product-rows dt {
  color: #708ba1;
  font-size: .72rem;
}

.trace-product-rows dd {
  margin: 0;
  color: #164e78;
  font-size: .76rem;
  font-weight: 650;
}

.trace-status-card {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  color: #096f5a;
  border: 1px solid rgba(14, 179, 159, .18);
  border-radius: 13px;
  background: #ecfaf6;
}

.trace-status-card svg {
  width: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.trace-status-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: .78rem;
}

.trace-status-card p {
  margin: 0;
  color: #4d766d;
  font-size: .68rem;
  line-height: 1.45;
}

.trace-journey {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-journey::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 82px;
  width: 2px;
  background: #dbeaf5;
  content: "";
}

.trace-journey li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 7px 0;
  opacity: .38;
  transition: opacity 300ms ease;
}

.trace-journey li::before {
  position: absolute;
  top: 12px;
  left: 77px;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #c8dbe9;
  box-shadow: 0 0 0 1px #c8dbe9;
  content: "";
  transition: 300ms ease;
}

.trace-journey li.is-active {
  opacity: 1;
}

.trace-journey li.is-active::before {
  background: #0cc0df;
  box-shadow: 0 0 0 1px #0cc0df, 0 0 14px rgba(12, 192, 223, .44);
}

.trace-journey time {
  color: #087bd5;
  font: 600 .62rem/1.4 "IBM Plex Mono", monospace;
}

.trace-journey h4,
.trace-documents h4 {
  margin: 0 0 2px;
  color: #0a426f;
  font-size: .75rem;
}

.trace-journey p,
.trace-documents p {
  margin: 0;
  color: #638096;
  font-size: .65rem;
  line-height: 1.4;
}

.trace-journey code {
  color: #0b75b7;
  font: 500 .59rem/1.4 "IBM Plex Mono", monospace;
}

.trace-origin-layers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-left: 0;
}

.trace-origin-layers article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  padding: 14px 16px;
  border: 1.5px solid rgba(8, 123, 230, .15);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 80, 132, .04);
  transition: all 320ms cubic-bezier(.16, 1, .3, 1);
}

.trace-origin-layers article.is-highlighted {
  border: 2px solid #087be6;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(8, 123, 230, .14);
  transform: translateY(-3px);
}

.trace-origin-layers article.is-highlighted b {
  background: #087be6;
  color: #ffffff;
}

.trace-origin-layers b {
  display: inline-block;
  align-self: flex-start;
  color: #087be6;
  font: 700 .62rem/1.2 "IBM Plex Mono", monospace;
  background: rgba(8, 123, 230, .08);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.trace-origin-layers strong {
  color: #0d385f;
  font-size: clamp(.84rem, .95vw, .92rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.trace-origin-layers code {
  color: #5d7b93;
  font: 500 .62rem/1.4 "IBM Plex Mono", monospace;
  word-break: break-all;
}

.trace-documents {
  display: grid;
  gap: 9px;
}

.trace-documents article {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  border: 1.5px solid rgba(8, 123, 230, .12);
  border-left: 4.5px solid rgba(8, 123, 230, .18);
  border-radius: 14px;
  background: #f8fcff;
  opacity: 0.35;
  transform: translateX(0);
  transition: all 360ms cubic-bezier(.16, 1, .3, 1);
}

.trace-documents article.is-highlighted {
  opacity: 1;
  border-color: rgba(8, 123, 230, .28);
  border-left: 4.5px solid #087be6;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(8, 123, 230, .14);
  transform: translateX(8px);
}

.trace-documents i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #087be6;
  border-radius: 10px;
  background: #eaf6ff;
  transition: all 320ms ease;
}

.trace-documents article.is-highlighted i {
  background: linear-gradient(135deg, #087be6, #00c6ff);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(8, 123, 230, .32);
  transform: scale(1.05);
}

.trace-documents i svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.trace-documents article > span {
  padding: 5px 10px;
  color: #08725d;
  border: 1px solid rgba(14, 179, 159, .18);
  border-radius: 999px;
  background: #eaf8f4;
  font-size: .58rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 320ms ease;
}

.trace-documents article.is-highlighted > span {
  background: #087be6;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(8, 123, 230, .3);
  transform: scale(1.02);
}

/* Hide progress navigation bar as requested */

/* App Wireframe UI Components inside iPhone Mockup */

.wire-badge.green {
  background: #eaf8f4;
  color: #08725d;
}

.wire-badge.blue {
  background: #eaf6ff;
  color: #087be6;
}

.wire-tl-item.active .wire-dot {
  background: #087be6;
  box-shadow: 0 0 8px rgba(8, 123, 230, .4);
}

.trace-data-panel.trace-tree-panel,
[data-trace-panel="5"] {
  left: 0 !important;
  right: auto !important;
}

/* Vertical Trunk Branch Line connecting parent and child nodes */

/* Horizontal branch link line connecting to vertical trunk line */

.trace-tree-node.is-highlighted {
  box-shadow: 0 6px 20px rgba(8, 123, 230, .15);
}

.trace-tree-node.is-highlighted .tree-chevron {
  color: #ffffff;
  transform: translateY(-1px) translateX(2px);
}

/* Conclusion Scene Elements & Staggered Flanking Grid */

.trace-conclusion-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.trace-conclusion-card {
  position: absolute;
  padding: 16px 20px;
  border: 1.5px solid rgba(8, 123, 230, .22);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(13, 80, 132, .14);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.65) translateY(35px);
  transition: opacity 600ms ease, transform 650ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trace-story.is-conclusion-revealed .trace-conclusion-card {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  transition-delay: var(--pop-delay, 0ms);
}

/* Card 1: Left Flank (Symmetrically anchored 210px to left of center) */

.card-left-top {
  top: 38%;
  right: calc(50% + 215px);
  width: min(320px, 24vw);
  transform-origin: right center;
}

/* Card 2: Right Flank Top (Symmetrically anchored 210px to right of center) */

.card-right-top {
  top: 30%;
  left: calc(50% + 215px);
  width: min(320px, 24vw);
  transform-origin: left center;
}

/* Card 3: Right Flank Bottom (Symmetrically anchored 210px to right of center) */

.card-right-bottom {
  top: 62%;
  left: calc(50% + 215px);
  width: min(320px, 24vw);
  transform-origin: left center;
}

@media (max-width: 1023px) {
  /* Anchored off centre rather than to the viewport edges, which overlapped the
     phone by 152px at 768px. Stacking them under the phone does not fit — the
     stage is only ~500px tall on an 800px-high screen. */

  .card-left-top {
      top: auto;
      bottom: 96px;
      left: auto;
      right: calc(50% + 175px);
      width: min(320px, calc(50% - 190px));
  }

  .card-right-top {
      top: auto;
      bottom: 96px;
      right: auto;
      left: calc(50% + 175px);
      width: min(320px, calc(50% - 190px));
  }

  .card-right-bottom {
      display: none;
  }
}

.conclusion-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #087be6, #00c6ff);
  color: #ffffff;
  font: 700 .58rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .12em;
  margin-bottom: 6px;
  box-shadow: 0 4px 12px rgba(8, 123, 230, .28);
}

.trace-conclusion-card h3 {
  color: #0c3963;
  font-size: clamp(.95rem, 1.15vw, 1.15rem);
  font-weight: 700;
  margin: 0 0 5px 0;
  line-height: 1.35;
}

.trace-conclusion-card p {
  color: #475569;
  font-size: clamp(.74rem, .85vw, .82rem);
  line-height: 1.45;
  margin: 0;
}

.trace-story.is-conclusion-revealed .trace-story-header {
  transform: translateY(14px);
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trace-tree-node.is-highlighted .tree-badge {
  background: #087be6;
  color: #ffffff;
}

.trace-story-progress button.is-active {
  color: #087be6;
}

.trace-story-progress button.is-active b,
.trace-story-progress button.is-complete b {
  color: #fff;
  border-color: #087be6;
  background: #087be6;
  box-shadow: 0 5px 15px rgba(8, 123, 230, .25);
}

.trace-story[data-scene="0"] .trace-intro-scene {
  pointer-events: auto;
}

.trace-story:not([data-scene="0"]) .trace-intro-scene {
  pointer-events: none;
}

.trace-story[data-scene="0"] .trace-methods article,
.trace-story[data-scene="1"] [data-trace-panel="1"],
.trace-story[data-scene="2"] [data-trace-panel="2"],
.trace-story[data-scene="3"] [data-trace-panel="3"],
.trace-story[data-scene="4"] [data-trace-panel="4"],
.trace-story[data-scene="5"] [data-trace-panel="5"] {
  opacity: 1;
  pointer-events: auto;
}

.trace-story[data-scene="0"] .trace-methods article,
.trace-story[data-scene="1"] .trace-product-rows > div,
.trace-story[data-scene="3"] .trace-origin-layers article,
.trace-story[data-scene="4"] .trace-documents article,
.trace-story[data-scene="5"] .trace-tree-node,
.trace-story[data-scene="5"] .trace-tree-branches details {
  opacity: 1;
  transform: translateY(0);
}

.trace-story[data-scene="1"] [data-trace-panel="1"],
.trace-story[data-scene="2"] [data-trace-panel="2"],
.trace-story[data-scene="3"] [data-trace-panel="3"],
.trace-story[data-scene="4"] [data-trace-panel="4"] {
  transform: translate(0, -65%) scale(1);
  filter: blur(0px);
}

.trace-story[data-scene="2"] [data-trace-panel="1"],
.trace-story[data-scene="3"] [data-trace-panel="1"],
.trace-story[data-scene="3"] [data-trace-panel="2"],
.trace-story[data-scene="4"] [data-trace-panel="1"],
.trace-story[data-scene="4"] [data-trace-panel="2"],
.trace-story[data-scene="4"] [data-trace-panel="3"],
.trace-story[data-scene="5"] [data-trace-panel="1"],
.trace-story[data-scene="5"] [data-trace-panel="2"],
.trace-story[data-scene="5"] [data-trace-panel="3"],
.trace-story[data-scene="5"] [data-trace-panel="4"] {
  opacity: 1;
  pointer-events: none;
  transform: translate(0, -220%) scale(1);
  filter: none;
}

/* Line-by-line Soft Highlights */

.trace-product-rows > div,
.trace-journey > li,
.trace-origin-layers > article,
.trace-documents > article,
.trace-tree-node {
  opacity: 0.32;
  transition: opacity 450ms ease, transform 450ms ease, background 450ms ease, border-color 450ms ease;
}

.trace-product-rows > div.is-highlighted {
  opacity: 1;
  background: rgba(8, 123, 230, .05);
  border-left: 3px solid #087be6;
  padding-left: 6px;
}

.trace-journey > li.is-highlighted {
  opacity: 1;
}

.trace-journey > li.is-highlighted::before {
  background: #0cc0df;
  box-shadow: 0 0 0 1px #0cc0df, 0 0 14px rgba(12, 192, 223, .6);
  transform: scale(1.25);
}

.trace-origin-layers > article.is-highlighted {
  opacity: 1;
  background: #f0f9ff;
  border-color: rgba(8, 123, 230, .35);
  transform: translateY(0);
}

.trace-documents > article.is-highlighted {
  opacity: 1;
  background: #f0faf7;
  border-color: rgba(14, 179, 159, .35);
  transform: translateY(0);
}

.trace-tree-node.is-highlighted {
  opacity: 1;
  background: #edf8ff;
  border-color: rgba(8, 123, 230, .35);
  transform: translateY(0);
}

.trace-story[data-scene="1"] .trace-phone-slot,
.trace-story[data-scene="2"] .trace-phone-slot,
.trace-story[data-scene="3"] .trace-phone-slot,
.trace-story[data-scene="4"] .trace-phone-slot {
  transform: translate(-50%, -65%) !important;
}

.trace-story[data-scene="1"] .trace-phone,
.trace-story[data-scene="2"] .trace-phone,
.trace-story[data-scene="3"] .trace-phone,
.trace-story[data-scene="4"] .trace-phone {
  transform: scale(.93) !important;
  filter: drop-shadow(0 20px 45px rgba(10, 45, 80, 0.22)) !important;
}

.trace-node-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.trace-story-mobile {
  display: none;
}

@media (max-width: 1279px) and (min-width: 768px) {
  .trace-story-shell {
      width: min(1120px, calc(100vw - 32px));
  }

  .trace-methods {
      width: 28vw;
  }

  .trace-methods article {
      padding: 10px 10px 10px 38px;
  }

  .trace-methods p {
      font-size: .62rem;
  }

  .trace-panel-slot {
      width: 59vw;
  }
}

/* Pin desktop layout to fixed values so it renders identically across all
   desktop viewport widths (e.g. a windowed MacBook Pro 16" browser vs a
   maximized 2K/QHD external monitor) instead of continuing to scale with vw
   past the point where .trace-story-shell itself stops growing (capped at
   1360px, reached at 100vw-48px >= 1360px i.e. viewport >= 1408px). */

@media (min-width: 1280px) {
  .trace-story-header h2 {
      font-size: 2.75rem;
  }

  .trace-story-header p {
      font-size: .96rem;
  }

  .trace-phone.iphone-17-pro-max {
      width: 315px;
  }

  .trace-methods {
      width: 440px;
  }

  .trace-methods h3 {
      font-size: 1.12rem;
  }

  .trace-methods p {
      font-size: .85rem;
  }

  .trace-data-panel {
      width: 640px;
      max-height: 590px;
      padding: 0 28px 28px 28px;
  }

  .trace-data-panel > header {
      margin: 0 -28px 16px -28px;
      padding: 20px 28px 12px 28px;
  }

  .trace-data-panel > header h3 {
      font-size: 1.65rem;
  }

  .trace-origin-layers strong {
      font-size: .92rem;
  }

  .card-left-top,
    .card-right-top,
    .card-right-bottom {
      width: 320px;
  }
}

@media (max-width: 767px) {
  .trace-story {
      height: auto;
      background-size: auto, 34px 34px, 34px 34px, auto;
  }

  .trace-story-desktop {
      display: none;
  }

  .trace-story-mobile {
      display: block;
      padding: 66px 0 72px;
  }

  .trace-story-mobile .trace-story-header {
      margin-bottom: 28px;
  }

  .trace-story-mobile .trace-phone {
      width: min(100%, 360px);
      margin: 0 auto 32px;
      border-radius: 27px;
  }

  .trace-story-mobile .trace-phone-notch {
      display: none;
  }

  .trace-story-mobile .trace-phone-screen {
      border-radius: 20px;
  }

  .trace-story-mobile .trace-phone-visual {
      height: 150px;
  }

  .trace-story-mobile .trace-phone-product {
      padding: 18px;
  }

  .trace-story-mobile .trace-phone-product h3 {
      font-size: 1rem;
  }

  .trace-story-mobile .trace-phone-product code,
    .trace-story-mobile .trace-phone-product small,
    .trace-story-mobile .trace-phone-product li {
      font-size: .68rem;
  }

  .trace-story-mobile .trace-phone-product button {
      min-height: 44px;
      font-size: .75rem;
  }

  .trace-mobile-block {
      margin-bottom: 24px;
  }

  .trace-mobile-block > h3 {
      margin: 0 0 14px;
      color: #083e73;
      font-size: 1.1rem;
  }

  .trace-story-mobile .trace-intro-scene {
      position: static;
  }

  .trace-story-mobile .trace-methods {
      position: static;
      display: grid;
      width: 100%;
      gap: 10px;
      transform: none;
  }

  .trace-story-mobile .trace-methods-right {
      margin-top: 10px;
  }

  .trace-story-mobile .trace-methods article {
      min-height: 0;
      padding: 15px 15px 15px 48px;
      opacity: 1;
      transform: none;
  }

  .trace-story-mobile .trace-methods h3 {
      font-size: .9rem;
  }

  .trace-story-mobile .trace-methods p {
      font-size: .76rem;
  }

  .trace-story-mobile .trace-data-panel {
      position: relative;
      top: auto;
      right: auto;
      width: 100%;
      max-height: none;
      margin-top: 14px;
      overflow: visible;
      padding: 20px 16px;
      opacity: 1;
      pointer-events: auto;
      transform: none;
  }

  .trace-story-mobile .trace-product-rows > div {
      grid-template-columns: 1fr;
      gap: 3px;
      padding: 10px 0;
      opacity: 1;
      transform: none;
  }

  .trace-story-mobile .trace-product-rows dt {
      font-size: .7rem;
  }

  .trace-story-mobile .trace-product-rows dd {
      font-size: .8rem;
  }

  .trace-story-mobile .trace-journey li {
      grid-template-columns: 62px 1fr;
      gap: 20px;
      padding: 10px 0;
      opacity: 1;
  }

  .trace-story-mobile .trace-journey::before {
      left: 69px;
  }

  .trace-story-mobile .trace-journey li::before {
      left: 64px;
  }

  .trace-story-mobile .trace-journey h4,
    .trace-story-mobile .trace-documents h4 {
      font-size: .8rem;
  }

  .trace-story-mobile .trace-journey p,
    .trace-story-mobile .trace-documents p {
      font-size: .72rem;
  }

  .trace-story-mobile .trace-origin-layers article,
    .trace-story-mobile .trace-documents article,
    .trace-story-mobile .trace-tree-node,
    .trace-story-mobile .trace-tree-branches details {
      opacity: 1;
      transform: none;
  }

  .trace-story-mobile .trace-documents article {
      grid-template-columns: 34px 1fr;
  }

  .trace-story-mobile .trace-documents article > span {
      grid-column: 2;
      justify-self: start;
  }

  .trace-story-mobile .trace-tree-main::before {
      transform: scaleY(1);
  }

  .trace-story-mobile .trace-tree-branches {
      grid-template-columns: 1fr;
  }

  .trace-story-cta {
      display: grid;
      gap: 14px;
      margin-top: 18px;
      padding: 20px;
      border-radius: 17px;
      background: linear-gradient(120deg, #063f75, #087fc4);
  }

  .trace-story-cta span,
    .trace-story-cta strong {
      display: block;
      color: #fff;
  }

  .trace-story-cta span {
      font: 600 .65rem/1.4 "IBM Plex Mono", monospace;
      letter-spacing: .08em;
      opacity: .72;
  }

  .trace-story-cta strong {
      margin-top: 5px;
      font: 600 .78rem/1.4 "IBM Plex Mono", monospace;
  }

  .trace-story-cta a {
      display: inline-flex;
      min-height: 44px;
      align-items: center;
      justify-content: center;
      color: #075083;
      border-radius: 11px;
      background: #fff;
      font-size: .78rem;
      font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trace-story *,
    .trace-story *::before,
    .trace-story *::after {
      scroll-behavior: auto !important;
      animation: none !important;
      transition-duration: .001ms !important;
  }
}

/* Animated Web Scroll Indicator (Mouse + Wheel + Arrow Bounce based on Lottie physics) */

.web-scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 25;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 400ms ease, transform 400ms ease;
}

.scroll-mouse-body {
  width: 24px;
  height: 40px;
  border: 2px solid #087be6;
  border-radius: 999px;
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(8, 123, 230, 0.22);
}

.scroll-mouse-wheel {
  width: 4.5px;
  height: 8px;
  background: linear-gradient(180deg, #087be6, #00c6ff);
  border-radius: 999px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(8, 123, 230, 0.5);
  animation: mouseWheelLottieScroll 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes mouseWheelLottieScroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  15% {
    opacity: 1;
  }
  65% {
    opacity: 1;
    transform: translate(-50%, 14px);
  }
  85%, 100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

.scroll-label {
  font: 700 0.56rem/1.2 "IBM Plex Mono", monospace;
  color: #087be6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-arrow-icon {
  width: 14px;
  height: 14px;
  color: #087be6;
  animation: scrollArrowBounce 1.9s ease-in-out infinite;
}

@keyframes scrollArrowBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* Dynamic positioning for section traceability story */

.trace-story .web-scroll-indicator {
  position: absolute !important;
  bottom: var(--scroll-bottom-px, 24px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: max-content !important;
  margin: 0 !important;
  z-index: 99 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: bottom 180ms ease, opacity 400ms ease !important;
}

/* Scene 0: Symbol scroll sits above top of trace-scan-fab with soft shadow */

.trace-story[data-scene="0"] .web-scroll-indicator {
  left: 50% !important;
  bottom: var(--scroll-bottom-px, 48px) !important;
  filter: drop-shadow(0 6px 16px rgba(8, 123, 230, 0.42)) !important;
}

/* Scenes 1..4: Default format, centered at bottom of web page with no custom effect */

.trace-story[data-scene="1"] .web-scroll-indicator,
.trace-story[data-scene="2"] .web-scroll-indicator,
.trace-story[data-scene="3"] .web-scroll-indicator,
.trace-story[data-scene="4"] .web-scroll-indicator {
  left: 50% !important;
  bottom: 24px !important;
  filter: none !important;
}

/* Hide scroll indicator at the final conclusion scene */

.trace-story[data-scene="5"] .web-scroll-indicator {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Roadmap section positioning for scroll indicator */

/* HANOITRACE MOBILE PASSPORT — PRODUCTION DEMO A compact civic-tech app living inside the… */

.trace-phone.iphone-17-pro-max {
  --app-blue: #087be6;
  --app-blue-deep: #073f82;
  --app-ink: #003b7e;
  --app-paper: #f8fdff;
}

.trace-phone-screen {
  color: var(--app-ink);
  background: var(--app-paper);
  font-family: "IBM Plex Sans", "Be Vietnam Pro", sans-serif;
}

.trace-phone-screen button {
  font: inherit;
}

.trace-phone-screen svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-phone-bar {
  position: relative;
  z-index: 15;
  height: 34px;
  padding: 16px 18px 4px;
  color: #142d41;
  background: rgba(255, 255, 255, .96);
  font-size: .5rem;
  font-weight: 800;
}

.trace-phone-bar > b {
  display: flex;
  gap: 2px;
  align-items: end;
}

.trace-phone-bar > b i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.trace-phone-bar > b i:nth-child(2) {
 height: 7px;
}

.trace-phone-bar > b i:nth-child(3) {
 width: 8px; height: 5px; border-radius: 2px;
}

.trace-status-island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 69px;
  height: 18px;
  border-radius: 999px;
  background: #06080a;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.trace-phone-intro-view,
.trace-phone-app-view {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 0;
  bottom: 49px;
  left: 0;
  overflow: hidden;
  background: var(--app-paper);
}

.trace-phone[data-view="intro"] .trace-phone-intro-view,
.trace-phone[data-view="app"] .trace-phone-app-view {
  display: block;
}

.trace-app-header,
.trace-detail-header {
  display: flex;
  height: 47px;
  padding: 8px 13px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .98);
}

.trace-app-brand {
  display: flex;
  gap: 7px;
  align-items: center;
  text-decoration: none;
}

.trace-app-brand .brand-logo-shell {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid rgba(0, 166, 230, 0.4);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
  overflow: hidden;
}

.trace-app-brand .brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.trace-app-brand .brand-text-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.trace-app-brand .brand-name {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.trace-app-brand .brand-hanoi {
  color: #0A3B82;
  font-weight: 800;
}

.trace-app-brand .brand-trace {
  color: #00A6E6;
  font-weight: 800;
}

.trace-app-brand .brand-sub {
  margin-top: 1px;
  color: #6f91ad;
  font-size: .4rem;
  line-height: 1;
}

.trace-app-icon-btn {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  color: #315b78;
  border: 1px solid #e1ebf2;
  border-radius: 9px;
  background: #f8fbfd;
  place-items: center;
}

.trace-app-icon-btn svg {
  width: 13px;
}

.trace-app-icon-btn > i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #ef6d55;
}

.trace-passport-scroll {
  height: calc(100% - 47px);
  overflow: hidden;
}

.trace-product-photo {
  position: relative;
  height: 157px;
  margin: 0;
  overflow: hidden;
  background: #dce8de;
}

.trace-product-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(6, 36, 43, .62));
  content: "";
  pointer-events: none;
}

.trace-product-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.trace-product-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.trace-product-photo figcaption span {
  display: inline-flex;
  gap: 4px;
  padding: 5px 7px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(5, 84, 69, .82);
  backdrop-filter: blur(8px);
  font-size: .42rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.trace-product-photo figcaption svg {
  width: 10px;
}

.trace-product-photo figcaption small {
  font-size: .4rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.trace-photo-code {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  width: 55px;
  padding: 6px;
  grid-template-columns: 16px 1fr;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 15px rgba(8, 42, 63, .16);
  backdrop-filter: blur(8px);
}

.trace-photo-code > span {
  grid-row: span 2;
  color: var(--app-blue);
}

.trace-photo-code svg {
  width: 14px;
}

.trace-photo-code small {
  color: #718596;
  font-size: .29rem;
  line-height: 1.2;
}

.trace-photo-code strong {
  color: var(--app-blue-deep);
  font-size: .39rem;
  line-height: 1.2;
}

.trace-product-sheet {
  position: relative;
  z-index: 4;
  margin: -7px 8px 0;
  padding: 11px 11px 9px;
  border: 1px solid rgba(17, 84, 125, .08);
  border-radius: 14px 14px 11px 11px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 71, 105, .1);
}

.trace-product-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}

.trace-product-title-row small {
  display: block;
  margin-bottom: 3px;
  color: #087be6;
  font-size: .37rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.trace-product-title-row h3 {
  margin: 0;
  color: #073f82;
  font-size: .7rem;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.trace-product-title-row button {
  width: 24px;
  height: 24px;
  padding: 0;
  color: #53748e;
  border: 1px solid rgba(8, 123, 230, 0.16);
  border-radius: 8px;
  background: #f8fdff;
  font-size: .8rem;
}

.trace-lot-row {
  display: flex;
  margin-top: 5px;
  align-items: center;
  justify-content: space-between;
}

.trace-lot-row code {
  color: #53748e;
  font: 500 .38rem/1.2 "IBM Plex Mono", monospace;
}

.trace-lot-row span {
  padding: 2px 5px;
  color: #087be6;
  border-radius: 999px;
  background: #edf8ff;
  font-size: .34rem;
  font-weight: 700;
}

.trace-trust-score {
  display: grid;
  margin: 8px 0;
  padding: 7px;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(8, 123, 230, 0.18);
  border-radius: 10px;
  background: linear-gradient(115deg, #f8fdff, #edf8ff);
}

.trace-score-ring {
  display: grid;
  width: 33px;
  height: 33px;
  padding: 4px;
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: center;
  color: #087be6;
  border: 3px solid #087be6;
  border-right-color: #bce7fa;
  border-radius: 50%;
}

.trace-score-ring strong {
 font-size: .55rem; line-height: 1;
}

.trace-score-ring small {
 align-self: end; font-size: .25rem; line-height: 1.2;
}

.trace-trust-score > div:nth-child(2) {
 display: grid; gap: 2px;
}

.trace-trust-score > div:nth-child(2) strong {
 color: #073f82; font-size: .46rem;
}

.trace-trust-score > div:nth-child(2) small {
 color: #53748e; font-size: .34rem;
}

.trace-trust-score > span {
 color: #087be6;
}

.trace-trust-score > span svg {
 width: 17px;
}

.trace-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.trace-quick-facts article {
  display: grid;
  padding: 6px 4px;
  justify-items: center;
  border: 1px solid rgba(8, 123, 230, 0.14);
  border-radius: 999px;
  border-radius: 9px;
  background: #f8fdff;
}

.trace-quick-facts article span {
  display: grid;
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
  color: #087be6;
  border-radius: 6px;
  background: #edf8ff;
  place-items: center;
}

.trace-quick-facts article svg {
 width: 10px;
}

.trace-quick-facts article small {
 color: #6f91ad; font-size: .31rem;
}

.trace-quick-facts article strong {
 margin-top: 1px; color: #073f82; font-size: .4rem;
}

.trace-phone .trace-phone-action-btn {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 58px;
  left: 12px;
  display: flex;
  width: auto;
  min-height: 35px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  border-radius: 11px;
  background: linear-gradient(135deg, #087be6, #20c9ec);
  box-shadow: 0 8px 20px rgba(8, 123, 230, .32);
  font-size: .5rem;
}

.trace-phone .trace-phone-action-btn > svg {
  width: 12px;
}

.trace-detail-header {
  height: 43px;
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid #e8eef2;
}

.trace-detail-header > div {
  display: grid;
  flex: 1;
  text-align: center;
}

.trace-detail-header > div strong {
 color: #173b55; font-size: .54rem;
}

.trace-detail-header > div small {
 margin-top: 1px; color: #718898; font-size: .32rem;
}

.trace-detail-verified {
  display: grid;
  width: 27px;
  height: 27px;
  color: #0c9876;
  border-radius: 9px;
  background: #e8f8f2;
  place-items: center;
}

.trace-detail-verified svg {
 width: 15px;
}

.trace-product-mini {
  display: grid;
  height: 58px;
  padding: 7px 11px;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: center;
  background: #fff;
}

.trace-product-mini img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.trace-product-mini > div {
 display: grid; gap: 2px;
}

.trace-product-mini small {
 color: #0b9b78; font-size: .31rem; font-weight: 800; letter-spacing: .04em;
}

.trace-product-mini strong {
 color: #183c56; font-size: .49rem;
}

.trace-product-mini span {
 color: #748a99; font-size: .33rem;
}

.trace-product-mini > b {
  display: grid;
  width: 27px;
  height: 27px;
  color: #087d63;
  border: 2px solid #17ad86;
  border-radius: 50%;
  place-items: center;
  font-size: .45rem;
}

.trace-phone-tabs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 38px;
  gap: 3px;
  padding: 4px 6px;
  border-bottom: 1px solid #e0e9ef;
  background: #f2f7fb;
  box-sizing: border-box;
}

.trace-phone-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 2px;
  border-radius: 6px;
  color: #627e94;
  font-size: .62rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.trace-phone-tab-btn span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .62rem;
  line-height: 1.1;
}

.trace-phone-tab-btn::after {
  position: absolute;
  right: 7px;
  bottom: -1px;
  left: 7px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--app-blue);
  opacity: 0;
  transform: scaleX(.35);
  transition: 220ms ease;
  content: "";
}

.trace-phone[data-active-tab="0"] .trace-phone-tab-btn[data-tab-idx="0"],
.trace-phone[data-active-tab="1"] .trace-phone-tab-btn[data-tab-idx="1"],
.trace-phone[data-active-tab="2"] .trace-phone-tab-btn[data-tab-idx="2"],
.trace-phone[data-active-tab="3"] .trace-phone-tab-btn[data-tab-idx="3"] {
  color: var(--app-blue);
  background: transparent;
  box-shadow: none;
}

/* Scene 5 — branded verification result with real next actions */

.trace-phone[data-active-tab="4"] .trace-phone-app-view {
  inset: 34px 0 0 !important;
  height: auto !important;
}

.trace-phone[data-active-tab="4"] .trace-detail-header,
.trace-phone[data-active-tab="4"] .trace-product-mini,
.trace-phone[data-active-tab="4"] .trace-phone-tabs,
.trace-phone[data-active-tab="4"] .trace-app-bottom-nav {
  display: none !important;
}

.trace-phone[data-active-tab="4"] .trace-phone-app-body {
  height: 100% !important;
}

.trace-phone[data-active-tab="4"] .trace-phone-tab-panel[data-tab-panel="4"] {
  display: block;
  height: 100%;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  transform: none;
}

.trace-app-conclusion-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  color: #153c57;
  background:
    radial-gradient(circle at 92% 18%, rgba(8, 123, 230, .12), transparent 27%),
    radial-gradient(circle at 0 55%, rgba(14, 179, 159, .1), transparent 30%),
    #f4f8fb;
}

.trace-app-conclusion-screen::before {
  position: absolute;
  inset: 48px 0 auto;
  height: 138px;
  opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px);
  background-size: 12px 12px;
  content: "";
  pointer-events: none;
}

.trace-result-brandbar {
  position: relative;
  z-index: 3;
  display: flex;
  height: 48px;
  padding: 8px 11px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(112deg, #064b88 0%, #087be6 64%, #079b92 130%);
  box-shadow: 0 7px 18px rgba(6, 62, 109, .17);
}

.trace-result-brand {
  display: flex;
  gap: 7px;
  align-items: center;
}

.trace-result-brand .trace-app-mark {
  display: grid;
  width: 29px;
  height: 29px;
  color: #fff;
  border-radius: 9px 9px 9px 3px;
  background: linear-gradient(135deg, #087be6, #20c9ec);
  place-items: center;
  box-shadow: 0 5px 14px rgba(8, 123, 230, .28);
}

.trace-result-brand .trace-app-mark svg {
  width: 18px;
  stroke-width: 1.5;
}

.trace-result-brand strong {
  color: #ffffff;
  font-size: .61rem;
  letter-spacing: -.025em;
  line-height: 1;
}

.trace-result-brand strong span {
  color: #70ebd0;
}

.trace-result-brand small {
  color: rgba(255, 255, 255, .82);
  font-size: .42rem;
  line-height: 1;
}

.trace-result-live {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(3, 46, 80, .24);
  font-size: .3rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.trace-result-live i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: #74f0c8;
  box-shadow: 0 0 0 3px rgba(116, 240, 200, .13);
}

.trace-result-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: calc(100% - 48px);
  padding: 8px 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.trace-result-hero {
  display: grid;
  min-height: 145px;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.trace-result-orbit {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  margin: 1px 0 4px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #0db497, #087be6);
  place-items: center;
  box-shadow: 0 9px 22px rgba(8, 123, 230, .25);
  animation: trace-result-float 3.4s ease-in-out infinite;
}

.trace-result-orbit > span svg {
  width: 26px;
  stroke-width: 1.35;
}

.trace-result-orbit > b {
  position: absolute;
  right: -2px;
  bottom: 0;
  display: grid;
  width: 18px;
  height: 18px;
  color: #087b61;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dff9f0;
  place-items: center;
  font-size: .45rem;
}

.trace-result-orbit > i {
  position: absolute;
  border: 1px solid rgba(8, 123, 230, .16);
  border-radius: 50%;
}

.trace-result-orbit .orbit-one {
  inset: -6px;
  animation: trace-result-ring 2.7s ease-out infinite;
}

.trace-result-orbit .orbit-two {
  inset: -12px;
  animation: trace-result-ring 2.7s .9s ease-out infinite;
}

.trace-result-kicker {
  color: #07856d;
  font: 800 .32rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .1em;
}

.trace-result-hero h4 {
  margin: 3px 0;
  color: #073f76;
  font-size: .76rem;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.trace-result-hero h4 em {
  color: #079a85;
  font-style: normal;
}

.trace-result-hero p {
  max-width: 235px;
  margin: 0;
  color: #678092;
  font-size: .34rem;
  line-height: 1.45;
}

.trace-result-product {
  display: grid;
  min-height: 58px;
  padding: 7px;
  grid-template-columns: 45px 1fr auto;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(8, 96, 154, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 17px rgba(13, 65, 99, .07);
}

.trace-result-product img {
  width: 45px;
  height: 44px;
  object-fit: cover;
  border-radius: 9px;
}

.trace-result-product > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.trace-result-product small {
  color: #0a9a7b;
  font-size: .28rem;
  font-weight: 800;
}

.trace-result-product strong {
  color: #183f59;
  font-size: .46rem;
}

.trace-result-product span {
  overflow: hidden;
  color: #768b99;
  font-size: .29rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.trace-result-score {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 3px;
  grid-template-columns: auto auto;
  align-content: center;
  justify-content: center;
  color: #078369;
  border: 3px solid #11ad88;
  border-right-color: #c3e9df;
  border-radius: 50%;
}

.trace-result-score strong {
  color: inherit;
  font-size: .52rem;
  line-height: 1;
}

.trace-result-score small {
  align-self: end;
  color: inherit;
  font-size: .2rem;
}

.trace-result-proof {
  display: grid;
  margin-top: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.trace-result-proof article {
  display: grid;
  min-height: 52px;
  padding: 6px 4px;
  grid-template-columns: 21px 1fr;
  gap: 4px;
  align-items: center;
  border: 1px solid #e0eaf0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .88);
}

.trace-result-proof article > span {
  display: grid;
  width: 21px;
  height: 21px;
  color: #0879ca;
  border-radius: 7px;
  background: #e9f3fb;
  place-items: center;
}

.trace-result-proof article > span svg {
  width: 11px;
}

.trace-result-proof article > div {
  display: grid;
  gap: 1px;
}

.trace-result-proof strong {
  color: #18425d;
  font-size: .43rem;
  line-height: 1;
}

.trace-result-proof small {
  color: #7a8e9c;
  font-size: .24rem;
  line-height: 1.2;
}

.trace-result-verified-by {
  display: grid;
  min-height: 37px;
  margin-top: 0;
  padding: 5px 7px;
  grid-template-columns: 23px 1fr auto;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(10, 160, 127, .2);
  border-radius: 9px;
  background: #edf9f5;
}

.trace-result-verified-by > span {
  display: grid;
  width: 23px;
  height: 23px;
  color: #fff;
  border-radius: 7px;
  background: #0aa57f;
  place-items: center;
}

.trace-result-verified-by > span svg {
  width: 13px;
}

.trace-result-verified-by > div {
  display: grid;
  gap: 1px;
}

.trace-result-verified-by small {
  color: #0b8d71;
  font-size: .26rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.trace-result-verified-by strong {
  color: #32556b;
  font: 600 .27rem/1.2 "IBM Plex Mono", monospace;
}

.trace-result-verified-by > i {
  color: #718a98;
  font-size: .25rem;
  font-style: normal;
}

.trace-result-assurance {
  display: grid;
  min-height: 61px;
  margin-top: 0;
  padding: 7px 8px;
  gap: 6px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(8, 123, 230, .03) 1px, transparent 1px),
    #fff;
  background-size: 13px 100%;
}

.trace-result-assurance > div:first-child {
  display: grid;
  gap: 2px;
}

.trace-result-assurance small {
  color: #0877c8;
  font-size: .25rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.trace-result-assurance strong {
  color: #294d64;
  font-size: .32rem;
}

.trace-assurance-flow {
  display: flex;
  align-items: center;
}

.trace-assurance-flow span {
  color: #4c687a;
  font-size: .25rem;
  font-weight: 700;
  white-space: nowrap;
}

.trace-assurance-flow i {
  position: relative;
  height: 1px;
  margin: 0 5px;
  flex: 1;
  background: #bfd5e2;
}

.trace-assurance-flow i::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0a9c7b;
  content: "";
  transform: translateY(-50%);
}

.trace-result-callout {
  display: grid;
  margin-top: 0;
  min-height: 48px;
  padding: 7px 9px;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(108deg, #0874d0, #078f9d);
  box-shadow: 0 8px 18px rgba(8, 111, 183, .2);
}

.trace-result-callout > span {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  place-items: center;
}

.trace-result-callout > span svg {
  width: 15px;
}

.trace-result-callout > div {
  display: grid;
  gap: 2px;
}

.trace-result-callout small {
  color: #bff6ea;
  font-size: .25rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.trace-result-callout strong {
  color: #fff;
  font-size: .33rem;
  line-height: 1.35;
}

.trace-result-signoff {
  display: block;
  margin-top: 0;
  color: #6e8797;
  font-size: .25rem;
  font-weight: 700;
  text-align: center;
}

@keyframes trace-result-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes trace-result-ring {
  0% { opacity: .7; transform: scale(.82); }
  75%, 100% { opacity: 0; transform: scale(1.28); }
}

.trace-phone[data-active-tab="0"] .trace-phone-tab-btn[data-tab-idx="0"]::after,
.trace-phone[data-active-tab="1"] .trace-phone-tab-btn[data-tab-idx="1"]::after,
.trace-phone[data-active-tab="2"] .trace-phone-tab-btn[data-tab-idx="2"]::after,
.trace-phone[data-active-tab="3"] .trace-phone-tab-btn[data-tab-idx="3"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.trace-phone-app-body {
  height: calc(100% - 136px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--app-paper);
}

.trace-phone-tab-panel {
  height: 100%;
  padding: 10px;
  overflow: hidden;
}

.trace-app-section-head {
  display: flex;
  margin-bottom: 8px;
  align-items: end;
  justify-content: space-between;
}

.trace-app-section-head > div {
 display: grid; gap: 2px;
}

.trace-app-section-head small {
 color: #0b9676; font-size: .3rem; font-weight: 800; letter-spacing: .07em;
}

.trace-app-section-head strong {
 color: #173c56; font-size: .56rem;
}

.trace-app-section-head > span {
 padding: 3px 5px; color: #0b8268; border-radius: 999px; background: #e4f6f0; font-size: .3rem; font-weight: 700;
}

.trace-app-kv {
  margin: 0;
  padding: 2px 9px;
  border: 1px solid #e2ebf1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 79, 108, .05);
}

.trace-app-kv > div {
  display: grid;
  min-height: 35px;
  grid-template-columns: 36% 1fr;
  gap: 5px;
  align-items: center;
  border-bottom: 1px solid #edf2f5;
}

.trace-app-kv > div:last-child {
 border: 0;
}

.trace-app-kv dt {
 color: #7b909f; font-size: .34rem;
}

.trace-app-kv dd {
 margin: 0; color: #274a62; font-size: .36rem; font-weight: 700; text-align: right;
}

.trace-live-proof {
  display: grid;
  margin-top: 8px;
  padding: 8px;
  grid-template-columns: auto 1fr auto;
  gap: 7px;
  align-items: center;
  color: #0b8f70;
  border: 1px solid #d5eee6;
  border-radius: 10px;
  background: #effaf6;
}

.trace-live-proof > svg {
 width: 16px;
}

.trace-live-proof > span {
 display: grid; gap: 1px;
}

.trace-live-proof strong {
 color: #17634f; font-size: .4rem;
}

.trace-live-proof small {
 color: #67857c; font-size: .31rem;
}

.trace-live-proof > i {
 width: 6px; height: 6px; border-radius: 50%; background: #17b78d; box-shadow: 0 0 0 3px rgba(23, 183, 141, .13);
}

.trace-journey-map {
  position: relative;
  height: 78px;
  overflow: hidden;
  border-radius: 11px;
}

.trace-journey-map::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 44, 62, .7), rgba(7, 44, 62, .18));
  content: "";
}

.trace-journey-map img {
 width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%;
}

.trace-journey-map > div {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 11px;
  left: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #fff;
  font-size: .35rem;
}

.trace-journey-map span {
 display: grid; width: 16px; height: 16px; border-radius: 50%; background: #0aaa85; place-items: center;
}

.trace-journey-map svg {
 width: 9px;
}

.trace-journey-map i {
 flex: 1; height: 1px; background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 7px);
}

.trace-app-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.trace-app-timeline li {
  position: relative;
  display: grid;
  min-height: 45px;
  padding-left: 17px;
  grid-template-columns: 65px 1fr;
  align-items: center;
}

.trace-app-timeline li::before {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 3px;
  width: 6px;
  height: 6px;
  border: 2px solid #f3f7fa;
  border-radius: 50%;
  background: #9cb0bd;
  box-shadow: 0 0 0 1px #b6c7d1;
  content: "";
}

.trace-app-timeline li::after {
  position: absolute;
  top: 26px;
  bottom: -18px;
  left: 6px;
  width: 1px;
  background: #cedae1;
  content: "";
}

.trace-app-timeline li:last-child::after {
 display: none;
}

.trace-app-timeline li.is-current::before {
 background: #0bad86; box-shadow: 0 0 0 3px rgba(11, 173, 134, .13);
}

.trace-app-timeline time {
 color: #718998; font: 600 .3rem/1.2 "IBM Plex Mono", monospace;
}

.trace-app-timeline li > div {
 display: grid; gap: 2px;
}

.trace-app-timeline strong {
 color: #24465d; font-size: .38rem;
}

.trace-app-timeline small {
 color: #788e9d; font-size: .3rem;
}

.trace-origin-photo {
  position: relative;
  height: 93px;
  margin: 0 0 7px;
  overflow: hidden;
  border-radius: 11px;
}

.trace-origin-photo::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(5, 36, 42, .78));
  content: "";
}

.trace-origin-photo img {
 width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}

.trace-origin-photo figcaption {
 position: absolute; z-index: 2; right: 9px; bottom: 8px; left: 9px; display: flex; align-items: end; justify-content: space-between; color: #fff;
}

.trace-origin-photo strong {
 font-size: .42rem;
}

.trace-origin-photo small {
 font-size: .29rem;
}

.trace-origin-stack {
  display: grid;
  gap: 5px;
}

.trace-origin-stack article {
  display: grid;
  min-height: 42px;
  padding: 5px 7px;
  grid-template-columns: 18px 24px 1fr auto;
  gap: 6px;
  align-items: center;
  border: 1px solid #e1eaf0;
  border-radius: 9px;
  background: #fff;
}

.trace-origin-stack article > b {
 color: #9aabb6; font: 600 .29rem/1 "IBM Plex Mono", monospace;
}

.trace-origin-stack article > span {
 display: grid; width: 23px; height: 23px; color: var(--app-blue); border-radius: 7px; background: #e9f3fb; place-items: center;
}

.trace-origin-stack article > span svg {
 width: 12px;
}

.trace-origin-stack article > div {
 display: grid; gap: 1px;
}

.trace-origin-stack strong {
 color: #284a61; font-size: .37rem;
}

.trace-origin-stack small {
 color: #7a8f9e; font-size: .29rem;
}

.trace-origin-stack article > i {
 display: grid; width: 16px; height: 16px; color: #fff; border-radius: 50%; background: #0dab86; place-items: center; font-size: .3rem; font-style: normal;
}

.trace-doc-preview {
  display: grid;
  padding: 9px;
  grid-template-columns: 80px 1fr;
  gap: 9px;
  align-items: center;
  border: 1px solid #dce7ee;
  border-radius: 11px;
  background: linear-gradient(130deg, #fff, #eef6fb);
}

.trace-doc-paper {
  position: relative;
  display: grid;
  height: 92px;
  padding: 11px 7px;
  align-content: start;
  justify-items: center;
  color: #174864;
  border: 1px solid #d1e1ea;
  border-radius: 5px;
  background:
    linear-gradient(rgba(8, 123, 230, .035) 1px, transparent 1px),
    #fff;
  background-size: 100% 8px;
  box-shadow: 0 5px 12px rgba(32, 70, 92, .1);
}

.trace-doc-paper span {
 color: #109879; font-size: .31rem; font-weight: 800;
}

.trace-doc-paper strong {
 margin-top: 6px; font-size: .39rem; letter-spacing: .05em;
}

.trace-doc-paper small {
 margin-top: 3px; color: #78909f; font-size: .24rem; text-align: center;
}

.trace-doc-paper i {
 position: absolute; right: 6px; bottom: 6px; display: grid; width: 22px; height: 22px; color: #0c9d79; border: 1px solid #0c9d79; border-radius: 50%; place-items: center;
}

.trace-doc-paper i svg {
 width: 13px;
}

.trace-doc-preview > div:last-child {
 display: grid; gap: 3px;
}

.trace-doc-preview > div:last-child strong {
 color: #26506a; font-size: .39rem;
}

.trace-doc-preview > div:last-child small {
 color: #79909f; font-size: .3rem;
}

.trace-app-docs {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.trace-app-docs article {
  display: grid;
  min-height: 47px;
  padding: 6px 7px;
  grid-template-columns: 28px 1fr auto;
  gap: 7px;
  align-items: center;
  border: 1px solid #e0e9ef;
  border-radius: 9px;
  background: #fff;
}

.trace-app-docs article > span {
 display: grid; width: 27px; height: 27px; color: var(--app-blue); border-radius: 8px; background: #e9f3fb; place-items: center;
}

.trace-app-docs article > span svg {
 width: 13px;
}

.trace-app-docs article > div {
 display: grid; gap: 2px;
}

.trace-app-docs strong {
 color: #294b62; font-size: .36rem;
}

.trace-app-docs small {
 color: #7c909e; font-size: .29rem;
}

.trace-app-docs article > b {
 display: grid; width: 16px; height: 16px; color: #fff; border-radius: 50%; background: #0cac85; place-items: center; font-size: .3rem;
}

.trace-app-bottom-nav {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 49px;
  padding: 5px 11px 7px;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  border-top: 1px solid #e0e8ee;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -5px 15px rgba(20, 58, 82, .05);
  backdrop-filter: blur(10px);
}

.trace-app-bottom-nav button {
  display: grid;
  gap: 2px;
  padding: 0;
  justify-items: center;
  color: #8496a3;
  border: 0;
  background: transparent;
  font-size: .29rem;
}

.trace-app-bottom-nav button svg {
 width: 14px; height: 14px;
}

.trace-app-bottom-nav button.active {
 color: var(--app-blue);
}

.trace-app-bottom-nav .trace-scan-fab {
  width: 38px;
  height: 38px;
  margin: -13px auto 0;
  align-self: start;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #087be6, #08a78b);
  box-shadow: 0 6px 15px rgba(8, 123, 230, .3);
  place-items: center;
  transform: rotate(45deg);
}

.trace-app-bottom-nav .trace-scan-fab svg {
  width: 17px;
  height: 17px;
  transform: rotate(-45deg);
}

@media (max-width: 767px) {
  .trace-phone.iphone-17-pro-max {
      width: min(318px, 88vw);
  }
}

.roadmap-section .web-scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
}
