/* Driver App sticky scroll storytelling */

.de-section {
  --de-blue: #3641f5;
  --de-blue-soft: #465fff;
  --de-green: #12b76a;
  --de-purple: #9b51e0;
  --de-orange: #f79009;
  --de-teal: #0e9f90;
  --de-ink: #101828;
  --de-muted: #667085;
  --de-line: #e4e7ec;
  --de-soft: #f2f4f7;
  position: relative;
  isolation: isolate;
  background: #fff;
}

.de-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
}

/* Chapter intro — appears when entering driver app from web app */
.de-chapter {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.5rem 3rem;
  pointer-events: none;
  will-change: opacity, transform;
  transform-origin: center 42%;
}

.de-chapter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  max-width: 40rem;
}

.de-chapter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(18, 183, 106, 0.12);
  color: #027a48;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.de-chapter-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--de-ink);
}

.de-brand-word {
  font-family: var(--font-footer-watermark);
  font-style: italic;
  font-weight: 400;
  color: var(--de-blue);
  letter-spacing: -0.02em;
}

.de-chapter-title-accent {
  color: var(--de-blue);
}

.de-chapter-sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: var(--de-muted);
}

.de-chapter-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}

.de-chapter-scroll-arrow {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: de-chapter-bounce 1.4s ease-in-out infinite;
}

@keyframes de-chapter-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(4px) rotate(45deg);
  }
}

.de-story {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  will-change: opacity;
}

.de-story .de-left,
.de-story .de-center,
.de-story .de-right {
  will-change: transform;
  transform-origin: center top;
}

@media (prefers-reduced-motion: reduce) {
  .de-chapter-scroll-arrow {
    animation: none;
  }

  .de-chapter,
  .de-story {
    will-change: auto;
  }
}

.de-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(221, 233, 255, 0.85), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(238, 242, 255, 0.9), transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(242, 244, 247, 0.95), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 48%, #f7f9fc 100%);
  transition: background 0.5s ease;
}

.de-bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.de-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  transition: background 0.55s ease, transform 0.55s ease;
}

.de-bg-orb--a {
  width: 22rem;
  height: 22rem;
  top: 8%;
  left: -4%;
  background: rgba(70, 95, 255, 0.18);
}

.de-bg-orb--b {
  width: 18rem;
  height: 18rem;
  top: 18%;
  right: 4%;
  background: rgba(18, 183, 106, 0.12);
}

.de-bg-orb--c {
  width: 16rem;
  height: 16rem;
  bottom: 8%;
  left: 42%;
  background: rgba(155, 81, 224, 0.1);
}

.de-sticky[data-glow='1'] .de-bg-orb--a,
.de-sticky[data-glow='2'] .de-bg-orb--a,
.de-sticky[data-glow='3'] .de-bg-orb--a { background: rgba(54, 65, 245, 0.22); }
.de-sticky[data-glow='4'] .de-bg-orb--b,
.de-sticky[data-glow='9'] .de-bg-orb--b { background: rgba(18, 183, 106, 0.2); }
.de-sticky[data-glow='5'] .de-bg-orb--c { background: rgba(247, 144, 9, 0.16); }
.de-sticky[data-glow='6'] .de-bg-orb--c { background: rgba(249, 112, 102, 0.14); }
.de-sticky[data-glow='7'] .de-bg-orb--c { background: rgba(155, 81, 224, 0.18); }
.de-sticky[data-glow='8'] .de-bg-orb--a { background: rgba(54, 65, 245, 0.2); }

.de-container {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1 1 auto;
  min-height: 100%;
  justify-content: center;
}

.de-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.55fr);
  gap: 1.5rem 1.5rem;
  align-items: start;
}

/* Left column */
.de-left {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 22rem;
}

.de-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(18, 183, 106, 0.12);
  color: #027a48;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.de-badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--de-green);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
}

.de-heading {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--de-ink);
  font-weight: 800;
}

