@view-transition { navigation: auto; }

:root { --dl-sf: -apple-system, "SF Pro Text", "SF Pro", system-ui, sans-serif; }

body { margin: 0; font-family: "Host Grotesk", sans-serif; color: #000; -webkit-font-smoothing: antialiased; }

/* Standalone page gets its own bg; overlay mode supplies its own white container */
body:not(.dl-overlay-mode) .dl-page { background: #ffffff; min-height: 100vh; }

/* overflow-x: clip clips the full-bleed bands without becoming a scroll container */
.dl-page { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 10px 120px; min-height: 100vh; box-sizing: border-box; overflow-x: clip; }

/* the close button stays put as the page scrolls: the header row sticks where it sits at the top,
   and only the button itself takes clicks */
.dl-header { position: sticky; top: 10px; z-index: 50; pointer-events: none; max-width: 1280px; width: 100%; height: 100px; display: flex; justify-content: flex-end; align-items: center; padding-right: 30px; box-sizing: border-box; }
.dl-header > * { pointer-events: auto; }
.dl-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #ffffff; border: 1.838px solid rgba(0,0,0,0.1); border-radius: 16px; box-shadow: 0 14.703px 58.811px -4px rgba(0,0,0,0.1); overflow: hidden; text-decoration: none; flex-shrink: 0; transition: opacity 0.15s ease; }
.dl-close:hover { opacity: 0.7; }

.dl-content { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 90px; }

/* ── type ramp ───────────────────────────────────────────────────────── */
.dl-lead { font-size: 30px; font-weight: 400; line-height: 1.4; margin: 0; }
.dl-lead--bold { font-weight: 700; }
.dl-lead--center { text-align: center; }
.dl-sec-h { font-size: 35px; font-weight: 700; line-height: 1.2; margin: 0; }
.dl-body { font-size: 22px; font-weight: 300; line-height: 1.4; margin: 0; }
.dl-statement { font-size: 35px; font-weight: 400; line-height: 1.2; margin: 0; text-align: center; max-width: 760px; }
.dl-b { font-weight: 700; }

.dl-sec { display: flex; flex-direction: column; gap: 40px; align-items: stretch; }

/* ── animated title ──────────────────────────────────────────────────── */
.dl-sec--title { gap: 48px; }
.dl-title { font-family: var(--dl-sf); font-size: 70px; font-weight: 400; line-height: 1.4; letter-spacing: -0.015em; text-align: center; margin: 0; color: #000; }
.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dl-line1, .dl-line2 { display: block; min-height: 1.4em; }
.dl-icon { display: none; width: 0.95em; height: 0.95em; margin-right: 0.16em; vertical-align: -0.16em; }
.dl-icon svg { display: block; width: 100%; height: 100%; }
.dl-algo { color: #000; }
.dl-algo.is-chip { color: #0095f6; }
.dl-rest { color: #000; }
.dl-cursor { display: inline-block; width: 0.05em; min-width: 3px; height: 0.74em; background: #000; vertical-align: -0.06em; margin-left: 0.04em; animation: dl-blink 1.05s steps(1, end) infinite; }
.dl-cursor--2 { display: none; }
@keyframes dl-blink { 50% { opacity: 0; } }

/* ── intro (roomy onboarding style) ──────────────────────────────────── */
.dl-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.dl-intro > :first-child { flex: 0 1 468px; }
.dl-lead-stack { display: flex; flex-direction: column; gap: 20px; }
.dl-meta { flex: 0 0 220px; display: flex; flex-direction: column; gap: 20px; }
.dl-meta__group p { font-size: 22px; font-weight: 300; line-height: 1.4; margin: 0 0 6px; }
.dl-meta__group p:last-child { margin-bottom: 0; }

/* ── split (text + phone) ────────────────────────────────────────────── */
.dl-split { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.dl-split__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 20px; }
.dl-split__phone { margin: 0; flex: 0 0 auto; }
.dl-split__phone img { display: block; width: 377px; height: auto; }

/* ── error-message carousel (seamless left marquee) ──────────────────── */
.dl-marquee { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; overflow: hidden; background: #ebeeed; padding: 50px 0; }
.dl-marquee__track { display: flex; width: max-content; animation: dl-marquee 40s linear infinite; }
/* aspect-ratio gives the img a definite width at layout time (before the PNG
   loads), so the track has its full width and the translateX(-50%) loop animates
   from the first frame — otherwise on a cold first load the % resolves against a
   ~0-width track and the marquee appears not to scroll. */
.dl-marquee__track img { height: 252px; width: auto; aspect-ratio: 6444 / 756; margin-right: 43px; flex: 0 0 auto; display: block; }
@keyframes dl-marquee { to { transform: translateX(-50%); } }

/* ── statements ──────────────────────────────────────────────────────── */
.dl-statements { align-items: center; gap: 40px; padding: 10px 0; }

/* ── Fast following with Your Algo (dark, full-bleed) ─────────────────── */
.dl-sec--dark { background: #181818; color: #fff; width: 100vw; left: 50%; position: relative; transform: translateX(-50%); padding: 90px 0; gap: 0; }
.dl-sec__inner { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.dl-fast-h { font-family: "Host Grotesk"; font-size: 50px; font-weight: 500; line-height: 1.2; color: #fff; text-align: center; margin: 0; }
.dl-fast-phones { display: block; width: 100%; max-width: 800px; height: auto; }
.dl-fast-body { width: 100%; max-width: 765px; margin: 0; font-size: 30px; font-weight: 300; line-height: 1.4; color: #fff; text-align: center; }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .dl-page { padding: 0 0 64px; gap: 0; }
  .dl-header { top: 0; height: 64px; padding-right: 16px; }
  .dl-content { gap: 64px; padding: 0 16px; box-sizing: border-box; }

  .dl-title { font-size: 40px; }
  .dl-lead { font-size: 24px; }
  .dl-sec-h { font-size: 26px; }
  .dl-statement { font-size: 24px; }
  .dl-fast-h { font-size: 30px; }
  .dl-fast-body { font-size: 22px; }

  .dl-sec { gap: 28px; }
  .dl-sec--title { gap: 32px; }

  .dl-intro { flex-direction: column; gap: 24px; }
  .dl-intro > :first-child { flex: 1 1 auto; }
  .dl-meta { flex: 1 1 auto; }

  /* image stacks above text on mobile (image-text-image-text down the page) */
  .dl-split { flex-direction: column; align-items: center; gap: 24px; }
  .dl-split--reverse { flex-direction: column-reverse; }
  .dl-split__text { text-align: center; }
  .dl-split__phone img { width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-marquee__track { animation: none; }
  .dl-marquee { overflow-x: auto; }
  .dl-cursor { animation: none; }
}
