/* Shared hero, FAQ and closing rules come from landing_pages.css. */
.dl-design { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 4px; }
.dl-sheet { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.dl-item { position: absolute; white-space: nowrap; }
.dl-item img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.dl-shot { display: block; width: 100%; height: auto; border-radius: 4px; }

.marketing .dl-title { margin: 0; color: var(--ink); font: 400 clamp(34px, 3.9vw, 47px)/1.12 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.dl-copy { max-width: 42ch; margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* Hero: the first design assembles from its own layers. */
.marketing .hero { overflow: hidden; }
.dl-stack { position: relative; width: min(100%, 470px); margin: 64px auto; aspect-ratio: 1080 / 1350; perspective: 1700px; }
.dl-stack-plane { position: absolute; inset: 0; transform-style: preserve-3d; animation: dl-settle 1.5s cubic-bezier(.65, 0, .2, 1) .7s both; }
.dl-stack-layer { position: absolute; inset: 0; overflow: hidden; }
.dl-stack-layer img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.dl-stack-layer[data-layer="art"] img { left: 39.815%; top: -.741%; width: 57.407%; }
.dl-stack-layer[data-layer="paper"] { background: #123F9E; box-shadow: 0 34px 70px #1b1a4a38; }
.dl-stack-layer[data-layer="art"] { animation: dl-lift-art 1.5s cubic-bezier(.65, 0, .2, 1) .7s both; }
.dl-stack-layer[data-layer="type"] { animation: dl-lift-type 1.5s cubic-bezier(.65, 0, .2, 1) .7s both; }
@keyframes dl-settle { from { transform: rotateX(50deg) rotateZ(-34deg) scale(.86); } to { transform: none; } }
@keyframes dl-lift-art { from { transform: translateZ(120px); } to { transform: none; } }
@keyframes dl-lift-type { from { transform: translateZ(240px); } to { transform: none; } }

/* Formats: every size at its true proportions, no frames. */
.dl-formats { padding-block: 112px 0; }
.dl-formats .dl-title { margin-bottom: 44px; }
.dl-wall { display: grid; grid-template-columns: 424fr 752fr; gap: 24px; }
.dl-wall-side { display: grid; gap: 28px; align-content: space-between; }
.dl-wall-row { display: flex; gap: 24px; }
.dl-wall-row .dl-format { flex: var(--ratio) 1 0; }
.dl-format { display: block; min-width: 0; color: var(--ink); transition: transform .28s ease; }
.dl-format:hover { text-decoration: none; transform: translateY(-4px); }
.dl-format span { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.dl-format:hover span { text-decoration: underline; text-underline-offset: .2em; }

/* Studio: one design stays put while each idea changes it. */
.dl-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; padding-top: 104px; }
.dl-studio-stage { position: sticky; top: 104px; align-self: start; display: flex; justify-content: center; }
.dl-live { position: relative; flex: none; width: min(100%, 600px, calc((100vh - 136px) * .8)); aspect-ratio: 1080 / 1350; box-shadow: 0 26px 60px #302a312e; }
.dl-live .dl-sheet { transition: background-color .45s ease; }
.dl-live .dl-text { transition: color .45s ease; }
.dl-live .dl-image { transition: left .55s cubic-bezier(.4, 0, .2, 1), top .55s cubic-bezier(.4, 0, .2, 1), width .55s cubic-bezier(.4, 0, .2, 1), height .55s cubic-bezier(.4, 0, .2, 1), opacity .3s ease; }
.dl-live[data-dragging] .dl-item { transition: none; }
.dl-live[data-mode="move"] .dl-image, .dl-live[data-mode="move"] .dl-text { cursor: grab; touch-action: none; }
.dl-live[data-mode="move"] .dl-image { animation: dl-nudge .9s ease .2s 1; }
@media (hover: hover) { .dl-live[data-mode="move"] .dl-item:hover { outline: 2px solid #ffffff99; outline-offset: 4px; } }
@keyframes dl-nudge { 35% { transform: translate(-14px, 10px); } 70% { transform: translate(6px, -4px); } }
.dl-live[data-dragging] .dl-item { cursor: grabbing; }
.dl-working { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.dl-live[data-working] .dl-working { opacity: 1; }
.dl-steps { min-width: 0; }
.dl-step { display: flex; flex-direction: column; justify-content: center; min-height: min(84vh, 720px); }
.dl-step:last-child { min-height: min(70vh, 620px); }

.dl-input { width: 100%; max-width: 420px; height: 52px; margin-top: 26px; padding: 0 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; font: 400 17px var(--sans); outline: 0; }
.dl-input:focus { border-color: var(--purple); }
.dl-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dl-choices + .dl-choices { margin-top: 10px; }
.dl-choice { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; font: 400 15px var(--sans); cursor: pointer; transition: background-color .18s, border-color .18s; }
.dl-choice:hover { background: var(--surface); }
.dl-choice[aria-pressed="true"] { border-color: var(--purple); background: var(--surface); }
.dl-swatch { display: inline-flex; }
.dl-swatch i { width: 15px; height: 15px; margin-left: -4px; border-radius: 50%; border: 1px solid #0000001a; }
.dl-swatch i:first-child { margin-left: 0; }
.dl-art-choices { display: flex; gap: 12px; margin-top: 26px; }
.dl-art-choice { width: 104px; height: 104px; padding: 10px; background: #123F9E; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: border-color .18s, transform .18s, background-color .45s; }
.dl-art-choice img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dl-art-choice:hover { transform: translateY(-2px); }
.dl-art-choice[aria-pressed="true"] { border-color: var(--purple); }

/* The prompts reuse the editor's composer proportions and send arrow. */
.dl-asks { display: grid; gap: 8px; max-width: 440px; margin-top: 26px; }
.dl-ask { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 7px 8px 7px 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; font: 400 16px/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .18s; }
.dl-ask:hover { border-color: var(--purple); }
.dl-ask i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--purple); }
.dl-ask svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-step .primary, .dl-step .secondary { align-self: flex-start; margin-top: 28px; }

/* Sketch: one frame, wiped between the drawing and the design. */
.dl-sketch { padding-top: 104px; }
.dl-sketch-head { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.dl-sketch-head .dl-copy { margin: 0 0 4px; }
.dl-wipe { position: relative; --at: 62%; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 4px; touch-action: pan-y; }
.dl-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dl-wipe-sketch { position: absolute; inset: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); clip-path: inset(0 calc(100% - var(--at)) 0 0); }
.dl-wipe-line { position: absolute; top: 0; bottom: 0; left: var(--at); width: 2px; margin-left: -1px; background: #ffffffd9; pointer-events: none; }
.dl-wipe-grip { position: absolute; top: 50%; left: var(--at); display: grid; place-items: center; width: 46px; height: 46px; margin: -23px; color: #fff; background: #000000a3; border-radius: 50%; pointer-events: none; }
.dl-wipe-grip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-wipe input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* Variations */
.dl-variations { padding-top: 112px; }
.dl-variations .dl-title { margin-bottom: 40px; }
.dl-variation-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.dl-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 66px; padding-block: 120px 40px; }

@media (max-width: 1050px) {
  .dl-studio { gap: 48px; }
  .dl-sketch-head { display: block; }
  .dl-sketch-head .dl-copy { margin-top: 12px; }
}
@media (max-width: 760px) {
  .dl-stack { width: min(78%, 320px); margin-block: 8px 56px; }
  .dl-formats { padding-top: 68px; }
  .dl-formats .dl-title { margin-bottom: 30px; }
  .dl-wall, .dl-wall-side { gap: 26px; }
  .dl-wall { grid-template-columns: minmax(0, 1fr); }
  .dl-wall > .dl-format { width: 72%; }
  .dl-wall-row { flex-direction: column; gap: 26px; }
  .dl-wall-row .dl-format { flex: none !important; }
  .marketing .dl-title { font-size: 35px; }
  .dl-copy { font-size: 16px; }

  /* The design stays pinned above the controls on phones. */
  .dl-studio { display: block; padding-top: 60px; }
  .dl-studio-stage { top: 64px; z-index: 2; padding-block: 10px; background: var(--canvas); }
  .dl-live { width: min(100%, calc(44vh * .8)); box-shadow: 0 12px 28px #302a3129; }
  .dl-step, .dl-step:last-child { justify-content: flex-start; min-height: 56vh; padding-block: 28px 12px; }
  .dl-art-choice { width: 92px; height: 92px; }
  .dl-sketch, .dl-variations { padding-top: 64px; }
  .dl-sketch-head { margin-bottom: 24px; }
  .dl-variations .dl-title { margin-bottom: 26px; }
  .dl-variation-row { display: flex; gap: 14px; margin-inline: -20px; padding-inline: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .dl-variation-row > * { flex: 0 0 78%; scroll-snap-align: center; }
  .dl-faq { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 76px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-stack-plane, .dl-stack-layer { animation: none !important; transform: none !important; }
  .dl-format, .dl-art-choice, .dl-live .dl-item, .dl-live .dl-sheet { transition: none; }
}