.de-heading-accent {
  color: var(--de-blue);
}

.de-lead {
  margin: 0;
  color: var(--de-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 34ch;
}

.de-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.de-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.05rem;
  padding: 0.45rem 1.15rem 0.45rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #3c4043;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.de-play-badge:hover {
  transform: translateY(-1px);
  background: #111;
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.22);
}

.de-play-badge-icon {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.de-play-badge-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.de-play-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  line-height: 1.05;
}

.de-play-badge-copy em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8eaed;
}

.de-play-badge-copy strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.de-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.de-btn--primary {
  background: var(--de-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(54, 65, 245, 0.28);
}

.de-btn--primary:hover {
  transform: translateY(-1px);
  background: var(--de-blue-soft);
}

.de-btn--secondary {
  background: #fff;
  color: var(--de-ink);
  border: 1px solid var(--de-line);
}

.de-btn--secondary:hover {
  transform: translateY(-1px);
  border-color: #c7cdd8;
}

.de-left-points {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.de-left-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.de-left-point strong {
  display: block;
  font-size: 0.88rem;
  color: var(--de-ink);
  margin-bottom: 0.1rem;
}

.de-left-point div > span {
  display: block;
  font-size: 0.78rem;
  color: var(--de-muted);
  line-height: 1.4;
}

.de-left-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  margin-top: 0.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #eef2ff;
  color: var(--de-blue);
}

.de-left-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.de-left-point.is-blue .de-left-icon { background: #eef2ff; color: var(--de-blue); }
.de-left-point.is-green .de-left-icon { background: #e8f8f0; color: var(--de-green); }
.de-left-point.is-purple .de-left-icon { background: #f4ecff; color: var(--de-purple); }
.de-left-point.is-orange .de-left-icon { background: #fff4e5; color: var(--de-orange); }
.de-left-point.is-teal .de-left-icon { background: #e0f2fe; color: #0e7090; }

/* Center phone — Pixel 10 Pro XL (Obsidian), matched to official-style mockup */
.de-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  min-height: 36rem;
  /* Keep the device clear of the sticky header */
  margin-top: 1.75rem;
}

.de-phone {
  position: relative;
  width: min(100%, 17.25rem);
  aspect-ratio: 9 / 19.5;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.35));
}

.de-phone-glow {
  position: absolute;
  inset: 10% -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 65, 245, 0.2), transparent 70%);
  filter: blur(18px);
  transition: background 0.45s ease;
  z-index: 0;
  pointer-events: none;
}

.de-phone[data-glow='1'] .de-phone-glow {
  background: radial-gradient(circle, rgba(54, 65, 245, 0.22), transparent 70%);
}
.de-phone[data-glow='4'] .de-phone-glow,
.de-phone[data-glow='9'] .de-phone-glow {
  background: radial-gradient(circle, rgba(18, 183, 106, 0.2), transparent 70%);
}
.de-phone[data-glow='5'] .de-phone-glow {
  background: radial-gradient(circle, rgba(247, 144, 9, 0.18), transparent 70%);
}
.de-phone[data-glow='6'] .de-phone-glow {
  background: radial-gradient(circle, rgba(249, 112, 102, 0.16), transparent 70%);
}
.de-phone[data-glow='7'] .de-phone-glow {
  background: radial-gradient(circle, rgba(155, 81, 224, 0.18), transparent 70%);
}

/* Right-edge buttons — power + single volume rocker (Pixel layout) */
.de-phone-btn {
  position: absolute;
  right: -0.16rem;
  width: 0.16rem;
  z-index: 5;
  display: block;
  border-radius: 1px 2px 2px 1px;
  background: linear-gradient(180deg, #3a3c40 0%, #1a1b1e 40%, #0c0d0f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    1px 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.de-phone-btn--power {
  top: 17.5%;
  height: 1.35rem;
}

.de-phone-btn--volume {
  top: 26.5%;
  height: 3.1rem;
}

/*
 * Obsidian body — soft edge highlights create the flat Pixel
 * side profile without fake separate rails.
 */
.de-phone-body {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 2.35rem;
  padding: 0.38rem;
  background:
    linear-gradient(
      90deg,
      #1c1d20 0%,
      #3a3c42 1.4%,
      #2a2b30 3.5%,
      #16171a 8%,
      #0e0f12 50%,
      #16171a 92%,
      #2a2b30 96.5%,
      #3a3c42 98.6%,
      #1c1d20 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 0 0 0.5px rgba(0, 0, 0, 0.7);
  overflow: visible;
}

/* Thin even black display bezel */
.de-phone-display {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 2.05rem;
  padding: 0.09rem;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* Centered punch-hole */
.de-phone-camera {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #000;
  z-index: 6;
  display: grid;
  place-items: center;
}

.de-phone-camera-lens {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #3d5570 0%, #121820 52%, #000 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.de-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.98rem;
  overflow: hidden;
  background: #000;
}

.de-phone-screen--shots {
  background: #000;
}

.de-phone-screen-layer {
  position: absolute;
  inset: 0;
}

.de-phone-screen-layer img.de-screen-shot,
.de-screen-shot {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  background: #000;
  user-select: none;
  pointer-events: none;
}

.de-phone-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  transform: translateX(-50%);
  width: 34%;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 6;
  pointer-events: none;
}

.de-phone-shadow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -0.75rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(10px);
  z-index: 1;
}

.de-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.de-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #d0d5dd;
  transition: width 0.25s ease, background 0.25s ease;
}

.de-dots span.is-active {
  width: 1.1rem;
  background: var(--de-blue);
}

.de-reduce-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--de-muted);
  text-align: center;
}

