/* Styles copied from the live DELLI Order Hub (makers.delli.market). */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink: rgba(0, 0, 0, 0.87);
}

/* ---------- Stage: a fixed 1440x900 screen scaled to the window ---------- */
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: #e9e8e4; font-family: var(--font); font-size: 14px; color: var(--ink); }
#viewport { position: fixed; inset: 0; }
#stage {
  position: absolute; width: 1440px; height: 900px; overflow: hidden;
  transform-origin: 0 0; background: #fff; box-shadow: 0 8px 40px rgba(20, 20, 30, 0.12);
}
#app { position: absolute; inset: 0; }
#ring, #caption, #cursor { position: absolute; display: none; }
/* Desktop only: phones and very small windows get a message instead of the tour. */
#desktop-only {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 32px; background: #fff; font-family: var(--font); color: var(--ink);
}
#desktop-only h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
#desktop-only p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(0, 0, 0, 0.6); }
#desktop-only[hidden] { display: none; }

/* ---------- Invalid link page ---------- */
.dl-invalid {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.dl-invalid h1 { margin: 0; font-size: 34px; line-height: 42px; font-weight: 700; }
.dl-invalid p { margin: 0; font-size: 16px; color: rgba(0, 0, 0, 0.6); }
.dl-invalid a { color: rgb(39, 75, 176); font-size: 16px; }

/* ---------- Live app shell pinned to the stage ---------- */
/* The live root is fixed at 100vw x 100dvh; inside the stage it fills 1440x900. */
#app > .mui-19i1ol3 { position: absolute; inset: 0; width: 1440px; height: 900px; pointer-events: none; }
.dl-avatar-initial {
  background: #FF69B4; color: #fff; font-family: Roboto, var(--font); font-weight: 400;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Toasts (MUI Snackbar look) ---------- */
.dl-toasts { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.dl-toast {
  min-width: 288px; max-width: 420px; padding: 10px 16px; border-radius: 4px; background: #323232; color: #fff;
  box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px rgba(0,0,0,.14), 0 1px 18px rgba(0,0,0,.12);
  font-size: 14px; line-height: 1.43;
}
.dl-toast-title { font-weight: 600; }
.dl-toast-body { opacity: 0.85; }

/* ---------- Order detail additions built from live components ---------- */

/* ---------- Assistant additions built from live components ---------- */
.dl-chart { padding: 14px; }
.dl-chart text { font: 11px var(--font); fill: rgba(0, 0, 0, 0.6); }
.dl-bar { fill: rgb(62, 105, 224); }
.dl-draft { padding: 12px 16px; gap: 2px; margin: 0 0 10px; }
.dl-draft .dl-draft-body p { color: rgba(0, 0, 0, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; }
.dl-draft-open .dl-draft-body p { white-space: pre-line; color: rgba(0, 0, 0, 0.87); }

/* ---------- Intro and end cards ---------- */
.dl-card-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; }
.dl-card {
  width: 640px; padding: 48px; border: 1px solid rgb(238, 237, 236); border-radius: 14px; background: #fff;
  box-shadow: rgba(22, 20, 19, 0.04) 0 4px 24px; display: flex; flex-direction: column; gap: 18px;
}
.dl-card-end { width: 820px; }
.dl-logos { display: flex; align-items: center; gap: 14px; }
.dl-logos .MuiAvatar-root { width: 56px; height: 56px; margin: 0; font-size: 26px; }
.dl-lead-wordmark { display: none; height: 40px; width: auto; max-width: 260px; object-fit: contain; }
.dl-has-wordmark .dl-lead-wordmark { display: block; }
.dl-has-wordmark .MuiAvatar-root { display: none; }
.dl-plus { font-size: 22px; color: rgba(0, 0, 0, 0.38); }
.dl-wordmark { font-family: var(--font); font-weight: 900; font-size: 30px; letter-spacing: 0.04em; color: rgb(22, 20, 19); }
.dl-card-title { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; color: rgba(0, 0, 0, 0.87); overflow-wrap: anywhere; }
.dl-card-text { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(0, 0, 0, 0.6); }
.dl-card-actions { display: flex; gap: 10px; margin-top: 6px; }
/* Intro and end slides in the DELLI Growth deck's look: warm paper with soft
   blue and lime washes, frosted glass cards, colour blobs, ink numbers on a
   DELLI lime (#DCD400) highlighter. */
.dl-washed {
  background: radial-gradient(780px 560px at 92% 4%, #365edd17, transparent 70%),
    radial-gradient(700px 520px at 2% 100%, #dcd40026, transparent 70%), #fdfcf8;
}
.dl-intro { flex-direction: column; gap: 18px; }
.dl-washed .dl-card, .dl-stat {
  background: #ffffff9e; border: 1px solid #ffffffe6; border-radius: 20px;
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 26px 48px -26px #16141352, inset 0 1px 0 #fff;
}
.dl-stats { width: 640px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-stat { padding: 24px 22px 22px; display: flex; flex-direction: column; animation: dl-rise 280ms cubic-bezier(0.2, 0, 0, 1) both; }
.dl-stat:nth-child(2) { animation-delay: 80ms; }
.dl-stat:nth-child(3) { animation-delay: 160ms; }
@keyframes dl-rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .dl-stat { animation: none; } }
.dl-blob {
  width: 44px; height: 44px; margin: 4px 0 20px 4px; display: grid; place-items: center; color: #161413;
  border-radius: 58% 42% 54% 46% / 46% 58% 42% 54%;
  background: radial-gradient(circle at 30% 25%, #f1ec6a, #dcd400);
  box-shadow: 0 0 0 6px #ffffff8c, 0 0 0 7px #ffffffe6, 0 14px 24px -12px #16141359, inset 0 2px 0 #ffffff80;
}
.dl-stat:nth-child(2) .dl-blob { background: radial-gradient(circle at 30% 25%, #6f8df0, #365edd); color: #fff; }
.dl-stat:nth-child(3) .dl-blob { background: radial-gradient(circle at 30% 25%, #fff, #e6ebfb); color: #304999; }
.dl-stat-num { font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 700; color: #161413; }
.dl-stat-pre { display: block; margin-bottom: 6px; font-size: 13px; line-height: 1.4; letter-spacing: 0; font-weight: 400; color: rgba(0, 0, 0, 0.6); }
.dl-hl {
  background-image: linear-gradient(#dcd400, #dcd400); background-size: 100% 70%; background-position: 0 62%;
  background-repeat: no-repeat; padding: 0 0.06em;
}
.dl-stat-label { margin-top: 10px; font-size: 14px; line-height: 1.4; color: rgba(0, 0, 0, 0.6); }

/* ---------- Tour: ring, caption card, ghost cursor ---------- */
#ring {
  z-index: 50; pointer-events: none; border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(22, 20, 19, 0.35), 0 0 0 2px rgb(62, 105, 224);
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease, opacity 0.15s ease;
}
#caption {
  z-index: 60; width: 360px; background: #fff; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 24px 60px rgba(22, 20, 19, 0.3); font-family: var(--font); color: var(--ink);
  transition: top 0.3s ease, left 0.3s ease, opacity 0.15s ease;
}
#ring.dl-moving, #caption.dl-moving { opacity: 0; pointer-events: none; }
.dl-cap-step { font-size: 11.5px; font-weight: 600; letter-spacing: 0.3px; color: rgba(0, 0, 0, 0.45); }
.dl-cap-title { font-size: 16px; font-weight: 700; margin: 2px 0 6px; }
.dl-cap-body { font-size: 13px; line-height: 1.55; color: rgba(0, 0, 0, 0.7); margin-bottom: 14px; }
.dl-cap-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dl-cap-btn {
  font: 500 14px var(--font); padding: 6px 15px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(64, 61, 59, 0.5); background: #fff; color: rgb(64, 61, 59);
}
.dl-cap-primary { background: rgb(62, 105, 224); border-color: rgb(62, 105, 224); color: #fff; }
#cursor { z-index: 70; left: 0; top: 0; pointer-events: none; will-change: transform; }
#cursor img { position: absolute; left: -4px; top: -2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
#cursor .dl-ripple {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(62, 105, 224, 0.35); transform: scale(0); opacity: 0;
}
#cursor.dl-clicking .dl-ripple { animation: dl-ripple 0.3s ease-out; }
@keyframes dl-ripple { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- Decorations the tour adds after rendering ---------- */
.dl-anim-enter { animation: dl-enter 0.5s ease-out; }
@keyframes dl-enter {
  from { opacity: 0; transform: translateY(-12px); background-color: rgba(62, 105, 224, 0.12); }
  60% { opacity: 1; transform: none; background-color: rgba(62, 105, 224, 0.12); }
  to { background-color: transparent; }
}
.dl-anim-pop { animation: dl-pop 0.35s ease-out; }
@keyframes dl-pop { from { transform: scale(0.6); } 70% { transform: scale(1.08); } to { transform: scale(1); } }
.dl-anim-tick { animation: dl-tick 0.3s ease-out; }
@keyframes dl-tick { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dl-anim-toast { animation: dl-tick 0.25s ease-out; }

/* Fast mode jumps straight to the end of a step. */
#stage.dl-fast *, #stage.dl-fast *::before, #stage.dl-fast *::after { animation: none !important; transition: none !important; }

/* ---------- Accept flow decorations ---------- */
.dl-anim-slide { animation: dl-slide 0.3s ease-out; }
@keyframes dl-slide { from { transform: translateX(100%); } to { transform: none; } }
.dl-loading { color: transparent !important; position: relative; pointer-events: none; }
.dl-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; border-radius: 50%; animation: dl-spin 0.7s linear infinite;
}
@keyframes dl-spin { to { transform: rotate(360deg); } }
/* Live sizes the reply box to its text with an inline height; this fits the template. */
#app textarea[data-dl="reply-message"] { height: 360px; overflow: auto; }

/* ---------- End card pricing (layout from the B pricing cards, in the live font) ---------- */
.dl-card-end { gap: 14px; padding: 36px 44px; }
.dl-card-end .dl-card-title { font-size: 26px; }
.dl-pricing { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid #16141314; }
.dl-price-label { font-size: 14px; font-weight: 700; color: rgba(0, 0, 0, 0.87); padding-top: 10px; }
.dl-price-value { font-size: 13px; color: rgba(0, 0, 0, 0.6); margin-bottom: 4px; }
.dl-price-slider { width: 100%; accent-color: rgb(62, 105, 224); margin: 2px 0 0; height: 22px; cursor: pointer; }
.dl-price-stops { display: flex; justify-content: space-between; font-size: 11px; color: rgba(0, 0, 0, 0.6); padding: 0 2px; }
.dl-price-hint { font-size: 12px; color: rgba(0, 0, 0, 0.45); }
.dl-price-cards { display: flex; gap: 14px; margin-top: 8px; }
.dl-price-card {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  border: 1px solid #ffffffe6; border-radius: 16px; background: #ffffffb8; box-shadow: 0 14px 30px -18px #16141340;
}
.dl-pc-ai { outline: 2px solid rgb(62, 105, 224); outline-offset: -1px; }
.dl-pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dl-pc-name { font-size: 18px; font-weight: 700; }
.dl-pc-badge { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: rgba(62, 105, 224, 0.1); color: rgb(39, 75, 176); }
.dl-pc-sub { font-size: 13px; color: rgba(0, 0, 0, 0.6); }
.dl-pc-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.dl-pc-num { font-size: 44px; font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; }
.dl-pc-month { font-size: 14px; color: rgba(0, 0, 0, 0.6); }
.dl-pc-per { font-size: 13px; color: rgba(0, 0, 0, 0.75); }
.dl-price-foot { margin: 6px 0 0; font-size: 12px; color: rgba(0, 0, 0, 0.6); }
