/* AI Delivery — fixed-scope software outcomes.
   Offers read like a service sheet (one slab per package), the process shows
   where the money waits, and an order reads as one route from brief to release. */

/* ── hero ──────────────────────────────────── */

.dlv-hero__plate {
  object-position: 64% 40%;
}

[data-theme="dark"] .dlv-hero__plate {
  filter: brightness(0.5) saturate(0.85);
}

.dlv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 84% at 12% 64%, color-mix(in oklab, var(--bg-deep) 78%, transparent), transparent 74%);
}

.dlv-hero__title {
  max-width: 11ch;
}

.dlv-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.dlv-promises li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding-inline: 11px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--line) 70%, transparent) inset;
  font-size: 0.875rem;
  font-weight: 560;
}

.dlv-promises .icon {
  color: var(--held);
}

.dlv-hero__talk {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .dlv-hero {
    min-height: auto;
  }

  .dlv-hero__plate {
    height: 58%;
    object-position: 70% 36%;
    -webkit-mask-image: linear-gradient(to bottom, #000 34%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 34%, transparent 100%);
  }

  .dlv-hero::before,
  .dlv-hero::after {
    display: none;
  }

  .dlv-hero .page-hero__inner {
    padding-top: clamp(220px, 60vw, 300px);
  }
}

/* ── your orders ───────────────────────────── */

.dlv-mine__list {
  display: grid;
  gap: 6px;
}

.dlv-mine__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.dlv-mine__row:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-1px);
}

.dlv-mine__id {
  font-weight: 640;
  color: var(--ink-3);
}

.dlv-mine__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dlv-mine__meta {
  font-size: 0.875rem;
  color: var(--ink-2);
}

@media (max-width: 700px) {
  .dlv-mine__row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dlv-mine__meta,
  .dlv-mine__row .status {
    grid-column: 2;
    justify-self: start;
  }
}

/* ── offers: one slab per package ──────────── */

.dlv-offers__list {
  display: grid;
  gap: 14px;
}

.dlv-offer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  border-radius: var(--r-panel);
  background: var(--surface);
  overflow: hidden;
}

.dlv-offer.is-featured {
  box-shadow: 0 0 0 1.5px var(--accent) inset, var(--shadow-float);
}

.dlv-offer__main {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(24px, 3vw, 40px);
}

.dlv-offer__flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 640;
  color: var(--accent-ink);
}

.dlv-offer__flag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dlv-offer__name {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 660;
  font-stretch: 88%;
  letter-spacing: -0.022em;
  line-height: 1.1;
}

.dlv-offer__tag {
  color: var(--ink-2);
  max-width: 40ch;
}

.dlv-offer__price {
  display: grid;
  margin-top: 8px;
}

.dlv-offer__prefix {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
}

.dlv-offer__amount {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 340;
  font-stretch: 84%;
  letter-spacing: -0.045em;
}

.dlv-offer__terms {
  display: grid;
  gap: 0;
  margin: 8px 0 14px;
  border-top: 1px solid var(--line-soft);
}

.dlv-offer__terms > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.dlv-offer__terms dt {
  color: var(--ink-3);
}

.dlv-offer__terms dd {
  margin: 0;
  font-weight: 560;
}

.dlv-offer__cta {
  justify-self: start;
}

.dlv-offer__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface-2);
}

.dlv-offer.is-featured .dlv-offer__lists {
  background: color-mix(in oklab, var(--accent-soft) 46%, var(--surface-2));
}

.dlv-offer__k {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 640;
  color: var(--ink-2);
}

.dlv-offer__inc,
.dlv-offer__exc {
  display: grid;
  gap: 9px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.dlv-offer__inc li,
.dlv-offer__exc li {
  position: relative;
  padding-left: 22px;
}

.dlv-offer__inc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--held);
  border-bottom: 1.6px solid var(--held);
  transform: rotate(-45deg);
}

.dlv-offer__exc li {
  color: var(--ink-2);
}

.dlv-offer__exc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 10px;
  height: 1.5px;
  background: var(--ink-3);
}

.dlv-offer--skel {
  display: block;
  padding: 32px;
  min-height: 260px;
}

@media (max-width: 960px) {
  .dlv-offer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dlv-offer__lists {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ── typical jobs ──────────────────────────── */

.dlv-jobs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dlv-jobs__list li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 1.0625rem;
  font-weight: 540;
}

/* ── how it works: where the money waits ───── */

.dlv-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 var(--gutter);
}