/* Right column */
.de-right {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 3.75rem;
  row-gap: 1rem;
  align-items: start;
  min-height: 28rem;
  margin-top: 1.75rem;
}

.de-feature {
  min-width: 0;
  max-width: 17.5rem;
  padding-right: 0;
}

.de-feature-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.de-feature-step {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--de-blue);
  letter-spacing: 0.04em;
}

.de-feature-step span {
  color: #98a2b3;
  font-weight: 600;
}

.de-feature-title {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--de-ink);
  font-weight: 800;
}

.de-feature-desc {
  margin: 0;
  color: var(--de-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36ch;
}

.de-feature-bullets {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.de-feature-bullets li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #344054;
  line-height: 1.3;
}

.de-feature-bullets li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  border: 1.5px solid #12b76a;
  color: #12b76a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-sizing: border-box;
}

.de-feature-bullets li::after {
  content: none;
}

.de-ui-card {
  margin-top: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(228, 231, 236, 0.9);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
  display: grid;
  gap: 0.25rem;
  max-width: 20rem;
}

.de-ui-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--de-blue);
}

.de-ui-card strong {
  font-size: 1rem;
  color: var(--de-ink);
}

.de-ui-card-meta {
  font-size: 0.82rem;
  color: var(--de-muted);
}

.de-ui-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.de-ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.65rem;
  background: var(--de-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.de-ui-btn--ghost {
  background: #fff;
  color: #344054;
  border: 1px solid var(--de-line);
}

/* Timeline — fixed offset so steps never jump when info height changes */
.de-timeline {
  position: relative;
  width: 8.5rem;
  padding-left: 0.35rem;
  flex-shrink: 0;
  align-self: start;
  margin-top: 4.5rem;
  margin-left: 0.75rem;
}

.de-timeline-track {
  position: absolute;
  left: 1.05rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 2px;
  background-image: linear-gradient(to bottom, #d0d5dd 40%, transparent 0);
  background-size: 2px 10px;
  border-radius: 999px;
  overflow: hidden;
}

.de-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #12b76a 0%, var(--de-blue) 100%);
  border-radius: inherit;
  transform-origin: top center;
  will-change: transform;
}

.de-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  position: relative;
}

.de-timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
}

