/* =============================================
   /mcp and /api (scripts: assets/js/dev-pages.js)
   Built on Demosmith's own system, the one /interactive-demos uses: neutral ink, #4043FF as an
   accent only, a soft grey base alternating with white, pill eyebrows with a blue icon, Instrument
   Sans headings with an Instrument Serif italic second line, one dark section and a dark close.
   product-films.css still loads for the product screens drawn in code (.pff-win, .ab, .no, .ca, .tf, .pf-mk).
============================================= */
:root {
    --dv-ink: rgb(18, 18, 18);
    --dv-ink-2: rgb(92, 92, 92);
    --dv-ink-3: rgb(110, 110, 110);
    --dv-blue: #4043ff;
    --dv-blue-soft: rgba(64, 67, 255, 0.08);
    --dv-line: rgba(0, 0, 0, 0.08);
    --dv-surface: #ffffff;
    --dv-base: rgb(246, 246, 246);
    --dv-dark: #0e0e10;
    --dv-green: #16a34a;
    --dv-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.05);
    --dv-lift-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 18px 44px rgba(0, 0, 0, 0.1);
    --dv-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── SHELLS (same rhythm as /interactive-demos) ── */
.dv-sec { padding: 116px 24px; position: relative; }
.dv-wrap { max-width: 1120px; margin: 0 auto; width: 100%; }
.dv-white { background: var(--dv-surface); }
.dv-base { background: var(--dv-base); }
.dv-head { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; margin-bottom: 56px; }
.dv-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 100px; background: #fff; border: 1px solid var(--dv-line); font: 600 13px/1.4 "Instrument Sans", sans-serif; color: var(--dv-ink-2); letter-spacing: -0.01em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.dv-eyebrow svg { width: 14px; height: 14px; color: var(--dv-blue); }
.dv-white .dv-eyebrow { background: var(--dv-base); }
.dv-h2 { font-family: "Instrument Sans", sans-serif; font-size: clamp(32px, 4.4vw, 50px); font-weight: 500; letter-spacing: -0.032em; line-height: 1.08; color: var(--dv-ink); max-width: 780px; }
.dv-h2 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }
.dv-lede { font: 400 18px/1.65 "Inter", sans-serif; color: var(--dv-ink-2); max-width: 620px; }
.dv-p { font: 400 16px/1.7 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-p strong { color: var(--dv-ink); font-weight: 600; }
.dv-link { color: var(--dv-ink); font-weight: 500; border-bottom: 1px solid rgba(0, 0, 0, 0.2); text-decoration: none; }
.dv-link:hover { color: var(--dv-blue); border-color: var(--dv-blue); }
.dv code { font: 400 0.88em var(--dv-mono); padding: 1px 6px; border-radius: 5px; background: var(--dv-base); color: var(--dv-ink); }
.dv-white code { background: var(--dv-base); }
.dv-base code { background: #fff; }

/* ── HERO ── */
.dv-hero { padding: 150px 24px 96px; position: relative; overflow: hidden; background: var(--dv-base); }
.dv-hero::before { content: ""; position: absolute; top: -260px; left: 50%; transform: translateX(-50%); width: 1100px; height: 620px; pointer-events: none; background: radial-gradient(ellipse at center, rgba(64, 67, 255, 0.1) 0%, rgba(64, 67, 255, 0) 62%); }
.dv-hero-inner { max-width: 1120px; margin: 0 auto; position: relative; display: flex; flex-direction: column; align-items: center; gap: 52px; }
.dv-hero-copy { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; max-width: 820px; }
.dv-hero-title { font-family: "Instrument Sans", sans-serif; font-size: clamp(44px, 6.6vw, 78px); font-weight: 500; letter-spacing: -0.038em; line-height: 1.02; color: var(--dv-ink); animation: fadeInUp 0.75s 0.08s ease both; }
.dv-hero-title em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; position: relative; white-space: nowrap; }
.dv-hero-title em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: 0.06em; height: 0.09em; background: var(--dv-blue); border-radius: 99px; opacity: 0.22; transform: scaleX(0); transform-origin: left; animation: dvUnderline 0.9s 1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
@keyframes dvUnderline { to { transform: scaleX(1); } }
.dv-hero-sub { font: 400 19px/1.62 "Inter", sans-serif; color: var(--dv-ink-2); max-width: 610px; animation: fadeInUp 0.75s 0.2s ease both; }
.dv-hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; animation: fadeInUp 0.75s 0.3s ease both; }
.dv-works { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; animation: fadeInUp 0.75s 0.38s ease both; }
.dv-works > span:first-child { font: 400 14px/1 "Inter", sans-serif; color: var(--dv-ink-3); margin-right: 4px; }
.dv-app { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--dv-line); font: 500 13.5px/1 "Instrument Sans", sans-serif; color: var(--dv-ink); }
.dv-app img, .dv-app svg { width: 17px; height: 17px; }
.dv-hero-note { font: 400 14px/1.4 "Inter", sans-serif; color: var(--dv-ink-3); display: flex; align-items: center; gap: 8px; animation: fadeInUp 0.75s 0.38s ease both; }
.dv-hero-note svg { width: 15px; height: 15px; color: var(--dv-green); flex-shrink: 0; }