.dlv-step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dlv-step.is-held {
  border-top: 2px solid var(--held);
  padding-top: 17px;
}

.dlv-step__n {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 320;
  font-stretch: 84%;
  letter-spacing: -0.04em;
  color: var(--ink-3);
}

.dlv-step.is-held .dlv-step__n {
  color: var(--held);
}

.dlv-step__t {
  font-size: 1.0625rem;
  font-weight: 640;
  line-height: 1.3;
}

.dlv-step p {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.dlv-steps__held {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 var(--gutter);
  margin-top: 22px;
}

.dlv-steps__held span {
  grid-column: 3 / -1;
  position: relative;
  padding-top: 14px;
  font-size: 0.875rem;
  font-weight: 620;
  color: var(--held);
  text-align: center;
}

/* a hairline bracket under steps 3–5 */
.dlv-steps__held span::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  border: 1.5px solid color-mix(in oklab, var(--held) 70%, transparent);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

@media (max-width: 900px) {
  .dlv-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dlv-step {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 16px;
  }

  .dlv-step__n {
    grid-row: span 2;
  }

  .dlv-steps__held {
    display: block;
    margin-top: 16px;
  }

  .dlv-steps__held span {
    display: block;
    text-align: left;
    padding: 0 0 0 16px;
  }

  .dlv-steps__held span::before {
    inset: 0 auto 0 0;
    width: 0;
    height: auto;
    border: 0;
    border-left: 2px solid var(--held);
    border-radius: 0;
  }
}

/* ── FAQ ───────────────────────────────────── */

.dlv-faq__side {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.dlv-faq__side .t-h2 {
  color: var(--ink);
}

/* ── alternative ───────────────────────────── */

.dlv-alt {
  margin: 0 var(--tank-inset);
}

.dlv-alt__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(36px, 5vw, 64px);
  border-radius: var(--r-tank);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, color-mix(in oklab, var(--lilac) 18%, transparent), transparent 70%),
    var(--surface);
}

.dlv-alt__inner .t-body {
  margin-top: 8px;
  max-width: 58ch;
}

/* ── disabled / error ──────────────────────── */

.dlv-state__panel {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-panel);
  background: var(--surface);
}

/* ── order view ────────────────────────────── */

.dlv-order-view {
  min-height: 70svh;
  padding-top: calc(var(--header-h) + var(--tank-inset) + 40px);
  padding-bottom: 40px;
}

.dlv-order__crumbs {
  margin-bottom: 22px;
}

.dlv-order__banner {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: var(--r-control);
  background: var(--held-soft);
  font-weight: 560;
}

.dlv-order__banner--warn {
  background: var(--warn-soft);
}

.dlv-order__banner--ok {
  background: var(--ok-soft);
}

.dlv-order__head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.dlv-order__id {
  font-weight: 620;
  color: var(--ink-3);
}

.dlv-order__title {
  max-width: 24ch;
}

.dlv-order__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.dlv-order__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.dlv-order__facts > div {
  display: flex;
  gap: 8px;
  font-size: 0.9375rem;
}

.dlv-order__facts dt {
  color: var(--ink-3);
}

.dlv-order__facts dd {
  margin: 0;
  font-weight: 600;
}

.dlv-order__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 18px;
  align-items: start;
}

.dlv-order__main {
  display: grid;
  gap: 14px;
}

.dlv-order__side {
  position: sticky;
  top: calc(var(--header-h) + 36px);
  display: grid;
  gap: 14px;
}

.dlv-panel,
.dlv-route,
.dlv-team {
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.dlv-panel > .t-h4,
.dlv-team > .t-h4 {
  margin-bottom: 8px;
}

.dlv-panel > p {
  color: var(--ink-2);
  max-width: 64ch;
}

.dlv-panel .cluster {
  margin-top: 18px;
}

.dlv-panel--pay .btn,
.dlv-panel--review .btn {
  margin-top: 4px;
}

.dlv-panel--pay {
  box-shadow: 0 0 0 1.5px var(--held) inset;
}

.dlv-panel--review {
  box-shadow: 0 0 0 1.5px var(--accent) inset;
}

.dlv-panel--scope {
  background: color-mix(in oklab, var(--warn-soft) 70%, var(--surface));
}

.dlv-panel__note {
  margin-top: 12px;
}

.dlv-panel__k {
  margin: 18px 0 8px;
  font-size: 0.8125rem;
  font-weight: 640;
  color: var(--ink-2);
}

.dlv-brief {
  white-space: pre-wrap;
  color: var(--ink);
}

.dlv-criteria {
  display: grid;
  gap: 8px;
}

.dlv-criteria li {
  position: relative;
  padding-left: 24px;
}

.dlv-criteria li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 11px;
  height: 11px;
  border-radius: 4px;
  box-shadow: 0 0 0 1.5px var(--line-strong) inset;
}