.de-timeline-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0.55rem;
  transition: opacity 0.18s ease;
}

.de-timeline-btn:hover .de-timeline-label {
  color: var(--de-ink);
}

.de-timeline-btn:hover .de-timeline-dot {
  border-color: #98a2b3;
  color: #667085;
}

.de-timeline-item.is-active .de-timeline-btn:hover .de-timeline-dot {
  border-color: var(--de-blue);
  color: #fff;
}

.de-timeline-item.is-done .de-timeline-btn:hover .de-timeline-dot {
  border-color: #12b76a;
  color: #027a48;
}

.de-timeline-btn:focus-visible {
  outline: 2px solid var(--de-blue);
  outline-offset: 3px;
}

.de-timeline-dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: #fff;
  border: 1.5px solid #d0d5dd;
  color: #98a2b3;
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.de-timeline-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #98a2b3;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.de-timeline-item.is-done .de-timeline-dot {
  background: #ecfdf3;
  border-color: #12b76a;
  color: #027a48;
}

.de-timeline-item.is-done .de-timeline-label {
  color: #027a48;
}

.de-timeline-item.is-active .de-timeline-dot {
  background: var(--de-blue);
  border-color: var(--de-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(54, 65, 245, 0.16);
}

.de-timeline-item.is-active .de-timeline-label {
  color: var(--de-blue);
  font-weight: 700;
}

/* Bottom bar */
.de-bottom-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(242, 244, 247, 0.85);
  border: 1px solid rgba(228, 231, 236, 0.8);
  backdrop-filter: blur(8px);
}

.de-bottom-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #344054;
  white-space: nowrap;
}

.de-bottom-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, currentColor 14%, #fff);
  color: inherit;
}

.de-bottom-icon svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

.de-bottom-item.is-green { color: #027a48; }
.de-bottom-item.is-blue { color: var(--de-blue); }
.de-bottom-item.is-purple { color: #6941c6; }
.de-bottom-item.is-orange { color: #b54708; }
.de-bottom-item.is-teal { color: #0e7090; }

/* Phone UI screens */
.de-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  /* Top inset for Pixel punch-hole camera */
  padding: 1.7rem 0.8rem 1.05rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f4f6fb 100%);
  color: var(--de-ink);
  font-family: "Manrope", system-ui, sans-serif;
}

.de-screen--shot {
  padding: 0;
  background: #050506;
}

.de-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #344054;
  margin-bottom: 0.55rem;
  padding: 0 0.15rem;
}

.de-status-icons {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.de-status-signal,
.de-status-wifi,
.de-status-battery {
  display: inline-block;
  background: #344054;
  border-radius: 1px;
}

.de-status-signal { width: 0.55rem; height: 0.35rem; clip-path: polygon(0 100%, 30% 60%, 55% 80%, 100% 0, 100% 100%); }
.de-status-wifi { width: 0.55rem; height: 0.35rem; border-radius: 50% 50% 0 0; }
.de-status-battery { width: 0.7rem; height: 0.35rem; border-radius: 1px; }

.de-screen-head {
  margin-bottom: 0.55rem;
}

.de-screen-head h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
}

.de-screen-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--de-blue);
}

.de-screen-head--profile {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.de-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #465fff, #12b76a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.de-progress-block {
  margin-bottom: 0.55rem;
}

.de-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--de-muted);
  margin-bottom: 0.3rem;
}

.de-progress-track {
  height: 0.35rem;
  border-radius: 999px;
  background: #e4e7ec;
  overflow: hidden;
}

.de-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3641f5, #465fff);
}

.de-progress-fill--65 { width: 65%; }

.de-map {
  position: relative;
  flex: 1;
  min-height: 8.5rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(70, 95, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #dbe7ff 0%, #edf2ff 55%, #e8eefc 100%);
  border: 1px solid #d6e0ff;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.de-map-route {
  position: absolute;
  left: 18%;
  top: 28%;
  width: 64%;
  height: 42%;
  border: 2.5px solid #3641f5;
  border-radius: 40% 60% 45% 55%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-18deg);
}