/* the app frame that holds the hero moment */
.dv-stage { width: 100%; animation: dvStage 1s 0.5s cubic-bezier(0.2, 0.85, 0.3, 1) both; }
@keyframes dvStage { from { opacity: 0; transform: translateY(24px) scale(0.985); } to { opacity: 1; transform: none; } }
.dv-frame { background: #fff; border-radius: 18px; border: 1px solid var(--dv-line); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 80px -20px rgba(40, 42, 120, 0.22); overflow: hidden; text-align: left; }
.dv-frame-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--dv-line); }
.dv-dots { display: inline-flex; gap: 6px; }
.dv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e6e6e6; }
.dv-dots i:nth-child(1) { background: #ff5f57; } .dv-dots i:nth-child(2) { background: #febc2e; } .dv-dots i:nth-child(3) { background: #28c840; }
.dv-frame-url { flex: 1; max-width: 340px; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: var(--dv-base); font: 400 12px/1 "Inter", sans-serif; color: var(--dv-ink-3); white-space: nowrap; overflow: hidden; }
.dv-frame-url svg { width: 11px; height: 11px; color: var(--dv-green); flex-shrink: 0; }
.dv-frame-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.dv-pick { display: flex; justify-content: center; margin-top: 18px; }
.dv-stage-note { margin-top: 14px; text-align: center; font: 400 13px/1.5 "Inter", sans-serif; color: var(--dv-ink-3); }

/* product picker under the frame */
.dp-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: #fff; border: 1px solid var(--dv-line); box-shadow: var(--dv-card-shadow); flex-wrap: wrap; justify-content: center; }
.dp-tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px; border: 0; background: transparent; color: var(--dv-ink-2); font: 500 13.5px/1 "Instrument Sans", sans-serif; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.dp-tab small { display: none; }
.dp-tab .pf-mk { width: 20px; height: 20px; }
.dp-tab:hover { color: var(--dv-ink); }
.dp-tab[aria-pressed="true"] { background: var(--dv-base); color: var(--dv-ink); }
.dp-tab i { position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; transform: scaleX(0); transform-origin: left; background: var(--dv-blue); opacity: 0.5; }
.dp-tab[aria-pressed="true"] i { animation: dvFill var(--d, 12s) linear forwards; }
@keyframes dvFill { to { transform: scaleX(1); } }
.dp-tab:focus-visible, .dp-seg button:focus-visible, .dp-copy:focus-visible, .dp-stab:focus-visible, .dv-faq-q:focus-visible { outline: 2px solid var(--dv-blue); outline-offset: 2px; }

/* ── CHAT (left of the frame) ── */
.dp-chat { display: flex; flex-direction: column; height: 520px; border-right: 1px solid var(--dv-line); background: #fff; min-width: 0; }
.dp-chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.dp-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--dv-base); }
.dp-seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: 500 13px/1 "Inter", sans-serif; color: var(--dv-ink-3); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.dp-seg button[aria-pressed="true"] { background: #fff; color: var(--dv-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.dp-conn { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 "Inter", sans-serif; color: var(--dv-ink-2); }
.dp-conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--dv-green); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14); }
.dp-chat-body { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 12px 16px 6px; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px); }
.dp-chat-feed { display: flex; flex-direction: column; gap: 12px; }
.dp-chat-body.fade .dp-chat-feed { opacity: 0; transition: opacity 0.25s ease; }
.dp-composer { display: flex; align-items: center; gap: 10px; margin: 8px 12px 12px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px solid var(--dv-line); background: var(--dv-base); min-height: 48px; font: 400 14px/1.4 "Inter", sans-serif; color: var(--dv-ink); }
.dp-typed { flex: 1; min-width: 0; }
.dp-ph { color: var(--dv-ink-3); }
.dp-send { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: #d6d6d6; color: #fff; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.15s; }
.dp-send svg { width: 16px; height: 16px; }
.dp-send.ready { background: var(--dv-ink); }
.dp-send.press { transform: scale(0.9); }
.pf-caret { background: var(--dv-ink); }
.dp-msg { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.85, 0.3, 1); }
.dp-msg.in { opacity: 1; transform: none; }
.dp-msg--user { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--dv-ink); font: 400 14px/1.5 "Inter", sans-serif; color: #fff; }
.dp-msg--ai { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font: 400 14px/1.55 "Inter", sans-serif; color: var(--dv-ink); }
.dp-who { font: 600 12px/1 "Instrument Sans", sans-serif; color: var(--dv-ink-3); }
.dp-call { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 7px 9px; border-radius: 99px; background: var(--dv-base); font: 500 13px/1 "Inter", sans-serif; color: var(--dv-ink); }
.dp-call em { font-style: normal; font-weight: 400; color: var(--dv-ink-3); }
.dp-st { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #dedede; border-top-color: var(--dv-blue); animation: dvSpin 0.8s linear infinite; flex-shrink: 0; position: relative; }
.dp-call.done .dp-st { animation: none; border: 0; background: var(--dv-green); }
.dp-call.done .dp-st::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.dp-call.wait .dp-st { animation: none; border: 0; background: #f59e0b; }
.dp-call.wait .dp-st::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 2px; height: 8px; border-radius: 1px; background: #fff; box-shadow: none; }
@keyframes dvSpin { to { transform: rotate(360deg); } }
.dp-task { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dv-line); font: 400 12.5px/1.45 "Inter", sans-serif; color: var(--dv-ink-3); }
.dp-task b { font-weight: 500; color: var(--dv-ink); display: inline-flex; align-items: center; gap: 7px; }
.dp-task .pf-mk { width: 16px; height: 16px; border-radius: 4px; font-size: 9px; }
.dp-ready { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 12px; border: 1px solid rgba(64, 67, 255, 0.22); background: var(--dv-blue-soft); color: var(--dv-ink); font: 500 13px/1.2 "Inter", sans-serif; }
.dp-ready i { width: 28px; height: 28px; border-radius: 8px; background: var(--dv-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dp-ready i::after { content: ""; margin-left: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.dp-ready small { display: block; margin-top: 3px; font: 400 12px/1 "Inter", sans-serif; color: var(--dv-ink-2); }

/* ── DEMO PANEL (right of the frame): the Demosmith demo page, small ── */
.ds-screen { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px; background: var(--dv-base); min-width: 0; }
.ds-screen-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 15px/1.3 "Instrument Sans", sans-serif; color: var(--dv-ink); letter-spacing: -0.01em; min-width: 0; }
.ds-screen-h > span:first-child { display: inline-flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-screen-h img { width: 20px; height: 20px; border-radius: 6px; }
.ds-badge { flex-shrink: 0; padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--dv-line); color: var(--dv-ink-2); font: 500 12px/1 "Inter", sans-serif; }
.ds-screen-f { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font: 400 13px/1.3 "Inter", sans-serif; color: var(--dv-ink-3); }
.ds-screen-f b { font-weight: 600; color: var(--dv-ink); }

/* the finished video, drawn */
.dp-vid { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; isolation: isolate; border-radius: 12px; background: linear-gradient(160deg, var(--light, #e8e8ff), #f8f8fb 72%); box-shadow: 0 0 0 1px var(--dv-line), var(--dv-card-shadow); }
.dp-vid .pff-win { left: 9cqw; top: 3.4cqw; width: 82cqw; }
.dp-vid .pff-screen { transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.3, 1), filter 0.5s ease; }
.dp-cap { position: absolute; left: 50%; bottom: 5cqw; z-index: 25; transform: translateX(-50%); max-width: 76cqw; padding: 1cqw 2cqw; border-radius: 1cqw; background: rgba(18, 18, 18, 0.85); color: #fff; font: 500 2.5cqw/1.35 "Inter", sans-serif; text-align: center; opacity: 0; transition: opacity 0.3s; }
.dp-cap.on { opacity: 1; }
.dp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 0.9cqw; min-height: 3px; background: rgba(0, 0, 0, 0.08); z-index: 26; }
.dp-bar i { display: block; height: 100%; width: 0; background: var(--brand, var(--dv-blue)); }
.dp-vid.play .dp-bar i { transition: width var(--len, 4s) linear; width: 100%; }
.dp-play { position: absolute; inset: 0; z-index: 27; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s; }
.dp-play i { width: 12cqw; height: 12cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.96); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; }
.dp-play i::after { content: ""; margin-left: 1cqw; border-style: solid; border-width: 2.4cqw 0 2.4cqw 3.9cqw; border-color: transparent transparent transparent var(--dv-ink); }
.dp-vid.play .dp-play, .dp-vid.making .dp-play { opacity: 0; }
.dp-making { position: absolute; inset: 0; z-index: 28; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.dp-vid.making .dp-making { opacity: 1; }
.dp-vid.making .pff-screen, .dp-vid.making .pff-chrome { filter: blur(6px) saturate(0.7); }
.dp-vid.idle .pff-win { opacity: 0.3; filter: grayscale(1); }
.dp-steps { display: flex; flex-direction: column; gap: 1.6cqw; padding: 3cqw 3.6cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.97); box-shadow: 0 2cqw 5cqw -1cqw rgba(0, 0, 0, 0.25); min-width: 44cqw; }
.dp-step { display: flex; align-items: center; gap: 1.8cqw; font: 500 2.6cqw/1.2 "Inter", sans-serif; color: var(--dv-ink-3); transition: color 0.2s; }
.dp-step i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; border: 0.4cqw solid #e2e2e2; flex-shrink: 0; transition: background-color 0.2s, border-color 0.2s; }
.dp-step.on { color: var(--dv-ink); }
.dp-step.on i { border-top-color: var(--dv-blue); animation: dvSpin 0.8s linear infinite; }
.dp-step.done { color: var(--dv-ink); }
.dp-step.done i { border-color: var(--dv-green); background: var(--dv-green); }

/* ── CODE (the /api frame and samples) ── */
.dp-pane { display: flex; flex-direction: column; background: var(--dv-dark); min-width: 0; }
.dp-pane-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 500 12px/1 "Inter", sans-serif; color: rgba(255, 255, 255, 0.5); }
.dp-pane-h b { color: #fff; font-weight: 500; }
.dp-pane pre, .dp-code pre { margin: 0; padding: 18px; font: 400 12.5px/1.75 var(--dv-mono); color: #e4e4ea; white-space: pre; overflow-x: auto; }
.dp-pane pre { white-space: pre-wrap; word-break: break-word; }
.k { color: #a9abff; } .s { color: #a7e3b5; } .n { color: #f6c58d; } .c { color: rgba(255, 255, 255, 0.45); }
.dp-status { padding: 3px 7px; border-radius: 6px; background: rgba(167, 227, 181, 0.14); color: #a7e3b5; font: 500 11px/1 var(--dv-mono); }
.dp-resp { border-top: 1px solid rgba(255, 255, 255, 0.08); opacity: 0.25; transition: opacity 0.3s; }
.dp-resp.on { opacity: 1; }
.dv-api-panel { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px; background: var(--dv-base); min-width: 0; }
.dp-events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dp-ev { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--dv-line); font: 600 12px/1.25 "Instrument Sans", sans-serif; color: var(--dv-ink-3); opacity: 0.45; transition: opacity 0.3s, border-color 0.3s; min-width: 0; }
.dp-ev b { font-weight: 600; color: var(--dv-ink); }
.dp-ev small { font: 400 11.5px/1.3 "Inter", sans-serif; color: var(--dv-ink-3); }
.dp-ev i { width: 8px; height: 8px; border-radius: 50%; background: #d8d8d8; }
.dp-ev.on { opacity: 1; }
.dp-ev.on i { background: var(--dv-green); }
.dp-ev.wait { border-color: rgba(64, 67, 255, 0.35); }
.dp-ev.wait i { background: var(--dv-blue); }
.dp-done { display: flex; flex-direction: column; gap: 12px; }

/* copy buttons and code blocks */
.dp-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--dv-line); background: #fff; font: 500 12.5px/1 "Instrument Sans", sans-serif; color: var(--dv-ink-2); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.dp-copy svg { width: 13px; height: 13px; }
.dp-copy:hover { color: var(--dv-ink); border-color: rgba(0, 0, 0, 0.25); }
.dp-copy.ok { color: var(--dv-green); border-color: var(--dv-green); }
.dp-code { position: relative; border-radius: 14px; background: var(--dv-dark); overflow: hidden; min-width: 0; box-shadow: var(--dv-card-shadow); }
.dp-code:has(.dp-copy) pre { padding-top: 50px; }
.dp-code .dp-copy { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.6); }
.dp-code .dp-copy:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.dp-code .dp-copy.ok { color: #a7e3b5; border-color: #a7e3b5; }
.dp-url { display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 16px; border-radius: 99px; border: 1px solid var(--dv-line); background: #fff; font: 500 14.5px/1 var(--dv-mono); color: var(--dv-ink); max-width: 100%; box-shadow: var(--dv-card-shadow); }
.dp-url code { background: none; padding: 0; font-size: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ── CARDS (the site's white card, used where content is a set of equals) ── */
.dv-card { background: #fff; border: 1px solid var(--dv-line); border-radius: 18px; box-shadow: var(--dv-card-shadow); padding: 26px; }
.dv-white .dv-card { background: var(--dv-base); box-shadow: none; }
.dv-card h3 { font: 600 19px/1.3 "Instrument Sans", sans-serif; letter-spacing: -0.02em; color: var(--dv-ink); }
.dv-card p { margin-top: 8px; font: 400 15px/1.65 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 99px; font: 600 12px/1.3 "Instrument Sans", sans-serif; }
.dv-tag svg { width: 13px; height: 13px; }
.dv-tag--no { background: rgba(0, 0, 0, 0.05); color: var(--dv-ink-2); }
.dv-tag--yes { background: var(--dv-blue-soft); color: var(--dv-blue); }

/* without / with */
.dv-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.dv-vs .dv-card { display: flex; flex-direction: column; gap: 14px; }
.dv-vs .dv-card--yes { border-color: rgba(64, 67, 255, 0.28); box-shadow: 0 8px 26px rgba(64, 67, 255, 0.07); }
.dv-vs .dp-msg { opacity: 1; transform: none; }
.dv-script { padding: 12px 14px; border-radius: 12px; background: var(--dv-base); font: 400 13.5px/1.6 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-script b { color: var(--dv-ink); font-weight: 600; }
.dv-left { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--dv-line); font: 400 14px/1.55 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-left strong { color: var(--dv-ink); font-weight: 600; }

/* steps (a real sequence, so they are numbered) */
.dv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dv-step-n { width: 30px; height: 30px; border-radius: 9px; background: var(--dv-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 "Instrument Sans", sans-serif; margin-bottom: 16px; }

/* what comes back: a feature list next to a library card */
.dv-back { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.dv-feats { display: flex; flex-direction: column; gap: 22px; }
.dv-feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.dv-feat-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--dv-blue-soft); border: 1px solid rgba(64, 67, 255, 0.16); color: var(--dv-blue); display: flex; align-items: center; justify-content: center; }
.dv-feat-ic svg { width: 19px; height: 19px; }
.dv-feat h3 { font: 600 17px/1.35 "Instrument Sans", sans-serif; letter-spacing: -0.015em; color: var(--dv-ink); }
.dv-feat p { margin-top: 4px; font: 400 15px/1.6 "Inter", sans-serif; color: var(--dv-ink-2); }
.ds-lib { background: #fff; border: 1px solid var(--dv-line); border-radius: 18px; box-shadow: var(--dv-lift-shadow); padding: 20px 20px 8px; }
.ds-lib-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font: 600 16px/1 "Instrument Sans", sans-serif; color: var(--dv-ink); }
.ds-lib-h span { font: 400 12px/1 "Inter", sans-serif; color: var(--dv-ink-3); }
.ds-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--dv-line); }
.ds-thumb { width: 72px; aspect-ratio: 16 / 10; border-radius: 7px; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; }
.ds-thumb::after { content: ""; position: absolute; left: 14%; top: 20%; right: 14%; bottom: 0; background: #fff; border-radius: 3px 3px 0 0; }
.ds-row b { display: block; font: 500 14px/1.35 "Inter", sans-serif; color: var(--dv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-row small { display: block; margin-top: 2px; font: 400 12px/1.3 "Inter", sans-serif; color: var(--dv-ink-3); }
.ds-row .ds-badge { background: var(--dv-blue-soft); border-color: transparent; color: var(--dv-blue); }

/* ── THE DARK SECTION (as /interactive-demos does it) ── */
.dv-dark { background: var(--dv-dark); padding: 104px 24px; position: relative; overflow: hidden; }
.dv-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 900px 420px at 50% 0%, rgba(64, 67, 255, 0.2) 0%, rgba(64, 67, 255, 0) 65%); }
.dv-dark-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.dv-script-note { font-family: "Caveat", cursive; font-size: 27px; color: #8d8fff; display: block; margin-bottom: 10px; transform: rotate(-1.5deg); }
.dv-dark h2 { font-family: "Instrument Sans", sans-serif; font-size: clamp(30px, 4.4vw, 48px); font-weight: 500; letter-spacing: -0.034em; line-height: 1.1; color: #fff; margin-bottom: 20px; }
.dv-dark h2 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: #a9abff; }
.dv-dark > .dv-dark-inner > p { font: 400 17px/1.7 "Inter", sans-serif; color: rgba(255, 255, 255, 0.62); max-width: 620px; margin: 0 auto; }
.dv-dvs { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; margin-top: 44px; text-align: left; }
.dv-dcard { border-radius: 16px; padding: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; gap: 12px; color: rgba(255, 255, 255, 0.85); font: 400 14px/1.55 "Inter", sans-serif; }
.dv-dcard--ds { background: rgba(64, 67, 255, 0.1); border-color: rgba(141, 143, 255, 0.35); }
.dv-dcap { font: 600 12px/1 "Instrument Sans", sans-serif; color: rgba(255, 255, 255, 0.5); }
.dv-dcard .dp-call { background: rgba(255, 255, 255, 0.08); color: #fff; align-self: flex-start; }
.dv-dcard .dp-call em { color: rgba(255, 255, 255, 0.55); }
.dv-lockbtn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 9px 13px; border-radius: 10px; background: #fff; color: var(--dv-ink); font: 600 13px/1 "Instrument Sans", sans-serif; }
.dv-lockbtn svg { width: 14px; height: 14px; }
.dv-field-l { font: 500 12px/1 "Inter", sans-serif; color: rgba(255, 255, 255, 0.6); }
.dv-field { height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); display: flex; align-items: center; padding: 0 12px; font: 400 14px/1 "Inter", sans-serif; color: #fff; }
.dv-field--pw { letter-spacing: 0.22em; }
.dv-safe { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1.4 "Inter", sans-serif; color: #4ade80; }
.dv-safe svg { width: 14px; height: 14px; }
.dv-arrow { height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, rgba(141, 143, 255, 0.8) 0 6px, transparent 6px 12px); position: relative; }
.dv-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid #8d8fff; border-right: 0; }
.dv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 30px; }
.dv-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 99px; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.11); font: 500 13.5px/1.3 "Instrument Sans", sans-serif; color: rgba(255, 255, 255, 0.82); }
.dv-chip svg { width: 14px; height: 14px; color: #8d8fff; }

/* prompt ideas */
.dv-prompts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dv-prompt { display: flex; flex-direction: column; gap: 14px; }
.dv-prompt .dv-for { font: 600 13px/1.3 "Instrument Sans", sans-serif; color: var(--dv-blue); }
.dv-prompt q { quotes: none; font: 400 15.5px/1.6 "Inter", sans-serif; color: var(--dv-ink); }
.dv-prompt q::before, .dv-prompt q::after { content: none; }
.dv-prompt .dp-copy { margin-top: auto; align-self: flex-start; }

/* setup */
.dp-setup { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; text-align: left; }
.dp-stabs { display: flex; flex-direction: column; gap: 6px; }
.dp-stab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; font: 600 15px/1.2 "Instrument Sans", sans-serif; color: var(--dv-ink-2); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.dp-stab img, .dp-stab svg { width: 20px; height: 20px; flex-shrink: 0; }
.dp-stab span small { display: block; margin-top: 3px; font: 400 12.5px/1.3 "Inter", sans-serif; color: var(--dv-ink-3); }
.dp-stab:hover { color: var(--dv-ink); }
.dp-stab[aria-selected="true"] { background: #fff; border-color: var(--dv-line); color: var(--dv-ink); box-shadow: var(--dv-card-shadow); }
.dp-spanel { display: none; background: #fff; border: 1px solid var(--dv-line); border-radius: 18px; box-shadow: var(--dv-card-shadow); padding: 30px; }
.dp-spanel.on { display: block; }
.dp-spanel h3 { font: 600 20px/1.3 "Instrument Sans", sans-serif; letter-spacing: -0.02em; color: var(--dv-ink); margin-bottom: 18px; }
.dp-spanel ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.dp-spanel li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; font: 400 15.5px/1.6 "Inter", sans-serif; color: var(--dv-ink-2); }
.dp-spanel li::before { content: counter(s); width: 28px; height: 28px; border-radius: 8px; background: var(--dv-base); color: var(--dv-ink); font: 600 13px/28px "Instrument Sans", sans-serif; text-align: center; }
.dp-spanel li b { color: var(--dv-ink); font-weight: 600; }
.dp-spanel .dp-code { margin-top: 12px; }
.dv-tip { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--dv-base); font: 400 14px/1.6 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-or { margin: 22px 0 10px; font: 600 14px/1.3 "Instrument Sans", sans-serif; color: var(--dv-ink); }

/* /api: jobs, each a card with prose and code */
.dv-jobs { display: flex; flex-direction: column; gap: 18px; }
.dv-job { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 30px; text-align: left; }
.dv-job .dp-code { box-shadow: none; }
.dv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }

/* ── FAQ (same as /interactive-demos) ── */
.dv-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.dv-faq-item { background: var(--dv-base); border: 1px solid var(--dv-line); border-radius: 14px; overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; }
.dv-base .dv-faq-item { background: #fff; }
.dv-faq-item:hover { border-color: rgba(0, 0, 0, 0.14); }
.dv-faq-item.open { border-color: rgba(64, 67, 255, 0.3); box-shadow: 0 8px 26px rgba(64, 67, 255, 0.07); background: #fff; }
.dv-faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 24px; text-align: left; background: none; border: 0; cursor: pointer; font: 600 17px/1.4 "Instrument Sans", sans-serif; letter-spacing: -0.02em; color: var(--dv-ink); }
.dv-faq-ic { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: rgba(0, 0, 0, 0.05); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
.dv-faq-ic svg { width: 13px; height: 13px; color: var(--dv-ink-2); }
.dv-faq-item.open .dv-faq-ic { background: var(--dv-blue); transform: rotate(45deg); }
.dv-faq-item.open .dv-faq-ic svg { color: #fff; }
.dv-faq-a { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.42s cubic-bezier(0.2, 0.85, 0.3, 1), opacity 0.3s ease; }
.dv-faq-item.open .dv-faq-a { max-height: 480px; opacity: 1; }
.dv-faq-a p { padding: 0 24px 22px; font: 400 15.5px/1.72 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-faq-a a { color: var(--dv-blue); }
.dv-plans { margin: 0 auto 48px; max-width: 700px; text-align: center; font: 400 16px/1.7 "Inter", sans-serif; color: var(--dv-ink-2); }

/* ── FINAL CTA (dark, as /interactive-demos) ── */
.dv-cta { background: var(--dv-dark); padding: 112px 24px; position: relative; overflow: hidden; text-align: center; }
.dv-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 400px at 50% 100%, rgba(64, 67, 255, 0.26) 0%, transparent 64%); }
.dv-cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.dv-cta h2 { font-family: "Instrument Sans", sans-serif; font-size: clamp(34px, 5vw, 58px); font-weight: 500; letter-spacing: -0.036em; line-height: 1.05; color: #fff; }
.dv-cta h2 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: #a9abff; }
.dv-cta p { font: 400 17px/1.7 "Inter", sans-serif; color: rgba(255, 255, 255, 0.64); max-width: 560px; }
.dv-cta .btn-primary { background: #fff; color: var(--dv-ink); }
.dv-cta .btn-primary .rolling-text span, .dv-cta .btn-primary .btn-text-hidden { color: var(--dv-ink); }
.dv-cta .btn-secondary { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.dv-cta .btn-secondary .rolling-text span { color: #fff; }
.dv-cta-small { font: 400 14px/1.6 "Inter", sans-serif; color: rgba(255, 255, 255, 0.5); }
.dv-cta-small a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
    .dv-frame-body, .dv-back, .dv-job { grid-template-columns: minmax(0, 1fr); }
    .dp-chat { border-right: 0; border-bottom: 1px solid var(--dv-line); height: 460px; }
    .dv-steps, .dv-prompts, .dv-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dp-setup { grid-template-columns: minmax(0, 1fr); }
    .dp-stabs { flex-direction: row; flex-wrap: wrap; }
    .dp-stab span small { display: none; }
    .dv-job { gap: 22px; }
}
@media (max-width: 720px) {
    .dv-sec { padding: 80px 20px; }
    .dv-hero { padding: 130px 20px 72px; }
    .dv-dark, .dv-cta { padding: 84px 20px; }
    .dv-hero-ctas { width: 100%; flex-direction: column; align-items: stretch; }
    .dv-hero-ctas .btn { flex: 0 0 auto; width: 100%; padding: 0 16px; height: 52px; }
    .dv-vs, .dv-steps, .dv-prompts, .dv-facts { grid-template-columns: minmax(0, 1fr); }
    .dv-dvs { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .dv-arrow { width: 2px; height: 36px; margin: 0 auto; background: repeating-linear-gradient(180deg, rgba(141, 143, 255, 0.8) 0 6px, transparent 6px 12px); }
    .dv-arrow::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 8px solid #8d8fff; border-bottom: 0; }
    .ds-screen, .dv-api-panel { padding: 16px; }
    .dp-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-conn span { display: none; }
    .dv-frame-url { display: none; }
    .dp-spanel { padding: 20px; }
    .dv-job { padding: 20px; }
    .dp-tabs { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .dv-hero-title, .dv-hero-sub, .dv-hero-ctas, .dv-works, .dv-hero-note, .dv-stage { animation: none !important; }
    .dv-hero-title em::after { animation: none; transform: scaleX(1); }
    .dp-msg, .dp-resp, .dp-ev, .dp-making { transition: none; }
    .dp-st, .dp-step.on i { animation: none; }
}

/* /api dark section: six short reassurances */
.dv-dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; text-align: left; }
.dv-dgrid .dv-dcard { gap: 8px; }
.dv-dgrid .dv-dcard b { font: 600 16px/1.35 "Instrument Sans", sans-serif; letter-spacing: -0.015em; color: #fff; }
.dv-dgrid .dv-dcard span { color: rgba(255, 255, 255, 0.64); }
@media (max-width: 980px) { .dv-dgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 720px) { .dv-dgrid { grid-template-columns: minmax(0, 1fr); } }
.dv-vs .dv-tag { align-self: flex-start; }
.dv-card .dv-left { margin-top: auto; }

/* ── /api hero: the release workflow on the left of the frame ── */
.dv-flow { display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; border-right: 1px solid var(--dv-line); background: #fff; min-width: 0; }
.dv-flow-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 14px; border: 1px solid var(--dv-line); background: #fff; transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s; }
.dv-flow-step small { display: block; font: 500 12px/1.3 "Inter", sans-serif; color: var(--dv-ink-3); }
.dv-flow-step b { display: block; margin-top: 3px; font: 600 15px/1.35 "Instrument Sans", sans-serif; letter-spacing: -0.01em; color: var(--dv-ink); }
.dv-flow-step p { margin-top: 6px; min-height: 1.5em; font: 400 14px/1.5 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-flow-ask { border-color: rgba(64, 67, 255, 0.28); box-shadow: 0 8px 26px rgba(64, 67, 255, 0.07); }
.dv-flow-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--dv-base); color: var(--dv-ink-2); display: flex; align-items: center; justify-content: center; }
.dv-flow-ic svg { width: 18px; height: 18px; }
.dv-flow-ic--ds { background: var(--dv-blue-soft); }
.dv-flow-ic img { width: 20px; height: 20px; border-radius: 5px; }
.dv-flow-site { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--dv-base); font: 500 13px/1.3 "Inter", sans-serif; }
.dv-flow-line { width: 2px; height: 18px; margin: 0 0 0 31px; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 4px, transparent 4px 8px); }
.dv-flow-step.dp-resp { opacity: 0.4; border-top: 1px solid var(--dv-line); }
.dv-flow-step.dp-resp.on { opacity: 1; border-color: rgba(22, 163, 74, 0.35); }
.dv-flow-step.dp-resp.on .dv-flow-ic { background: rgba(22, 163, 74, 0.1); color: var(--dv-green); }
.dv-api-panel .dp-ev { flex-direction: row; align-items: center; gap: 8px; }

/* before / after lists on /api */
.dv-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dv-list li { position: relative; padding-left: 26px; font: 400 15.5px/1.55 "Inter", sans-serif; color: var(--dv-ink-2); }
.dv-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 0, 0, 0.06); }
.dv-list--yes li { color: var(--dv-ink); }
.dv-list--yes li::before { background: rgba(22, 163, 74, 0.13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat; }

/* use cases on /api */
.dv-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dv-use { display: flex; flex-direction: column; gap: 4px; }
.dv-use .dv-feat-ic { margin-bottom: 12px; }

/* setup panel header with its copy button */
.dv-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dv-panel-h h3 { margin: 0; }

/* the one code sample on /api, inside the dark section */
.dv-devcode { max-width: 720px; margin: 36px auto 0; text-align: left; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
.dv-dark-link { margin-top: 24px; font: 500 15px/1 "Instrument Sans", sans-serif; }
.dv-dark-link a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.35); text-decoration: none; }
.dv-dark-link a:hover { border-color: #fff; }

@media (max-width: 980px) {
    .dv-flow { border-right: 0; border-bottom: 1px solid var(--dv-line); }
}
@media (max-width: 720px) {
    .dv-uses { grid-template-columns: minmax(0, 1fr); }
    .dv-flow { padding: 16px; }
    .dv-panel-h { flex-wrap: wrap; }
}