.dlv-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.dlv-asset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--r-control);
  background: var(--surface-2);
  font-weight: 580;
  font-size: 0.9375rem;
  transition: background-color var(--t-fast);
}

a.dlv-asset:hover {
  background: var(--held-soft);
}

.dlv-solution {
  margin: 16px 0 0;
  padding: 18px 20px;
  max-height: 460px;
  overflow: auto;
  border-radius: var(--r-card);
  background: var(--surface-2);
  font-size: 0.9375rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* the order route: one line from brief to release */
.dlv-route__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dlv-route__list {
  display: grid;
}

.dlv-route__ev {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}

.dlv-route__ev:not(.is-last)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 0;
  width: 1.5px;
  background: color-mix(in oklab, var(--held) 50%, var(--line));
}

.dlv-route__dot {
  width: 12px;
  height: 12px;
  margin: 4px 0 0 3px;
  border-radius: 50%;
  background: var(--held);
}

.dlv-route__ev.is-last .dlv-route__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}

.dlv-route__label {
  font-weight: 620;
  font-size: 0.9375rem;
}

.dlv-route__detail {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.dlv-route__at {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.dlv-route__next {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.dlv-team p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.dlv-team .cluster {
  margin-top: 14px;
}

.dlv-order__gate {
  max-width: 640px;
}

.dlv-order__missing {
  border-radius: var(--r-panel);
  background: var(--surface);
}

/* order conversation */
.dlv-chat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.dlv-chat__status {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.dlv-chat__older {
  margin-top: 8px;
}

.dlv-chat__log {
  display: grid;
  gap: 10px;
  max-height: 380px;
  min-height: 80px;
  margin: 14px 0;
  padding: 4px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dlv-chat__empty {
  padding: 22px 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.dlv-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 6px;
  background: var(--surface-2);
}

.dlv-msg.is-mine {
  justify-self: end;
  border-radius: 16px 16px 6px 16px;
  background: color-mix(in oklab, var(--held-soft) 80%, var(--surface));
}

.dlv-msg.is-awwo {
  background: color-mix(in oklab, var(--data-3) 14%, var(--surface-2));
}

.dlv-msg__who {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 620;
  color: var(--ink-2);
}

.dlv-msg__who time {
  font-weight: 460;
  color: var(--ink-3);
}

.dlv-msg__preview {
  color: var(--warn);
}

.dlv-msg__body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
}

.dlv-chat__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.dlv-chat__input {
  min-height: 52px;
  resize: vertical;
}

@media (max-width: 960px) {
  .dlv-order__grid {
    grid-template-columns: 1fr;
  }

  .dlv-order__side {
    position: static;
  }
}

/* ── intake dialog ─────────────────────────── */

.dlv-intake__panel {
  display: grid;
  gap: 18px;
}

.dlv-intake__head {
  display: grid;
  gap: 6px;
  padding-right: 44px;
}

.dlv-intake__offer {
  font-size: 0.875rem;
  font-weight: 640;
  color: var(--held);
}

.dlv-intake__note {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.dlv-intake__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.dlv-intake__wide {
  grid-column: 1 / -1;
}

.dlv-intake__criteria {
  min-height: 96px;
}

.dlv-req {
  color: var(--accent-ink);
}

.dlv-intake__privacy {
  padding: 14px 16px;
  border-radius: var(--r-control);
  background: var(--surface-2);
  color: var(--ink-2);
}

.dlv-intake__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.dlv-rework__lede {
  margin: 8px 0 18px;
}

@media (max-width: 640px) {
  .dlv-intake__grid {
    grid-template-columns: 1fr;
  }

  .dlv-intake__actions .btn--lg {
    flex: 1;
  }
}

/* ── section rhythm ────────────────────────── */

.dlv-offers {
  padding-bottom: var(--section-tight);
}

.dlv-how,
.dlv-faq {
  padding-block: var(--section-tight);
}