.de-map-pin {
  position: absolute;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12);
}

.de-map-pin--start { left: 10%; top: 18%; }
.de-map-pin--end { right: 10%; bottom: 18%; color: #b42318; }

.de-map-truck {
  position: absolute;
  left: 48%;
  top: 42%;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  background: #3641f5;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(54, 65, 245, 0.35);
  animation: de-truck 3.2s ease-in-out infinite;
}

.de-map-truck svg {
  width: 1rem;
  height: 1rem;
}

@keyframes de-truck {
  0%, 100% { transform: translate(-50%, -40%); }
  50% { transform: translate(-20%, -70%); }
}

.de-map-live {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 700;
  color: #027a48;
}

.de-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5);
  animation: de-pulse 1.6s ease-out infinite;
}

@keyframes de-pulse {
  70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

.de-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.de-info-grid div {
  padding: 0.4rem 0.45rem;
  border-radius: 0.55rem;
  background: #fff;
  border: 1px solid #eef0f4;
}

.de-info-grid span {
  display: block;
  font-size: 0.58rem;
  color: var(--de-muted);
}

.de-info-grid strong {
  display: block;
  font-size: 0.68rem;
  margin-top: 0.1rem;
}

.de-nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.15rem 0.15rem;
  border-top: 1px solid #eef0f4;
  font-size: 0.52rem;
  font-weight: 700;
  color: #98a2b3;
  text-align: center;
}

.de-nav .is-active { color: var(--de-blue); }

.de-nav-plus {
  width: 1.55rem;
  height: 1.55rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--de-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(54, 65, 245, 0.35);
}

.de-trip-list,
.de-mini-list,
.de-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  flex: 1;
  overflow: hidden;
}

.de-trip-item {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #eef0f4;
}

.de-trip-item strong,
.de-trip-item span {
  display: block;
}

.de-trip-item strong { font-size: 0.72rem; }
.de-trip-item span { font-size: 0.62rem; color: var(--de-muted); margin-top: 0.1rem; }
.de-trip-item em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.de-trip-item--blue em { background: #eef2ff; color: var(--de-blue); }
.de-trip-item--green em { background: #ecfdf3; color: #027a48; }
.de-trip-item--amber em { background: #fffaeb; color: #b54708; }

.de-doc-card {
  flex: 1;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.de-doc-badge {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3641f5, #12b76a);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
}

.de-doc-meta strong,
.de-doc-meta span {
  display: block;
}

.de-doc-meta strong { font-size: 0.85rem; }
.de-doc-meta span { font-size: 0.68rem; color: var(--de-muted); margin-top: 0.15rem; }

.de-doc-lines {
  display: grid;
  gap: 0.3rem;
}

.de-doc-lines span {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: #eef0f4;
}

.de-doc-lines span:nth-child(2) { width: 82%; }
.de-doc-lines span:nth-child(3) { width: 68%; }
.de-doc-lines span:nth-child(4) { width: 74%; }

.de-action-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.4rem;
  margin: 0.55rem 0 0.35rem;
}

.de-chip,
.de-cta-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.65rem;
  min-height: 2.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: inherit;
  background: #fff;
  color: #344054;
  border: 1px solid #e4e7ec;
  text-decoration: none;
  cursor: pointer;
}

.de-chip--primary,
.de-cta-full {
  background: var(--de-blue);
  color: #fff;
  border-color: transparent;
}

.de-offline-note {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  color: var(--de-muted);
  text-align: center;
}

.de-upload-zone {
  flex: 1;
  border: 1.5px dashed #b2ccff;
  border-radius: 0.9rem;
  background: #f5f8ff;
  display: grid;
  place-content: center;
  gap: 0.2rem;
  text-align: center;
  margin-bottom: 0.55rem;
}

.de-upload-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 auto 0.2rem;
  border-radius: 50%;
  background: var(--de-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.de-upload-zone strong { font-size: 0.78rem; }
.de-upload-zone span { font-size: 0.64rem; color: var(--de-muted); }

.de-sig-box {
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #eef0f4;
  margin-bottom: 0.55rem;
}

.de-sig-box span {
  display: block;
  font-size: 0.64rem;
  color: var(--de-muted);
  margin-bottom: 0.55rem;
}

.de-sig-line {
  height: 1.4rem;
  border-bottom: 1.5px solid #98a2b3;
  border-radius: 40% 60%;
  transform: rotate(-4deg);
  opacity: 0.55;
}

.de-form {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.de-form label {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #eef0f4;
  font-size: 0.68rem;
}

.de-form span { color: var(--de-muted); }
.de-form strong,
.de-form em { font-style: normal; font-weight: 800; }

.de-mini-list li,
.de-doc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #eef0f4;
  font-size: 0.7rem;
}

.de-mini-list .is-green { color: #027a48; }
.de-mini-list .is-red { color: #b42318; }

.de-balance-card {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #3641f5, #6b74ff);
  color: #fff;
  margin-bottom: 0.55rem;
}

.de-balance-card span {
  display: block;
  font-size: 0.68rem;
  opacity: 0.85;
}

.de-balance-card strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 0.2rem;
}

.de-doc-list li {
  justify-content: flex-start;
}

.de-doc-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--de-blue);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.de-doc-icon--soft {
  background: #ecfdf3;
  color: #027a48;
}

.de-doc-list li div {
  display: grid;
  gap: 0.1rem;
}

.de-doc-list strong { font-size: 0.72rem; }
.de-doc-list em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--de-muted);
}

/* Responsive */
/* Welcome phone screen */
.de-welcome-hero {
  text-align: center;
  margin-bottom: 0.65rem;
}

.de-welcome-logo {
  width: 3rem;
  height: 3rem;
  margin: 0.15rem auto 0.55rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3641f5, #12b76a);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(54, 65, 245, 0.28);
}

.de-welcome-hero h4 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.15rem;
}

.de-welcome-sub {
  margin: 0 auto;
  max-width: 18ch;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--de-muted);
}

.de-welcome-grid {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  flex: 1;
}

.de-welcome-grid li {
  padding: 0.55rem 0.5rem;
  border-radius: 0.7rem;
  background: #fff;
  border: 1px solid #eef0f4;
  display: grid;
  gap: 0.15rem;
}

.de-welcome-grid strong {
  font-size: 0.7rem;
  color: var(--de-ink);
}

.de-welcome-grid span {
  font-size: 0.6rem;
  color: var(--de-muted);
}

/* Phone, small tablet, tablet portrait — hide story section */
@media (max-width: 980px),
       (max-width: 1180px) and (orientation: portrait) {
  .de-section {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .de-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1rem;
  }
  .de-left-points { display: none; }
  .de-timeline { width: 7.2rem; }
  .de-timeline-label { font-size: 0.7rem; }
  .de-bottom-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .de-bottom-item:nth-child(4),
  .de-bottom-item:nth-child(5) {
    display: none;
  }
}

@media (max-height: 860px) {
  .de-left-points { display: none; }
  .de-sticky { padding-top: 5.25rem; }
  .de-container { justify-content: flex-start; }
  .de-center { min-height: 30rem; margin-top: 1.25rem; }
  .de-right { min-height: 24rem; margin-top: 1.25rem; }
}

@media (max-height: 740px) {
  .de-bottom-bar { display: none; }
  .de-phone { width: min(100%, 15rem); }
  .de-center { min-height: 26rem; }
  .de-phone-camera { width: 0.44rem; height: 0.44rem; top: 0.45rem; }
  .de-phone-camera-lens { width: 0.26rem; height: 0.26rem; }
}

@media (prefers-reduced-motion: reduce) {
  .de-map-truck,
  .de-pulse {
    animation: none;
  }
}
